/* ============================================
   ARHAM MALIK — Portfolio Design System
   Tech-Focused · Animated · Premium
   ============================================ */

:root {
  --bg-dark: #030306;
  --bg-surface: #0a0a12;
  --card-bg: rgba(12, 12, 20, 0.6);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-glow: rgba(0, 240, 255, 0.25);
  --text-primary: #f0f2f8;
  --text-secondary: #8892b0;
  --accent-1: #00f0ff;
  --accent-2: #a855f7;
  --accent-3: #6366f1;
  --accent-green: #22c55e;
  --accent-orange: #f97316;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide default cursor on desktop */
@media (hover: hover) {
  * { cursor: none !important; }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-terminal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-1);
  max-width: 500px;
  width: 90%;
  text-align: left;
}

.preloader-terminal .line {
  opacity: 0;
  transform: translateY(10px);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.preloader-terminal .line.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}

.preloader-terminal .line .comment { color: var(--text-secondary); }
.preloader-terminal .line .success { color: var(--accent-green); }
.preloader-terminal .line .warn { color: var(--accent-orange); }
.preloader-terminal .line .highlight { color: var(--accent-2); }

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-1);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring), background-color 0.25s, border-color 0.25s;
  mix-blend-mode: difference;
}

.custom-cursor.hovering {
  width: 56px;
  height: 56px;
  background-color: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-2);
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--accent-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

@media (hover: none) {
  .custom-cursor, .custom-cursor-dot { display: none; }
}

/* ============================================
   PARTICLE CANVAS BACKGROUND
   ============================================ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mono-heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-1);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mono-label {
  font-family: var(--font-mono);
  color: var(--accent-1);
  font-size: 0.8em;
  opacity: 0.85;
}

.large-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.text-center { text-align: center; }

/* ── Glitch Text Effect ── */
.glitch-text {
  position: relative;
  display: inline-block;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  font-family: var(--font-heading);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  overflow: hidden;
}

.glitch-text::before {
  left: 3px;
  text-shadow: -3px 0 var(--accent-1);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch-top 3s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -3px;
  text-shadow: 3px 0 var(--accent-2);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch-bottom 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-top {
  0%, 95% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(0); }
  96% { clip-path: polygon(0 10%, 100% 10%, 100% 45%, 0 45%); transform: translate(-4px, -2px); }
  97% { clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%); transform: translate(3px, 1px); }
  98% { clip-path: polygon(0 20%, 100% 20%, 100% 55%, 0 55%); transform: translate(-2px); }
  99% { clip-path: polygon(0 5%, 100% 5%, 100% 40%, 0 40%); transform: translate(1px, 2px); }
}

@keyframes glitch-bottom {
  0%, 95% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(0); }
  96% { clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%); transform: translate(4px, 1px); }
  97% { clip-path: polygon(0 60%, 100% 60%, 100% 95%, 0 95%); transform: translate(-3px, -1px); }
  98% { clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%); transform: translate(2px); }
  99% { clip-path: polygon(0 68%, 100% 68%, 100% 100%, 0 100%); transform: translate(-1px, 2px); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.premium-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 0;
  background: rgba(3, 3, 6, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
  transition: padding 0.4s var(--ease-out-expo), background 0.4s;
}

.premium-nav.scrolled {
  padding: 10px 0;
  background: rgba(3, 3, 6, 0.9);
  border-bottom-color: var(--card-border-glow);
}

.nav-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.3s;
}

.logo:hover { transform: scale(1.03); }
.logo img {
  width: 34px;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s, text-shadow 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 4px 0;
}

.nav-num {
  font-family: var(--font-mono);
  color: var(--accent-1);
  font-size: 0.75rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-1);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover { color: #fff; text-shadow: 0 0 12px rgba(0, 240, 255, 0.3); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-1); }
.nav-links a.active::after { width: 100%; }

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-1);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 120px 0 80px; position: relative; }

.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-0 { padding: 0 !important; }
.overflow-hidden { overflow: hidden; }
.align-start { align-items: flex-start; }
.flex-col { display: flex; flex-direction: column; }
.gap-20 { gap: 20px; }

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

/* ============================================
   PREMIUM CARDS
   ============================================ */
.premium-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s, border-color 0.5s;
  position: relative;
  overflow: hidden;
}

/* RGB animated border on hover */
.premium-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(
    var(--rgb-angle, 135deg),
    transparent 0%,
    var(--accent-1) 25%,
    var(--accent-2) 50%,
    var(--accent-3) 75%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

.premium-card:hover::before { opacity: 1; }

/* Card spotlight glow */
.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.premium-card:hover::after { opacity: 1; }
.premium-card > * { position: relative; z-index: 1; }

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.15);
}

