/* ==========================================================================
   EDITORIAL LUXURY PORTFOLIO — Supriya Dwivedi
   Aesthetic: Warm editorial with refined serif typography & golden accents
========================================================================== */

/* Google Fonts — DM Sans + Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CSS VARIABLES
========================================================================== */
:root {
    /* Warm editorial palette */
    --ivory:        #F7F3ED;
    --ivory-deep:   #EDE7DC;
    --cream:        #FAF8F4;
    --charcoal:     #1C1917;
    --charcoal-mid: #2E2925;
    --charcoal-light: #5C534A;

    /* Gold accent system */
    --gold:         #B8934A;
    --gold-light:   #D4AE6E;
    --gold-pale:    #F0E0C0;
    --gold-dark:    #8C6C32;

    /* Supporting tones */
    --sage:         #7A8C72;
    --dusty-rose:   #C4877A;
    --slate:        #6B7680;

    /* Background aliases */
    --bg-primary:   var(--cream);
    --bg-section:   var(--ivory);
    --bg-dark:      var(--charcoal);
    --bg-card:      #FFFFFF;

    /* Text */
    --text-primary:   var(--charcoal);
    --text-secondary: var(--charcoal-light);
    --text-muted:     #9C9188;
    --text-light:     var(--ivory);
    --text-gold:      var(--gold);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Syne', sans-serif;

    /* Gradients */
    --gradient-gold:    linear-gradient(135deg, #B8934A 0%, #D4AE6E 50%, #B8934A 100%);
    --gradient-dark:    linear-gradient(160deg, #1C1917 0%, #2E2925 100%);
    --gradient-warm:    linear-gradient(135deg, #FAF8F4 0%, #EDE7DC 100%);
    --gradient-overlay: linear-gradient(to bottom, transparent 40%, rgba(28,25,23,0.85) 100%);

    /* Shadows */
    --shadow-xs:  0 1px 4px rgba(28,25,23,0.06);
    --shadow-sm:  0 2px 12px rgba(28,25,23,0.08);
    --shadow-md:  0 6px 28px rgba(28,25,23,0.12);
    --shadow-lg:  0 16px 48px rgba(28,25,23,0.16);
    --shadow-xl:  0 30px 80px rgba(28,25,23,0.22);
    --shadow-gold: 0 8px 30px rgba(184,147,74,0.25);

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 9rem;

    /* Border Radius */
    --radius-xs:   2px;
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   32px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
    --t-fast:   0.15s var(--ease-smooth);
    --t-base:   0.35s var(--ease-smooth);
    --t-slow:   0.6s  var(--ease-smooth);
    --t-spring: 0.5s  var(--ease-spring);

    /* Z-index layers */
    --z-back:   -1;
    --z-base:    1;
    --z-raised: 10;
    --z-fixed:  100;
    --z-modal: 1000;
    --z-top:   9999;
}

/* ==========================================================================
   RESET & BASE
========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

body.loading { overflow: hidden; }

ul { list-style: none; }

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea { font-family: inherit; }

/* Grain texture overlay (applies globally as pseudo-element on body) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-top);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    mix-blend-mode: overlay;
}

/* ==========================================================================
   LAYOUT UTILITIES
========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section__subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    position: relative;
    padding: 0 1.5rem;
}

.section__subtitle::before,
.section__subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.section__subtitle::before { right: 100%; margin-right: -1.25rem; }
.section__subtitle::after  { left:  100%; margin-left:  -1.25rem; }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTONS
========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--t-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity var(--t-fast);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
    background: var(--gradient-gold);
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
    border: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(184,147,74,0.4);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--ivory-deep);
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--charcoal);
    color: var(--ivory);
    border: none;
}

.btn--dark:hover {
    background: var(--charcoal-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PRELOADER
========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-top);
    transition: opacity 0.7s var(--ease-in-out), visibility 0.7s;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(184,147,74,0.2);
    border-top-color: var(--gold);
    border-radius: var(--radius-full);
    animation: spin 0.9s linear infinite;
}

.loader-text {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   HEADER & NAVIGATION
========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: rgba(247, 243, 237, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all var(--t-base);
    border-bottom: 1px solid transparent;
}

.header.sticky {
    border-bottom-color: rgba(184,147,74,0.15);
    box-shadow: 0 2px 20px rgba(28,25,23,0.06);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.01em;
}

.logo-dot {
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1;
    margin-top: -4px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0;
    transition: color var(--t-base);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--t-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--gold-dark);
}

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

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--charcoal);
}

.nav__close { display: none; }

/* ==========================================================================
   HERO SECTION
========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Large decorative background letterform */
.hero::before {
    content: 'S';
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 52vw;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184,147,74,0.07);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    animation: fadeInUp 0.9s var(--ease-smooth) both;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.eyebrow-line {
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.eyebrow-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.hero__title em {
    font-style: italic;
    color: var(--gold);
}

.hero__typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    height: 1.8rem;
}

.typed-text { display: inline-block; }

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--gold);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
    border-radius: 1px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero__description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: var(--space-md);
    max-width: 460px;
}

.hero__info {
    margin-bottom: var(--space-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-item i { color: var(--gold); }

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.hero__social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hero__social-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--ivory);
    color: var(--charcoal-light);
    font-size: 1rem;
    border: 1px solid var(--ivory-deep);
    transition: all var(--t-spring);
}

.social-link:hover {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* Hero Image */
.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.9s var(--ease-smooth) 0.2s both;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4/5;
    position: relative;
    z-index: 2;
}

/* Decorative frame */
.image-shape {
    position: absolute;
    top: 18px;
    left: 18px;
    right: -18px;
    bottom: -18px;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-xl);
    z-index: 1;
    opacity: 0.6;
}

/* Gold corner accents */
.image-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 3;
}

.image-corner::before,
.image-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
    border-radius: 1px;
}

.image-corner::before { width: 100%; height: 2px; top: 0; left: 0; }
.image-corner::after  { width: 2px; height: 100%; top: 0; left: 0; }

.image-corner.tl { top: -2px; left: -2px; }
.image-corner.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.image-corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.image-corner.br { bottom: -2px; right: -2px; transform: scale(-1); }

.experience-badge {
    position: absolute;
    bottom: 28px;
    right: -20px;
    background: var(--charcoal);
    color: var(--ivory);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-md);
    text-align: center;
    animation: float 4s ease-in-out infinite;
    z-index: 4;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(184,147,74,0.2);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.badge-text {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: nudgeDown 2.5s ease-in-out infinite;
}

.scroll-down i { font-size: 1.25rem; }

@keyframes nudgeDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* Entry animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   ABOUT SECTION
========================================================================== */
.about {
    background: var(--bg-section);
}

/* Decorative top rule */
.about::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.about__content h3 em {
    font-style: italic;
    color: var(--gold);
}

.about__content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.85;
    font-size: 0.9375rem;
}

.about__stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--ivory-deep);
    border-bottom: 1px solid var(--ivory-deep);
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about__buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   SERVICES SECTION
========================================================================== */
.services { background: var(--bg-primary); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ivory-deep);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gold);
    opacity: 0;
    transition: opacity var(--t-base);
}

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

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

