/* ============================================================
   KYLE — CYBERPUNK PORTFOLIO
   style.css  |  Pure CSS3  |  No frameworks
   ============================================================ */

/* ---- CUSTOM PROPERTIES ------------------------------------ */
:root {
  /* Colors */
  --bg:        #0A0F14;
  --surface:   #111827;
  --glass:     rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  --cyan:     #00F5FF;
  --purple:   #8A2BE2;
  --emerald:  #00FF9C;
  --danger:   #FF3366;

  --text-primary: #E6F1FF;
  --text-muted:   #94A3B8;

  /* Glows */
  --glow-cyan:   0 0 20px rgba(0, 245, 255, 0.6);
  --glow-purple: 0 0 20px rgba(138, 43, 226, 0.6);
  --glow-sm:     0 0 8px  rgba(0, 245, 255, 0.4);

  /* Typography */
  --font-head: 'Orbitron', monospace;
  --font-body: 'Inter', sans-serif;

  /* Sizes */
  --h1: clamp(40px, 6vw, 64px);
  --h2: clamp(28px, 4vw, 42px);
  --h3: 28px;
  --body: 18px;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1200px;
  --radius:      12px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; }
ul { list-style: none; }

::selection {
  background: rgba(0, 245, 255, 0.25);
  color: var(--cyan);
}

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}

/* ---- UTILITIES -------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.neon-cyan   { color: var(--cyan);   font-style: normal; }
.neon-purple { color: var(--purple); font-style: normal; }

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.section-tag {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 16px;
}

/* Fade-up base state (animated by GSAP) */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ---- CUSTOM CURSOR ---------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: var(--glow-sm);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 245, 255, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s;
}

.cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
}

/* ---- LOADING SCREEN --------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.loader-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 2.5s linear infinite;
  opacity: 0.6;
}

@keyframes scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 0.6; }
  95%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.loader-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 8px;
  animation: glitch 3s infinite;
  position: relative;
}

.loader-logo::before,
.loader-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.loader-logo::before {
  color: var(--purple);
  animation: glitch-1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  left: -2px;
}

.loader-logo::after {
  color: var(--emerald);
  animation: glitch-2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  left: 2px;
}

@keyframes glitch {
  0%, 85%, 100% { transform: none; }
  86%  { transform: skewX(-3deg); }
  88%  { transform: skewX(3deg); }
  90%  { transform: none; }
}

@keyframes glitch-1 {
  0%, 85%, 100% { opacity: 0; transform: none; }
  86%  { opacity: 0.8; transform: translate(-3px); }
  90%  { opacity: 0; }
}

@keyframes glitch-2 {
  0%, 88%, 100% { opacity: 0; transform: none; }
  89%  { opacity: 0.8; transform: translate(3px); }
  92%  { opacity: 0; }
}

.loader-messages {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-muted);
  height: 20px;
}

.loader-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 320px;
}

.loader-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: visible;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
  transition: width 0.1s linear;
  position: relative;
}

.loader-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-sm);
}

.loader-percent {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cyan);
}

/* ---- NAVIGATION ------------------------------------------ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  padding: 0;
  transition: background 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cursor {
  color: var(--cyan);
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
  box-shadow: var(--glow-sm);
}

.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  position: relative;
  padding: 8px 24px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 4px;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
}

.nav-cta span { position: relative; z-index: 1; }

.nav-cta:hover {
  color: var(--bg);
  box-shadow: var(--glow-sm);
}

.nav-cta:hover::before { transform: translateX(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10, 15, 20, 0.97);
  border-top: 1px solid var(--glass-border);
  padding: 20px clamp(20px, 5vw, 60px);
  gap: 20px;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--cyan); }

.mobile-menu.open { display: flex; }

/* ---- HERO SECTION ---------------------------------------- */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  background-image: 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: 3;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideDown 0.8s 0.2s var(--ease-out) forwards;
}

.label-bracket { opacity: 0.5; }

.hero-title {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-line[data-line="0"] { animation: heroLineIn 0.7s 0.5s var(--ease-out) forwards; }
.hero-line[data-line="1"] { animation: heroLineIn 0.7s 0.7s var(--ease-out) forwards; }
.hero-line[data-line="2"] { animation: heroLineIn 0.7s 0.9s var(--ease-out) forwards; }

@keyframes heroLineIn {
  to { opacity: 1; transform: none; }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

.hero-title em {
  font-style: normal;
  text-shadow: var(--glow-cyan);
}

.hero-title .neon-purple { text-shadow: var(--glow-purple); }

.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeSlideDown 0.8s 1.1s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideDown 0.8s 1.3s var(--ease-out) forwards;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.cta-btn:hover {
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.6),
              0 0 80px rgba(0, 245, 255, 0.2);
}

.btn-inner { position: relative; z-index: 1; }

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  opacity: 0;
  transition: opacity 0.4s;
}

