/* ============================================
   K.V. KARNISHH — FUTURISTIC PORTFOLIO
   Deep black + electric blue + neon glow
   ============================================ */

:root {
  --bg: #02060f;
  --bg-2: #050b1a;
  --bg-3: #0a1226;
  --surface: rgba(12, 22, 44, 0.45);
  --surface-strong: rgba(15, 28, 56, 0.7);
  --border: rgba(0, 195, 255, 0.18);
  --border-strong: rgba(0, 195, 255, 0.4);
  --text: #e7f1ff;
  --text-dim: #8fa3c8;
  --text-mute: #5a6e91;
  --blue: #00c3ff;
  --blue-2: #0a84ff;
  --blue-glow: #38d8ff;
  --blue-deep: #0066ff;
  --accent: #7c5cff;
  --glow: 0 0 40px rgba(0, 195, 255, 0.45);
  --glow-soft: 0 0 80px rgba(0, 195, 255, 0.18);
  --grad-blue: linear-gradient(135deg, #00c3ff 0%, #0a84ff 50%, #7c5cff 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #38d8ff 50%, #00c3ff 100%);
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  background-image:
    radial-gradient(ellipse at top left, rgba(0, 195, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(124, 92, 255, 0.06), transparent 50%);
  min-height: 100vh;
}

::selection {
  background: rgba(0, 195, 255, 0.35);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--accent));
  border-radius: 8px;
}

/* ============================================
   NEURAL CANVAS BG
   ============================================ */
#neural-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 195, 255, 0.18) 0%, rgba(0, 195, 255, 0.06) 30%, transparent 70%);
  border-radius: 50%;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: var(--blue-glow);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue-glow), 0 0 24px var(--blue);
  transition: width 0.2s, height 0.2s;
}
.cursor-dot.active {
  width: 24px;
  height: 24px;
  background: rgba(56, 216, 255, 0.4);
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  box-shadow: 0 0 12px var(--blue);
  z-index: 10000;
  transition: width 0.1s ease;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(2, 6, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}
.logo-mark {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
}
.logo-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-glow);
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--blue-glow);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--blue-glow);
  transition: 0.3s;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    background: rgba(5, 11, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 195, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 195, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 70%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 195, 255, 0.18);
  top: -100px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(124, 92, 255, 0.15);
  bottom: -80px;
  right: -80px;
  animation: float 25s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 195, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--blue-glow);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: badgeIn 1s ease 0.2s both;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 12px #00ff88;
  animation: pulse 2s infinite;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: titleIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }
@keyframes titleIn {
  to { opacity: 1; transform: translateY(0); }
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 195, 255, 0.4));
}

.hero-subtext {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
}
.name-highlight {
  color: var(--blue-glow);
  font-weight: 500;
}
.divider {
  color: var(--text-mute);
  margin: 0 0.6rem;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.1s forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 132, 255, 0.4), 0 0 0 1px rgba(0, 195, 255, 0.3) inset;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::before {
  transform: translateX(100%);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0, 195, 255, 0.6), 0 0 0 1px rgba(0, 195, 255, 0.5) inset;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(0, 195, 255, 0.1);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}
.btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1rem;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--blue-glow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.5; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative;
  padding: 7rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  z-index: 1;
}

.section-header {
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--blue-glow);
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 195, 255, 0.05);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 195, 255, 0.3));
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   GLASS CARD BASE
   ============================================ */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.4), transparent 40%, transparent 60%, rgba(124, 92, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.glass:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 100, 200, 0.25), var(--glow-soft);
}
.glass:hover::before {
  opacity: 1;
}

.card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.18) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.glass:hover .card-glow {
  opacity: 1;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-card {
  padding: 2.5rem 2rem;
  text-align: center;
}
.about-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  animation: rotate 12s linear infinite;
}
.avatar-ring.ring-2 {
  inset: 14px;
  border: 1px dashed rgba(0, 195, 255, 0.3);
  animation: rotate 9s linear infinite reverse;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}
.avatar-core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 0 40px rgba(0, 195, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.about-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
}
.about-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue-glow);
  letter-spacing: 0.05em;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-dim);
}
.about-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.about-text p {
  margin-bottom: 1.2rem;
}
.highlight {
  color: var(--blue-glow);
  font-weight: 500;
}
.highlight-strong {
  color: var(--blue-glow);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.hobby-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}
