/* =============================
   Design System + Global Reset
   ============================= */

:root{
  /* Slate base */
  --bg0:#0a0a12;
  --bg1:#14141f;

  /* Surfaces & borders (violet-tinted) */
  --surface:rgba(255,255,255,.04);
  --surface-2:rgba(255,255,255,.07);
  --border:rgba(139,92,246,.18);
  --border-strong:rgba(139,92,246,.45);

  /* Text */
  --text:#f4f4f8;
  --muted:#a1a1b5;
  --muted-2:rgba(241,241,248,.6);

  /* Accent: indigo -> violet */
  --brand:#6366f1;
  --brand-2:#8b5cf6;
  --brand-grad:linear-gradient(135deg,#6366f1,#8b5cf6);

  --radius-xl:22px;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:10px;

  --shadow-sm:0 10px 24px rgba(0,0,0,.25);
  --shadow-md:0 18px 50px rgba(0,0,0,.35);
  --shadow-brand:0 18px 50px rgba(99,102,241,.28);

  --focus:0 0 0 3px rgba(139,92,246,.4), 0 0 0 1px rgba(139,92,246,.7);

  --section-pad:clamp(60px, 9vw, 110px);
  --container:1200px;
  --nav-bg:rgba(10,10,18,.72);
  --nav-dropdown-bg:rgba(10,10,18,.96);
  --footer-bg:rgba(10,10,18,.72);
}

/* Light theme */
[data-theme="light"]{
  --bg0:#f8f9fc;
  --bg1:#eef0f6;
  --surface:rgba(0,0,0,.04);
  --surface-2:rgba(0,0,0,.07);
  --border:rgba(99,102,241,.12);
  --border-strong:rgba(99,102,241,.25);
  --text:#1e1e2e;
  --muted:#585870;
  --muted-2:rgba(30,30,46,.45);
  --nav-bg:rgba(248,249,252,.85);
  --nav-dropdown-bg:rgba(248,249,252,.98);
  --footer-bg:rgba(248,249,252,.88);
  --shadow-sm:0 10px 24px rgba(0,0,0,.08);
  --shadow-md:0 18px 50px rgba(0,0,0,.1);
  --shadow-brand:0 18px 50px rgba(99,102,241,.15);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(900px 700px at 90% 0%, rgba(139,92,246,.14), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment:fixed;
  color:var(--text);
  line-height:1.6;
}

img{max-width:100%; display:block}
a{color:inherit}

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:none;
  box-shadow:var(--focus);
  border-color:var(--border-strong) !important;
}

/* Utilities */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0;
}

.skip-link{
  position:fixed;
  top:-100px; left:16px;
  z-index:1000;
  padding:10px 18px;
  background:var(--brand);
  color:#fff;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  font-weight:700;
  text-decoration:none;
  transition:top .2s ease;
}
.skip-link:focus{ top:0; }

/* Shared section heading underline */
.about-content > h2,
.skills h2,
.projects h2,
.contact h2{
  position:relative;
  display:inline-block;
  font-weight:800;
  color:var(--text);
}

.about-content > h2::after,
.skills h2::after,
.projects h2::after,
.contact h2::after{
  content:'';
  position:absolute;
  bottom:-15px;
  left:50%;
  transform:translateX(-50%);
  width:70px;
  height:4px;
  background:var(--brand-grad);
  border-radius:2px;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *, *::before, *::after{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}

/* =============================
   Navigation
   ============================= */
nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px clamp(20px, 5vw, 40px);
  background:var(--nav-bg);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 2px 18px rgba(0,0,0,.35);
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid var(--border);
}

