/* ===================================================================
   VARIABLES & COLOR SYSTEM (MODERN LUXURY CELESTIAL INDIGO & CYAN)
=================================================================== */
:root {
  /* Backgrounds */
  --bg-dark: #070a13;
  --bg-deep: #090e1c;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 33, 62, 0.85);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accents */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-amber: #f59e0b;

  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
  --cyan-indigo-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(99, 102, 241, 0.16);
  --glass-highlight: rgba(6, 182, 212, 0.3);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);

  /* Fonts */
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(ellipse at 50% -10%, #0d1633 0%, #080d1e 35%, var(--bg-dark) 75%);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ===================================================================
   SCROLL PROGRESS INDICATOR
=================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 10003;
  box-shadow: 0 0 12px var(--accent-cyan), 0 0 24px rgba(99, 102, 241, 0.5);
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ===================================================================
   CINEMATIC LETTERBOX BARS
=================================================================== */
.letterbox-bar {
  position: fixed;
  left: 0;
  width: 100%;
  background: #000;
  z-index: 9999;
  pointer-events: none;
  height: 60px;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }
.letterbox-bar.open {
  height: 0;
  transition: height 1.4s var(--easing);
}

@media (max-width: 768px) {
  .letterbox-bar { height: 35px; }
}

/* ===================================================================
   BACKGROUNDS & 3D CANVAS
=================================================================== */
#canvas-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.02;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 55% at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(3, 5, 12, 0.6) 100%),
    radial-gradient(ellipse 55% 45% at 5% 95%, rgba(99, 102, 241, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
}

/* ===================================================================
   CUSTOM CURSOR
=================================================================== */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--accent-cyan);
  margin-left: -4px; margin-top: -4px;
}
.cursor-outline {
  width: 38px; height: 38px;
  margin-left: -19px; margin-top: -19px;
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

body.cursor-interactive .cursor-dot {
  width: 10px; height: 10px;
  margin-left: -5px; margin-top: -5px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}
body.cursor-interactive .cursor-outline {
  width: 48px; height: 48px;
  margin-left: -24px; margin-top: -24px;
  border: 2px solid var(--accent-cyan);
  background-color: rgba(6, 182, 212, 0.08);
}

/* ===================================================================
   FLOATING NAVBAR
=================================================================== */
.glass-nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 92%; max-width: 1240px;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: #ffffff;
}

.logo-symbol {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.45rem;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

.highlight { color: var(--accent-cyan); }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#mobile-toggle { display: none; }

/* ===================================================================
   HERO SECTION
=================================================================== */
section {
  min-height: 100vh;
  padding: clamp(90px, 9vw, 120px) clamp(18px, 6vw, 10%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  max-width: 650px;
  z-index: 10;
}

.pre-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-name-header {
  font-family: var(--font-header);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.gradient-name-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.role-container {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  margin: 15px 0;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.role-prefix {
  font-size: 0.95rem;
  color: var(--accent-indigo);
}

.typewriter {
  color: #ffffff;
  font-weight: 600;
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--accent-cyan);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: clamp(0.98rem, 2vw, 1.05rem);
  margin-bottom: 1.5rem;
}

.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-quote-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.85rem 1.2rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.hero-quote-box i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* CTA Group */
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  border-radius: 0.65rem;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-indigo-glow);
  transition: all 0.25s ease;
}
.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  border-radius: 0.65rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-secondary-glass:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  border-radius: 0.65rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Social Strip */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.hero-social-icon:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

/* Hero Photo Card */
.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-wrapper {
  position: relative;
  width: clamp(260px, 26vw, 360px);
  height: clamp(260px, 26vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(12px);
  opacity: 0.7;
  animation: spin-glow 8s linear infinite;
}

@keyframes spin-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.photo-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(15, 23, 42, 0.9);
  background: var(--bg-deep);
  z-index: 2;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.photo-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.photo-frame-inner:hover img {
  transform: scale(1.05);
}

.photo-floating-pill {
  position: absolute;
  bottom: -15px;
  right: -10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.photo-floating-pill strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.2;
}
.photo-floating-pill span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px; left: 10%;
  display: flex; align-items: center; gap: 15px;
  font-size: 0.78rem; letter-spacing: 2px; color: var(--text-dim);
  font-family: var(--font-mono);
}
.mouse-icon {
  width: 22px; height: 34px;
  border: 2px solid var(--text-dim);
  border-radius: 11px;
  position: relative;
}
.wheel {
  width: 2px; height: 6px; background: var(--accent-cyan);
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ===================================================================
   METRICS BANNER
=================================================================== */
.metrics-banner-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: -1rem auto 2rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.metric-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.metric-stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}
.m-val {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  background: var(--cyan-indigo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.m-lab {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===================================================================
   SECTION HEADERS
=================================================================== */
.section-header {
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-title {
  font-family: var(--font-header);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
}
.line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  flex: 1;
}

/* ===================================================================
   ABOUT ME SECTION
=================================================================== */
.about-subheading {
  font-family: var(--font-header);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-goal {
  margin: 1.8rem 0;
  border-left: 3px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
  padding: 1.1rem 1.4rem;
  border-radius: 0 0.8rem 0.8rem 0;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.about-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
}
.spec-card i {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}
.spec-card span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.spec-card strong {
  font-size: 0.9rem;
  color: #ffffff;
}

.about-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.resume-btn, .hire-me-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-header);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.resume-btn {
  color: #ffffff;
  background: var(--accent-cyan);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}
.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

.hire-me-btn {
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  background: transparent;
}
.hire-me-btn:hover {
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

/* ===================================================================
   CARDS & EXPERIENCE
=================================================================== */
.glass-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.25rem;
  padding: clamp(22px, 3vw, 32px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--glass-highlight);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-cyan-glow);
}

.tech-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 12px;
}

.exp-dates {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.card-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 0.4rem;
  font-family: var(--font-mono);
}

.exp-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.2rem 0;
}

.exp-bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.exp-bullet-list li::before {
  content: '▹';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}
.exp-bullet-list strong {
  color: #ffffff;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.chip {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.1);
}

/* ===================================================================
   PROJECTS GALLERY
=================================================================== */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 2rem;
}