.cta-btn:hover .btn-glow { opacity: 1; }

.hero-ghost-btn {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.hero-ghost-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeSlideDown 0.8s 1.8s var(--ease-out) forwards;
}

.scroll-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(148, 163, 184, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: 0%;   opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Corner decorations */
.hero-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
  opacity: 0.4;
}

.hero-corner-tl { top: 24px; left: 24px;
  border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hero-corner-tr { top: 24px; right: 24px;
  border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.hero-corner-bl { bottom: 24px; left: 24px;
  border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hero-corner-br { bottom: 24px; right: 24px;
  border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

/* ---- ABOUT SECTION --------------------------------------- */
#about {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 50%; left: -200px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.08), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* Holographic Card */
.about-visual {
  position: relative;
}

.holographic-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: var(--surface);
  aspect-ratio: 3/4;
  max-height: 480px;
}

.holo-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), #1a2332);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--text-muted);
}

.holo-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0.7;
  animation: holoScan 3s ease-in-out infinite;
}

@keyframes holoScan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

.holo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0, 245, 255, 0.04) 0%,
    transparent 50%,
    rgba(138, 43, 226, 0.04) 100%);
  pointer-events: none;
}

.holo-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 245, 255, 0.015) 3px,
    rgba(0, 245, 255, 0.015) 4px
  );
  pointer-events: none;
}

.holo-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.7;
}
.holo-tl { top: 12px; left: 12px;
  border-width: 1.5px 0 0 1.5px; }
.holo-tr { top: 12px; right: 12px;
  border-width: 1.5px 1.5px 0 0; }
.holo-bl { bottom: 12px; left: 12px;
  border-width: 0 0 1.5px 1.5px; }
.holo-br { bottom: 12px; right: 12px;
  border-width: 0 1.5px 1.5px 0; }

/* Stat Cards */
.stat-cards {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  justify-content: flex-start;
}

.floating-stat {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  animation: float 4s var(--sd, 0s) ease-in-out infinite alternate;
  backdrop-filter: blur(10px);
}

@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

/* About Content */
.about-content .section-tag { margin-bottom: 16px; }

.about-content h2 {
  font-family: var(--font-head);
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 28px;
}

.about-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.25);
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.05);
  transition: background 0.3s, border-color 0.3s;
}

.tag:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: rgba(0, 245, 255, 0.5);
}

/* ---- EDUCATION TIMELINE ---------------------------------- */
.edu-timeline {
  margin-top: 72px;
}

.edu-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 32px;
}

.edu-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), rgba(0,245,255,0.1));
}

.edu-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 28px;
}

.edu-item:last-child { padding-bottom: 0; }

.edu-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.edu-dot {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin-top: 4px;
  flex-shrink: 0;
}

.edu-item--active .edu-dot {
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px rgba(0,245,255,0.4);
}

.edu-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.edu-year {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cyan);
  white-space: nowrap;
  padding-top: 2px;
  padding-left: 28px;
}

.edu-item--active .edu-year {
  color: var(--cyan);
  text-shadow: var(--glow-sm);
}

.edu-body {
  padding: 18px 22px;
  border-radius: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.edu-body:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--cyan), 0 8px 32px rgba(0,245,255,0.08);
}

.edu-item--active .edu-body {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: -3px 0 0 var(--cyan), 0 4px 24px rgba(0,245,255,0.1);
}

.edu-level {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.edu-item--active .edu-level {
  color: var(--cyan);
}

.edu-school {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.edu-strand {
  font-size: 13px;
  color: var(--cyan);
  margin: 2px 0 4px;
  font-weight: 500;
}

.edu-location {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.edu-loc-icon {
  color: var(--cyan);
  font-style: normal;
  margin-right: 2px;
}

@media (max-width: 600px) {
  .edu-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .edu-year {
    padding-left: 28px;
    padding-top: 0;
  }
}

/* ---- SKILLS SECTION -------------------------------------- */
#skills {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, transparent, rgba(138, 43, 226, 0.04), transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-group {
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(138, 43, 226, 0.1);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sg-icon {
  font-size: 20px;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
}

.skill-group-header h3 {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.skill-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar {}

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.skill-meta span:first-child { color: var(--text-primary); }

.sp {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--cyan);
}

.skill-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  transition: width 1.2s var(--ease-out);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-sm);
  opacity: 0;
  transition: opacity 0.3s 1s;
}

.skill-fill.animated::after { opacity: 1; }

/* ---- PROJECTS SECTION ------------------------------------ */
#projects {
  padding: var(--section-pad) 0;
  position: relative;
}