.nav-brand{
  font-size:1.6rem;
  font-weight:800;
  letter-spacing:.5px;
  text-decoration:none;
  background:var(--brand-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

nav ul{
  display:flex;
  list-style:none;
  margin:0;
  padding:0;
  gap:30px;
}

nav li a{
  color:var(--text);
  text-decoration:none;
  font-size:1rem;
  font-weight:500;
  position:relative;
  padding:4px 0;
  transition:color .25s ease;
}

nav li a::after{
  content:'';
  position:absolute;
  left:0; bottom:-2px;
  width:100%; height:2px;
  background:var(--brand-grad);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}

nav li a:hover,
nav li a.active{ color:var(--text); }

nav li a:hover::after,
nav li a.active::after{ transform:scaleX(1); }

.nav-toggle{
  display:none;
  background:transparent;
  border:none;
  padding:8px;
  color:var(--brand-2);
  font-size:1.4rem;
  cursor:pointer;
  line-height:1;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:6px;
}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  background:transparent;
  border:1px solid var(--border);
  border-radius:50%;
  color:var(--muted);
  cursor:pointer;
  transition:color .25s ease, border-color .25s ease, background .25s ease;
  flex-shrink:0;
}
.theme-toggle:hover{
  color:var(--brand-2);
  border-color:var(--border-strong);
  background:var(--surface);
}
.theme-toggle svg{ width:18px; height:18px; }

/* =============================
   Hero
   ============================= */
.hero{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:92vh;
  text-align:center;
  padding:clamp(56px,8vw,80px) 20px;
  position:relative;
  overflow:hidden;
}

.hero::before,
.hero::after{
  content:'';
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.hero::before{
  top:-50%; right:-10%;
  width:500px; height:500px;
  background:radial-gradient(circle, rgba(99,102,241,.22) 0%, transparent 70%);
  animation:float 6s ease-in-out infinite;
}

.hero::after{
  bottom:-10%; left:-5%;
  width:400px; height:400px;
  background:radial-gradient(circle, rgba(139,92,246,.18) 0%, transparent 70%);
  animation:float 8s ease-in-out infinite reverse;
}

.hero-content{
  max-width:900px;
  position:relative;
  z-index:10;
  animation:fadeInUp 1s ease-out;
}

.hero-badge{
  display:inline-block;
  padding:8px 18px;
  background:rgba(99,102,241,.15);
  border:1px solid var(--border-strong);
  border-radius:50px;
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:24px;
  font-weight:600;
  letter-spacing:.5px;
}
.hero-badge::first-letter{ color:#4ade80; } /* green status dot */

.hero h1{
  font-size:clamp(2.6rem, 6vw, 5rem);
  font-weight:800;
  margin:0 0 18px;
  letter-spacing:-2px;
  line-height:1.1;
  animation:fadeInDown .8s ease-out;
}

.hero h1 .highlight{
  background:var(--brand-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-subtitle{
  font-size:clamp(1.1rem, 2.4vw, 1.8rem);
  margin-bottom:16px;
  color:var(--brand-2);
  font-weight:600;
  letter-spacing:.5px;
  animation:fadeInUp .8s ease-out .2s both;
}

.hero-description{
  font-size:clamp(1rem, 1.6vw, 1.2rem);
  margin:0 auto 44px;
  color:var(--muted);
  line-height:1.8;
  max-width:680px;
  animation:fadeInUp .8s ease-out .4s both;
}

.hero-buttons{
  display:flex;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:15px 42px;
  font-size:1.05rem;
  font-weight:700;
  text-decoration:none;
  border-radius:50px;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  letter-spacing:.5px;
  border:2px solid transparent;
}

.hero-btn.primary{
  background:var(--brand-grad);
  color:#fff;
  box-shadow:0 10px 30px rgba(99,102,241,.35);
}
.hero-btn.primary:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 40px rgba(99,102,241,.5);
}

.hero-btn.secondary{
  background:transparent;
  color:var(--text);
  border:2px solid var(--brand-2);
}
.hero-btn.secondary:hover{
  transform:translateY(-3px);
  background:var(--brand-2);
  color:#fff;
  box-shadow:0 16px 40px rgba(139,92,246,.35);
}

.hero-btn:active{ transform:translateY(-1px); }

.hero-decoration{
  position:absolute;
  bottom:0; left:0; right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--brand-2), transparent);
}

/* =============================
   About
   ============================= */
.about-me{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:var(--section-pad) clamp(20px,5vw,40px);
  border-top:1px solid var(--border);
}

.about-content{
  max-width:var(--container);
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  gap:clamp(40px,6vw,64px);
}

.about-content > h2{ font-size:clamp(2rem, 4vw, 3.2rem); margin:0; }

.about-container{
  display:grid;
  grid-template-columns:minmax(0, 360px) 1fr;
  gap:clamp(40px,6vw,80px);
  align-items:center;
  width:100%;
}

.profile-pic{
  position:relative;
  width:min(340px, 80vw);
  aspect-ratio:1;
  margin:0 auto;
  border-radius:50%;
  overflow:hidden;
  padding:5px;
  background:var(--brand-grad);
  box-shadow:var(--shadow-brand);
  transition:transform .3s ease, box-shadow .3s ease;
}
.profile-pic:hover{
  transform:translateY(-4px);
  box-shadow:0 30px 80px rgba(99,102,241,.4);
}
.profile-pic img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

.about-text-section{
  display:flex;
  flex-direction:column;
  gap:clamp(28px,4vw,40px);
}

.about-text-content{ text-align:left; }

.about-text-content p{
  font-size:clamp(1.05rem, 1.5vw, 1.25rem);
  line-height:1.9;
  margin:0 0 18px;
  color:var(--muted);
  letter-spacing:.2px;
}
.about-text-content p:last-child{ margin-bottom:0; }

.stats-container{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:clamp(16px,2.5vw,28px);
  width:100%;
}

.stat-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:clamp(18px,2.5vw,26px);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.stat-item:hover{
  background:var(--surface-2);
  border-color:var(--border-strong);
  box-shadow:0 14px 34px rgba(99,102,241,.18);
  transform:translateY(-5px);
}

.stat-number{
  font-size:clamp(2rem, 3vw, 2.6rem);
  font-weight:800;
  background:var(--brand-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:6px;
}

.stat-label{
  font-size:.95rem;
  color:var(--muted);
  font-weight:500;
  letter-spacing:.2px;
}

/* =============================
   Skills / Tech marquee
   ============================= */
.skills{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:var(--section-pad) clamp(20px,5vw,40px);
  text-align:center;
  border-top:1px solid var(--border);
}

.skills h2{ font-size:clamp(1.8rem, 3.4vw, 2.5rem); margin:0 0 60px; }

.tech-scroll-container{
  width:100%;
  max-width:var(--container);
  overflow:hidden;
  position:relative;
  background:var(--surface);
  border:1px solid var(--border);
  padding:36px 0;
  border-radius:var(--radius-lg);
}

.tech-scroll-container::before,
.tech-scroll-container::after{
  content:'';
  position:absolute;
  top:0; bottom:0;
  width:100px;
  pointer-events:none;
  z-index:2;
}
.tech-scroll-container::before{
  left:0;
  background:linear-gradient(to right, var(--bg1), transparent);
}
.tech-scroll-container::after{
  right:0;
  background:linear-gradient(to left, var(--bg1), transparent);
}

.tech-stack-wrapper{
  display:flex;
  gap:40px;
  width:max-content;
  padding:10px 40px 10px 0;
  animation:scroll 35s linear infinite;
}
.tech-stack-wrapper:hover{ animation-play-state:paused; }

@keyframes scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.tech-logo-item{
  display:flex;
  align-items:center;
  justify-content:center;
  width:80px;
  height:80px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  flex-shrink:0;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.tech-logo-item:hover{
  background:var(--surface-2);
  border-color:var(--border-strong);
  transform:translateY(-5px) scale(1.08);
  box-shadow:0 12px 30px rgba(99,102,241,.25);
}

.tech-logo-item img{
  width:50px;
  height:50px;
  object-fit:contain;
}

/* =============================
   Projects
   ============================= */
.projects{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:var(--section-pad) clamp(20px,5vw,40px);
  text-align:center;
  border-top:1px solid var(--border);
}

.projects h2{ font-size:clamp(1.8rem, 3.4vw, 2.5rem); margin:0 0 14px; }

.projects-intro{
  color:var(--muted);
  max-width:640px;
  margin:0 auto 56px;
  font-size:1.05rem;
}

.projects-container{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:clamp(24px,3vw,40px);
  max-width:var(--container);
  margin:0 auto;
  width:100%;
}

.project-item{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  position:relative;
  overflow:hidden;
}

.project-item::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  background:var(--brand-grad);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s ease;
  z-index:2;
}
.project-item:hover::before{ transform:scaleX(1); }

.project-item:hover{
  transform:translateY(-10px);
  border-color:var(--border-strong);
  box-shadow:0 22px 50px rgba(99,102,241,.2);
  background:var(--surface-2);
}

/* Cover image */
.project-cover{
  position:relative;
  aspect-ratio:800 / 420;
  overflow:hidden;
  border-bottom:1px solid var(--border);
}
.project-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.project-item:hover .project-cover img{ transform:scale(1.05); }

/* Status badge over the cover */
.project-status{
  position:absolute;
  top:14px;
  right:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.2px;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.18);
}
.status-dev{ background:rgba(251,191,36,.18); color:#fcd34d; }
.status-live{ background:rgba(74,222,128,.18); color:#4ade80; }
.status-planned{ background:rgba(148,163,184,.2); color:#cbd5e1; }

/* Card body */
.project-body{
  display:flex;
  flex-direction:column;
  flex-grow:1;
  padding:clamp(22px,2.6vw,30px);
}

.project-tag-featured{
  align-self:flex-start;
  margin:0 0 10px;
  padding:4px 12px;
  border-radius:999px;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#fff;
  background:var(--brand-grad);
}

.project-item h3{
  font-size:1.4rem;
  margin:0 0 14px;
  color:var(--text);
  font-weight:700;
  text-align:left;
}

.project-item p{
  font-size:1rem;
  line-height:1.7;
  color:var(--muted);
  text-align:left;
  flex-grow:1;
  margin:0 0 20px;
}

/* Tech tags */
.project-tech{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0 0 24px;
}
.project-tech li{
  font-size:.78rem;
  font-weight:600;
  color:var(--brand-2);
  padding:5px 12px;
  border-radius:999px;
  background:rgba(99,102,241,.12);
  border:1px solid var(--border);
}

.project-buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:auto;
}

.project-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 20px;
  background:rgba(99,102,241,.14);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);
  color:var(--brand-2);
  text-decoration:none;
  font-weight:600;
  font-size:.9rem;
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.project-link:hover{
  background:rgba(99,102,241,.28);
  color:var(--text);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(99,102,241,.25);
}

/* Disabled / non-link state for planned & in-dev projects */
.project-link.live-link{
  background:rgba(74,222,128,.14);
  border-color:rgba(74,222,128,.45);
  color:#4ade80;
}
.project-link.live-link:hover{
  background:rgba(74,222,128,.25);
  color:var(--text);
  box-shadow:0 8px 20px rgba(74,222,128,.25);
}

.project-link.link-disabled{
  background:rgba(148,163,184,.1);
  border-color:rgba(148,163,184,.25);
  color:var(--muted);
  cursor:default;
}
.project-link.link-disabled:hover{
  background:rgba(148,163,184,.1);
  color:var(--muted);
  transform:none;
  box-shadow:none;
}

/* Featured card spans the full row and goes side-by-side on wide screens */
.project-item.featured{
  grid-column:1 / -1;
  border-color:var(--border-strong);
  box-shadow:0 18px 50px rgba(99,102,241,.15);
}
@media (min-width:760px){
  .project-item.featured{
    flex-direction:row;
  }
  .project-item.featured .project-cover{
    flex:0 0 46%;
    border-bottom:none;
    border-right:1px solid var(--border);
    aspect-ratio:auto;
  }
  .project-item.featured .project-body{
    justify-content:center;
  }
}

/* =============================
   Contact
   ============================= */
.contact{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:var(--section-pad) clamp(20px,5vw,40px);
  text-align:center;
  border-top:1px solid var(--border);
}

.contact h2{ font-size:clamp(1.8rem, 3.4vw, 2.5rem); margin:0 0 20px; }

.contact > p{
  font-size:1.15rem;
  margin:20px 0 50px;
  color:var(--muted);
}

.contact-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(32px,5vw,60px);
  max-width:1000px;
  width:100%;
  margin:0 auto;
}

.contact-form-container{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
}

.contact-form-container h3,
.social-links h3{
  font-size:1.3rem;
  color:var(--text);
  margin:0 0 24px;
  font-weight:700;
}

.contact-form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-group{ display:flex; flex-direction:column; }

.contact-form input,
.contact-form textarea{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:14px;
  color:var(--text);
  font-family:inherit;
  font-size:1rem;
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{ color:var(--muted-2); }

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  background:var(--surface-2);
  border-color:var(--border-strong);
  box-shadow:0 0 15px rgba(99,102,241,.25);
}

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

.submit-btn{
  background:var(--brand-grad);
  color:#fff;
  padding:14px 30px;
  border:none;
  border-radius:var(--radius-sm);
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
  margin-top:6px;
}
.submit-btn:hover{
  filter:brightness(1.1);
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(99,102,241,.35);
}
.submit-btn:disabled{
  opacity:.75;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
  filter:none;
}

.form-status{
  min-height:1.2em;
  margin:6px 0 0;
  font-size:.95rem;
  font-weight:600;
  color:#4ade80;
}
.form-status.error{ color:#f87171; }

.social-links{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  text-align:left;
}

.social-icons{
  display:flex;
  flex-direction:column;
  gap:18px;
  width:100%;
}

.social-link{
  display:flex;
  align-items:center;
  gap:15px;
  padding:18px 20px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:1.05rem;
  transition:transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.social-link:hover{
  background:var(--surface-2);
  border-color:var(--border-strong);
  transform:translateX(8px);
  box-shadow:0 8px 20px rgba(99,102,241,.2);
}
.social-link svg{ width:28px; height:28px; flex-shrink:0; color:var(--brand-2); }

/* =============================
   Footer
   ============================= */
.footer{
  padding:24px clamp(20px,5vw,40px);
  background:var(--footer-bg);
  border-top:1px solid var(--border);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--text);
}

.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.footer-brand{ display:flex; flex-direction:column; gap:8px; }

.footer-logo{
  font-size:1.5rem;
  font-weight:800;
  background:var(--brand-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.footer-tagline{ color:var(--muted); font-size:.95rem; }

.footer-copyright{ color:var(--muted-2); font-weight:600; font-size:.95rem; }

/* =============================
   Back to top button
   ============================= */
.back-to-top{
  position:fixed;
  bottom:32px;
  right:32px;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:var(--brand-grad);
  color:#fff;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(99,102,241,.35);
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.back-to-top.visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.back-to-top:hover{
  box-shadow:0 12px 32px rgba(99,102,241,.5);
  transform:translateY(-3px);
}
.back-to-top:active{
  transform:translateY(-1px);
}

/* =============================
   Scroll-triggered reveal
   ============================= */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .6s ease-out, transform .6s ease-out;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* =============================
   Animations
   ============================= */
@keyframes float{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(30px); }
}

@keyframes fadeInDown{
  from{ opacity:0; transform:translateY(-30px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes fadeInUp{
  from{ opacity:0; transform:translateY(30px); }
  to{ opacity:1; transform:translateY(0); }
}

/* =============================
   Responsive
   ============================= */
@media (max-width:1024px){
  .hero{ min-height:80vh; }
}

@media (max-width:768px){
  /* Nav collapses to a toggle menu */
  nav{ position:relative; }

  .nav-toggle{ display:inline-flex; }

  #nav-links{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    gap:6px;
    padding:14px 20px 20px;
    background:var(--nav-dropdown-bg);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
    box-shadow:0 18px 40px rgba(0,0,0,.4);
    text-align:center;
    display:none;
  }
  body.nav-open #nav-links{ display:flex; }

  #nav-links li a{ display:block; padding:10px 0; }

  /* About stacks */
  .about-container{ grid-template-columns:1fr; gap:40px; }
  .about-text-content{ text-align:center; }
  .stats-container{ grid-template-columns:repeat(3, 1fr); gap:14px; }

  /* Contact stacks */
  .contact-wrapper{ grid-template-columns:1fr; }
  .contact-form-container{ align-items:center; text-align:center; }
  .social-links{ text-align:center; }

  /* Footer stacks */
  .footer-inner{ flex-direction:column; text-align:center; }

  /* Hero buttons full width */
  .hero-buttons{ flex-direction:column; align-items:center; }
  .hero-btn{ width:100%; max-width:320px; }
}

@media (max-width:480px){
  .stats-container{ grid-template-columns:1fr; }
  .project-buttons{ flex-direction:column; }
  .project-link{ width:100%; justify-content:center; }
  .tech-logo-item{ width:68px; height:68px; }
  .tech-logo-item img{ width:44px; height:44px; }
}
