/* ═══════════════════════════════════════════════════
   MARMIK KAILA — PORTFOLIO
   Professional UI/UX Design System
   Pure HTML / CSS / JS
   ═══════════════════════════════════════════════════ */

/* ──── DESIGN TOKENS ──── */
:root {
  /* Palette */
  --black:    #000000;
  --dark:     #0a0a0b;
  --surface:  #111113;
  --card:     #161618;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.16);
  --txt:      #f5f5f7;
  --txt-2:    #a1a1a6;
  --txt-3:    rgba(161,161,166,0.5);

  --blue:     #2997ff;
  --purple:   #bf5af2;
  --green:    #30d158;
  --orange:   #ff9f0a;
  --red:      #ff453a;
  --cyan:     #64d2ff;

  /* Glass */
  --glass-bg:      rgba(255,255,255,0.03);
  --glass-bg-h:    rgba(255,255,255,0.055);
  --glass-blur:    blur(48px) saturate(1.6);
  --glass-shadow:  0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  --glass-shadow-h:0 16px 56px rgba(0,0,0,0.45), 0 0 80px rgba(41,151,255,0.05), inset 0 1px 0 rgba(255,255,255,0.07);

  /* Spacing */
  --nav-h:    64px;
  --section-y: clamp(80px, 12vw, 160px);
  --container: min(1140px, 90vw);
  --gap:      clamp(16px, 2vw, 24px);
  --radius:   20px;
  --radius-sm:12px;
  --radius-lg:28px;

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth:   cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--txt);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }
strong { font-weight: 600; color: var(--txt); }

::selection { background: var(--blue); color: var(--txt); }

/* ──── UTILITY ──── */
.container { width: var(--container); margin: 0 auto; }
.container--narrow { width: min(720px, 90vw); margin: 0 auto; }
.accent-dot { color: var(--blue); }

/* ──── GRADIENTS ──── */
.gradient-blue   { background: linear-gradient(135deg, var(--blue), #66b8ff);   -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-purple { background: linear-gradient(135deg, var(--purple), #d99aff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-green  { background: linear-gradient(135deg, var(--green), #7ae89a);  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-orange { background: linear-gradient(135deg, var(--orange), #ffc75c); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-red    { background: linear-gradient(135deg, var(--red), #ff8a84);    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gradient-cyan   { background: linear-gradient(135deg, var(--cyan), #a0e7ff);   -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* ──── GLASS CARD ──── */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
  overflow: hidden;
}
/* Gradient border overlay */
.glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), transparent 35%, transparent 65%, rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: 2;
}
/* Top-edge light reflection */
.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
  transition: opacity 0.5s var(--ease);
}
.glass:hover {
  border-color: var(--border-h);
  background: var(--glass-bg-h);
  box-shadow: var(--glass-shadow-h);
  transform: translateY(-6px) scale(1.005);
}
.glass:hover::before { opacity: 1; }
.glass:hover::after { opacity: 1; }

