/* ==========================================================================
   DESIGN TOKENS
   Palette   : obsidian base, signal-indigo + circuit-teal accents
   Type      : Space Grotesk (display) / Inter (body) / JetBrains Mono (utility)
   Signature : cursor-tracked "spotlight" glass cards + live signal line
   ========================================================================== */
:root{
  --bg:            #07070b;
  --bg-alt:        #0c0c14;
  --bg-elevated:   #101018;
  --surface:       rgba(255,255,255,0.045);
  --surface-hi:    rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.09);
  --border-hi:     rgba(255,255,255,0.18);

  --text:          #eeeef3;
  --text-muted:    #92929f;
  --text-faint:    #55555f;

  --accent:        #7c5cff;
  --accent-soft:   #a48bff;
  --accent-2:      #2ee6c8;
  --accent-2-soft: #7ff3e0;

  --danger:        #ff5c72;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.16,1,.3,1);
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:auto; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }

::selection{ background:var(--accent); color:#fff; }

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--surface-hi); border-radius:10px; }

.container{ max-width:var(--container); margin:0 auto; padding:0 32px; }

/* -------------------------------------------------------------- */
/* background: ambient noise + gradient mesh + cursor spotlight   */
/* -------------------------------------------------------------- */
.bg-layer{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(600px circle at var(--mx,50%) var(--my,30%), rgba(124,92,255,.14), transparent 60%),
    radial-gradient(900px circle at 85% 10%, rgba(46,230,200,.08), transparent 55%),
    radial-gradient(900px circle at 10% 90%, rgba(124,92,255,.09), transparent 55%);
  transition:background .3s ease;
}
.noise{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------- */
/* eyebrow / section labels                                       */
/* -------------------------------------------------------------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent-2);
  display:flex; align-items:center; gap:10px;
  margin-bottom:16px;
}
.eyebrow::before{
  content:''; width:22px; height:1px; background:var(--accent-2); display:inline-block;
}
.section-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.8rem,4vw,2.7rem);
  letter-spacing:-.02em;
  margin:0 0 44px;
  max-width:640px;
}
section{ position:relative; z-index:2; padding:120px 0; }

/* -------------------------------------------------------------- */
/* navigation                                                      */
/* -------------------------------------------------------------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(7,7,11,.72);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom-color:var(--border);
  padding:12px 0;
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; }
.logo{
  font-family:var(--font-display); font-weight:700; font-size:1.15rem; letter-spacing:-.01em;
  background:none; border:none; color:var(--text); padding:0; user-select:none;
}
.logo span{ color:var(--accent-2); }
.nav-links{ display:flex; gap:34px; }
.nav-links a{
  font-size:.9rem; color:var(--text-muted); position:relative; padding:4px 0;
  transition:color .25s;
}
.nav-links a:hover{ color:var(--text); }
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px; background:var(--accent-2);
  transition:width .3s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-cta{
  padding:9px 20px; border-radius:100px; border:1px solid var(--border-hi);
  font-size:.85rem; background:var(--surface); backdrop-filter:blur(8px);
  transition:border-color .25s, background .25s, transform .25s;
}
.nav-cta:hover{ border-color:var(--accent-2); background:rgba(46,230,200,.08); transform:translateY(-1px); }
.nav-toggle{ display:none; background:none; border:none; color:var(--text); }

/* -------------------------------------------------------------- */
/* HERO                                                            */
/* -------------------------------------------------------------- */
.hero{
  min-height:100svh; display:flex; align-items:center; position:relative; padding:160px 0 100px;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:center; width:100%;
}
.hero-eyebrow{
  font-family:var(--font-mono); font-size:.82rem; color:var(--accent-2); letter-spacing:.12em;
  text-transform:uppercase; margin-bottom:22px; display:flex; align-items:center; gap:10px;
}
.hero-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 12px var(--accent-2); animation:pulse 2s infinite; }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