.premium-card h3 { font-size: 1.45rem; margin-bottom: 14px; color: #fff; }
.premium-card p { color: var(--text-secondary); margin-bottom: 12px; }
.premium-card p:last-child { margin-bottom: 0; }

.span-2 { grid-column: span 2; }
.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.sm-logo { width: 48px; border-radius: 12px; background: #fff; padding: 5px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.1); }
  50% { box-shadow: 0 0 20px 4px rgba(34, 197, 94, 0.08); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-green);
  animation: blink 1.5s infinite;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.75;
  max-width: 600px;
}

.hero-subtitle strong { color: var(--accent-1); font-weight: 600; }

/* Typewriter */
.typewriter-wrap {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-1);
  margin-bottom: 22px;
  min-height: 35px;
}

.prompt { font-weight: bold; color: var(--accent-2); }

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.15em;
  background-color: var(--accent-1);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

/* Stats Counter */
.stats-row {
  display: flex;
  gap: 35px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-1);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number .suffix {
  font-size: 1.2rem;
  color: var(--accent-2);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Contact Panel */
.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.015);
  border-left: 2px solid var(--accent-1);
  padding: 16px 20px;
  margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.contact-item { color: var(--text-primary); }
.contact-item a {
  color: var(--accent-1);
  text-decoration: none;
  transition: text-shadow 0.3s, color 0.3s;
}
.contact-item a:hover {
  text-shadow: 0 0 10px var(--accent-1);
  text-decoration: underline;
}

/* Hero Image */
.hero-visual { perspective: 1000px; }

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.tech-brackets {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-1);
  z-index: 2;
  transition: all 0.5s;
}

.left-bracket { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.right-bracket { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.image-wrapper:hover .left-bracket { top: -15px; left: -15px; border-color: var(--accent-2); }
.image-wrapper:hover .right-bracket { bottom: -15px; right: -15px; border-color: var(--accent-2); }

.glow-wrap {
  border-radius: 16px;
  padding: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s;
}

.glow-wrap:hover { border-color: rgba(0, 240, 255, 0.3); }

.glow-wrap img {
  width: 100%;
  border-radius: 13px;
  display: block;
  filter: contrast(1.05) saturate(1.1);
  transition: filter 0.5s;
}

/* Achievement card images — override width:100% to show full uncropped photos */
.glow-wrap .achievement-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
  box-shadow: 0 0 20px var(--accent-1);
  animation: scan 4s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-10px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(500px); opacity: 0; }
}

.floating-badge {
  position: absolute;
  background: rgba(3, 3, 6, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15);
  animation: floatBadge 5s ease-in-out infinite;
  z-index: 5;
}

.fb-1 { top: 35px; right: -35px; }
.fb-2 { bottom: 45px; left: -35px; animation-delay: -2.5s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading { margin-bottom: 50px; }
.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -1px;
}

/* Section divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border-glow), transparent);
  margin: 0 auto;
}

/* ============================================
   DAYSAVVY SECTION
   ============================================ */
.daysavvy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.role-highlight {
  color: var(--accent-2);
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 4px;
}

.prob-sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.inner-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 12px;
  transition: border-color 0.4s, transform 0.4s;
}

.inner-card:hover { transform: translateY(-3px); }

.highlight-border {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: inset 0 0 25px rgba(0, 240, 255, 0.04);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-1);
}

.tech-badge a {
  color: var(--accent-1);
  text-decoration: none;
  transition: text-shadow 0.3s;
}
.tech-badge a:hover { text-shadow: 0 0 8px var(--accent-1); }

/* DaySavvy Metrics */
.metrics-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.metric-card {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 150px;
  text-align: center;
  transition: transform 0.4s var(--ease-spring), border-color 0.4s;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-1);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Award Block */
.award-block {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.award-block:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.image-reveal {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.image-reveal img {
  width: 100%;
  display: block;
  filter: contrast(1.1) brightness(0.9);
  transition: filter 0.4s, transform 0.4s;
}

.image-reveal:hover img {
  filter: contrast(1.2) brightness(1);
  transform: scale(1.02);
}

/* ============================================
   TECH LIST
   ============================================ */
.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.3s, transform 0.3s;
}

.tech-list li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.tech-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-family: var(--font-mono);
  font-weight: bold;
  transition: color 0.3s;
}

.tech-list li:hover::before { color: var(--accent-2); }
.tech-list li strong { color: var(--text-primary); }

/* Staggered List Animation */
.animated-list li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animated-list.visible li {
  opacity: 1;
  transform: translateX(0);
}

.animated-list.visible li:nth-child(1) { transition-delay: 0.05s; }
.animated-list.visible li:nth-child(2) { transition-delay: 0.1s; }
.animated-list.visible li:nth-child(3) { transition-delay: 0.15s; }
.animated-list.visible li:nth-child(4) { transition-delay: 0.2s; }
.animated-list.visible li:nth-child(5) { transition-delay: 0.25s; }
.animated-list.visible li:nth-child(6) { transition-delay: 0.3s; }
.animated-list.visible li:nth-child(7) { transition-delay: 0.35s; }
.animated-list.visible li:nth-child(8) { transition-delay: 0.4s; }

