/* ── DESIGN TOKENS ── */
:root {
  --bg: #000000;
  --bg-surface: #0A0A0C;
  --bg-surface-t: rgba(10,10,12,0.6);
  --bg-elevated: #111114;
  --grid-line: rgba(255,255,255,0.06);
  --grid-strong: rgba(255,255,255,0.12);
  --text: #FFFFFF;
  --text-2: #A1A1AA;
  --text-m: #52525B;
  --border: rgba(255,255,255,0.1);
  --border-h: rgba(255,255,255,0.25);
  --font-d: 'Fraunces', serif;
  --font-b: 'Inter', sans-serif;
  --font-c: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-b);background:var(--bg);color:var(--text);
  overflow-x:hidden;line-height:1.6;-webkit-font-smoothing:antialiased;
  background-image:linear-gradient(rgba(0,0,0,0.75),rgba(0,0,0,0.75)),url('public/background.png');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
img{max-width:100%;display:block;}
button{cursor:pointer;border:none;background:none;font-family:inherit;color:inherit;}
::selection{background:#fff;color:#000;}
::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--text-m);border-radius:3px;}

/* ── SCROLL PROGRESS ── */
.scroll-progress{position:fixed;top:0;left:0;height:2px;width:0;background:#fff;z-index:9999;}

/* ── PANEL NAV (dots) ── */
.panel-nav{
  position:fixed;right:24px;top:50%;transform:translateY(-50%);
  z-index:100;display:flex;flex-direction:column;gap:12px;
}
.panel-dot{
  width:10px;height:10px;border-radius:50%;border:1.5px solid var(--text-m);
  background:transparent;transition:all 0.3s var(--ease);
}
.panel-dot.active{background:#fff;border-color:#fff;transform:scale(1.3);}
@media(max-width:768px){.panel-nav{display:none;}}

/* ── NAVBAR ── */
.navbar{
  position:fixed;top:0;left:0;width:100%;z-index:1000;
  padding:16px 32px;background:transparent;
  border-bottom:1px solid transparent;
  transition:all 0.3s var(--ease);
}
.navbar.scrolled{background:rgba(0,0,0,0.85);backdrop-filter:blur(20px);border-bottom-color:var(--grid-strong);}
.nav-container{max-width:1400px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;}
.nav-logo{font-family:var(--font-c);font-size:1.3rem;font-weight:600;letter-spacing:-1px;}
.logo-br{color:var(--text-m);}
.nav-links{display:flex;align-items:center;gap:28px;}
.nav-link{font-size:13px;font-weight:500;color:var(--text-2);transition:color 0.2s;letter-spacing:0.02em;}
.nav-link:hover,.nav-link.active{color:#fff;}
.nav-cta{
  background:#fff!important;color:#000!important;padding:8px 20px;border-radius:var(--radius-sm);
  font-weight:600;font-size:13px;transition:transform 0.15s,box-shadow 0.15s;
}
.nav-cta:hover{transform:scale(0.98);box-shadow:0 0 20px rgba(255,255,255,0.1);}
.nav-toggle{display:none;font-size:1.4rem;}
@media(max-width:768px){
  .nav-toggle{display:block;}
  .nav-links{
    position:fixed;top:0;right:-100%;width:70%;height:100vh;
    background:rgba(0,0,0,0.97);backdrop-filter:blur(20px);
    flex-direction:column;justify-content:center;gap:28px;
    transition:right 0.3s var(--ease);border-left:1px solid var(--grid-strong);
  }
  .nav-links.open{right:0;}
  .nav-link{font-size:1.1rem;}
}

/* ── BUTTONS ── */
.btn{
  display:inline-flex;align-items:center;gap:6px;padding:12px 24px;
  border-radius:var(--radius-sm);font-weight:600;font-size:14px;
  transition:transform 0.15s,box-shadow 0.15s,background 0.15s;
}
.btn-primary{background:#fff;color:#000;}
.btn-primary:hover{transform:scale(0.98);box-shadow:0 0 30px rgba(255,255,255,0.08);}
.btn-primary:active{transform:scale(0.97);}
.btn-ghost{border:1px solid var(--border);color:var(--text);}
.btn-ghost:hover{background:rgba(255,255,255,0.05);border-color:var(--border-h);}
.btn-full{width:100%;justify-content:center;}

/* ── HORIZONTAL SCROLL ── */
.horizontal-wrapper{position:relative;}
.panels{display:flex;}
.panel{width:100vw;min-height:100vh;flex-shrink:0;position:relative;overflow:visible;}
.panel-inner{
  max-width:1200px;margin:0 auto;padding:100px 48px 48px;
  min-height:100vh;display:flex;flex-direction:column;justify-content:center;
  overflow-y:auto;
}
@media(max-width:1024px){
  .panel-inner{padding:90px 32px 48px;}
}
@media(max-width:768px){
  .horizontal-wrapper{overflow:visible!important;height:auto!important;position:relative!important;}
  .panels{flex-direction:column;width:100%!important;transform:none!important;}
  .panel{width:100%!important;min-height:100svh;transform:none!important;display:block;}
  .panel-inner{
    height:auto;min-height:100svh;padding:80px 20px 48px;
    display:flex;flex-direction:column;justify-content:center;
  }
  /* Ensure all content is visible on mobile regardless of GSAP */
  .hero-content,.hero-image,.hero-chapter,.hero-name,.hero-title,
  .hero-typewriter,.hero-sub,.hero-actions,.hero-socials,
  .about-text,.about-skills,.section-chapter,.section-heading,
  .contact-left,.contact-right,
  .service-card,.project-card,.exp-card{
    opacity:1!important;transform:none!important;
  }
}

/* ── SECTION COMMON ── */
.section-chapter,.hero-chapter{
  font-family:var(--font-b);font-size:12px;font-weight:500;
  color:var(--text-m);text-transform:uppercase;letter-spacing:0.08em;
  margin-bottom:16px;
}
.mono{font-family:var(--font-c);color:var(--text-2);}
.section-heading{
  font-family:var(--font-d);font-size:clamp(1.8rem,3.5vw,2.8rem);
  font-weight:400;line-height:1.1;letter-spacing:-0.02em;margin-bottom:24px;
}
.section-heading em{font-style:italic;color:var(--text-2);}

/* ── HERO ── */
.hero-layout{
  display:grid;grid-template-columns:1.1fr 0.9fr;gap:64px;align-items:center;
  flex-direction:row;
}
.hero-name{
  font-family:var(--font-c);font-size:clamp(0.85rem,1.2vw,1rem);
  color:var(--text-m);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:12px;
}
.hero-title{
  font-family:var(--font-d);font-size:clamp(2.2rem,5vw,4rem);
  font-weight:400;line-height:1.05;letter-spacing:-0.03em;margin-bottom:16px;
}
.hero-title em{font-style:italic;color:var(--text-2);}
.hero-typewriter{
  font-family:var(--font-c);font-size:clamp(0.85rem,1.5vw,1rem);
  color:var(--text-2);margin-bottom:20px;display:flex;align-items:center;
}
.tw-prefix{color:var(--text-m);}
.tw-text{color:#fff;}
.tw-cursor{animation:blink 0.7s step-end infinite;color:var(--text-m);}
@keyframes blink{50%{opacity:0}}
.hero-sub{font-size:15px;color:var(--text-2);max-width:460px;margin-bottom:28px;line-height:1.7;}
.hero-actions{display:flex;gap:12px;margin-bottom:32px;flex-wrap:wrap;}
.hero-socials{display:flex;gap:16px;}
.hero-socials a{font-size:1.2rem;color:var(--text-m);transition:color 0.2s,transform 0.2s;}
.hero-socials a:hover{color:#fff;transform:translateY(-2px);}
.hero-image{position:relative;}
.hero-image img{
  border-radius:var(--radius);border:1px solid var(--border);
  object-fit:cover;width:100%;max-height:520px;
}


/* ── ABOUT ── */
.about-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;align-items:start;}
.about-text p{color:var(--text-2);font-size:14px;margin-bottom:10px;line-height:1.6;}
.about-text strong{color:#fff;}
.about-edu{
  display:inline-flex;align-items:center;gap:8px;margin-top:6px;
  font-size:12px;color:var(--text-m);font-family:var(--font-c);
  padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);
}
.about-edu i{color:var(--text-2);}
.about-skills{display:flex;flex-direction:column;gap:6px;}
.skill-group h3{
  font-family:var(--font-b);font-size:10px;font-weight:500;
  text-transform:uppercase;letter-spacing:0.06em;color:var(--text-m);margin-bottom:5px;
}
.tags{display:flex;flex-wrap:wrap;gap:4px;}
.tags span{
  font-family:var(--font-c);font-size:10px;padding:3px 8px;
  border:1px solid var(--border);border-radius:99px;color:var(--text-2);
  background:var(--bg-surface);transition:all 0.2s var(--ease);
}
.tags span:hover{border-color:var(--border-h);color:#fff;background:var(--bg-elevated);}


/* ── SERVICES ── */
.services-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.service-card{
  background:var(--bg-surface-t);backdrop-filter:blur(12px);
  border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;
  transition:border-color 0.2s,transform 0.2s;
}
.service-card:hover{border-color:var(--border-h);transform:translateY(-2px);}
.service-icon{font-size:1.2rem;color:var(--text-2);margin-bottom:8px;}
.service-card h3{font-size:15px;font-weight:600;margin-bottom:6px;}
.service-card p{font-size:12px;color:var(--text-2);line-height:1.5;margin-bottom:0;}
.service-card .tags{display:none;}
.services-cta{margin-top:16px;}


/* ── DISCORD TAG ── */
.contact-discord{margin-bottom:20px;}
.contact-discord p{font-size:13px;color:var(--text-m);margin-bottom:6px;}
.discord-tag{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-c);font-size:14px;color:#5865F2;
  background:rgba(88,101,242,0.1);border:1px solid rgba(88,101,242,0.25);
  padding:6px 14px;border-radius:var(--radius-sm);
}

/* ── PROJECTS ── */
.projects-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.project-card{
  background:var(--bg-surface-t);backdrop-filter:blur(12px);
  border:1px solid var(--border);border-radius:var(--radius);padding:24px;
  transition:border-color 0.2s,transform 0.2s;
}
.project-card:hover{border-color:var(--border-h);transform:translateY(-3px);}
.project-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.project-header h3{font-size:18px;font-weight:600;}
.project-link{
  font-size:13px;color:var(--text-m);display:flex;align-items:center;gap:4px;
  transition:color 0.2s;
}
.project-link:hover{color:#fff;}
.project-card .tags{margin-bottom:12px;}
.project-card p{font-size:13px;color:var(--text-2);line-height:1.6;}


/* ── CONTACT ── */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;}
.contact-sub{color:var(--text-2);font-size:15px;margin-bottom:28px;max-width:400px;line-height:1.7;}
.contact-details{display:flex;flex-direction:column;gap:10px;margin-bottom:24px;}
.contact-details a,.contact-details span{
  font-size:14px;color:var(--text-2);display:flex;align-items:center;gap:8px;transition:color 0.2s;
}
.contact-details a:hover{color:#fff;}
.contact-social-row{display:flex;gap:14px;}
.contact-social-row a{
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:var(--radius-sm);font-size:1.1rem;
  color:var(--text-m);transition:all 0.2s var(--ease);
}
.contact-social-row a:hover{border-color:var(--border-h);color:#fff;background:var(--bg-elevated);}
.form-field{margin-bottom:16px;}
.form-field label{
  display:block;font-size:11px;font-weight:500;text-transform:uppercase;
  letter-spacing:0.06em;color:var(--text-m);margin-bottom:6px;
}
.form-field input,.form-field textarea{
  width:100%;padding:12px 16px;background:var(--bg-surface);
  border:1px solid var(--border);border-radius:var(--radius-sm);
  color:#fff;font-family:var(--font-b);font-size:14px;
  transition:border-color 0.2s,box-shadow 0.2s;
}
.form-field input:focus,.form-field textarea:focus{
  outline:none;border-color:var(--border-h);box-shadow:0 0 0 3px rgba(255,255,255,0.05);
}
.form-field input::placeholder,.form-field textarea::placeholder{color:var(--text-m);}
.form-field textarea{resize:vertical;min-height:100px;}
.form-toast{
  margin-top:12px;padding:10px 16px;border-radius:var(--radius-sm);
  font-size:13px;display:none;
}
.form-toast.success{display:block;background:rgba(16,185,129,0.12);color:#10B981;border:1px solid rgba(16,185,129,0.25);}
.form-toast.error{display:block;background:rgba(239,68,68,0.12);color:#EF4444;border:1px solid rgba(239,68,68,0.25);}


/* ── FOOTER ── */
.footer{
  border-top:1px solid var(--grid-strong);padding:32px 48px;
  background:var(--bg);
}
.footer-inner{
  max-width:1200px;margin:0 auto;display:flex;align-items:center;
  justify-content:space-between;flex-wrap:wrap;gap:16px;
}
.footer-inner p{color:var(--text-m);font-size:13px;}
.footer-links{display:flex;gap:14px;}
.footer-links a{color:var(--text-m);font-size:1.1rem;transition:color 0.2s;}
.footer-links a:hover{color:#fff;}

/* ── SPIN ── */
@keyframes spin{to{transform:rotate(360deg)}}
.spin{display:inline-block;animation:spin 1s linear infinite;}

/* ── MOBILE & TABLET RESPONSIVE ── */
@media(max-width:768px){
  /* Hero */
  .hero-layout{grid-template-columns:1fr;gap:24px;}
  .hero-image{display:none;}
  .hero-title{font-size:2rem;}
  .hero-name{font-size:0.8rem;}
  .hero-sub{font-size:14px;margin-bottom:20px;}
  .hero-actions{gap:10px;}
  .btn{padding:10px 18px;font-size:13px;}
  /* About */
  .about-grid{grid-template-columns:1fr;gap:24px;}
  .about-text p{font-size:13px;}
  .panel.about .panel-inner{justify-content:flex-start;}
  /* Projects */
  .projects-grid{grid-template-columns:1fr;gap:14px;}
  .project-card{padding:18px;}
  .project-header h3{font-size:16px;}
  .project-card p{font-size:12px;}
  /* Services */
  .services-grid{grid-template-columns:1fr;gap:10px;}
  .service-card{padding:14px 16px;}
  .panel.services .panel-inner{justify-content:flex-start;}
  /* Contact */
  .contact-layout{grid-template-columns:1fr;gap:32px;}
  .contact-sub{font-size:14px;margin-bottom:20px;}
  .form-field input,.form-field textarea{font-size:16px;padding:10px 14px;}
  .form-field textarea{min-height:80px;}
  /* Footer */
  .footer{padding:24px 20px;}
  .footer-inner{flex-direction:column;text-align:center;gap:12px;}
  /* Section text */
  .section-heading{font-size:1.6rem;margin-bottom:16px;}
  .section-chapter,.hero-chapter{font-size:11px;margin-bottom:10px;}
}
@media(max-width:480px){
  .hero-title{font-size:1.7rem;}
  .hero-sub{font-size:13px;}
  .navbar{padding:12px 16px;}
}