/* ──── PILL ──── */
.pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: var(--txt-2);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
  cursor: default;
}
.pill:hover {
  background: rgba(255,255,255,0.10);
  color: var(--txt);
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ──── BUTTONS ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.4s var(--smooth);
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.15) 55%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(110%);
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue), #5cb8ff);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(41,151,255,0.2);
}
.btn--primary:hover {
  box-shadow: 0 6px 36px rgba(41,151,255,0.4), 0 0 0 1px rgba(41,151,255,0.15);
  transform: translateY(-3px);
}
.btn--ghost {
  background: rgba(255,255,255,0.03);
  color: var(--txt);
  border: 1px solid var(--border-h);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.btn--full { width: 100%; }

/* ──── SECTION LAYOUT ──── */
.section {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
}
.section__header {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(41,151,255,0.06);
  border: 1px solid rgba(41,151,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--txt);
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--txt-2);
  font-weight: 300;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Alternating section backgrounds — richer gradient meshes */
.about { background:
  radial-gradient(ellipse at 10% 90%, rgba(41,151,255,0.035) 0%, transparent 50%),
  radial-gradient(ellipse at 90% 20%, rgba(191,90,242,0.025) 0%, transparent 50%),
  var(--dark);
}
.skills { background:
  radial-gradient(ellipse at 80% 0%, rgba(41,151,255,0.04) 0%, transparent 50%),
  radial-gradient(ellipse at 20% 100%, rgba(191,90,242,0.025) 0%, transparent 50%),
  var(--dark);
}
.projects { background:
  radial-gradient(ellipse at 20% 0%, rgba(41,151,255,0.05) 0%, transparent 50%),
  radial-gradient(ellipse at 80% 80%, rgba(191,90,242,0.035) 0%, transparent 50%),
  var(--black);
}
.intelligence { background:
  radial-gradient(ellipse at 50% 0%, rgba(48,209,88,0.04) 0%, transparent 50%),
  radial-gradient(ellipse at 10% 80%, rgba(41,151,255,0.03) 0%, transparent 50%),
  var(--black);
}
.security { background:
  radial-gradient(ellipse at 80% 100%, rgba(255,69,58,0.05) 0%, transparent 50%),
  radial-gradient(ellipse at 20% 20%, rgba(255,159,10,0.025) 0%, transparent 50%),
  var(--black);
}
.experience { background:
  radial-gradient(ellipse at 30% 0%, rgba(41,151,255,0.04) 0%, transparent 50%),
  radial-gradient(ellipse at 70% 100%, rgba(191,90,242,0.03) 0%, transparent 50%),
  var(--dark);
}
.certifications { background:
  radial-gradient(ellipse at 50% 0%, rgba(191,90,242,0.04) 0%, transparent 50%),
  radial-gradient(ellipse at 80% 80%, rgba(48,209,88,0.025) 0%, transparent 50%),
  var(--black);
}
.community { background:
  radial-gradient(ellipse at 20% 0%, rgba(48,209,88,0.04) 0%, transparent 50%),
  radial-gradient(ellipse at 80% 100%, rgba(191,90,242,0.03) 0%, transparent 50%),
  var(--black);
}
.contact { background:
  radial-gradient(ellipse at 50% 0%, rgba(100,210,255,0.04) 0%, transparent 50%),
  radial-gradient(ellipse at 20% 80%, rgba(41,151,255,0.03) 0%, transparent 55%),
  var(--dark);
}

/* Noise overlay for sections */
.section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background: 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)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════
   LIVE BACKGROUND TEXT ANIMATION
   ═══════════════════════════════════════════════════ */
.bg-text {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.bg-text.is-visible {
  opacity: 1;
}

.bg-text__row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  --parallax-x: 0px;
}

.bg-text__row span {
  display: inline-block;
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.035);
  padding-right: clamp(40px, 6vw, 80px);
  flex-shrink: 0;
}

/* Left-scrolling row */
.bg-text__row--left {
  animation: marqueeLeft 35s linear infinite;
  transform: translateX(var(--parallax-x));
}
/* Right-scrolling row */
.bg-text__row--right {
  animation: marqueeRight 40s linear infinite;
  transform: translateX(var(--parallax-x));
}

@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Hover glow effect on sections — text subtly brightens */
.section:hover .bg-text__row span {
  -webkit-text-stroke-color: rgba(255,255,255,0.06);
  transition: -webkit-text-stroke-color 0.8s var(--ease);
}

/* Hero gets a colored text stroke */
.hero .bg-text__row:nth-child(1) span { -webkit-text-stroke-color: rgba(41,151,255,0.04); }
.hero .bg-text__row:nth-child(2) span { -webkit-text-stroke-color: rgba(191,90,242,0.04); }
.hero .bg-text__row:nth-child(3) span { -webkit-text-stroke-color: rgba(48,209,88,0.04); }
.hero:hover .bg-text__row:nth-child(1) span { -webkit-text-stroke-color: rgba(41,151,255,0.08); }
.hero:hover .bg-text__row:nth-child(2) span { -webkit-text-stroke-color: rgba(191,90,242,0.08); }
.hero:hover .bg-text__row:nth-child(3) span { -webkit-text-stroke-color: rgba(48,209,88,0.08); }