/* Large decorative number */
.service-card::before {
    content: attr(data-num);
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold-pale);
    line-height: 1;
    pointer-events: none;
    transition: color var(--t-base);
}

.service-card:hover::before { color: rgba(184,147,74,0.12); }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--ivory-deep);
    transition: all var(--t-base);
}

.service-card:hover .service-icon {
    background: var(--gold);
    border-color: var(--gold);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--gold);
    transition: color var(--t-base);
}

.service-card:hover .service-icon i { color: var(--charcoal); }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.service-link i { transition: transform var(--t-fast); }

.service-link:hover { gap: 0.75rem; }
.service-link:hover i { transform: translateX(3px); }

/* ==========================================================================
   SKILLS SECTION
========================================================================== */
.skills { background: var(--bg-section); }

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

.skills__content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.skill-item { margin-bottom: 1.75rem; }

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--charcoal);
}

.skill-percent {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.skill-bar {
    height: 4px;
    background: var(--ivory-deep);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.2s var(--ease-in-out);
}

.skill-progress.animated { width: var(--target-width); }

.professional-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.professional-item { text-align: center; }

.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: conic-gradient(var(--gold) 0deg, var(--gold) var(--percent), var(--ivory-deep) var(--percent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-section);
    border-radius: var(--radius-full);
}

.progress-number {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.professional-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================================================
   EXPERIENCE SECTION
========================================================================== */
.experience { background: var(--bg-primary); }

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-pale) 10%, var(--gold-pale) 90%, transparent);
}

.timeline-item {
    position: relative;
    padding: var(--space-md) 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: var(--space-lg);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: var(--space-lg);
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: calc(var(--space-md) + 10px);
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--gold), var(--shadow-gold);
    transition: transform var(--t-spring);
}

.timeline-item:hover .timeline-dot { transform: scale(1.4); }

.timeline-item:nth-child(odd)  .timeline-dot { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left:  -7px; }

.timeline-content {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ivory-deep);
    box-shadow: var(--shadow-xs);
    transition: all var(--t-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(184,147,74,0.3);
}

.timeline-date {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================================================
   PROJECTS SECTION
========================================================================== */
.projects { background: var(--bg-section); }

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--ivory-deep);
    border-radius: var(--radius-full);
    transition: all var(--t-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--gold);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--ivory-deep);
    box-shadow: var(--shadow-xs);
    transition: all var(--t-base);
}

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

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.project-card:hover .project-image img { transform: scale(1.06); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--t-base);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border-radius: var(--radius-md);
    color: var(--charcoal);
    font-size: 1.25rem;
    transform: scale(0) rotate(-10deg);
    transition: all var(--t-spring);
}

.project-card:hover .project-link {
    transform: scale(1) rotate(0deg);
}

.project-info { padding: 1.5rem; }

.project-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

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

.project-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   CONTACT SECTION
========================================================================== */
.contact { background: var(--bg-primary); }

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact__info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact__info > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.85;
    font-size: 0.9375rem;
}

.contact-details { margin-bottom: var(--space-md); }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    border: 1px solid var(--ivory-deep);
    color: var(--gold);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: all var(--t-base);
}

.contact-item:hover i {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
}

.contact-item .label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
    color: var(--charcoal);
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-item a:hover { color: var(--gold); }

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.contact-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    color: var(--charcoal-light);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    border: 1px solid var(--ivory-deep);
    transition: all var(--t-spring);
}

.contact-social a:hover {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Contact form */
.contact__form {
    background: var(--bg-section);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--ivory-deep);
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }

.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    border: 1.5px solid var(--ivory-deep);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--charcoal);
    transition: all var(--t-base);
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(184,147,74,0.1);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

/* ==========================================================================
   FOOTER
========================================================================== */
.footer {
    background: var(--charcoal);
    color: var(--ivory);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: 'SD';
    position: absolute;
    right: -1%;
    bottom: -10%;
    font-family: var(--font-display);
    font-size: 20rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184,147,74,0.06);
    line-height: 1;
    pointer-events: none;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-md);
}

.footer__brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer__links {
    display: flex;
    gap: var(--space-md);
}

.footer__links a {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--t-base);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__bottom p span { color: var(--gold); }

.back-to-top {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184,147,74,0.15);
    color: var(--gold);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    border: 1px solid rgba(184,147,74,0.2);
    transition: all var(--t-spring);
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   SCROLL ANIMATIONS
========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE — TABLET (≤1024px)
========================================================================== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__eyebrow { justify-content: center; }

    .hero__description { margin: 0 auto var(--space-md); }

    .hero__buttons,
    .hero__social { justify-content: center; }

    .hero__image { order: -1; }

    .image-wrapper { max-width: 320px; }

    .about__container,
    .contact__container { grid-template-columns: 1fr; }

    .skills__container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤768px)
========================================================================== */
@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        justify-content: center;
        transition: right var(--t-base);
        border-left: 1px solid var(--ivory-deep);
    }

    .nav__menu.open { right: 0; }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nav__link { font-size: 0.875rem; }

    .nav__toggle { display: block; }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--charcoal);
    }

    .hero__title { font-size: 2.5rem; }

    .about__stats { justify-content: center; }

    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 56px;
        padding-right: 0;
        text-align: left;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) { text-align: left; }

    .timeline-item:nth-child(odd)  .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 13px; right: auto; }

    .projects__grid { grid-template-columns: 1fr; }

    .filter-buttons { flex-wrap: wrap; }

    .footer__content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
========================================================================== */
@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }

    .hero__buttons { flex-direction: column; }

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

    .professional-skills { grid-template-columns: repeat(2, 1fr); }

    .contact__form { padding: 1.5rem; }
}

/* ==========================================================================
   UTILITY CLASSES
========================================================================== */
.text-center     { text-align: center; }
.text-gold       { color: var(--gold); }
.text-charcoal   { color: var(--charcoal); }
.bg-ivory        { background-color: var(--ivory); }
.hide            { display: none !important; }
.show            { display: block !important; }