.project-card {
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px);
}

.card-hint {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .card-hint {
  opacity: 1;
}

.card-content h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.project-mini-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.project-mini-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.project-mini-bullets li::before {
  content: '⚡';
  position: absolute;
  left: 0; top: 0.1rem;
  font-size: 0.75rem;
}

.card-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.link-btn {
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* ===================================================================
   SKILLS GRID
=================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.skill-block {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 22px 16px;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.25s ease;
  overflow: hidden;
}
.skill-block:hover {
  background: rgba(22, 33, 62, 0.9);
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

.skill-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.skill-block h4 {
  font-family: var(--font-header);
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.skill-percent {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}
.skill-loader {
  min-height: 14px;
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

/* ===================================================================
   EDUCATION SECTION
=================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 850px;
  margin: 0 auto;
  gap: 2rem;
}

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.edu-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-level-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.edu-body h3 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.edu-university {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-location {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   CERTIFICATIONS SECTION
=================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.cert-modern-card {
  padding: 2rem;
}

.cert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cert-rings-symbol {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-size: 1.3rem;
}

.cert-verified-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.cert-modern-card h3 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.cert-issuer-text {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cert-details-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   RESUME SECTION
=================================================================== */
.resume-wrapper {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.resume-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.resume-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-header);
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.resume-action-btn.primary-action {
  color: #ffffff;
  background: var(--accent-cyan);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}
.resume-action-btn.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

.resume-action-btn.secondary-action {
  color: var(--accent-cyan);
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
}
.resume-action-btn.secondary-action:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

.resume-frame-container {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  background: rgba(15, 23, 42, 0.5);
  position: relative;
}

.resume-embed {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
}

.resume-fallback {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}
.resume-fallback-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.resume-mobile-card {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  background: var(--bg-card);
  text-align: center;
}
.resume-mobile-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
}
.resume-mobile-title {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: #ffffff;
}
.resume-mobile-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
}
.resume-mobile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===================================================================
   CONTACT SECTION
=================================================================== */
.contact-panel {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.contact-left {
  background: rgba(9, 14, 28, 0.7);
  padding: clamp(30px, 4vw, 50px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h2 {
  font-family: var(--font-header);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-direct-items {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.direct-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.direct-contact-row i {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}
.direct-contact-row span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.direct-contact-row a, .direct-contact-row p {
  color: #ffffff;
  font-size: 0.92rem;
  text-decoration: none;
}
.direct-contact-row a:hover {
  color: var(--accent-cyan);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.social-links a:hover {
  color: var(--accent-cyan);
}

#contact-form {
  flex: 1.3;
  padding: clamp(30px, 4vw, 50px);
}

.form-group {
  position: relative;
  margin-bottom: 28px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 0;
  outline: none;
  font-family: var(--font-body);
}
.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  top: 10px; left: 0;
  color: var(--text-dim);
  pointer-events: none;
  transition: 0.25s ease all;
}
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
  top: -18px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
}
.form-group input:focus, .form-group textarea:focus {
  border-bottom-color: var(--accent-cyan);
}

.submit-btn {
  background: var(--accent-cyan);
  color: #ffffff;
  border: none;
  padding: 12px 35px;
  font-family: var(--font-header);
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
  transition: all 0.25s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

/* ===================================================================
   SLIDE-OUT PROJECT DETAILS HOVER PANEL
=================================================================== */
.hover-panel {
  position: fixed;
  top: 0; right: 0;
  width: 42%;
  max-width: 520px;
  height: 100vh;
  background: rgba(9, 14, 28, 0.95);
  backdrop-filter: blur(24px);
  border-left: 2px solid var(--accent-cyan);
  z-index: 10005;
  padding: 50px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
}

.hover-panel.active {
  transform: translateX(0);
}

.close-panel-btn {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-panel-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.panel-content h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.panel-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===================================================================
   FOOTER
=================================================================== */
footer {
  text-align: center;
  padding: 50px 24px 30px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deep);
}

.footer-analytics {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  background: var(--bg-card);
}
.footer-analytics h3 {
  font-family: var(--font-header);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.github-contribution-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.github-contribution-graph {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================================================
   PRELOADER
=================================================================== */
#preloader {
  position: fixed; inset: 0; background: #050811; z-index: 10000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 0.5s ease;
}
.cyber-loader {
  width: 60px; height: 60px;
  border: 4px solid var(--accent-cyan);
  border-left-color: transparent; border-right-color: transparent;
  border-radius: 50%; animation: spin 1s linear infinite;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}
.loader-text {
  margin-top: 20px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 2px;
  font-size: 0.9rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ===================================================================
   SCROLL REVEAL ANIMATIONS
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.delay-100 { transition-delay: 0.12s; }

/* ===================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
=================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-social-row {
    justify-content: center;
  }
  .cta-group {
    justify-content: center;
  }
  .metrics-banner-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    flex-direction: column;
  }
  .hover-panel {
    width: 60%;
  }
}

@media (max-width: 768px) {
  /* Cursor */
  .cursor-dot, .cursor-outline { display: none; }
  * { cursor: auto !important; }

  /* Navbar */
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(80%, 300px);
    padding: 90px 24px;
    background: rgba(7, 10, 19, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center; align-items: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .nav-links.active { transform: translateX(0); }

  #nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
  }
  #nav-backdrop.active { display: block; }

  #mobile-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: transparent; border: none; z-index: 1001;
  }
  #mobile-toggle span {
    width: 26px; height: 2px; background: #fff; transition: 0.3s;
  }
  #mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  #mobile-toggle.active span:nth-child(2) { opacity: 0; }
  #mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Sections */
  section { padding: 80px 5%; }
  .section-title { font-size: 2rem; }
  .about-specs-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: 1fr; }

  /* Resume on Mobile */
  .resume-frame-container { display: none; }
  .resume-actions { display: none; }
  .resume-mobile-card { display: flex; }

  /* Hover Panel Bottom Sheet on Mobile */
  .hover-panel {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; max-width: none; height: auto; max-height: 70vh;
    border-left: none; border-top: 2px solid var(--accent-cyan);
    border-radius: 20px 20px 0 0;
    padding: 30px 20px;
    transform: translateY(100%);
  }
  .hover-panel.active { transform: translateY(0); }
}

@media (max-width: 480px) {
  .hero-name-header { font-size: 2.3rem; }
  .metrics-banner-container { grid-template-columns: 1fr; }
  .btn-primary-glow, .btn-secondary-glass, .btn-outline-cyan { width: 100%; justify-content: center; }
  .about-buttons { flex-direction: column; }
  .resume-btn, .hire-me-btn { width: 100%; justify-content: center; }
}