/* Section-specific accent colors for bg text */
.skills .bg-text__row span       { -webkit-text-stroke-color: rgba(41,151,255,0.03); }
.projects .bg-text__row span     { -webkit-text-stroke-color: rgba(191,90,242,0.03); }
.intelligence .bg-text__row span { -webkit-text-stroke-color: rgba(48,209,88,0.03); }
.security .bg-text__row span     { -webkit-text-stroke-color: rgba(255,69,58,0.03); }
.experience .bg-text__row span   { -webkit-text-stroke-color: rgba(41,151,255,0.03); }
.certifications .bg-text__row span { -webkit-text-stroke-color: rgba(191,90,242,0.03); }
.community .bg-text__row span    { -webkit-text-stroke-color: rgba(48,209,88,0.03); }
.contact .bg-text__row span      { -webkit-text-stroke-color: rgba(100,210,255,0.03); }

/* Paused on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-text__row--left,
  .bg-text__row--right {
    animation: none;
  }
}

/* Hero bg-text z-index — between mesh and content */
.hero .bg-text { z-index: 1; }

/* ═══════════════════════════════════════════════════
   ENHANCED CONTAINERS
   ═══════════════════════════════════════════════════ */

/* Section divider — gradient line between sections */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,151,255,0.2), rgba(191,90,242,0.2), rgba(48,209,88,0.1), transparent);
  z-index: 2;
  animation: dividerPulse 4s ease-in-out infinite alternate;
}
@keyframes dividerPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Container accent included in .glass::after above */

/* Enhanced info-card, skill-card, project-card container hover */
.skill-card:hover,
.intel-card:hover,
.security-card:hover,
.cert-card:hover,
.club-card:hover,
.contact-link:hover {
  border-color: var(--border-h);
  box-shadow: 0 16px 56px rgba(0,0,0,0.5), 0 0 80px rgba(41,151,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-6px);
}

/* Grid wrapper ambient glow */
.skills__grid,
.intel__grid,
.security__grid,
.projects__grid,
.certs__grid,
.community__grid {
  position: relative;
}

/* Floating accent orbs behind grids */
.skills__grid::before,
.projects__grid::before,
.certs__grid::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}
.skills__grid::before {
  background: var(--blue);
  top: -100px;
  right: -100px;
}
.projects__grid::before {
  background: var(--purple);
  bottom: -80px;
  left: -80px;
}
.certs__grid::before {
  background: var(--green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ═══════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__ring {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader__text {
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--txt);
}
@keyframes spin { to { transform: rotate(360deg); }}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════ */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; mix-blend-mode: difference; }
.cursor--dot {
  width: 6px; height: 6px;
  background: var(--txt);
  border-radius: 50%;
  transition: transform 0.1s;
}
.cursor--ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: width 0.3s var(--spring), height 0.3s var(--spring), border-color 0.3s;
  transform: translate(-15px, -15px);
}
.cursor--ring.is-hover {
  width: 56px; height: 56px;
  transform: translate(-25px, -25px);
  border-color: var(--blue);
}
@media (hover: none) { .cursor { display: none; } }

/* ═══════════════════════════════════════════════════
   NAVBAR — Premium Glassmorphism
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.6s var(--smooth);
  border-bottom: 1px solid transparent;
}
/* Default state: fully transparent */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: -1;
}
/* Scrolled: rich glassmorphism */
.nav.is-scrolled {
  background: rgba(10,10,11,0.55);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.03);
}
.nav.is-scrolled::before {
  opacity: 0;
}
/* Gradient accent line under navbar */
.nav.is-scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,151,255,0.2), rgba(191,90,242,0.15), transparent);
  pointer-events: none;
}

.nav__inner {
  width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  transition: all 0.3s var(--ease);
  position: relative;
}
.nav__logo:hover {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(41,151,255,0.3);
}

/* Nav links — glass pill group */
.nav__links {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-2);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.nav__link:hover { color: var(--txt); }
.nav__link:hover::after { opacity: 1; }
.nav__link.is-active {
  color: #fff;
}
.nav__link.is-active::after {
  opacity: 1;
  background: rgba(41,151,255,0.15);
  box-shadow: inset 0 0 12px rgba(41,151,255,0.08);
}