.hobby-card:hover {
  background: rgba(0, 195, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.hobby-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(0, 195, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-glow);
}
.hobby-icon svg {
  width: 22px;
  height: 22px;
}
.hobby-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.hobby-card p {
  font-size: 0.82rem;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 0;
}

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

/* ============================================
   ACHIEVEMENTS
   ============================================ */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.achieve-card {
  padding: 2.2rem;
  position: relative;
}
.achieve-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(0, 195, 255, 0.5));
}
.achieve-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue-glow);
  margin-bottom: 0.6rem;
}
.achieve-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.achieve-card p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.achieve-bar {
  position: relative;
  height: 6px;
  background: rgba(0, 195, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}
.achieve-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-blue);
  border-radius: 100px;
  box-shadow: 0 0 16px rgba(0, 195, 255, 0.6);
  transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.achieve-percent {
  position: absolute;
  right: 0;
  top: -22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-glow);
  letter-spacing: 0.05em;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.8rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.project-visual {
  position: relative;
  height: 220px;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 195, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #061029 0%, #0a1838 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 195, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 195, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
}
.project-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.project-orb.orb-purple {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.project-svg {
  position: relative;
  width: 110px;
  height: 110px;
  color: var(--blue-glow);
  filter: drop-shadow(0 0 20px rgba(0, 195, 255, 0.6));
  animation: rotate 30s linear infinite;
  z-index: 1;
}
.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.8rem;
  background: rgba(2, 6, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--blue-glow);
  backdrop-filter: blur(10px);
}
.project-body {
  padding: 1.8rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.project-emoji {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(0, 195, 255, 0.4));
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.project-body > p {
  color: var(--text-dim);
  margin-bottom: 1.4rem;
  flex: 1;
  line-height: 1.6;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.project-stack span {
  padding: 0.3rem 0.7rem;
  background: rgba(0, 195, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.project-actions {
  display: flex;
  gap: 0.7rem;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: var(--grad-blue);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: none;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3);
}
.btn-mini svg {
  width: 14px;
  height: 14px;
}
.btn-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 195, 255, 0.5);
}
.btn-mini.ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-mini.ghost:hover {
  background: rgba(0, 195, 255, 0.08);
  border-color: var(--border-strong);
}

/* ============================================
   TIMELINE / INTERNSHIPS
   ============================================ */
.timeline {
  position: relative;
  padding-left: 60px;
  max-width: 800px;
}
.timeline-line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-node {
  position: absolute;
  left: -54px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue);
}
.node-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  animation: nodePulse 2s ease-out infinite;
}
@keyframes nodePulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.timeline-card {
  padding: 1.8rem 2rem;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.timeline-icon {
  font-size: 1.4rem;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue-glow);
  letter-spacing: 0.2em;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 195, 255, 0.05);
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.timeline-card p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.timeline-skills span {
  padding: 0.3rem 0.7rem;
  background: rgba(0, 195, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ============================================
   EXTRAS
   ============================================ */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.extra-card {
  padding: 2.2rem;
  text-align: center;
}
.extra-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(0, 195, 255, 0.5));
  transition: transform 0.4s;
}
.extra-card:hover .extra-icon {
  transform: scale(1.15) rotate(-5deg);
}
.extra-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.extra-level {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  border: 1px solid;
}
.level-state {
  background: rgba(0, 255, 170, 0.08);
  color: #00ffaa;
  border-color: rgba(0, 255, 170, 0.3);
}
.level-school {
  background: rgba(0, 195, 255, 0.08);
  color: var(--blue-glow);
  border-color: var(--border-strong);
}
.level-academy {
  background: rgba(124, 92, 255, 0.1);
  color: #a999ff;
  border-color: rgba(124, 92, 255, 0.4);
}
.extra-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================
   VISION
   ============================================ */
.vision-section {
  position: relative;
}
.vision-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 195, 255, 0.08), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(124, 92, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.vision-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.vision-quote {
  position: relative;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-mark {
  position: absolute;
  top: 1.5rem;
  left: 1.8rem;
  width: 60px;
  height: 60px;
  color: var(--blue);
  opacity: 0.3;
}
.vision-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.vision-signature {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-glow);
  letter-spacing: 0.1em;
}

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pillar {
  position: relative;
  padding: 1.5rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  flex: 1;
}
.pillar:hover {
  border-color: var(--border-strong);
  transform: translateX(8px);
  box-shadow: -8px 0 32px rgba(0, 195, 255, 0.15);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--blue-glow);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.pillar p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .vision-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  position: relative;
  display: flex;
  justify-content: center;
}
.contact-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.15), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.contact-card {
  width: 100%;
  max-width: 800px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.contact-card .section-tag {
  display: inline-block;
}
.contact-card .section-title {
  margin-bottom: 1rem;
}
.contact-text {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-mute);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0, 195, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15), 0 0 20px rgba(0, 195, 255, 0.2);
}
.contact-form button {
  margin-top: 0.5rem;
  align-self: center;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.social svg {
  width: 18px;
  height: 18px;
}
.social:hover {
  color: var(--blue-glow);
  border-color: var(--border-strong);
  background: rgba(0, 195, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 2.5rem 1.5rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 3rem 2rem 2rem;
  z-index: 1;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
  box-shadow: 0 0 12px var(--blue);
  margin-bottom: 2.5rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.2em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.15em;
}
.footer-center {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-arabic {
  font-size: 0.95rem;
  color: var(--blue-glow);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}
.footer-translation {
  color: var(--text-mute);
  font-size: 0.75rem;
  margin-left: 0.4rem;
  font-style: italic;
}
.footer-right {
  text-align: right;
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  transition: all 0.3s;
}
.back-top svg {
  width: 14px;
  height: 14px;
}
.back-top:hover {
  color: var(--blue-glow);
  border-color: var(--border-strong);
  background: rgba(0, 195, 255, 0.06);
  box-shadow: var(--glow-soft);
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-right { text-align: center; }
}

/* ============================================
   RESPONSIVE TUNES
   ============================================ */
@media (max-width: 700px) {
  .section { padding: 5rem 1.2rem; }
  .hero { padding: 5rem 1.2rem 3rem; }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
  }
  .stat-divider {
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
}
