/* ============================================================
   Sham-E-Ansari Portfolio — Stylesheet
   To change the theme, edit the :root variables below only.
   ============================================================ */

/* ─────────────────────────────────────────
   THEME VARIABLES — edit here to retheme
   ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #0f1c2e;   /* page background        */
  --surface:   #162236;   /* card / row hover        */
  --surface2:  #1c2d45;   /* deeper surface          */
  --border:    #1e3050;   /* borders & dividers      */

  /* Accent */
  --gold:      #e8b86d;   /* primary accent          */
  --gold2:     #c49a4a;   /* secondary / scrollbar   */

  /* Text */
  --text:      #eef2f8;   /* primary text            */
  --muted:     #94adc8;   /* secondary / body text   */

  /* Typography */
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
}

/* ─────────────────────────────────────────
   EXAMPLE ALTERNATE THEMES
   Uncomment one block to switch theme.
   ───────────────────────────────────────── */

/* Light — Warm White
:root {
  --bg:        #faf8f5;
  --surface:   #f0ede8;
  --surface2:  #e8e4de;
  --border:    #ddd9d2;
  --gold:      #a0722a;
  --gold2:     #c49a4a;
  --text:      #1a1714;
  --muted:     #6b6258;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
} */

/* Cool Light — White & Deep Blue
:root {
  --bg:        #f8fafc;
  --surface:   #eef2f7;
  --surface2:  #e2eaf3;
  --border:    #d0daea;
  --gold:      #1d4ed8;
  --gold2:     #3b6fd4;
  --text:      #0f172a;
  --muted:     #475569;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
} */

/* Slate & Emerald
:root {
  --bg:        #0d1f1a;
  --surface:   #132920;
  --surface2:  #1a3328;
  --border:    #1e3d2e;
  --gold:      #34d399;
  --gold2:     #059669;
  --text:      #ecfdf5;
  --muted:     #6ee7b7;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
} */