/* CTA button */
.nav__cta {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--blue), #5cb8ff);
  color: #fff;
  transition: all 0.35s var(--ease);
  box-shadow: 0 2px 12px rgba(41,151,255,0.25);
  position: relative;
  overflow: hidden;
}
.nav__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.2) 45%, rgba(255,255,255,0.2) 55%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.nav__cta:hover {
  box-shadow: 0 4px 28px rgba(41,151,255,0.4);
  transform: translateY(-1px);
}
.nav__cta:hover::after {
  transform: translateX(110%);
}

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; }
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--txt-2);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--blue); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--blue); }

/* Mobile menu — full glassmorphism */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-link {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--txt-2);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  border: 1px solid transparent;
}
.nav__mobile-link:hover {
  color: var(--txt);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(41,151,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(191,90,242,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(48,209,88,0.04) 0%, transparent 60%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: scale(1)   translate(0, 0); }
  50%  { transform: scale(1.05) translate(-2%, 3%); }
  100% { transform: scale(1)   translate(2%, -2%); }
}
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero__tag {
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(41,151,255,0.06);
  border: 1px solid rgba(41,151,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-block;
  animation: fadeUp 0.8s 0.1s var(--ease) forwards, tagGlow 3s 1.5s ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes tagGlow {
  0% { box-shadow: 0 0 12px rgba(41,151,255,0.1); }
  100% { box-shadow: 0 0 24px rgba(41,151,255,0.2); }
}
.hero__name {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 24px rgba(41,151,255,0.08));
}
.hero__name-line {
  display: block;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: nameReveal 1s var(--spring) forwards;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__name-line[data-delay="1"] { animation-delay: 0.15s; }
@keyframes nameReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--txt-2);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s var(--ease) forwards;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s var(--ease) forwards;
}
.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px);
  opacity: 0;
  animation: fadeUp 0.8s 0.7s var(--ease) forwards;
}
.stat {
  text-align: center;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s var(--ease);
  position: relative;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,151,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stat:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(41,151,255,0.04);
}
.stat:hover::before { opacity: 1; }
.stat__num {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--txt);
}
.stat__plus {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue);
}
.stat__label {
  display: block;
  font-size: 12px;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.stat__label--alt {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: var(--green);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-top: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.8s 1.2s var(--ease) forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.about__text p {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--txt-2);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}
.info-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  transition: transform 0.4s var(--spring), background 0.3s;
}
.info-card:hover .info-card__icon {
  transform: scale(1.1);
  background: rgba(255,255,255,0.09);
}
.info-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 2px;
}
.info-card p {
  font-size: 13px;
  color: var(--txt-2);
  font-weight: 400;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.skill-card { padding: 28px; transition: all 0.4s var(--ease); }
.skill-card__bar {
  width: 32px; height: 4px;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 0 12px currentColor;
}
.skill-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--txt);
}
.skill-card__pills { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px)  { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .skills__grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════ */
.project-featured {
  padding: clamp(24px, 3vw, 40px);
  margin-bottom: var(--gap);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.project-featured__glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  opacity: 0.07;
  filter: blur(80px);
  transition: opacity 0.6s, transform 0.6s var(--ease);
  pointer-events: none;
}
.project-featured:hover .project-featured__glow { opacity: 0.18; transform: scale(1.1); }

/* Place featured card children into 2-column grid */
.project-featured .project__tagline  { grid-column: 1; }
.project-featured .project__name     { grid-column: 1; }
.project-featured .project__desc     { grid-column: 1; margin-bottom: 0; -webkit-line-clamp: unset; overflow: visible; display: block; }
.project-featured .project__tech     { grid-column: 2; grid-row: 1 / 5; align-self: center; }
.project-featured .project__actions  { grid-column: 1; margin-top: 16px; }

.project__tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--txt-3);
  margin-bottom: 6px;
  display: block;
}
.project__name {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.project__desc {
  font-size: 14px;
  color: var(--txt-2);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project__tech { display: flex; flex-wrap: wrap; gap: 6px; }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.project-card {
  padding: clamp(20px, 2.5vw, 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card__glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  opacity: 0.05;
  filter: blur(60px);
  transition: opacity 0.6s, transform 0.6s var(--ease);
  pointer-events: none;
}
.project-card:hover .project-card__glow { opacity: 0.16; transform: scale(1.15); }

.project-card .project__name { font-size: clamp(16px, 1.5vw, 20px); }
.project-card .project__desc { font-size: 13px; -webkit-line-clamp: 3; }
.project-card .pill { font-size: 10px; padding: 3px 10px; }
.project-card .project__actions { margin-top: auto; }

/* Scoped hover — no lift on project cards to prevent overlap */
.project-card.glass:hover,
.project-featured.glass:hover {
  transform: none;
  box-shadow: var(--glass-shadow-h);
}

@media (max-width: 900px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project-featured {
    grid-template-columns: 1fr;
  }
  .project-featured .project__tech { grid-column: 1; grid-row: unset; }
  .project-featured .project__desc { -webkit-line-clamp: 4; overflow: hidden; display: -webkit-box; }
}
@media (max-width: 600px) {
  .projects__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   INTELLIGENCE & SECURITY — Shared card style
   ═══════════════════════════════════════════════════ */
.intel__grid,
.security__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.intel-card,
.security-card {
  padding: 32px;
  overflow: hidden;
}
.intel-card__icon,
.security-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 20px;
  transition: transform 0.4s var(--spring), background 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.04);
}
.intel-card:hover .intel-card__icon,
.security-card:hover .security-card__icon {
  transform: scale(1.15);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 24px rgba(41,151,255,0.1);
  background: rgba(255,255,255,0.08);
}
.intel-card h3,
.security-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 10px;
}
.intel-card p,
.security-card p {
  font-size: 14px;
  color: var(--txt-2);
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .intel__grid,
  .security__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   EXPERIENCE — Timeline
   ═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--purple), transparent);
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  margin-bottom: 32px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -32px; top: 28px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--dark);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(41,151,255,0.2), 0 0 16px rgba(41,151,255,0.15);
  transition: all 0.4s var(--ease);
}
.timeline__item:hover .timeline__dot {
  box-shadow: 0 0 0 4px rgba(41,151,255,0.3), 0 0 24px rgba(41,151,255,0.25);
  transform: scale(1.2);
}
.timeline__card { padding: clamp(24px, 3vw, 36px); }
.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.timeline__header h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}
.timeline__role {
  font-size: 15px;
  color: var(--txt-2);
  margin-top: 4px;
}
.timeline__meta {
  text-align: right;
  font-size: 13px;
  color: var(--txt-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline__points { display: flex; flex-direction: column; gap: 12px; padding-left: 4px; }
.timeline__points li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--txt-2);
  font-weight: 300;
  line-height: 1.7;
}
.timeline__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .timeline__header { flex-direction: column; }
  .timeline__meta { text-align: left; }
}