/* ========================================================================
   ENGINEERING PORTFOLIO — crisp typography, quiet surfaces, clear hierarchy
======================================================================== */
:root {
    --ivory: #eef0eb;
    --ivory-deep: #dfe4dc;
    --cream: #f7f8f5;
    --charcoal: #111713;
    --charcoal-mid: #1b241e;
    --charcoal-light: #56635a;
    --gold: #8acb62;
    --gold-light: #b5e58f;
    --gold-pale: #e5f2d9;
    --gold-dark: #527d39;
    --bg-primary: #f7f8f5;
    --bg-section: #eef1eb;
    --bg-dark: #111713;
    --bg-card: #ffffff;
    --text-primary: #111713;
    --text-secondary: #56635a;
    --text-muted: #78847b;
    --font-display: 'Space Grotesk', 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --gradient-gold: linear-gradient(135deg, #a8dc83, #8acb62);
    --gradient-dark: linear-gradient(145deg, #111713 0%, #1b241e 100%);
    --gradient-warm: linear-gradient(135deg, #f7f8f5, #eef1eb);
    --gradient-overlay: linear-gradient(to bottom, transparent 30%, rgba(12,18,14,.82) 100%);
    --shadow-xs: 0 1px 3px rgba(17,23,19,.05);
    --shadow-sm: 0 5px 18px rgba(17,23,19,.07);
    --shadow-md: 0 12px 32px rgba(17,23,19,.09);
    --shadow-lg: 0 20px 48px rgba(17,23,19,.12);
    --shadow-xl: 0 28px 70px rgba(17,23,19,.18);
    --shadow-gold: 0 8px 24px rgba(138,203,98,.22);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html { scroll-padding-top: 88px; }
body { letter-spacing: -.012em; }
.container { max-width: 1160px; }
.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section__header { text-align: left; max-width: 760px; margin: 0 0 3.5rem; }
.section__subtitle { padding: 0; letter-spacing: .16em; color: var(--gold-dark); }
.section__subtitle::before, .section__subtitle::after { display: none; }
.section__title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.055em; }

.header { background: rgba(247,248,245,.88); backdrop-filter: blur(18px); }
.header.sticky { border-bottom-color: var(--ivory-deep); box-shadow: 0 5px 24px rgba(17,23,19,.06); }
.nav { height: 76px; }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -.05em; }
.logo-dot { color: var(--gold-dark); }
.nav__list { gap: clamp(1rem, 2.5vw, 2.3rem); }
.nav__link { font-size: .72rem; letter-spacing: .08em; color: var(--text-secondary); }
.nav__link::after { height: 2px; background: var(--gold-dark); }
.nav__link:hover, .nav__link.active { color: var(--charcoal); }

.hero { min-height: 760px; min-height: min(900px, 100svh); padding: 120px 0 72px; background: #111713; color: #f7f8f5; }
.hero::before { content: ''; width: 48vw; height: 48vw; right: -13vw; top: 45%; border-radius: 50%; background: radial-gradient(circle, rgba(138,203,98,.15), transparent 68%); -webkit-text-stroke: 0; }
.hero__container { grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 8rem); }
.hero__subtitle { display: block; margin-bottom: 1.5rem; color: #a9d98b; font: 600 .76rem/1.4 'DM Sans', sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.hero__title { max-width: 760px; color: #f7f8f5; font-size: clamp(3.5rem, 7.3vw, 6.5rem); font-weight: 600; line-height: .98; letter-spacing: -.075em; }
.hero__typing { color: #b4c0b7; font-size: .83rem; letter-spacing: .12em; }
.cursor { background: #a9d98b; }
.hero__description { max-width: 520px; color: #b4c0b7; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.8; }
.info-item { color: #b4c0b7; }
.info-item i { color: #a9d98b; }
.btn { min-height: 50px; border-radius: 7px; font-size: .73rem; letter-spacing: .08em; }
.btn--primary { color: #101810; background: #a9d98b; box-shadow: none; }
.btn--primary:hover { background: #c2eda9; box-shadow: 0 10px 28px rgba(138,203,98,.2); }
.btn--outline { border-color: rgba(255,255,255,.28); color: #f7f8f5; }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: #a9d98b; color: #d6f2c4; }
.social-link { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #e1e8e2; }
.social-link:hover { background: #a9d98b; color: #101810; border-color: #a9d98b; box-shadow: none; }
.image-wrapper { max-width: 390px; }
.hero-img { border-radius: 15px; box-shadow: 0 28px 70px rgba(0,0,0,.32); filter: saturate(.82); }
.image-shape { top: 14px; left: 14px; right: -14px; bottom: -14px; border: 1px solid rgba(169,217,139,.62); border-radius: 15px; }
.experience-badge { right: -28px; bottom: 28px; padding: 1rem 1.25rem; gap: .35rem; display: flex; align-items: center; background: #a9d98b; color: #111713; border: 5px solid #111713; border-radius: 9px; }
.badge-number { font: 700 1rem 'Space Grotesk', sans-serif; }
.badge-text { color: #293b2d; font-size: .65rem; }
.scroll-down { display: none; }

.about, .contact { background: #f7f8f5; }
.services, .experience { background: #f7f8f5; }
.skills, .projects { background: #eef1eb; }
.about__container { display: grid; grid-template-columns: minmax(0, 1fr); }
.about__content { position: relative; width: min(100%, 980px); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; border: 1px solid #e3e8e0; border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #fbfcfa 100%); box-shadow: 0 24px 70px rgba(26,40,30,.07); }
.about__content::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ''; background: linear-gradient(180deg, #a9d98b, #6e9b55); }
.about__content h3 { font: 600 clamp(1.6rem, 3vw, 2.15rem)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.045em; }
.about__content p { max-width: 76ch; color: #56635a; line-height: 1.8; }
.about__principles { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.35rem 0 1.8rem; }
.about__principles li { padding: .55rem .8rem; border: 1px solid #dfe4dc; border-radius: 8px; color: #34433a; background: #f7faf5; font-size: .76rem; font-weight: 600; }

.services__grid { gap: 1rem; }
.service-card { min-height: 280px; padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid #e1e5df; border-radius: 12px; background: white; box-shadow: none; }
.service-card::before { color: rgba(79,125,57,.06); }
.service-card::after { display: none; }
.service-card:hover { transform: translateY(-5px); border-color: #b5d69f; box-shadow: 0 14px 34px rgba(17,23,19,.07); }
.service-icon { width: 46px; height: 46px; border-radius: 10px; background: #eaf4e2; color: #527d39; }
.service-card:hover .service-icon { background: #a9d98b; }
.service-card h3 { font: 600 1.2rem 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.service-card p { color: #647168; font-size: .9rem; line-height: 1.75; }
.service-link { color: #527d39; font-size: .72rem; letter-spacing: .06em; }

.skills__container { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; gap: clamp(1rem, 2vw, 1.5rem); }
.skills__content { height: 100%; padding: clamp(1.35rem, 2.5vw, 2rem); border: 1px solid #e1e5df; border-radius: 14px; background: #fff; }
.skills__content h3 { font: 600 1.3rem 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.skill-item { margin-bottom: .85rem; padding: .82rem 0; border-bottom: 1px solid #edf0eb; }
.skill-info { margin: 0; }
.skill-name { font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.skill-percent, .skill-bar, .progress-circle { display: none; }
.professional-skills { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(104px, 1fr)); gap: .7rem; }
.skills__content:nth-child(2) { display: flex; flex-direction: column; }
.professional-item { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .55rem; padding: clamp(.9rem, 1.6vw, 1.2rem); border: 1px solid #e7ece4; border-radius: 10px; text-align: left; background: linear-gradient(145deg, #fff, #f8faf7); }
.professional-item::before { color: #72945f; content: counter(workstep, decimal-leading-zero); font-size: .64rem; font-weight: 700; letter-spacing: .1em; }
.professional-skills { counter-reset: workstep; }
.professional-item { counter-increment: workstep; }
.professional-label { color: #34433a; font-size: .86rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.professional-item p { margin: 0; color: #69756c; font-size: .76rem; line-height: 1.55; }

.timeline { max-width: 900px; display: grid; gap: 1rem; }
.timeline::before, .timeline-dot { display: none; }
.timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { width: auto; margin: 0; padding: 0; text-align: left; }
.timeline-content { display: grid; grid-template-columns: 145px minmax(0,1fr); grid-template-rows: auto auto auto auto; column-gap: 1.5rem; row-gap: .35rem; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid #e1e5df; border-left: 3px solid #8acb62; border-radius: 11px; background: white; box-shadow: 0 2px 8px rgba(17,23,19,.025); }
.timeline-content:hover { transform: translateY(-3px); border-color: #b5d69f; border-left-color: #527d39; box-shadow: 0 14px 30px rgba(17,23,19,.07); }
.timeline-date { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding-top: .2rem; color: #527d39; font-size: .7rem; letter-spacing: .08em; line-height: 1.6; }
.timeline-content h3 { grid-column: 2; grid-row: 1; margin: 0; font: 600 1.3rem 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.timeline-content h4 { grid-column: 2; grid-row: 2; margin: 0; color: #527d39; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.timeline-content p { grid-column: 2; grid-row: 3; margin: .35rem 0 0; color: #647168; line-height: 1.75; }
.experience-highlights { grid-column: 2; grid-row: 4; }

.filter-buttons { justify-content: flex-start; gap: .5rem; }
.filter-btn { border: 1px solid #dfe4dc; border-radius: 999px; color: #56635a; background: transparent; font-size: .68rem; letter-spacing: .06em; }
.filter-btn:hover, .filter-btn.active { color: white; border-color: #243229; background: #243229; }
.projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { border: 1px solid #e1e5df; border-radius: 12px; box-shadow: none; background: white; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17,23,19,.09); }
.project-image { aspect-ratio: 16/9; }
.project-image img { filter: saturate(.84); }
.project-info { padding: 1.35rem 1.5rem 1.55rem; }
.project-category { color: #527d39; letter-spacing: .12em; }
.project-info h3 { font: 600 1.25rem 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.project-info p { color: #647168; line-height: 1.75; }
.project-overlay { opacity: 1; background: linear-gradient(180deg, transparent 65%, rgba(12,18,14,.36)); }
.project-link { width: 40px; height: 40px; background: #a9d98b; color: #111713; border-radius: 8px; transform: none; }

.contact__container { gap: clamp(2rem, 6vw, 5rem); }
.contact__info h3 { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.contact-item i { color: #527d39; background: #eaf4e2; border: 0; }
.contact-item:hover i { color: #111713; background: #a9d98b; }
.contact-item a:hover { color: #527d39; }
.contact-social a { border-radius: 9px; border-color: #dfe4dc; color: #34433a; }
.contact-social a:hover { background: #a9d98b; border-color: #a9d98b; color: #111713; box-shadow: none; }
.contact__form { padding: clamp(1.4rem, 3vw, 2.3rem); border: 1px solid #e1e5df; border-radius: 12px; background: #fff; box-shadow: none; }
.contact__form input, .contact__form textarea { border: 1px solid #dfe4dc; border-radius: 7px; background: #fafbf9; }
.contact__form input:focus, .contact__form textarea:focus { border-color: #7cae5e; box-shadow: 0 0 0 3px rgba(138,203,98,.16); }

.footer { background: #111713; }
.footer::before { color: transparent; -webkit-text-stroke-color: rgba(169,217,139,.05); }
.footer__links a:hover { color: #a9d98b; }
.footer__bottom p span { color: #a9d98b; }
.back-to-top { border-radius: 8px; color: #c7eab2; border-color: rgba(169,217,139,.25); }
.back-to-top:hover { background: #a9d98b; color: #111713; box-shadow: none; }

/* Resume-backed skills, compact portraits, and a footer that holds together */
.skill-group { padding: .9rem 0 1.05rem; border-top: 1px solid #edf0eb; }
.skill-group h4 { margin: 0 0 .7rem; color: #69756c; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags li { padding: .45rem .68rem; border: 1px solid #e1e8dd; border-radius: 6px; background: #f7faf5; color: #34433a; font-size: .77rem; font-weight: 500; }
.about__credentials { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin: 1.3rem 0 1.8rem; }
.about__credentials div { display: grid; align-content: start; gap: .4rem; min-height: 96px; padding: .9rem 1rem; border: 1px solid #e7ece4; border-radius: 10px; background: #f8faf7; }
.about__credentials span { color: #6e7a70; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.about__credentials strong { color: #26352b; font-size: .82rem; font-weight: 600; }
.experience-highlights { display: grid; gap: .45rem; margin-top: .8rem; padding-left: 1rem; color: #647168; font-size: .82rem; line-height: 1.55; list-style: disc; }

.hero__image { align-self: center; }
.image-wrapper { max-width: 290px; }
.hero-img { width: 100%; max-height: 370px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; border: 6px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 28px 70px rgba(0,0,0,.3); filter: saturate(.94) contrast(1.03); }
.image-shape { top: 15px; left: 15px; right: -15px; bottom: -15px; border: 1px solid rgba(169,217,139,.55); border-radius: 24px; }
.project-cover { position: relative; display: flex; min-height: 178px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.25rem 1.35rem; isolation: isolate; color: #f3f7f1; background: #18251d; }
.project-cover::before { position: absolute; z-index: -1; inset: 0; content: ''; background: radial-gradient(circle at 80% 15%, rgba(169,217,139,.3), transparent 38%), linear-gradient(135deg, rgba(10,17,12,.04), rgba(10,17,12,.7)); }
.project-cover > span { font-size: .62rem; font-weight: 700; letter-spacing: .14em; color: #c5e7b2; }
.project-cover > strong { max-width: 75%; font: 600 clamp(1.35rem, 2.5vw, 1.9rem)/1.05 'Space Grotesk', sans-serif; letter-spacing: -.045em; }
.project-cover > i { position: absolute; right: 1rem; bottom: .1rem; color: rgba(225,244,213,.2); font-size: 7.5rem; transition: transform .45s cubic-bezier(.2,.7,.2,1), color .45s ease; }
.project-card:hover .project-cover > i { transform: translate(-5px,-5px) rotate(-7deg) scale(1.05); color: rgba(225,244,213,.35); }
.project-cover--bank { background: linear-gradient(135deg,#142b26,#226a57); }
.project-cover--chess { background: linear-gradient(135deg,#202c3b,#44605d); }
.project-cover--prep { background: linear-gradient(135deg,#272247,#6449a2); }
.project-cover--bugs { background: linear-gradient(135deg,#392b29,#9a5b46); }
.project-cover--space { background: linear-gradient(135deg,#102e47,#327b94); }
.project-cover--nexum { background: linear-gradient(135deg,#263b30,#76905b); }
.project-cover--nexora { background: linear-gradient(135deg,#342344,#865e97); }
.project-cover--erp { background: linear-gradient(135deg,#182c3a,#326b7a); }
.project-cover--pte { background: linear-gradient(135deg,#17382e,#42845c); }
.project-cover--qr { background: linear-gradient(135deg,#3a2c1f,#b1793f); }
.project-cover--commerce { background: linear-gradient(135deg,#392a2e,#96585d); }
.project-repo { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; color: #527d39; font-size: .76rem; font-weight: 700; }
.project-repo i { transition: transform .2s ease; }
.project-repo:hover { color: #315820; }
.project-repo:hover i { transform: translateX(4px); }
.project-card--text .project-info { min-height: 205px; }

.footer { position: relative; isolation: isolate; overflow: hidden; padding: 3.8rem 0 2rem; }
.footer::before { z-index: 0; opacity: .22; }
.footer > .container { position: relative; z-index: 1; }
.footer__content { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 2rem; padding-bottom: 2rem; margin-bottom: 1.5rem; }
.footer__logo { display: inline-flex; align-items: center; }
.footer__logo .logo-text { color: #f5f8f4; }
.footer__logo .logo-dot { color: #a9d98b; }
.footer__brand p { max-width: 360px; color: #b4c0b7; }
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(90px,auto)); gap: .85rem 1.8rem; }
.footer__links a { color: #c6cec8; font-size: .69rem; letter-spacing: .1em; }
.footer__bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem; align-items: center; }
.footer__bottom p { max-width: 100%; color: #b4c0b7; line-height: 1.65; }
.back-to-top { flex: 0 0 44px; }

@keyframes heroGlow {
    from { transform: translate3d(0,-2%,0) scale(.96); opacity: .6; }
    to { transform: translate3d(-3%,3%,0) scale(1.06); opacity: 1; }
}
@keyframes portraitEnter {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero::before { animation: heroGlow 10s ease-in-out infinite alternate; }
.hero-img { animation: portraitEnter .8s .12s both cubic-bezier(.2,.7,.2,1); }
.project-link { transition: transform .25s ease, background .25s ease; }
.project-card:hover .project-link { transform: translateY(-3px); }
.contact__form input, .contact__form textarea { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }

:focus-visible { outline: 3px solid #78a957; outline-offset: 3px; }
@media (max-width: 1024px) {
    .hero { min-height: auto; padding: 132px 0 82px; }
    .hero__container { gap: 2.75rem; }
    .hero__image { order: 0; }
    .hero__content { text-align: left; }
    .hero__buttons, .hero__social { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .section { padding: 5rem 0; }
    .section__header { margin-bottom: 2.5rem; }
    .nav { height: 68px; }
    .nav__menu { background: #f7f8f5; }
    .nav__link { font-size: .82rem; }
    .hero { padding: 108px 0 64px; }
    .hero__container { grid-template-columns: 1fr; text-align: left; }
    .hero__image { order: -1; justify-content: flex-start; }
    .image-wrapper { max-width: 225px; margin-left: 10px; }
    .hero-img { height: 282px; aspect-ratio: 4 / 5; }
    .about__content { padding: 1.5rem; border-radius: 18px; }
    .about__credentials { grid-template-columns: 1fr; }
    .skills__container { grid-template-columns: 1fr; }
    .professional-skills { grid-template-rows: repeat(2, minmax(90px, auto)); }
    .experience-badge { right: -26px; bottom: 12px; }
    .hero__title { font-size: clamp(3.2rem, 13vw, 5rem); }
    .hero__description { margin-left: 0; }
    .projects__grid { grid-template-columns: 1fr; }
    .footer { padding: 3rem 0 1.5rem; }
    .footer__content { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
    .footer__links { grid-template-columns: repeat(2, minmax(100px, 1fr)); justify-content: start; }
    .footer__links a { text-align: left; }
    .footer__bottom { grid-template-columns: 1fr; justify-items: start; gap: 1rem; }
    .timeline-content { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; row-gap: .35rem; }
    .timeline-date, .timeline-content h3, .timeline-content h4, .timeline-content p, .experience-highlights { grid-column: 1; grid-row: auto; }
    .timeline-date { margin-bottom: .2rem; }
    .timeline-content h4 { margin-bottom: .25rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .hero .image-wrapper { max-width: 178px; }
    .hero-img { height: 222px; border-width: 4px; border-radius: 18px; }
    .image-shape { top: 10px; left: 10px; right: -10px; bottom: -10px; border-radius: 18px; }
    .about__content { padding: 1.25rem; }
    .hero__buttons { align-items: stretch; flex-direction: column; }
    .hero__buttons .btn { width: 100%; }
    .professional-skills { grid-template-columns: 1fr 1fr; }
}

/* Hero refresh: a balanced two-column intro with a bold, coral portrait frame. */
.header:not(.sticky) { background: rgba(17, 27, 35, .92); border-bottom-color: rgba(255,255,255,.07); }
.header:not(.sticky) .logo-text,
.header:not(.sticky) .nav__link { color: #f4f6f7; }
.header:not(.sticky) .logo-dot { color: #ff725e; }
.header:not(.sticky) .nav__link::after { background: #ff725e; }
.header.sticky { background: rgba(247,248,245,.96); }
.header.sticky .nav__link { color: #48534c; }
.hero { min-height: min(900px, 100svh); padding: 120px 0 76px; background: radial-gradient(ellipse at 76% 45%, rgba(255,114,94,.12), transparent 34%), linear-gradient(125deg, #101a22 0%, #14212a 62%, #111b23 100%); }
.hero::before { content: ''; width: min(54vw, 720px); height: min(54vw, 720px); right: -18vw; top: 48%; border-radius: 50%; background: radial-gradient(circle, rgba(255,114,94,.13), transparent 67%); -webkit-text-stroke: 0; }
.hero__container { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(2rem, 5.5vw, 5.5rem); align-items: center; }
.hero__content { width: 100%; max-width: 590px; justify-self: end; }
.hero__subtitle { display: block; margin-bottom: .9rem; color: #f4f6f7; font: 500 clamp(1.1rem, 2vw, 1.45rem)/1.3 'DM Sans', sans-serif; letter-spacing: -.02em; text-transform: none; }
.hero__subtitle::after { content: '.'; color: #ff725e; font-weight: 700; }
.hero__title { max-width: 100%; margin-bottom: .8rem; color: #fff; font-size: clamp(3.1rem, 6.2vw, 5.4rem); font-weight: 700; line-height: .99; letter-spacing: -.065em; }
.hero__typing { display: flex; width: 100%; height: auto; min-height: 2rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.2rem; color: #ff8978; font-size: clamp(1.25rem, 2.3vw, 1.8rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; text-transform: none; }
.cursor { background: #ff725e; }
.hero__description { max-width: 490px; margin-bottom: 1.35rem; color: #c0c8cd; font-size: clamp(.98rem, 1.25vw, 1.08rem); line-height: 1.75; }
.hero__info { margin-bottom: 1.4rem; }
.info-item { color: #c0c8cd; }
.info-item i { color: #ff8978; }
.hero__buttons { flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero .btn { min-height: 50px; border-radius: 5px; font-size: .7rem; letter-spacing: .06em; }
.hero .btn--primary { color: #111b23; background: #ff725e; }
.hero .btn--primary:hover { background: #ff9382; box-shadow: 0 12px 30px rgba(255,114,94,.22); }
.hero .btn--outline { border-color: rgba(255,255,255,.36); color: #fff; }
.hero .btn--outline:hover { border-color: #ff8978; color: #ffb0a3; background: rgba(255,114,94,.08); }
.hero .social-link { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #e1e8e2; }
.hero .social-link:hover { border-color: #ff725e; background: #ff725e; color: #111b23; box-shadow: none; }
.hero__image { width: 100%; min-width: 0; justify-content: center; }
.image-wrapper { isolation: isolate; width: min(100%, 410px); max-width: none; }
.image-wrapper::before { position: absolute; z-index: -1; top: 43%; left: 50%; width: 105%; aspect-ratio: 1; border: clamp(9px, 1.2vw, 15px) solid #f36d5e; border-radius: 50%; content: ''; transform: translate(-50%,-50%); box-shadow: 0 0 70px rgba(243,109,94,.22), inset 0 0 40px rgba(243,109,94,.08); }
.hero-img { display: block; position: relative; z-index: 1; width: 100%; height: clamp(390px, 43vw, 510px); max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center 27%; border: 6px solid #14212a; border-radius: 46% 46% 18px 18px; box-shadow: 0 28px 70px rgba(0,0,0,.34); filter: saturate(.94) contrast(1.04); }
.image-shape { display: none; }
.experience-badge { z-index: 2; right: -.5rem; bottom: 1.2rem; display: flex; align-items: center; gap: .55rem; padding: .9rem 1rem; border: 4px solid #14212a; border-radius: 6px; background: #ff725e; color: #111b23; }
.badge-number { color: #111b23; font-size: 1.2rem; }
.badge-text { color: #3e2926; }

@media (max-width: 1024px) {
    .hero { min-height: auto; padding: 126px 0 84px; }
    .hero__container { grid-template-columns: minmax(0, 1fr) minmax(285px, .9fr); gap: clamp(1.8rem, 4vw, 3rem); }
    .hero__title { font-size: clamp(3rem, 6vw, 4.8rem); }
    .image-wrapper { width: min(100%, 350px); }
    .hero-img { height: clamp(350px, 43vw, 440px); }
    .experience-badge { right: -.3rem; }
}
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 112px 0 72px; }
    .hero__container { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
    .hero__content { max-width: 620px; justify-self: start; }
    .hero__image { order: 0; justify-content: center; }
    .image-wrapper { width: min(100%, 330px); }
    .hero-img { height: clamp(340px, 76vw, 410px); }
    .experience-badge { right: -.6rem; bottom: .8rem; }
    .header:not(.sticky) .nav__menu .nav__link { color: #f4f6f7; }
    .header:not(.sticky) .nav__toggle { color: #f4f6f7; }
}
@media (max-width: 480px) {
    .hero { padding: 104px 0 64px; }
    .hero__container { gap: 2rem; }
    .hero__title { font-size: clamp(2.8rem, 12vw, 3.6rem); }
    .hero__typing { font-size: 1.15rem; }
    .hero__buttons { flex-direction: row; gap: .55rem; }
    .hero__buttons .btn { width: auto; flex: 1; padding: .8rem .65rem; font-size: .62rem; }
    .image-wrapper { width: min(100%, 270px); }
    .hero-img { height: 330px; border-width: 5px; }
    .experience-badge { right: -.35rem; bottom: .6rem; padding: .7rem .8rem; }
}
@media (max-width: 360px) {
    .hero__buttons { align-items: stretch; flex-direction: column; }
    .hero__buttons .btn { width: 100%; }
}

/* Shared navy and coral theme for every section beyond the hero. */
:root {
    color-scheme: dark;
    --ivory: #eef2f4;
    --ivory-deep: #2b3a44;
    --cream: #101a22;
    --charcoal: #f4f6f7;
    --charcoal-mid: #1d2b35;
    --charcoal-light: #bdc7cd;
    --gold: #ff725e;
    --gold-light: #ff9585;
    --gold-pale: rgba(255,114,94,.18);
    --gold-dark: #ff8978;
    --bg-primary: #101a22;
    --bg-section: #14212a;
    --bg-dark: #101a22;
    --bg-card: #182630;
    --text-primary: #f4f6f7;
    --text-secondary: #bdc7cd;
    --text-muted: #96a3aa;
    --text-light: #f4f6f7;
    --text-gold: #ff8978;
    --gradient-gold: linear-gradient(135deg, #ff725e 0%, #ff9585 50%, #ff725e 100%);
    --gradient-dark: linear-gradient(160deg, #101a22 0%, #1d2b35 100%);
    --gradient-warm: linear-gradient(135deg, #14212a 0%, #1d2b35 100%);
    --gradient-overlay: linear-gradient(to bottom, transparent 30%, rgba(12,19,25,.88) 100%);
    --shadow-gold: 0 8px 28px rgba(255,114,94,.2);
}
body { background: #101a22; color: #e5ebee; }
.header, .header.sticky { background: rgba(16,26,34,.96); border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 5px 24px rgba(0,0,0,.12); }
.header .logo-text, .header.sticky .logo-text,
.header .nav__link, .header.sticky .nav__link { color: #f4f6f7; }
.header .logo-dot, .header.sticky .logo-dot { color: #ff725e; }
.header .nav__link::after { background: #ff725e; }
.header .nav__link:hover, .header .nav__link.active { color: #ff9585; }
.header .nav__toggle { color: #f4f6f7; }
.header .nav__menu { background: #101a22; }
.header .nav__menu .nav__link { color: #f4f6f7; }
.section__title { color: #f4f6f7; }
.section__subtitle { color: #ff8978; }
.btn--primary { border-color: #ff725e; background: #ff725e; color: #101a22; box-shadow: none; }
.btn--primary:hover { border-color: #ff9585; background: #ff9585; color: #101a22; box-shadow: 0 10px 28px rgba(255,114,94,.2); }
.btn--outline { border-color: #53616b; color: #f4f6f7; }
.btn--outline:hover { border-color: #ff8978; color: #ffad9f; background: rgba(255,114,94,.08); }
.about, .experience { background: #111c25; }
.services, .skills, .contact { background: #14212a; }
.projects { background: #101a22; }
#projects,
#projects.reveal,
#projects.reveal.active { opacity: 1; visibility: visible; transform: none; }
#projects .project-card { opacity: 1; visibility: visible; transform: none; }
.about__content, .service-card, .skills__content, .timeline-content, .project-card, .contact__form { border-color: #2b3a44; background: #182630; box-shadow: 0 18px 46px rgba(0,0,0,.14); }
.about__content::before { background: linear-gradient(180deg, #ff725e, #c84c40); }
.about__content h3, .service-card h3, .skills__content h3, .timeline-content h3, .project-info h3, .contact__info h3 { color: #f4f6f7; }
.about__content p, .service-card p, .timeline-content p, .project-info p, .contact__info > p { color: #bdc7cd; }
.about__principles li, .about__credentials div { border-color: #30414b; background: #14212a; color: #e8edef; }
.about__credentials span, .about__credentials strong { color: #bdc7cd; }
.service-icon { background: rgba(255,114,94,.14); color: #ff8978; }
.service-card:hover { border-color: rgba(255,114,94,.55); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.service-card:hover .service-icon { background: #ff725e; color: #101a22; }
.service-link, .project-category, .contact-item a:hover { color: #ff8978; }
.skills__content h3 { color: #f4f6f7; }
.skill-group { border-top-color: #2b3a44; }
.skill-group h4 { color: #ff8978; }
.skill-tags li { border-color: #30414b; background: #14212a; color: #dce3e7; }
.professional-item { border-color: #30414b; background: linear-gradient(145deg, #1c2b35, #14212a); }
.professional-item::before { color: #ff8978; }
.professional-label { color: #f4f6f7; }
.professional-item p { color: #aebbc2; }
.timeline-content { border-left-color: #ff725e; }
.timeline-content:hover { border-color: rgba(255,114,94,.5); border-left-color: #ff725e; box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.timeline-date, .timeline-content h4 { color: #ff8978; }
.experience-highlights { color: #bdc7cd; }
.filter-btn { border-color: #30414b; color: #bdc7cd; background: #14212a; }
.filter-btn:hover, .filter-btn.active { border-color: #ff725e; background: #ff725e; color: #101a22; }
.project-card:hover { border-color: rgba(255,114,94,.55); box-shadow: 0 18px 42px rgba(0,0,0,.25); }
.project-image img { filter: saturate(.8) brightness(.86); }
.project-cover, .project-cover--bank, .project-cover--chess, .project-cover--prep, .project-cover--bugs, .project-cover--space, .project-cover--nexum, .project-cover--nexora, .project-cover--erp, .project-cover--pte, .project-cover--qr, .project-cover--commerce { background: linear-gradient(135deg, #172630, #233640 62%, #17232d); }
.project-cover::before { background: radial-gradient(circle at 82% 18%, rgba(255,114,94,.25), transparent 38%), linear-gradient(135deg, rgba(10,17,22,.02), rgba(10,17,22,.7)); }
.project-cover > span { color: #ffad9f; }
.project-cover > i { color: rgba(255,180,165,.22); }
.project-cover--text .project-info { background: #182630; }
.project-link { background: #ff725e; color: #101a22; }
.project-link:hover { background: #ff9585; }
.project-repo, .project-repo:hover { color: #ff8978; }
.contact-item i { border: 1px solid #30414b; background: rgba(255,114,94,.13); color: #ff8978; }
.contact-item:hover i { border-color: #ff725e; background: #ff725e; color: #101a22; }
.contact-item .label { color: #96a3aa; }
.contact-item a, .contact-item span { color: #e5ebee; }
.contact-social a { border-color: #30414b; background: #182630; color: #dce3e7; }
.contact-social a:hover { border-color: #ff725e; background: #ff725e; color: #101a22; box-shadow: none; }
.contact__form input, .contact__form textarea { border-color: #30414b; background: #111c25; color: #f4f6f7; }
.contact__form input:focus, .contact__form textarea:focus { border-color: #ff8978; background: #111c25; box-shadow: 0 0 0 3px rgba(255,114,94,.16); }
.contact__form input::placeholder, .contact__form textarea::placeholder { color: #829099; }
.footer { background: #101a22; border-top: 1px solid #2b3a44; }
.footer::before { -webkit-text-stroke-color: rgba(255,114,94,.07); }
.footer__links a:hover, .footer__bottom p span, .footer__logo .logo-dot { color: #ff8978; }
.back-to-top { border-color: rgba(255,114,94,.35); color: #ffad9f; }
.back-to-top:hover { border-color: #ff725e; background: #ff725e; color: #101a22; }
.header .nav__menu { background: #101a22; }
.header .nav__menu .nav__link { color: #f4f6f7; }
:focus-visible { outline-color: #ff8978; }
.theme-toggle { display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; border: 1px solid #354650; border-radius: 6px; background: #182630; color: #ffad9f; cursor: pointer; font-size: 1.15rem; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { transform: translateY(-2px); border-color: #ff725e; background: rgba(255,114,94,.12); color: #ff9585; }
.theme-toggle:focus-visible { outline: 3px solid #ff8978; outline-offset: 3px; }
html[data-theme="light"] { color-scheme: light; --ivory: #202d37; --ivory-deep: #d9dfe2; --cream: #f4f3f1; --charcoal: #17232d; --charcoal-mid: #25343e; --charcoal-light: #53616a; --bg-primary: #f4f3f1; --bg-section: #eceff0; --bg-dark: #17232d; --bg-card: #fff; --text-primary: #17232d; --text-secondary: #53616a; --text-muted: #75828a; --text-light: #fff; --gradient-dark: linear-gradient(160deg, #17232d 0%, #25343e 100%); --gradient-warm: linear-gradient(135deg, #f8f7f5 0%, #e9edef 100%); }
html[data-theme="light"] body { background: #f4f3f1; color: #25343e; }
html[data-theme="light"] .header,
html[data-theme="light"] .header.sticky { border-bottom-color: #dce1e3; background: rgba(248,247,245,.94); box-shadow: 0 5px 24px rgba(23,35,45,.07); }
html[data-theme="light"] .header .logo-text,
html[data-theme="light"] .header.sticky .logo-text,
html[data-theme="light"] .header .nav__link,
html[data-theme="light"] .header.sticky .nav__link { color: #24333d; }
html[data-theme="light"] .header .logo-dot,
html[data-theme="light"] .header.sticky .logo-dot { color: #e95d4b; }
html[data-theme="light"] .header .nav__link::after { background: #e95d4b; }
html[data-theme="light"] .header .nav__link:hover,
html[data-theme="light"] .header .nav__link.active { color: #d84f40; }
html[data-theme="light"] .header .nav__toggle { color: #24333d; }
html[data-theme="light"] .header .nav__menu { background: #f8f7f5; }
html[data-theme="light"] .header .nav__menu .nav__link { color: #24333d; }
html[data-theme="light"] .section__title { color: #17232d; }
html[data-theme="light"] .section__subtitle { color: #d95747; }
html[data-theme="light"] .about,
html[data-theme="light"] .experience { background: #f4f3f1; }
html[data-theme="light"] .services,
html[data-theme="light"] .skills,
html[data-theme="light"] .contact { background: #e9edef; }
html[data-theme="light"] .projects { background: #f4f3f1; }
html[data-theme="light"] .about__content,
html[data-theme="light"] .service-card,
html[data-theme="light"] .skills__content,
html[data-theme="light"] .timeline-content,
html[data-theme="light"] .project-card,
html[data-theme="light"] .contact__form { border-color: #d9dfe2; background: #fff; box-shadow: 0 16px 38px rgba(23,35,45,.07); }
html[data-theme="light"] .about__content::before { background: linear-gradient(180deg, #ff725e, #d84f40); }
html[data-theme="light"] .about__content h3,
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .skills__content h3,
html[data-theme="light"] .timeline-content h3,
html[data-theme="light"] .project-info h3,
html[data-theme="light"] .contact__info h3 { color: #17232d; }
html[data-theme="light"] .about__content p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .timeline-content p,
html[data-theme="light"] .project-info p,
html[data-theme="light"] .contact__info > p { color: #53616a; }
html[data-theme="light"] .about__principles li,
html[data-theme="light"] .about__credentials div { border-color: #dfe4e6; background: #f7f8f7; color: #24333d; }
html[data-theme="light"] .about__credentials span { color: #748088; }
html[data-theme="light"] .about__credentials strong { color: #273640; }
html[data-theme="light"] .service-icon { background: rgba(255,114,94,.12); color: #d95747; }
html[data-theme="light"] .service-card:hover { border-color: rgba(233,93,75,.45); box-shadow: 0 16px 34px rgba(23,35,45,.1); }
html[data-theme="light"] .service-card:hover .service-icon { background: #ff725e; color: #17232d; }
html[data-theme="light"] .service-link,
html[data-theme="light"] .project-category,
html[data-theme="light"] .contact-item a:hover { color: #d95747; }
html[data-theme="light"] .skill-group { border-top-color: #e0e5e7; }
html[data-theme="light"] .skill-group h4 { color: #d95747; }
html[data-theme="light"] .skill-tags li { border-color: #d9dfe2; background: #f4f6f6; color: #31414b; }
html[data-theme="light"] .professional-item { border-color: #dfe4e6; background: linear-gradient(145deg, #fff, #f5f7f7); }
html[data-theme="light"] .professional-item::before { color: #d95747; }
html[data-theme="light"] .professional-label { color: #24333d; }
html[data-theme="light"] .professional-item p { color: #647179; }
html[data-theme="light"] .timeline-content { border-left-color: #e95d4b; }
html[data-theme="light"] .timeline-content:hover { border-color: rgba(233,93,75,.42); border-left-color: #e95d4b; box-shadow: 0 16px 34px rgba(23,35,45,.1); }
html[data-theme="light"] .timeline-date,
html[data-theme="light"] .timeline-content h4 { color: #d95747; }
html[data-theme="light"] .experience-highlights { color: #53616a; }
html[data-theme="light"] .filter-btn { border-color: #d5dcdf; color: #53616a; background: #fff; }
html[data-theme="light"] .filter-btn:hover,
html[data-theme="light"] .filter-btn.active { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .project-card:hover { border-color: rgba(233,93,75,.45); box-shadow: 0 16px 36px rgba(23,35,45,.12); }
html[data-theme="light"] .project-image img { filter: saturate(.88) brightness(.96); }
html[data-theme="light"] .project-cover,
html[data-theme="light"] .project-cover--bank,
html[data-theme="light"] .project-cover--chess,
html[data-theme="light"] .project-cover--prep,
html[data-theme="light"] .project-cover--bugs,
html[data-theme="light"] .project-cover--space,
html[data-theme="light"] .project-cover--nexum,
html[data-theme="light"] .project-cover--nexora,
html[data-theme="light"] .project-cover--erp,
html[data-theme="light"] .project-cover--pte,
html[data-theme="light"] .project-cover--qr,
html[data-theme="light"] .project-cover--commerce { background: linear-gradient(135deg, #172630, #263842 62%, #17232d); }
html[data-theme="light"] .project-cover::before { background: radial-gradient(circle at 82% 18%, rgba(255,114,94,.27), transparent 38%), linear-gradient(135deg, rgba(10,17,22,.02), rgba(10,17,22,.7)); }
html[data-theme="light"] .project-cover > span { color: #ffad9f; }
html[data-theme="light"] .project-cover > i { color: rgba(255,180,165,.22); }
html[data-theme="light"] .project-cover--text .project-info { background: #fff; }
html[data-theme="light"] .project-link { background: #ff725e; color: #17232d; }
html[data-theme="light"] .project-link:hover { background: #ff9585; }
html[data-theme="light"] .project-repo,
html[data-theme="light"] .project-repo:hover { color: #d95747; }
html[data-theme="light"] .contact-item i { border-color: #d7dfe2; background: rgba(255,114,94,.12); color: #d95747; }
html[data-theme="light"] .contact-item:hover i { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .contact-item .label { color: #748088; }
html[data-theme="light"] .contact-item a,
html[data-theme="light"] .contact-item span { color: #31414b; }
html[data-theme="light"] .contact-social a { border-color: #d5dcdf; background: #fff; color: #31414b; }
html[data-theme="light"] .contact-social a:hover { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .contact__form input,
html[data-theme="light"] .contact__form textarea { border-color: #d5dcdf; background: #f8f9f8; color: #24333d; }
html[data-theme="light"] .contact__form input:focus,
html[data-theme="light"] .contact__form textarea:focus { border-color: #e95d4b; background: #fff; box-shadow: 0 0 0 3px rgba(233,93,75,.13); }
html[data-theme="light"] .contact__form input::placeholder,
html[data-theme="light"] .contact__form textarea::placeholder { color: #78858c; }
html[data-theme="light"] .footer { border-top-color: #d9dfe2; background: #e9edef; }
html[data-theme="light"] .footer::before { -webkit-text-stroke-color: rgba(233,93,75,.1); }
html[data-theme="light"] .footer__logo .logo-text { color: #17232d; }
html[data-theme="light"] .footer__logo .logo-dot,
html[data-theme="light"] .footer__links a:hover,
html[data-theme="light"] .footer__bottom p span { color: #d95747; }
html[data-theme="light"] .footer__brand p,
html[data-theme="light"] .footer__bottom p { color: #53616a; }
html[data-theme="light"] .footer__links a { color: #40505a; }
html[data-theme="light"] .back-to-top { border-color: #cbd4d8; color: #d95747; }
html[data-theme="light"] .back-to-top:hover { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .btn--primary { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .btn--primary:hover { border-color: #ff9585; background: #ff9585; color: #17232d; }
html[data-theme="light"] .btn--outline { border-color: #aab5ba; color: #24333d; }
html[data-theme="light"] .btn--outline:hover { border-color: #e95d4b; color: #c94d3e; background: rgba(233,93,75,.07); }
html[data-theme="light"] .hero { background: radial-gradient(ellipse at 76% 45%, rgba(255,114,94,.11), transparent 34%), linear-gradient(125deg, #f2f0ed 0%, #e8ecee 62%, #f1efec 100%); }
html[data-theme="light"] .hero::before { background: radial-gradient(circle, rgba(255,114,94,.15), transparent 67%); }
html[data-theme="light"] .hero__subtitle,
html[data-theme="light"] .hero__title { color: #17232d; }
html[data-theme="light"] .hero__typing { color: #c94d3e; }
html[data-theme="light"] .cursor { background: #e95d4b; }
html[data-theme="light"] .hero__description,
html[data-theme="light"] .info-item { color: #53616a; }
html[data-theme="light"] .info-item i { color: #d95747; }
html[data-theme="light"] .hero .btn--primary { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .hero .btn--primary:hover { background: #ff9585; }
html[data-theme="light"] .hero .btn--outline { border-color: #aab5ba; color: #24333d; }
html[data-theme="light"] .hero .btn--outline:hover { border-color: #e95d4b; color: #c94d3e; background: rgba(233,93,75,.07); }
html[data-theme="light"] .hero .social-link { border-color: #d0d8db; background: rgba(255,255,255,.58); color: #31414b; }
html[data-theme="light"] .hero .social-link:hover { border-color: #e95d4b; background: #e95d4b; color: #17232d; }
html[data-theme="light"] .hero-img { border-color: #e8ecee; box-shadow: 0 28px 70px rgba(23,35,45,.2); }
html[data-theme="light"] .experience-badge { border-color: #e8ecee; background: #ff725e; color: #17232d; }
html[data-theme="light"] .badge-number { color: #17232d; }
html[data-theme="light"] .badge-text { color: #402824; }
html[data-theme="light"] .theme-toggle { border-color: #d5dcdf; background: #fff; color: #d95747; }
html[data-theme="light"] .theme-toggle:hover { border-color: #e95d4b; background: rgba(233,93,75,.08); color: #c94d3e; }
html[data-theme="light"] :focus-visible { outline-color: #d95747; }
@media (prefers-reduced-motion: no-preference) {
    body, .header, .section, .about__content, .service-card, .skills__content, .timeline-content, .project-card, .contact__form, .footer { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