/* ─────────────────────────────────────────
   BASE RESET & GLOBAL
   ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&display=swap');
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0f1c2e;--border:#1e3050;
  --gold:#e8b86d;--gold2:#c49a4a;
  --text:#eef2f8;--muted:#9aafc4;
  --surface:#162236;--surface2:#1c2d45;
  --nav-bg:rgba(15,28,46,.96);
  --nav-menu-bg:rgba(15,28,46,.98);
  --serif:'Playfair Display',Georgia,serif;
  --mono:'Inter',system-ui,sans-serif;
}
:root[data-theme='light']{
  --bg:#faf8f5;--border:#ddd9d2;
  --gold:#a0722a;--gold2:#c49a4a;
  --text:#1a1714;--muted:#6b6258;
  --surface:#f0ede8;--surface2:#e8e4de;
  --nav-bg:rgba(250,248,245,.96);
  --nav-menu-bg:rgba(250,248,245,.98);
}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.85;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
::-webkit-scrollbar{width:3px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--gold2);border-radius:2px}

nav{position:fixed;top:0;left:0;right:0;z-index:200;display:flex;align-items:center;justify-content:space-between;padding:1.4rem 5vw;background:var(--nav-bg);backdrop-filter:blur(16px);border-bottom:1px solid transparent;transition:border-color .4s,background .3s}
nav.scrolled{border-bottom-color:var(--border)}
.nav-logo{font-family:var(--serif);font-size:1.1rem;font-weight:300;color:var(--gold);text-decoration:none;letter-spacing:.08em}
.nav-links{display:flex;gap:2rem;list-style:none}
.nav-links a{color:var(--muted);text-decoration:none;font-size:11px;letter-spacing:.14em;text-transform:uppercase;transition:color .25s;position:relative}
.nav-links a::after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .3s}
.nav-links a:hover{color:var(--gold)}.nav-links a:hover::after{transform:scaleX(1)}
.nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px}
.nav-toggle span{display:block;width:22px;height:1px;background:var(--muted)}
.theme-toggle{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-left:auto;margin-right:1.2rem;border:1px solid var(--border);background:transparent;color:var(--gold);font-size:1.1rem;line-height:1;cursor:pointer;transition:background .25s,border-color .25s,color .25s}
.theme-toggle:hover{background:var(--surface);border-color:var(--gold)}
.theme-icon-dark{display:none}
:root[data-theme='light'] .theme-icon-light{display:none}
:root[data-theme='light'] .theme-icon-dark{display:inline}

.hero{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:9rem 5vw 5rem;position:relative;overflow:hidden}
.hero-bg{position:absolute;inset:0;background:radial-gradient(ellipse 70% 60% at 80% 40%,rgba(59,130,200,.08) 0%,transparent 65%),radial-gradient(ellipse 50% 50% at 15% 75%,rgba(232,184,109,.05) 0%,transparent 60%),radial-gradient(ellipse 40% 40% at 50% 10%,rgba(30,80,140,.12) 0%,transparent 70%);pointer-events:none}
.hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(59,130,200,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(59,130,200,.08) 1px,transparent 1px);background-size:60px 60px;mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 0%,transparent 100%);opacity:1;pointer-events:none}
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:4rem;width:100%;max-width:1120px;margin:0 auto;position:relative;z-index:1}
.hero-text{flex:1;min-width:0}
.hero-eyebrow{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-bottom:1.6rem;animation:fadeUp .7s .2s both}
.hero-name{font-family:var(--serif);font-weight:300;font-size:clamp(3rem,8vw,7.5rem);line-height:.92;letter-spacing:-.02em;color:var(--text);animation:fadeUp .8s .4s both}
.hero-name i{font-style:italic;color:var(--gold)}
.hero-sub{margin-top:2rem;font-size:16px;color:var(--muted);max-width:520px;line-height:1.9;animation:fadeUp .8s .6s both;font-weight:400}
.hero-sub strong{color:var(--text);font-weight:400}
.hero-actions{margin-top:3rem;display:flex;gap:1.2rem;flex-wrap:wrap;align-items:center;animation:fadeUp .8s .8s both}
.hero-photo-wrap{flex-shrink:0;width:260px;height:320px;position:relative;animation:fadeIn 1s .6s both}
.hero-photo-wrap::before{content:'';position:absolute;inset:0;border:1px solid var(--gold2);transform:translate(10px,10px);z-index:0}
.hero-photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:top center;position:relative;z-index:1;display:block}

.btn{display:inline-block;padding:.65rem 1.8rem;font-family:var(--sans);font-size:10px;letter-spacing:.15em;text-transform:uppercase;text-decoration:none;border:1px solid var(--gold);color:var(--gold);transition:background .25s,color .25s}
.btn:hover{background:var(--gold);color:var(--bg)}
.btn-text{color:var(--muted);font-size:10px;letter-spacing:.12em;text-decoration:none;border-bottom:1px solid var(--border);padding-bottom:2px;transition:color .25s,border-color .25s}
.btn-text:hover{color:var(--text);border-color:var(--muted)}

hr.divider{border:none;border-top:1px solid var(--border);margin:0 5vw}

.section{padding:6rem 5vw;max-width:1120px;margin:0 auto}
.section-head{display:flex;align-items:baseline;gap:1.2rem;margin-bottom:3.5rem}
.s-num{font-size:11px;letter-spacing:.18em;color:var(--gold)}
.s-title{font-family:var(--serif);font-size:clamp(1.8rem,4vw,2.8rem);font-weight:300;letter-spacing:-.01em}

.about-wrap{display:grid;grid-template-columns:1fr 1px 1fr;gap:0 4rem}
.about-col-divider{background:var(--border)}
.about-text p{color:var(--muted);font-size:15px;line-height:1.95;margin-bottom:1.2rem;font-weight:400}
.about-text p b{color:var(--text);font-weight:400}
.about-stats{padding-left:4rem}
.stat{display:flex;justify-content:space-between;align-items:baseline;padding:.9rem 0;border-bottom:1px solid var(--border)}
.stat-n{font-family:var(--serif);font-size:2rem;font-weight:300;color:var(--gold)}
.stat-l{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

.timeline{display:flex;flex-direction:column}
.tl-item{display:grid;grid-template-columns:180px 1fr;gap:0 2.5rem;padding:2.2rem 1.2rem;border-bottom:1px solid var(--border);opacity:1;transform:none;transition:opacity .55s,transform .55s,background .25s;border-radius:4px;margin:0 -1.2rem}
.tl-item.animate{opacity:0;transform:translateY(16px)}.tl-item.animate.show{opacity:1;transform:none}.tl-item:hover{background:var(--surface)}
.tl-date{font-size:12px;letter-spacing:.04em;color:var(--muted);padding-top:4px;line-height:1.5}
.tl-company{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:.4rem}
.tl-role{font-family:var(--serif);font-size:1.25rem;font-weight:400;color:var(--text);margin-bottom:.6rem;line-height:1.3}
.tl-desc{font-size:15px;color:var(--muted);line-height:1.9;font-weight:400;letter-spacing:.01em}

.skills-wrap{display:flex;flex-direction:column;gap:2.2rem}
.skill-cat-label{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem;font-weight:500}
.tags{display:flex;flex-wrap:wrap;gap:.5rem}
.tag{padding:.45rem 1.1rem;border:1px solid var(--border);background:var(--surface);font-size:12px;letter-spacing:.02em;color:var(--muted);transition:border-color .25s,color .25s,background .25s;cursor:default;font-weight:400}
.tag:hover{border-color:var(--gold);color:var(--gold);background:var(--surface2)}

.contact-section{text-align:center;padding:6rem 5vw 8rem;max-width:1120px;margin:0 auto}
.contact-headline{font-family:var(--serif);font-weight:300;font-size:clamp(2rem,6vw,4.5rem);line-height:1.05;letter-spacing:-.02em;margin-bottom:1.2rem}
.contact-headline i{font-style:italic;color:var(--gold)}
.contact-sub{color:var(--muted);font-size:16px;margin-bottom:3rem;font-weight:400}
.contact-links{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}
.c-link{display:flex;align-items:center;gap:.5rem;color:var(--muted);text-decoration:none;font-size:12px;letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid var(--border);padding-bottom:2px;transition:color .25s,border-color .25s}
.c-link:hover{color:var(--gold);border-color:var(--gold)}

footer{border-top:1px solid var(--border);padding:1.4rem 5vw;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}
footer span{font-size:10px;color:var(--muted);letter-spacing:.08em}

@keyframes fadeUp{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

@media(max-width:860px){
  .hero-inner{flex-direction:column-reverse;gap:2rem;align-items:flex-start}
  .hero-photo-wrap{width:150px;height:185px}
  .about-wrap{grid-template-columns:1fr;gap:2.5rem}
  .about-col-divider{display:none}
  .about-stats{padding-left:0}
  .tl-item{grid-template-columns:1fr;gap:.4rem}
  .nav-links{display:none;flex-direction:column;gap:0;position:absolute;top:100%;left:0;right:0;background:var(--nav-menu-bg);border-bottom:1px solid var(--border);padding:.5rem 0}
  .nav-links.open{display:flex}
  .nav-links li a{display:block;padding:.75rem 5vw}
  .nav-toggle{display:flex}
}
@media(max-width:480px){
  .hero-name{font-size:clamp(2.8rem,13vw,4rem)}
  .section{padding:4rem 5vw}
}