/* ============================================
   PERSONAL PORTFOLIO - MAIN STYLES
   Modern • Minimalist • Premium
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors - Warm Light Premium */
    --bg-primary: #FAF7F4;
    --bg-secondary: #F3EEE9;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-hover: #F5F0EB;

    --text-primary: #2b1810;
    --text-secondary: #5c4033;
    --text-muted: #8a6f60;

    --accent: #B44F38;
    --accent-hover: #9a3f2c;
    --accent-soft: rgba(180, 79, 56, 0.12);
    --accent-glow: rgba(180, 79, 56, 0.25);

    --success: #2d8a4e;
    --error: #c53030;
    --warning: #c05621;

    --border: #eae2dc;
    --border-hover: #d9cfc6;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(43, 24, 16, 0.06);
    --shadow-md: 0 8px 24px rgba(43, 24, 16, 0.08);
    --shadow-lg: 0 16px 48px rgba(43, 24, 16, 0.1);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section__subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn--outline {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn--ghost {
    color: var(--text-secondary);
}

.btn--ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: #FFFFFF;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.header.scrolled {
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo__icon {
    font-size: 1.4rem;
}

.logo__accent {
    color: var(--accent);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1002;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    z-index: 1002;
    position: relative;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

/* Hamburger → X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 24, 16, 0.45);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Side Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100%;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 1101;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(43, 24, 16, 0.12);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.mobile-menu__close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.35rem;
    flex: 1;
}

.mobile-menu__link {
    display: block;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--accent);
}

.mobile-menu__divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: #FAF7F4;
}

/* Mathematical graph paper background - full stretch */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #FAF7F4;
    background-image:
        linear-gradient(rgba(180, 79, 56, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 79, 56, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: graphPaperDrift 40s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Soft accent glow that slowly breathes */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vmin;
    height: 80vmin;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(180, 79, 56, 0.09) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: softPulse 10s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 40vmin;
    height: 40vmin;
    background: radial-gradient(circle, rgba(180, 79, 56, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: softPulse 14s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes graphPaperDrift {
    0% { background-position: 0 0; }
    100% { background-position: 32px 32px; }
}

@keyframes softPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) var(--space-lg);
}

.hero__content {
    max-width: 720px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--accent-soft);
    border: 1px solid rgba(180, 79, 56, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease both;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s 0.1s ease both;
}

.hero__title .highlight {
    background: linear-gradient(135deg, #B44F38, #d4785c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
    animation: fadeIn 0.8s 0.3s ease both;
}

.hero__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B44F38, #d4785c);
}

.hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #B44F38, #d4785c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    color: #fff;
}

.hero__card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero__card-role {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.hero__card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat__value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- About ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.about__image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #FFFFFF, #F3EEE9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.about__content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.about__content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.75;
}

.about__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.info-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.info-item__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-item__value {
    font-weight: 500;
}

/* ---------- Skills ---------- */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.skill-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.skill-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.skill-tag {
    padding: 0.3rem 0.7rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ---------- Services ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #eae2dc;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service-card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Projects ---------- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card__image {
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #F3EEE9, #FFFFFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    flex: 1;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-md);
}

.project-card__actions {
    display: flex;
    gap: var(--space-sm);
}

/* ---------- Contact ---------- */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact__info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.contact__info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item__text {
    font-size: 0.95rem;
}

.contact-item__text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms */
.form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.form-alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.form-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.form-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-card__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-card__subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-card__footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-card__footer a {
    color: var(--accent);
    font-weight: 500;
}

.auth-card__footer a:hover {
    text-decoration: underline;
}

/* ---------- Profile ---------- */
.profile-page {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
}

.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #B44F38, #d4785c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    color: #fff;
}

.profile-info h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-info .username {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-info .bio {
    color: var(--text-secondary);
    max-width: 480px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.profile-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

/* ---------- Project Detail ---------- */
.project-detail {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
}

.project-detail__header {
    margin-bottom: var(--space-3xl);
}

.project-detail__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.project-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-detail__image {
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.project-detail__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
}

.project-detail__body h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
}

.project-detail__body h2:first-child {
    margin-top: 0;
}

.project-detail__body p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.project-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.project-sidebar h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.project-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

/* ---------- Footer ---------- */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: var(--space-md) 0;
    max-width: 280px;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.footer__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer__contact a:hover {
    color: var(--accent);
}

.footer__location {
    margin-top: var(--space-sm);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Flash Messages ---------- */
.flash {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-lg);
    z-index: 1100;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.3s ease;
    max-width: 360px;
}

.flash--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--success);
}

.flash--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--error);
}

/* ---------- Misc ---------- */
.main {
    min-height: 60vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.back-link:hover {
    color: var(--accent);
}