#projects::after {
  content: '';
  position: absolute;
  bottom: 0; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: none;
  transition: transform 0.3s;
}

.project-card.featured {
  border-color: rgba(138, 43, 226, 0.3);
}

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--purple);
  border: 1px solid rgba(138, 43, 226, 0.5);
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(138, 43, 226, 0.1);
}

.pc-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0d1520;
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.pc-img-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), #0d1520);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--text-muted);
}

.pc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 30%,
    rgba(10, 15, 20, 0.6) 100%);
}

.pc-number {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
}

.project-card:hover .pc-img img {
  transform: scale(1.05);
}

.pc-body {
  padding: 24px 28px 28px;
}

.pc-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.project-card:hover .pc-body h3 { color: var(--cyan); }

.pc-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pc-tags span {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 4px 10px;
  border-radius: 3px;
}

.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  background: none;
  border-top: none; border-left: none; border-right: none;
}

.pc-cta:hover { border-bottom-color: var(--cyan); }

.pc-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  pointer-events: none;
}

.project-card:hover .pc-border-glow {
  border-color: rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.06),
              inset 0 0 40px rgba(0, 245, 255, 0.02);
}

/* ---- CREATIVE LAB ---------------------------------------- */
#lab {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, transparent, rgba(138, 43, 226, 0.04), transparent);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.lab-card {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.lab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(138, 43, 226, 0.12);
}

.resource-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 86px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(138, 43, 226, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.resource-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
  transition: filter 0.3s, transform 0.3s;
}

.lab-card:hover .resource-logo {
  filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.55));
  transform: scale(1.08);
}

.resource-visit-btn {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.4);
  padding: 7px 18px;
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.05);
  transition: background 0.3s, border-color 0.3s;
  text-decoration: none;
}

.resource-visit-btn:hover {
  background: rgba(0, 245, 255, 0.14);
  border-color: rgba(0, 245, 255, 0.7);
}

/* --- See More / Extra Grid -------------------------------- */
.lab-grid-extra {
  display: none;
  margin-top: 24px;
}

.lab-grid-extra.visible {
  display: grid;
  animation: labExtraReveal 0.5s ease both;
}

.certs-grid-extra {
  display: none;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.certs-grid-extra.visible {
  display: grid;
  animation: labExtraReveal 0.5s ease both;
}

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

.lab-see-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.lab-see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.35);
  padding: 12px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.lab-see-more-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: rgba(0, 245, 255, 0.65);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.see-more-arrow {
  display: inline-block;
  transition: transform 0.35s;
  font-size: 14px;
}

.lab-see-more-btn.open .see-more-arrow {
  transform: rotate(180deg);
}

.lab-see-more-btn.open .see-more-text::after {
  content: '';
}

.lab-body {
  padding: 20px 24px 24px;
}

.lab-tag-chip {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--purple);
  border: 1px solid rgba(138, 43, 226, 0.4);
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(138, 43, 226, 0.08);
  margin-bottom: 12px;
}

.lab-body h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.lab-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CONTACT SECTION ------------------------------------- */
#contact {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse,
    rgba(0, 245, 255, 0.04) 0%,
    transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 16px;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ci-icon {
  font-size: 22px;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
  margin-top: 2px;
  flex-shrink: 0;
}

.ci-item h4 {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ci-item p {
  font-size: 15px;
  color: var(--text-primary);
}

.status-available {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald) !important;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.7; }
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass);
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-link:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: var(--glow-sm);
}

/* Contact Form */
.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 16px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: none;
}

.form-input:focus,
.form-input:not(:placeholder-shown) {
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.03);
}

.form-label {
  position: absolute;
  left: 16px; top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.25s var(--ease), font-size 0.25s, color 0.25s;
  transform-origin: left top;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-28px) scale(0.8);
  color: var(--cyan);
}

.form-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--cyan);
  box-shadow: var(--glow-sm);
  border-radius: 1px;
  transition: width 0.4s var(--ease-out);
}

.form-input:focus ~ .form-line { width: 100%; }

.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 32px;
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.4) !important;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  overflow: hidden;
  transition: color 0.3s, box-shadow 0.3s;
}

.sb-text, .sb-arrow {
  position: relative;
  z-index: 1;
}

.sb-glow {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.submit-btn:hover .sb-glow { transform: scaleX(1); }
.submit-btn:hover { color: var(--bg); box-shadow: var(--glow-cyan); }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.form-success.visible { display: flex; }

.success-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--emerald);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
  animation: successPop 0.5s var(--ease-out) forwards;
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.form-success p { color: var(--emerald); font-weight: 600; }
.form-success small { color: var(--text-muted); }