.hero-name{
  font-family:var(--font-display); font-weight:700; letter-spacing:-.03em;
  font-size:clamp(2.6rem,6.4vw,5.2rem); line-height:1.02; margin:0 0 22px;
  background:linear-gradient(100deg,#fff 30%, var(--accent-soft) 55%, var(--accent-2) 80%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  background-size:200% auto; animation:sheen 7s linear infinite;
}
@keyframes sheen{ to{ background-position:200% center; } }

.hero-slogan{ font-size:1.15rem; color:var(--text-muted); max-width:520px; margin-bottom:40px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:100px;
  font-size:.92rem; font-weight:500; border:1px solid transparent; transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
}
.btn-primary{ background:linear-gradient(135deg,var(--accent),#5a3ff5); color:#fff; box-shadow:0 8px 30px -8px rgba(124,92,255,.65); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 14px 36px -8px rgba(124,92,255,.85); }
.btn-ghost{ background:var(--surface); border-color:var(--border-hi); color:var(--text); backdrop-filter:blur(8px); }
.btn-ghost:hover{ border-color:var(--accent-2); transform:translateY(-3px); }

.hero-photo-wrap{ position:relative; justify-self:center; }
.hero-photo{
  width:min(360px,80vw); aspect-ratio:1/1.1; border-radius:32px; overflow:hidden; position:relative;
  border:1px solid var(--border-hi); background:var(--bg-elevated);
  box-shadow:0 30px 80px -20px rgba(0,0,0,.6);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.hero-photo .placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:4rem; color:var(--text-faint);
  background:linear-gradient(160deg,var(--bg-elevated),var(--bg-alt));
}
.hero-photo-ring{
  position:absolute; inset:-14px; border-radius:40px; border:1px solid var(--border);
  animation:rotate 24s linear infinite;
}
@keyframes rotate{ to{ transform:rotate(360deg);} }
.hero-photo-glow{
  position:absolute; width:70%; height:70%; border-radius:50%; background:var(--accent); filter:blur(90px); opacity:.35;
  top:10%; right:-10%; z-index:-1;
}

.scroll-indicator{
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px; color:var(--text-faint);
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.15em; text-transform:uppercase;
}
.scroll-indicator .line{ width:1px; height:38px; background:linear-gradient(var(--accent-2),transparent); animation:scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine{ 0%{ transform:scaleY(0); transform-origin:top; } 50%{ transform:scaleY(1); transform-origin:top;} 51%{ transform-origin:bottom; } 100%{ transform:scaleY(0); transform-origin:bottom; } }

/* -------------------------------------------------------------- */
/* GLASS CARD (signature element)                                  */
/* -------------------------------------------------------------- */
.glass{
  position:relative; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  overflow:hidden; transition:border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.glass::before{
  content:''; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none;
  background:radial-gradient(240px circle at var(--cx,50%) var(--cy,0%), rgba(124,92,255,.55), transparent 60%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity .35s;
}
.glass:hover::before{ opacity:1; }
.glass:hover{ border-color:var(--border-hi); transform:translateY(-4px); box-shadow:0 24px 50px -20px rgba(0,0,0,.55); }

/* -------------------------------------------------------------- */
/* ABOUT                                                            */
/* -------------------------------------------------------------- */
.about-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:60px; align-items:start; }
.about-photo{
  border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:4/5; border:1px solid var(--border);
  background:linear-gradient(160deg,var(--bg-elevated),var(--bg-alt));
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }
.about-text p{ color:var(--text-muted); font-size:1.05rem; margin-bottom:20px; }
.about-points{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:32px; }
.about-point{ padding:20px; }
.about-point h4{ font-family:var(--font-display); font-size:1rem; margin:0 0 6px; }
.about-point p{ font-size:.88rem; color:var(--text-muted); margin:0; }

/* -------------------------------------------------------------- */
/* TIMELINE / RESUME                                                */
/* -------------------------------------------------------------- */
.timeline-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:48px; }
.tab-btn{
  padding:9px 18px; border-radius:100px; border:1px solid var(--border); background:var(--surface);
  color:var(--text-muted); font-size:.85rem; transition:all .25s;
}
.tab-btn.active,.tab-btn:hover{ color:var(--text); border-color:var(--accent-2); background:rgba(46,230,200,.08); }
.timeline{ position:relative; padding-left:32px; display:none; }
.timeline.active{ display:block; }
.timeline::before{ content:''; position:absolute; left:5px; top:6px; bottom:6px; width:1px; background:linear-gradient(var(--accent-2),var(--border) 90%); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item::before{
  content:''; position:absolute; left:-32px; top:4px; width:11px; height:11px; border-radius:50%;
  background:var(--bg); border:2px solid var(--accent-2); box-shadow:0 0 0 4px rgba(46,230,200,.12);
}
.timeline-item .period{ font-family:var(--font-mono); font-size:.75rem; color:var(--accent-2); letter-spacing:.05em; }
.timeline-item h4{ font-family:var(--font-display); margin:6px 0 6px; font-size:1.1rem; }
.timeline-item p{ color:var(--text-muted); font-size:.92rem; margin:0; max-width:560px; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{ padding:6px 14px; border-radius:100px; border:1px solid var(--border); font-size:.8rem; color:var(--text-muted); }

/* -------------------------------------------------------------- */
/* GALLERY                                                          */
/* -------------------------------------------------------------- */
.gallery-grid{ columns:4 220px; column-gap:16px; }
.gallery-item{
  break-inside:avoid; margin-bottom:16px; border-radius:var(--radius-sm); overflow:hidden;
  border:1px solid var(--border); cursor:pointer; position:relative;
}
.gallery-item img{ width:100%; display:block; transition:transform .5s var(--ease); }
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-empty{ color:var(--text-faint); font-size:.9rem; text-align:center; padding:60px 0; }

.lightbox{
  position:fixed; inset:0; z-index:1000; background:rgba(4,4,7,.92); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .3s;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:88vw; max-height:82vh; border-radius:14px; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.lightbox-close{ position:absolute; top:24px; right:32px; background:none; border:none; color:#fff; font-size:1.6rem; }
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.06); border:1px solid var(--border); color:#fff; width:44px; height:44px; border-radius:50%; font-size:1.2rem; }
.lightbox-prev{ left:24px; } .lightbox-next{ right:24px; }

/* -------------------------------------------------------------- */
/* EXTERNAL COLLABORATION                                           */
/* -------------------------------------------------------------- */
.links-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.link-card{ padding:24px; display:flex; flex-direction:column; gap:14px; }
.link-head{ display:flex; align-items:center; gap:14px; }
.link-logo{ width:44px; height:44px; border-radius:12px; overflow:hidden; background:var(--bg-elevated); display:flex; align-items:center; justify-content:center; border:1px solid var(--border); flex-shrink:0; }
.link-logo img{ width:100%; height:100%; object-fit:cover; }
.link-title{ font-family:var(--font-display); font-size:1rem; }
.link-desc{ color:var(--text-muted); font-size:.87rem; flex:1; }
.link-open{ align-self:flex-start; font-size:.82rem; color:var(--accent-2); display:flex; align-items:center; gap:6px; }
.link-open:hover{ gap:9px; }

/* -------------------------------------------------------------- */
/* SKILLS                                                            */
/* -------------------------------------------------------------- */
.skills-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.skill-card{ padding:24px; }
.skill-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.skill-name{ font-family:var(--font-display); font-size:.98rem; display:flex; align-items:center; gap:10px; }
.skill-name i{ color:var(--accent-2); }
.skill-pct{ font-family:var(--font-mono); color:var(--text-muted); font-size:.82rem; }
.skill-bar{ height:6px; border-radius:100px; background:var(--bg-alt); overflow:hidden; border:1px solid var(--border); }
.skill-bar-fill{ height:100%; border-radius:100px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); width:0; transition:width 1.4s var(--ease); }

/* -------------------------------------------------------------- */
/* PORTFOLIO                                                        */
/* -------------------------------------------------------------- */
.portfolio-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.project-card{ overflow:hidden; }
.project-media{ aspect-ratio:16/10; overflow:hidden; background:var(--bg-elevated); }
.project-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.project-card:hover .project-media img{ transform:scale(1.08); }
.project-body{ padding:22px; }
.project-title{ font-family:var(--font-display); font-size:1.05rem; margin:0 0 8px; }
.project-desc{ color:var(--text-muted); font-size:.88rem; margin:0 0 14px; }
.project-tech{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.project-link{ font-size:.85rem; color:var(--accent-2); }
.portfolio-empty, .testimonial-empty{ color:var(--text-faint); grid-column:1/-1; text-align:center; padding:40px 0; }

/* -------------------------------------------------------------- */
/* TESTIMONIALS                                                     */
/* -------------------------------------------------------------- */
.testimonial-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.testimonial-card{ padding:26px; }
.testimonial-text{ font-size:.95rem; color:var(--text); margin:0 0 20px; }
.testimonial-author{ display:flex; align-items:center; gap:12px; }
.testimonial-avatar{ width:38px; height:38px; border-radius:50%; background:var(--bg-elevated); overflow:hidden; border:1px solid var(--border); }
.testimonial-avatar img{ width:100%; height:100%; object-fit:cover; }
.testimonial-name{ font-size:.88rem; font-weight:600; }
.testimonial-role{ font-size:.78rem; color:var(--text-muted); }

/* -------------------------------------------------------------- */
/* CONTACTS + FORM                                                  */
/* -------------------------------------------------------------- */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; }
.contact-icons{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.contact-icon-card{ padding:20px; display:flex; align-items:center; gap:12px; }
.contact-icon-card i{ color:var(--accent-2); width:22px; height:22px; }
.contact-icon-card span{ font-size:.85rem; color:var(--text-muted); word-break:break-all; }

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:.8rem; color:var(--text-muted); font-family:var(--font-mono); letter-spacing:.03em; }
.field input, .field textarea{
  background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:13px 16px; color:var(--text); font-size:.92rem; transition:border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent-2); box-shadow:0 0 0 3px rgba(46,230,200,.12); }
.field.error input, .field.error textarea{ border-color:var(--danger); }
.field-error{ font-size:.75rem; color:var(--danger); min-height:14px; }
.form-status{ font-size:.88rem; margin-top:6px; min-height:20px; }
.form-status.ok{ color:var(--accent-2); }
.form-status.err{ color:var(--danger); }

/* -------------------------------------------------------------- */
/* FOOTER                                                            */
/* -------------------------------------------------------------- */
footer{ padding:50px 0 40px; border-top:1px solid var(--border); position:relative; z-index:2; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-inner p{ color:var(--text-faint); font-size:.82rem; margin:0; }
.footer-socials{ display:flex; gap:14px; }
.footer-socials a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-muted); transition:all .25s; }
.footer-socials a:hover{ color:var(--text); border-color:var(--accent-2); transform:translateY(-2px); }

/* -------------------------------------------------------------- */
/* PASSWORD MODAL (hidden admin entry)                              */
/* -------------------------------------------------------------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(4,4,7,.85); backdrop-filter:blur(6px); z-index:2000;
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .3s;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal-box{ width:min(360px,88vw); padding:32px; text-align:center; }
.modal-box h3{ font-family:var(--font-display); margin:0 0 18px; }
.modal-box input{
  width:100%; background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:13px 16px; color:var(--text); font-size:1rem; text-align:center; letter-spacing:.15em; margin-bottom:14px;
}
.modal-box input:focus{ outline:none; border-color:var(--accent-2); }
.modal-error{ color:var(--danger); font-size:.8rem; min-height:16px; margin-bottom:10px; }

/* -------------------------------------------------------------- */
/* reveal-on-scroll utility                                         */
/* -------------------------------------------------------------- */
[data-reveal]{ opacity:0; transform:translateY(28px); }

/* -------------------------------------------------------------- */
/* responsive                                                       */
/* -------------------------------------------------------------- */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-photo-wrap{ order:-1; }
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .gallery-grid{ columns:3 180px; }
}
@media (max-width:720px){
  .nav-links{
    position:fixed; top:0; right:0; height:100svh; width:min(280px,80vw);
    background:rgba(10,10,15,.97); backdrop-filter:blur(20px);
    flex-direction:column; padding:100px 30px; gap:26px; transform:translateX(100%);
    transition:transform .4s var(--ease); border-left:1px solid var(--border);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-toggle{ display:block; }
  .about-points{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .gallery-grid{ columns:2 140px; }
  section{ padding:80px 0; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