/* ═══════════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════════ */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.cert-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.cert-card__badge {
  font-size: 24px;
  margin-bottom: 16px;
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  transition: transform 0.4s var(--spring);
}
.cert-card:hover .cert-card__badge { transform: scale(1.15) rotate(-5deg); }
.cert-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cert-card p {
  font-size: 13px;
  color: var(--txt-3);
  margin-top: auto;
}

@media (max-width: 768px) { .certs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .certs__grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════════════════ */
.community__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.club-card { padding: 32px; }
.club-card__role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--txt-3);
  margin-bottom: 8px;
  display: block;
}
.club-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.club-card p {
  font-size: 14px;
  color: var(--txt-2);
  font-weight: 300;
  line-height: 1.7;
}
.achievements { padding: 32px; }
.achievements h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.achievements__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.achievement-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(48,209,88,0.12);
  color: var(--green);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.achievement-item p {
  font-size: 14px;
  color: var(--txt-2);
  font-weight: 300;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .community__grid { grid-template-columns: 1fr; }
  .achievements__list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  transition: all 0.3s var(--ease);
}
.contact-link__icon {
  font-size: 0;
  color: var(--txt-2);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  transition: all 0.3s var(--spring);
}
.contact-link:hover .contact-link__icon {
  transform: scale(1.12);
  background: rgba(255,255,255,0.08);
}
.contact-link__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--txt-3);
  margin-bottom: 4px;
}
.contact-link__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--txt);
  word-break: break-all;
}