/* ---- FOOTER ---------------------------------------------- */
#footer {
  position: relative;
  padding: 60px 0 40px;
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
}

.footer-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---- PROJECT MODAL --------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border) !important;
  background: var(--glass) !important;
  color: var(--text-muted) !important;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.modal-close:hover {
  color: var(--cyan) !important;
  border-color: rgba(0, 245, 255, 0.4) !important;
  box-shadow: var(--glow-sm) !important;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 480px;
}

.modal-img-wrap {
  position: relative;
  overflow: hidden;
  background: #070c11;
  border-radius: var(--radius) 0 0 var(--radius);
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), #0d1520);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--text-muted);
}

.modal-details {
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-num {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.modal-details h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
}

.modal-details p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags span {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 4px 10px;
  border-radius: 3px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 4px;
  transition: box-shadow 0.3s, opacity 0.3s;
}

.modal-btn:hover {
  box-shadow: var(--glow-cyan);
  opacity: 0.9;
}

.modal-btn.outline {
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.4) !important;
}

.modal-btn.outline:hover {
  background: rgba(0, 245, 255, 0.07);
}

/* ---- CERTIFICATES SECTION -------------------------------- */
#certificates {
  padding: var(--section-pad) 0;
  position: relative;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  cursor: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(0, 245, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cert-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #070c11;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.35s;
}

.cert-card:hover .cert-img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.cert-img-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface) 0%, #0d1520 100%);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

.cert-icon {
  font-size: 32px;
  color: var(--cyan);
  opacity: 0.5;
}

.cert-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: rgba(0, 245, 255, 0.07);
}

.cert-card:hover .cert-hover-overlay {
  opacity: 1;
}

.cert-view-btn {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  background: rgba(10, 15, 20, 0.75);
  border: 1px solid rgba(0, 245, 255, 0.4);
  padding: 8px 20px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  text-shadow: var(--glow-sm);
  transition: box-shadow 0.3s;
}

.cert-view-btn:hover {
  box-shadow: var(--glow-cyan);
}

.cert-body {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--glass-border);
}

.cert-issuer {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--cyan);
  opacity: 0.7;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cert-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ---- CERTIFICATE LIGHTBOX -------------------------------- */
.cert-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8500;
  align-items: center;
  justify-content: center;
}

.cert-lightbox.open {
  display: flex;
}

.cert-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cert-lb-panel {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 860px);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: lbFadeIn 0.3s var(--ease-out) both;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.cert-lb-img-wrap {
  position: relative;
  width: 100%;
  background: #070c11;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 62vh;
  overflow: hidden;
}

.cert-lb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 62vh;
}

.cert-lb-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface), #0d1520);
}

.cert-lb-info {
  padding: 16px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.cert-lb-counter {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.cert-lb-info h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-shadow: var(--glow-sm);
}

.cert-lb-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.cert-lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.8);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cert-lb-close:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: var(--glow-sm);
}

.cert-lb-nav {
  position: relative;
  z-index: 10;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.8);
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(6px);
}

.cert-lb-prev { margin-right: 16px; }
.cert-lb-next { margin-left: 16px;  }

.cert-lb-nav:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: var(--glow-sm);
}

/* ---- MAGNETIC BUTTON BASE -------------------------------- */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease);
}

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 480px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .ci-item { flex: 1; min-width: 200px; }
}

@media (max-width: 768px) {
  :root {
    --h1: clamp(32px, 9vw, 48px);
    --h2: clamp(24px, 6vw, 34px);
  }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .skills-grid   { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .lab-grid      { grid-template-columns: 1fr; }
  .certs-grid    { grid-template-columns: repeat(2, 1fr); }

  .modal-body { grid-template-columns: 1fr; }
  .modal-img-wrap {
    aspect-ratio: 16/9;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .contact-form { padding: 28px 20px; }
  .stat-cards { gap: 10px; }
  .floating-stat { padding: 12px 8px; }
  .stat-num { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-ghost-btn { display: none; }
  .about-grid { gap: 32px; }
  .contact-info { flex-direction: column; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-lb-prev { margin-right: 6px; }
  .cert-lb-next { margin-left:  6px; }
}

/* ---- SCROLLBAR on modal ---------------------------------- */
.modal-panel::-webkit-scrollbar       { width: 4px; }
.modal-panel::-webkit-scrollbar-track { background: var(--surface); }
.modal-panel::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 2px;
}

/* ---- REDUCED MOTION -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