.space-between { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.experience-timeline {
  position: relative;
  padding-left: 40px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 28px 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s, transform 0.4s;
}

.timeline-item:hover {
  border-color: var(--card-border-glow);
  transform: translateX(6px);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
  position: absolute;
  left: -34px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-1);
  transition: all 0.4s;
  z-index: 2;
}

.timeline-item:hover .timeline-node {
  background: var(--accent-1);
  box-shadow: 0 0 20px var(--accent-1), 0 0 40px rgba(0, 240, 255, 0.2);
  transform: scale(1.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-1);
  padding: 4px 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  white-space: nowrap;
}

.ppo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  margin-top: 8px;
  font-weight: 600;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.tech-tag {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-1);
  transition: all 0.3s;
}

.tech-tag:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
/* Icon Marquee */
.icon-marquee {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  margin-bottom: 30px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollLeft 25s linear infinite;
}

.tech-icon-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  transition: all 0.4s var(--ease-spring);
  position: relative;
}

.tech-icon-wrap img {
  width: 36px;
  height: 36px;
  filter: grayscale(1) brightness(1.5) opacity(0.7);
  transition: filter 0.4s, transform 0.4s;
}

.tech-icon-wrap:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
  transform: translateY(-5px) scale(1.05);
}

.tech-icon-wrap:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.15);
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 15px)); }
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category {
  position: relative;
}

.skill-category .card-tech-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.skill-category:hover .card-tech-border { opacity: 1; }

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.skill-category h3 .cat-icon { font-size: 1.4rem; }

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-spring);
}

.skill-pill:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.1);
}

/* ============================================
   ACHIEVEMENTS & CAROUSEL
   ============================================ */
.flex-center { display: flex; align-items: center; gap: 20px; padding: 24px; }
.big-emoji { font-size: 2.2rem; filter: drop-shadow(0 0 8px rgba(255,255,255,0.15)); }

.tech-achv {
  border-left: 3px solid transparent;
  transition: border-left-color 0.3s, transform 0.4s var(--ease-spring);
}

.tech-achv:hover {
  border-left-color: var(--accent-1);
  transform: translateX(8px) !important;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--card-border-glow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.carousel-container { 
  position: relative; 
  width: 100%; 
  height: 100%; 
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  z-index: 3;
}

/* ============================================
   LEADERSHIP & EDUCATION TIMELINE
   ============================================ */
.timeline-wrap { }

.clean-timeline {
  list-style: none;
  border-left: 2px dashed rgba(255, 255, 255, 0.08);
  padding-left: 28px;
}

.clean-timeline li {
  position: relative;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.clean-timeline li:hover { transform: translateX(5px); }
.clean-timeline li:last-child { margin-bottom: 0; }

.clean-timeline li::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-1);
  transition: all 0.4s;
}

.clean-timeline li:hover::before {
  background: var(--accent-1);
  box-shadow: 0 0 16px var(--accent-1);
}

.clean-timeline h4 { font-size: 1.1rem; margin-bottom: 6px; }
.clean-timeline .date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 8px;
  font-weight: 600;
}

.clean-timeline p { color: var(--text-secondary); font-size: 0.92rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 80px;
  margin-top: 80px;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-left h2 { font-size: 2.3rem; margin-bottom: 10px; }
.footer-left p { color: var(--text-secondary); max-width: 420px; }

.footer-right { display: flex; gap: 15px; flex-wrap: wrap; }

.social-btn {
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s var(--ease-spring);
}

.social-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 28px 0;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.animate-on-load {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpLoad 1s var(--ease-out-expo) forwards;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; animation-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; animation-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; animation-delay: 0.36s; }

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

@keyframes blink { 50% { opacity: 0; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .contact-panel { align-items: center; text-align: center; }
  .stats-row { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .prob-sol-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; text-align: center; gap: 40px; }
  .footer-right { justify-content: center; }
  .floating-badge { display: none; }
  .experience-timeline { padding-left: 35px; }
  .timeline-item { padding: 22px 24px; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 3, 6, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }
  
  .hamburger { display: flex; }
  
  .glitch-text { font-size: 2.8rem; }
  .stat-number { font-size: 1.8rem; }
  .stats-row { gap: 20px; }
  
  .section { padding: 80px 0 50px; }
  .section-heading h2 { font-size: 2rem; }
  
  .metrics-row { gap: 12px; }
  .metric-card { padding: 14px 16px; }
  .metric-value { font-size: 1.5rem; }
  
  .skills-grid { grid-template-columns: 1fr; }
  
  .carousel-wrapper { min-height: 280px; }
}

@media (max-width: 480px) {
  .premium-card { padding: 24px; }
  .glitch-text { font-size: 2.2rem; letter-spacing: -1px; }
  .stat-number { font-size: 1.5rem; }
  .stats-row { flex-direction: column; gap: 15px; align-items: center; }
  .experience-timeline { padding-left: 28px; }
  .timeline-item { padding: 18px 20px; }
}