.contact-form {
  padding: clamp(28px, 4vw, 44px);
  max-width: 760px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--txt-3);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--txt);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(41,151,255,0.5);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 32px rgba(41,151,255,0.1), 0 0 0 3px rgba(41,151,255,0.06);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--txt-3); }

@media (max-width: 640px) {
  .contact__row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,151,255,0.15), rgba(191,90,242,0.1), transparent);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--txt-3);
}
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--txt-3); transition: color 0.3s; }
.footer__links a:hover { color: var(--txt); }

/* ═══════════════════════════════════════════════════
   3D TILT
   ═══════════════════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.03,0.98,0.52,0.99);
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: blur(4px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* stagger children */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE POLISH
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__name { line-height: 1.05; }
  .hero__stats { gap: 20px; }
  .stat { padding: 14px 20px; }
  .stat__num { font-size: 28px; }
  .btn { padding: 12px 24px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════
   GLOBAL GLASSMORPHISM UTILITIES & EFFECTS
   ═══════════════════════════════════════════════════ */

/* Gradient border shimmer — used on featured elements */
@keyframes borderShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Ambient breathing glow for glass containers */
@keyframes glassBreath {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04); }
  50%      { box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 40px rgba(41,151,255,0.03), 0 0 0 1px rgba(255,255,255,0.06); }
}

/* Selection styling */
::selection {
  background: rgba(41,151,255,0.3);
  color: #fff;
}

/* Scrollbar styling — glass theme */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* Focus-visible for accessibility glows */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(41,151,255,0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   CANVAS LIVE BACKGROUND
   ═══════════════════════════════════════════════════ */
.bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════
   HERO SOCIAL LINK PILLS
   ═══════════════════════════════════════════════════ */
.hero__links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s var(--ease) forwards;
}
.hero__link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--txt-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}
.hero__link-pill:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  color: var(--txt);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.hero__link-pill--red:hover {
  background: rgba(255,69,58,0.1);
  border-color: rgba(255,69,58,0.25);
  color: var(--red);
}
.hero__link-pill svg { flex-shrink: 0; }

/* Hero stat extra text */
.stat__extra {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════
   EDUCATION SECTION
   ═══════════════════════════════════════════════════ */
.education {
  background:
    radial-gradient(ellipse at 60% 0%, rgba(41,151,255,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(48,209,88,0.025) 0%, transparent 50%),
    var(--dark);
}
.education .bg-text__row span { -webkit-text-stroke-color: rgba(41,151,255,0.03); }

.edu__card {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(28px, 4vw, 48px);
}
.edu__icon {
  font-size: 0;
  color: var(--blue);
  flex-shrink: 0;
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(41,151,255,0.08);
  border: 1px solid rgba(41,151,255,0.12);
  transition: transform 0.4s var(--spring), background 0.3s;
}
.edu__card:hover .edu__icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(41,151,255,0.14);
}
.edu__body { flex: 1; }
.edu__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.edu__header h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.edu__degree {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--txt-2);
  margin-top: 6px;
  line-height: 1.5;
}
.edu__spec {
  display: inline-block;
  font-size: 13px;
  color: var(--blue);
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(41,151,255,0.06);
  border: 1px solid rgba(41,151,255,0.1);
  margin-left: 6px;
}
.edu__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.edu__cgpa {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
}
.edu__period, .edu__location {
  font-size: 13px;
  color: var(--txt-3);
}
.edu__coursework-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 12px;
}
.edu__pills { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .edu__card { flex-direction: column; }
  .edu__header { flex-direction: column; }
  .edu__meta { text-align: left; }
  .edu__icon { width: 56px; height: 56px; font-size: 32px; }
}

/* ═══════════════════════════════════════════════════
   PROJECT ACTION BUTTONS
   ═══════════════════════════════════════════════════ */
.project__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn--sm {
  padding: 7px 16px;
  font-size: 11px;
}
.project-featured .project__actions {
  margin-top: 18px;
}
.project-featured .btn--sm {
  padding: 9px 20px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════
   CERTIFICATION CARD — IMPROVED
   ═══════════════════════════════════════════════════ */
.cert-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-card__issuer {
  font-size: 13px;
  color: var(--txt-3);
  font-weight: 400;
}
.cert-card__detail {
  font-size: 12px;
  color: var(--txt-3);
  opacity: 0.75;
  flex: 1;
}
.cert-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease), gap 0.3s;
  align-self: flex-start;
}
.cert-card__link:hover { color: #7dc9ff; }
.cert-card .cert-card__badge {
  font-size: 0;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 4px;
  transition: transform 0.4s var(--spring);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Override certs grid to allow 7 items in a nice pattern */
@media (min-width: 900px) {
  .certs__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) and (min-width: 640px) {
  .certs__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   CONTACT GRID — responsive
   ═══════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 900px) {
  .contact__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .contact__row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   ACHIEVEMENTS GRID — 3 COLUMN
   ═══════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .achievements__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .achievements__list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   SKILL CARD HOVER GLOW — color-matched accent
   ═══════════════════════════════════════════════════ */
.skill-card[data-accent="#2997ff"]:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(41,151,255,0.06); }
.skill-card[data-accent="#bf5af2"]:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(191,90,242,0.06); }
.skill-card[data-accent="#30d158"]:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(48,209,88,0.06); }
.skill-card[data-accent="#ff9f0a"]:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(255,159,10,0.06); }
.skill-card[data-accent="#5ac8fa"]:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(90,200,250,0.06); }
.skill-card[data-accent="#ff453a"]:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(255,69,58,0.06); }

/* ═══════════════════════════════════════════════════
   ABOUT TEXT — HIGHLIGHT STRONG
   ═══════════════════════════════════════════════════ */
.about__text strong {
  color: var(--txt);
  background: linear-gradient(135deg, var(--blue), #7dc9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   SECTION DIVIDER OVERRIDE (edu after about)
   ═══════════════════════════════════════════════════ */
.education.section + .section::before {
  background: linear-gradient(90deg, transparent, rgba(41,151,255,0.3), rgba(48,209,88,0.15), transparent);
}

/* ═══════════════════════════════════════════════════
   PROJECT TOGGLE — Show/Hide
   ═══════════════════════════════════════════════════ */
.project-card--hidden {
  display: none;
}
.project-card--hidden.is-shown {
  display: block;
}
.projects__more {
  text-align: center;
  margin-top: 32px;
}
.projects__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
}
.projects__toggle svg {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.projects__toggle.is-expanded svg {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════
   DESIGN POLISH — Icon container hover states
   ═══════════════════════════════════════════════════ */

/* Intel / Security card icons scale on hover */
.intel-card:hover .intel-card__icon,
.security-card:hover .security-card__icon {
  box-shadow: 0 0 24px currentColor;
  opacity: 0.9;
}

/* Hero stats 3-col centering */
.hero__stats {
  gap: clamp(20px, 3vw, 48px);
}

/* Stat top glow line accent */
.stat:nth-child(1)::before { background: linear-gradient(90deg, transparent, rgba(41,151,255,0.3), transparent); opacity: 0; transition: opacity 0.4s; }
.stat:nth-child(2)::before { background: linear-gradient(90deg, transparent, rgba(48,209,88,0.3), transparent); }
.stat:nth-child(3)::before { background: linear-gradient(90deg, transparent, rgba(191,90,242,0.3), transparent); }
.stat:nth-child(1):hover::before { opacity: 1; }

/* More readable section sub text */
.section__sub {
  line-height: 1.75;
}

/* Cert card badge hover */
.cert-card:hover .cert-card__badge {
  transform: scale(1.1) rotate(-5deg);
}

/* Smooth project grid expansion */
.projects__grid {
  transition: none;
}
