/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors - Dark Mode */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --bg-tertiary: #151925;
  --bg-card: #1a1f2e;
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-tertiary: #718096;
  
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-gradient-alt: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.3);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
  --shadow-glow-intense: 0 0 60px rgba(59, 130, 246, 0.5);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px;
  --container-padding: 0 5%;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* Light Mode */
body.light {
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  --bg-card: #ffffff;
  
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  
  --border-color: rgba(0, 0, 0, 0.1);
  --border-glow: rgba(59, 130, 246, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
  --shadow-glow-intense: 0 0 60px rgba(59, 130, 246, 0.3);
}

/* ==================== BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  position: relative;
}

/* ==================== 3D BACKGROUND (VANTA) ==================== */
.vanta-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  
  /* GPU acceleration for smooth performance */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  
  /* Ensure visibility on all devices */
  pointer-events: none;
  user-select: none;
}

.vanta-background canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Content above background */
header,
section,
footer,
.theme-toggle {
  position: relative;
  z-index: 1;
}

/* Light mode adjustment */
body.light .vanta-background {
  opacity: 0.25;
  filter: brightness(1.1);
}

/* ==================== MOBILE & TABLET OPTIMIZATIONS ==================== */
/* Enhanced 3D effect visibility for mobile/tablet */
@media (max-width: 1024px) {
  .vanta-background {
    opacity: 0.5; /* Significantly increased for better visibility on tablets */
    pointer-events: none;
    /* Optimize performance on mobile */
    transform: translateZ(0) scale(1.02);
  }
  
  body.light .vanta-background {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .vanta-background {
    opacity: 0.45; /* Increased for better visibility on mobile */
  }
  
  body.light .vanta-background {
    opacity: 0.25;
  }
}

/* High performance mode for low-end devices */
@media (prefers-reduced-motion: reduce) {
  .vanta-background {
    opacity: 0.2;
    animation: none !important;
  }
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(20deg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--accent-primary);
}

.theme-toggle:active {
  transform: scale(1.05) rotate(15deg);
}

/* ==================== NAVIGATION ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 20px 0;
  transition: all var(--transition-base);
}

header.sticky {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

body.light header.sticky {
  background: rgba(255, 255, 255, 0.85);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: white;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-bracket {
  background: linear-gradient(90deg, #B8860B, #FFD700, #FFF8DC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.name{
  background: linear-gradient(90deg, #B8860B, #FFD700, #FFF8DC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-fast);
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform var(--transition-base);
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

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

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -2.5px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.gradient-text {
  background: var(--accent-gradient-alt);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
  position: relative;
  display: inline-block;
}

.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(20px);
  opacity: 0.5;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-tertiary);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 35px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.6s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  position: relative;
  z-index: 1;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-primary);
  transition: width var(--transition-base);
  z-index: -1;
  border-radius: var(--radius-md);
}

.btn-outline:hover::after {
  width: 100%;
}

.btn-outline:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-socials {
  display: flex;
  gap: 15px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.7s;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  transition: 0.3s ease;
}

.social-links img {
  width: 22px;
  height: 22px;
  filter: invert(1); /* for dark theme */
}

.social-links a:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}


/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  transition: all var(--transition-base);
}

.floating-card:hover {
  transform: translateY(-25px) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--border-glow);
}

.card-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.floating-card p {
  font-weight: 600;
  font-size: 1.05rem;
}

.card-1 {
  top: 50px;
  left: 50px;
  animation-delay: 0s;
}

.card-2 {
  top: 200px;
  right: 80px;
  animation-delay: 2s;
}

.card-3 {
  bottom: 100px;
  left: 100px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(2deg);
  }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: pulse 10s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-primary), transparent);
  top: -120px;
  right: -120px;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-secondary), transparent);
  bottom: -80px;
  left: 30px;
  animation-delay: 5s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15) rotate(10deg);
    opacity: 0.45;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.8;
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--accent-primary);
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(12px);
  }
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-tag:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -1.2px;
  background: linear-gradient(90deg, #B8860B, #FFD700, #FFF8DC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background: var(--bg-secondary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.about-text {
  max-width: 600px;
}

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

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.highlight-item:hover {
  transform: translateX(8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(90deg, var(--bg-card), rgba(59, 130, 246, 0.05));
}

.highlight-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.highlight-item span {
  font-size: 0.95rem;
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0.05;
  transition: left var(--transition-slow);
}

.stat-item:hover::before {
  left: 0;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  position: relative;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: flex;
  transition: transform var(--transition-slow);
  filter: brightness(0.95);
}

.image-wrapper:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.image-bg {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  border-radius: var(--radius-xl);
  z-index: -1;
  transition: all var(--transition-base);
}

.image-wrapper:hover .image-bg {
  transform: translate(-10px, -10px);
  opacity: 0.15;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: float 3s ease-in-out infinite;
  transition: all var(--transition-base);
}

.experience-badge:hover {
  transform: translateY(-30px) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}


/* ==================== SKILLS SECTION ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.skill-category:hover .category-icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: var(--shadow-glow-intense);
}

.skill-category h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
  background: linear-gradient(90deg, #B8860B, #FFD700, #FFF8DC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-desc {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  font-weight: 500;
}

.skill-tag img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-fast);
}

.skill-tag:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.skill-tag:hover img {
  transform: rotate(10deg);
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 0.05;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.15) rotate(2deg);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.project-link {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-lg);
}

.project-link:hover {
  transform: scale(1.2) rotate(15deg);
  box-shadow: var(--shadow-xl);
}

.project-content {
  padding: 32px;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.tag:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.project-card:hover h3 {
  color: var(--accent-primary);
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-links {
  display: flex;
  gap: 25px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

.text-link:hover::after {
  width: 100%;
}

.text-link:hover {
  gap: 10px;
  transform: translateX(3px);
}

/* ==================== CONTACT SECTION ==================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-6px) translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.contact-card:hover .contact-icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: var(--shadow-glow-intense);
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-card a,
.contact-card p {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--accent-primary);
}

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

.social-links a {
  padding: 10px 18px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 45px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: var(--bg-card);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 18px 36px;
  font-size: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-secondary);
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-text p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ==================== INFINITE GALLERY ==================== */
.infinite-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
  margin-top: 50px;
  padding: 20px 0;
}

.gallery-row {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
}

.gallery-row:active {
  cursor: grabbing;
}

.gallery-row::before,
.gallery-row::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gallery-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.gallery-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

body.light .gallery-row::before {
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

body.light .gallery-row::after {
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 2vw, 24px);
  will-change: transform;
  animation-play-state: running;
}

.gallery-track img {
  width: clamp(160px, 20vw, 260px);
  height: clamp(100px, 13vw, 160px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.gallery-track img:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--accent-primary);
  z-index: 10;
}

.row-left .gallery-track {
  animation: scroll-left 35s linear infinite;
}

.row-right .gallery-track {
  animation: scroll-right 40s linear infinite;
}

.gallery-row.paused .gallery-track {
  animation-play-state: paused !important;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ==================== ACHIEVEMENTS SECTION ==================== */
.achievements {
  position: relative;
  padding: 100px 0;
  background: transparent;
}

.achievements .container {
  max-width: 1300px;
  margin: auto;
  padding: 0 24px;
}

.section-subtitle {
  max-width: 750px;
  margin: auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card-grid.active {
  display: grid;
  animation: fadeUp 0.5s ease;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.achievement-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.achievement-card:hover .certificate-img {
  transform: scale(1.1) rotate(1deg);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-issuer {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.achievement-card:hover .card-badge {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.img-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

#modalImage {
  max-width: 92%;
  max-height: 92%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--border-color);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.close-modal:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--accent-primary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.section {
  animation: fadeInUp 0.8s ease-out;
}

/* ==================== UTILITY CLASSES ==================== */
.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
    --container-padding: 0 4%;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-text {
    max-width: 100%;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .gallery-row::before,
  .gallery-row::after {
    width: 60px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --container-padding: 0 5%;
  }
  
  /* Navigation */
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }
  
  .hero-title {
    font-size: 3.2rem;
    letter-spacing: -1.5px;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-socials {
    justify-content: center;
  }
  
  /* Sections */
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  /* About */
  .about-highlights {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .image-wrapper img {
    width: 100%;
    height: 450px;
  }
  
  .experience-badge {
    bottom: 20px;
    left: 20px;
    padding: 18px 24px;
  }
  
  .badge-icon {
    font-size: 2rem;
  }
  
  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-category {
    padding: 32px;
  }
  
  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .project-card {
    max-width: 100%;
  }
  
  /* Contact */
  .contact-form,
  .contact-card {
    padding: 28px;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  /* Theme Toggle */
  .theme-toggle {
    width: 48px;
    height: 48px;
    top: 15px;
    right: 15px;
  }
  
  /* Scroll Indicator */
  .scroll-indicator {
    display: none;
  }
  
  /* Gallery */
  .gallery-row::before,
  .gallery-row::after {
    width: 40px;
  }
  
  .row-left .gallery-track {
    animation-duration: 25s;
  }
  
  .row-right .gallery-track {
    animation-duration: 30s;
  }
  
  /* Achievements */
  .tabs {
    flex-direction: column;
    gap: 10px;
  }
  
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --section-padding: 50px;
  }
  
  .hero-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: 1.9rem;
  }
  
  .section-tag {
    font-size: 0.75rem;
    padding: 8px 18px;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
  
  .contact-form,
  .skill-category,
  .project-content {
    padding: 24px;
  }
  
  .stat-item {
    padding: 24px;
  }
  
  .stat-item h3 {
    font-size: 2.2rem;
  }
  
  .image-wrapper img {
    height: 500px;
  }
  
  .project-image {
    height: 200px;
  }
  
  .hero-socials {
    gap: 12px;
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  .theme-toggle {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  .close-modal {
    top: 20px;
    right: 20px;
    font-size: 2rem;
    width: 44px;
    height: 44px;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .vanta-background {
    opacity: 0.35;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-content {
    grid-template-columns: 0.8fr 1.2fr;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large screens */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 6rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
  
  .nav-container {
    max-width: 1500px;
  }
}

/* 4K and Ultra-wide screens */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .hero-title {
    font-size: 6.5rem;
  }
  
  .section-title {
    font-size: 4rem;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .vanta-background {
    display: none;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .vanta-background,
  .theme-toggle,
  header,
  .scroll-indicator,
  .hero-visual,
  .floating-card,
  .gradient-orb {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}
/* ============================================
   MODERN ENHANCED LOADER - RESPONSIVE DESIGN
   ============================================ */

/* CSS Variables for easy theming */
:root {
  --loader-main-size: 4em;
  --loader-text-color: #ffffff;
  --loader-shine-color: rgba(255, 255, 255, 0.25);
  --loader-shadow-color: #aaaaaa;
  --loader-glow-primary: rgba(99, 102, 241, 0.4);
  --loader-glow-secondary: rgba(168, 85, 247, 0.3);
  --bg-gradient-start: #0f0f15;
  --bg-gradient-end: #050505;
  --animation-duration: 2s;
}

/* ============================================
   LOADER CONTAINER
   ============================================ */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 80%,
    #000000 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  perspective: 1200px;
  isolation: isolate;
}

/* Background Canvas */
#waveCanvas,
#fxBgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  mix-blend-mode: screen;
}

/* Text Loader with 3D Effect */
.fx-text-loader {
  position: relative;
  z-index: 2;
  transform: rotateX(12deg) translateZ(20px);
  filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.15))
          drop-shadow(0 0 40px var(--loader-glow-primary));
  transition: transform 0.3s ease;
}

.fx-text-loader:hover {
  transform: rotateX(8deg) translateZ(30px) scale(1.02);
}

/* ============================================
   MAIN LOADER COMPONENT
   ============================================ */
.loader {
  --main-size: var(--loader-main-size);
  --text-color: var(--loader-text-color);
  --shine-color: var(--loader-shine-color);
  --shadow-color: var(--loader-shadow-color);
  
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
  position: relative;
  font-size: var(--main-size);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-color);
  width: 7.3em;
  height: 1em;
  filter: drop-shadow(0 0 0.1em var(--shine-color))
          drop-shadow(0 0 0.3em var(--loader-glow-secondary));
  letter-spacing: 0.05em;
}

/* ============================================
   TEXT LAYERS WITH DEPTH EFFECT
   ============================================ */
.loader .text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layer 1 - Deepest */
.loader .text:nth-child(1) {
  clip-path: polygon(0% 0%, 11.11% 0%, 11.11% 100%, 0% 100%);
  font-size: calc(var(--main-size) / 20);
  margin-left: -2.1em;
  opacity: 0.5;
  filter: blur(0.5px);
}

/* Layer 2 */
.loader .text:nth-child(2) {
  clip-path: polygon(11.11% 0%, 22.22% 0%, 22.22% 100%, 11.11% 100%);
  font-size: calc(var(--main-size) / 16);
  margin-left: -0.98em;
  opacity: 0.65;
  filter: blur(0.3px);
}

/* Layer 3 */
.loader .text:nth-child(3) {
  clip-path: polygon(22.22% 0%, 33.33% 0%, 33.33% 100%, 22.22% 100%);
  font-size: calc(var(--main-size) / 13);
  margin-left: -0.33em;
  opacity: 0.75;
}

/* Layer 4 */
.loader .text:nth-child(4) {
  clip-path: polygon(33.33% 0%, 44.44% 0%, 44.44% 100%, 33.33% 100%);
  font-size: calc(var(--main-size) / 11);
  margin-left: -0.05em;
  opacity: 0.85;
}

/* Layer 5 - Center (Brightest) */
.loader .text:nth-child(5) {
  clip-path: polygon(44.44% 0%, 55.55% 0%, 55.55% 100%, 44.44% 100%);
  font-size: calc(var(--main-size) / 10);
  margin-left: 0;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Layer 6 */
.loader .text:nth-child(6) {
  clip-path: polygon(55.55% 0%, 66.66% 0%, 66.66% 100%, 55.55% 100%);
  font-size: calc(var(--main-size) / 11);
  margin-left: 0.05em;
  opacity: 0.85;
}

/* Layer 7 */
.loader .text:nth-child(7) {
  clip-path: polygon(66.66% 0%, 77.77% 0%, 77.77% 100%, 66.66% 100%);
  font-size: calc(var(--main-size) / 13);
  margin-left: 0.33em;
  opacity: 0.75;
}

/* Layer 8 */
.loader .text:nth-child(8) {
  clip-path: polygon(77.77% 0%, 88.88% 0%, 88.88% 100%, 77.77% 100%);
  font-size: calc(var(--main-size) / 16);
  margin-left: 0.98em;
  opacity: 0.65;
  filter: blur(0.3px);
}

/* Layer 9 - Furthest */
.loader .text:nth-child(9) {
  clip-path: polygon(88.88% 0%, 100% 0%, 100% 100%, 88.88% 100%);
  font-size: calc(var(--main-size) / 20);
  margin-left: 2.1em;
  opacity: 0.5;
  filter: blur(0.5px);
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */
.loader .text span {
  animation: scrolling var(--animation-duration) cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite,
             shadow var(--animation-duration) cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite,
             glow 3s ease-in-out infinite alternate;
}

/* Gradient backgrounds for each layer */
.loader .text:nth-child(1) span {
  background: linear-gradient(to right, var(--text-color) 4%, var(--shadow-color) 7%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(2) span {
  background: linear-gradient(to right, var(--text-color) 9%, var(--shadow-color) 13%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(3) span {
  background: linear-gradient(to right, var(--text-color) 15%, var(--shadow-color) 18%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(4) span {
  background: linear-gradient(to right, var(--text-color) 20%, var(--shadow-color) 23%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(5) span {
  background: linear-gradient(to right, var(--text-color) 25%, #ffffff 28%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(6) span {
  background: linear-gradient(to right, var(--shadow-color) 29%, var(--text-color) 32%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(7) span {
  background: linear-gradient(to right, var(--shadow-color) 34%, var(--text-color) 37%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(8) span {
  background: linear-gradient(to right, var(--shadow-color) 39%, var(--text-color) 42%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.loader .text:nth-child(9) span {
  background: linear-gradient(to right, var(--shadow-color) 45%, var(--text-color) 48%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   LOADING LINE INDICATOR
   ============================================ */
.loader .line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 0.06em;
  width: calc(var(--main-size) / 2);
  margin-top: 0.9em;
  border-radius: 0.1em;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.loader .line::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--text-color) 50%, 
    transparent 100%);
  opacity: 0.2;
}

.loader .line::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    var(--loader-glow-primary),
    var(--text-color),
    var(--loader-glow-secondary));
  border-radius: 0.1em;
  transform: translateX(-90%);
  animation: wobble var(--animation-duration) cubic-bezier(0.5, 0.8, 0.5, 0.2) infinite;
  box-shadow: 0 0 15px var(--text-color);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes scrolling {
  0% {
    background-position: 0% 0%;
    transform: translateX(0);
  }
  50% {
    background-position: -100% 0%;
    transform: translateX(-2px);
  }
  100% {
    background-position: -200% 0%;
    transform: translateX(0);
  }
}

@keyframes shadow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                 0 0 25px var(--loader-glow-primary);
  }
}

@keyframes wobble {
  0% {
    transform: translateX(-90%);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-10%);
    opacity: 1;
  }
  100% {
    transform: translateX(90%);
    opacity: 0.6;
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS
   ============================================ */

/* Large Tablets & Small Laptops (1024px - 1280px) */
@media only screen and (min-width: 1024px) and (max-width: 1280px) {
  :root {
    --loader-main-size: 3.8em;
  }
  
  .fx-text-loader {
    transform: rotateX(10deg) translateZ(15px);
  }
}

/* iPad Pro & Large Tablets (768px - 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  :root {
    --loader-main-size: 3.5em;
  }
  
  .loader {
    width: 7em;
    letter-spacing: 0.03em;
  }
  
  .fx-text-loader {
    transform: rotateX(8deg) translateZ(12px);
  }
  
  .loader .line {
    height: 0.07em;
    width: calc(var(--main-size) / 1.8);
  }
}

/* iPad Mini & Medium Tablets (600px - 767px) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
  :root {
    --loader-main-size: 3em;
  }
  
  .loader {
    width: 6.8em;
    filter: drop-shadow(0 0 0.08em var(--shine-color));
  }
  
  .fx-text-loader {
    transform: rotateX(6deg) translateZ(10px);
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE DEVICES
   ============================================ */

/* Large Mobile Devices (480px - 599px) */
@media only screen and (min-width: 480px) and (max-width: 599px) {
  :root {
    --loader-main-size: 2.8em;
  }
  
  .loader {
    width: 6.5em;
    letter-spacing: 0.02em;
  }
  
  .fx-text-loader {
    transform: rotateX(5deg) translateZ(8px);
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.12));
  }
  
  .loader .line {
    height: 0.08em;
    margin-top: 0.85em;
  }
}

/* Medium Mobile Devices (375px - 479px) */
@media only screen and (min-width: 375px) and (max-width: 479px) {
  :root {
    --loader-main-size: 2.4em;
  }
  
  .loader {
    width: 6.2em;
    font-size: var(--main-size);
  }
  
  .fx-text-loader {
    transform: rotateX(4deg) translateZ(6px);
  }
  
  .loader .line {
    width: calc(var(--main-size) / 1.6);
    margin-top: 0.8em;
  }
}

/* Small Mobile Devices (320px - 374px) */
@media only screen and (max-width: 374px) {
  :root {
    --loader-main-size: 2em;
  }
  
  .loader {
    width: 6em;
    font-size: var(--main-size);
    letter-spacing: 0.01em;
  }
  
  .fx-text-loader {
    transform: rotateX(3deg) translateZ(4px);
    filter: drop-shadow(0 6px 15px rgba(255, 255, 255, 0.1));
  }
  
  .loader .line {
    height: 0.09em;
    width: calc(var(--main-size) / 1.5);
    margin-top: 0.75em;
  }
  
  /* Reduce animation intensity on small screens */
  .loader .text span {
    animation-duration: 2.5s;
  }
}

/* ============================================
   ORIENTATION SPECIFIC
   ============================================ */

/* Landscape Mobile Devices */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  :root {
    --loader-main-size: 2.2em;
  }
  
  .fx-text-loader {
    transform: rotateX(3deg) translateZ(5px);
  }
  
  .loader .line {
    margin-top: 0.7em;
  }
}

/* ============================================
   HIGH DPI DISPLAYS (RETINA)
   ============================================ */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
  .loader .text {
    -webkit-font-smoothing: subpixel-antialiased;
  }
  
  .loader .line::after {
    box-shadow: 0 0 20px var(--text-color);
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .loader .text span {
    animation: none;
  }
  
  .loader .line::after {
    animation: wobble 4s linear infinite;
  }
  
  .fx-text-loader {
    transform: none;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.15));
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
  :root {
    --bg-gradient-start: #f5f5f5;
    --bg-gradient-end: #e0e0e0;
    --loader-text-color: #1a1a1a;
    --loader-shadow-color: #666666;
  }
  
  #loader {
    background: radial-gradient(
      ellipse at center,
      var(--bg-gradient-start) 0%,
      var(--bg-gradient-end) 80%,
      #cccccc 100%
    );
  }
}

/* ============================================
   FOLDABLE & ULTRA-WIDE SCREENS
   ============================================ */
@media only screen and (min-width: 1400px) {
  :root {
    --loader-main-size: 4.5em;
  }
  
  .fx-text-loader {
    transform: rotateX(15deg) translateZ(25px);
  }
}

/* Very Small Screens (< 320px) */
@media only screen and (max-width: 319px) {
  :root {
    --loader-main-size: 1.8em;
  }
  
  .loader {
    width: 5.5em;
  }
}
@keyframes wobble {
  0% {
    transform: translateX(-90%);
  }
  50% {
    transform: translateX(90%);
  }
  100% {
    transform: translateX(-90%);
  }
}

@keyframes scrolling {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes shadow {
  0% {
    background-position: -98% 0;
  }
  100% {
    background-position: 102% 0;
  }
}

.testimonials {
  padding: 100px 0;
  background: transparent;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 24px;
  transition: transform 0.6s ease;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  min-height: 200px;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.testimonial-card h4 {
  margin-top: 16px;
  font-size: 0.95rem;
}

.testimonial-card span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.t-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.t-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.t-btn.prev { left: -10px; }
.t-btn.next { right: -10px; }

/* Mobile */
@media (max-width: 768px) {
  .testimonial-track {
    grid-auto-columns: 80%;
  }

  .t-btn {
    display: none;
  }
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.testimonial-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.testimonial-user h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700; /* BOLD NAME */
  color: var(--text-primary);
}

.testimonial-user span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}


.leetcode-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  text-align: center;
  position: relative;
}

/* ===== STATS ===== */
.leetcode-stats {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

.leetcode-stats div {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  padding: 14px 26px;
  border-radius: 16px;
  min-width: 120px;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leetcode-stats div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.leetcode-stats strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.leetcode-stats span {
  font-size: 0.8rem;
  opacity: 0.75;
  letter-spacing: 0.3px;
}

/* ===== HEATMAP ===== */
.heatmap {
  display: grid;
  grid-template-columns: repeat(53, minmax(10px, 12px));
  gap: clamp(3px, 0.6vw, 5px);
  justify-content: center;
  margin-top: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.heatmap::-webkit-scrollbar {
  display: none;
}

.heat-cell {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 4px;
  background: #1f2933;
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  cursor: pointer;
}

/* Heat levels */
.heat-1 { background:#0e4429; }
.heat-2 { background:#006d32; }
.heat-3 { background:#26a641; }
.heat-4 { background:#39d353; }

/* Hover */
.heat-cell:hover {
  transform: scale(1.4);
  filter: brightness(1.2);
  box-shadow: 0 0 12px rgba(57,211,83,0.6);
  z-index: 2;
}

/* ===== TABLETS ===== */
@media (max-width: 1024px) {
  .heatmap {
    grid-template-columns: repeat(40, minmax(10px, 12px));
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .leetcode-stats {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .leetcode-stats div {
    width: 100%;
    max-width: 260px;
  }

  .heatmap {
    grid-template-columns: repeat(26, minmax(10px, 12px));
    gap: 4px;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  .heatmap {
    grid-template-columns: repeat(20, minmax(10px, 11px));
    gap: 3px;
  }

  .heat-cell:hover {
    transform: scale(1.25);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .heat-cell,
  .leetcode-stats div {
    transition: none;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Outline Neon Style */
.btn-outline {
  color: #38bdf8;
  border: 2px solid rgba(56,189,248,0.6);
  background: rgba(56,189,248,0.05);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Glow line animation */
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(56,189,248,0.4),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

/* Hover */
.btn-outline:hover::before {
  transform: translateX(100%);
}

.btn-outline:hover {
  color: #0f172a;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  box-shadow: 
    0 0 15px rgba(56,189,248,0.6),
    0 0 40px rgba(56,189,248,0.4);
  transform: translateY(-2px) scale(1.03);
}

/* Active click */
.btn-outline:active {
  transform: scale(0.96);
}

/* Icon/code symbol style */
.btn-outline span {
  font-family: monospace;
  font-weight: 700;
  color: #22d3ee;
}

/* Responsive */
@media (max-width: 768px) {
  .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}


/* ==================== EDUCATION TIMELINE ==================== */
.education {
  background: var(--bg-secondary);
  padding: clamp(70px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Timeline Line */
.timeline::before {
  content: "";
  position: absolute;
  left: clamp(32px, 5vw, 52px);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(50px, 6vw, 70px);
  display: flex;
  gap: clamp(20px, 3vw, 35px);
  align-items: flex-start;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

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

/* Timeline Dot */
.timeline-dot {
  width: clamp(22px, 3vw, 28px);
  height: clamp(22px, 3vw, 28px);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 0 0 0 clamp(5px, 1vw, 7px) rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--bg-card);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 clamp(8px, 1.5vw, 10px) rgba(59, 130, 246, 0.25);
}

.timeline-item:hover .timeline-dot::after {
  opacity: 1;
}

/* Timeline Content Card */
.timeline-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Hover gradient effect */
.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.timeline-content:hover::before {
  left: 100%;
}

.timeline-content:hover {
  transform: translateY(-6px) translateX(4px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.15);
  border-color: var(--accent-primary);
}

/* Timeline Date */
.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.timeline-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Content Typography */
.timeline-content h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.timeline-content:hover h3 {
  color: var(--accent-primary);
}

.timeline-content h4 {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: clamp(0.88rem, 1.6vw, 0.97rem);
  margin: 0;
}

/* Timeline Badge */
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
  border-radius: 25px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-primary);
  font-size: clamp(0.72rem, 1.4vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.timeline-badge:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Multiple badges */
.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ==================== TABLET RESPONSIVE (768px - 1024px) ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .timeline {
    max-width: 700px;
    padding: 0 30px;
  }

  .timeline::before {
    left: 42px;
  }

  .timeline-item {
    gap: 25px;
  }

  .timeline-content {
    padding: 22px 24px;
  }
}

/* ==================== MOBILE RESPONSIVE (max-width: 768px) ==================== */
@media (max-width: 768px) {
  .education {
    padding: clamp(50px, 10vw, 70px) 0;
  }

  .timeline {
    padding: 0 16px;
    margin-top: 40px;
  }

  .timeline::before {
    left: 22px;
    width: 2px;
  }

  .timeline-item {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 40px;
  }

  .timeline-dot {
    margin-top: 4px;
  }

  .timeline-content {
    padding: 16px 18px;
    border-radius: 14px;
  }

  .timeline-content:hover {
    transform: translateY(-4px) translateX(2px);
  }

  .timeline-date {
    font-size: 0.7rem;
    padding-left: 14px;
  }

  .timeline-date::before {
    width: 6px;
    height: 6px;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .timeline-content h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .timeline-content p {
    font-size: 0.87rem;
    line-height: 1.65;
  }

  .timeline-badge {
    padding: 5px 11px;
    font-size: 0.7rem;
    margin-top: 10px;
  }

  .timeline-badges {
    gap: 6px;
    margin-top: 10px;
  }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */
@media (max-width: 480px) {
  .timeline {
    padding: 0 12px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    gap: 12px;
    margin-bottom: 35px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  }

  .timeline-content {
    padding: 14px 16px;
  }

  .timeline-date {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content h4 {
    font-size: 0.85rem;
  }

  .timeline-content p {
    font-size: 0.84rem;
  }

  .timeline-badge {
    padding: 4px 10px;
    font-size: 0.68rem;
  }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 900px) and (orientation: landscape) {
  .education {
    padding: 50px 0;
  }

  .timeline {
    margin-top: 30px;
  }

  .timeline-item {
    margin-bottom: 30px;
  }

  .timeline-content {
    padding: 16px 20px;
  }
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
@media (prefers-reduced-motion: reduce) {
  .timeline-item,
  .timeline-dot,
  .timeline-content,
  .timeline-content::before,
  .timeline-badge {
    animation: none !important;
    transition: none !important;
  }

  .timeline-item {
    opacity: 1;
  }
}

/* Focus states for accessibility */
.timeline-content:focus-within {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  .timeline::before {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  }

  .timeline-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
  }
}

/* Print styles */
@media print {
  .timeline::before {
    background: #333;
  }

  .timeline-dot {
    background: #333;
    box-shadow: none;
  }

  .timeline-content {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .timeline-item {
    animation: none;
    opacity: 1;
  }
}

/* From Uiverse.io by vinodjangid07 */ 
.Btn {
  width: 140px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right,#77530a,#ffd277,#77530a,#77530a,#ffd277,#77530a);
  background-size: 250%;
  background-position: left;
  color: #ffd277;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 1s;
  overflow: hidden;
}

.Btn::before {
  position: absolute;
  content: "SUBSCRIBE";
  color: #ffd277;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97%;
  height: 90%;
  border-radius: 8px;
  transition-duration: 1s;
  background-color: rgba(0, 0, 0, 0.842);
  background-size: 200%;
}

.Btn:hover {
  background-position: right;
  transition-duration: 1s;
}

.Btn:hover::before {
  background-position: right;
  transition-duration: 1s;
}

.Btn:active {
  transform: scale(0.95);
}

.hero-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s ease;
  backdrop-filter: blur(6px);
}

.social-link img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1); /* makes icons white */
  transition: 0.3s ease;
}

/* Hover effect */
.social-link:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 18px rgba(56,189,248,0.6);
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
}

.social-link:hover img {
  filter: brightness(1) invert(0);
}

/* Mobile */
@media (max-width: 768px) {
  .social-link {
    width: 40px;
    height: 40px;
  }
}

/* ==================== BADGES SECTION ==================== */
.badges {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated background pattern */
.badges::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 50%,
    rgba(139, 92, 246, 0.08) 0%,
    transparent 50%
  );
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Floating particles effect */
.badges::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200% 200%;
  animation: particleFloat 20s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes particleFloat {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Section header */
.badges h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.badges p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 18vw, 180px), 1fr));
  gap: clamp(20px, 3.5vw, 35px);
  margin-top: clamp(50px, 8vw, 70px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* Badge Card */
.badge-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(16px, 2.5vw, 24px);
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(12px) saturate(150%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shimmer effect on card */
.badge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.8s ease;
}

.badge-card:hover::before {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Glow effect behind card */
.badge-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(15px);
}

/* Badge Image Container */
.badge-image-wrapper {
  width: 100%;
  height: clamp(80px, 12vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 12px;
}

.badge-card img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

/* Badge Title */
.badge-title {
  margin-top: clamp(8px, 1.5vw, 12px);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Badge Date */
.badge-date {
  font-size: clamp(0.7rem, 1.3vw, 0.8rem);
  color: #94a3b8;
  text-align: center;
  display: block;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* Badge Status Indicator (Optional) */
.badge-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* Hover Effects */
.badge-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.25),
    0 0 60px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(59, 130, 246, 0.05) 100%
  );
}

.badge-card:hover::after {
  opacity: 1;
}

.badge-card:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.6))
          brightness(1.1);
}

.badge-card:hover .badge-title {
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.badge-card:hover .badge-date {
  color: #a78bfa;
}

/* Active/Click state */
.badge-card:active {
  transform: translateY(-4px) scale(1.02);
  transition: all 0.1s ease;
}

/* Badge Level/Tier Indicators */
.badge-tier-gold {
  border-color: rgba(251, 191, 36, 0.4);
}

.badge-tier-gold:hover {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.3);
}

.badge-tier-silver {
  border-color: rgba(203, 213, 225, 0.4);
}

.badge-tier-silver:hover {
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 12px 40px rgba(203, 213, 225, 0.3);
}

.badge-tier-platinum {
  border-color: rgba(168, 85, 247, 0.4);
}

.badge-tier-platinum:hover {
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3);
}

/* Achievement Badge Count */
.badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

/* ==================== TABLET RESPONSIVE (768px - 1024px) ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
  .badges {
    padding: clamp(70px, 9vw, 100px) 0;
  }

  .badges-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(18px, 3vw, 28px);
    padding: 0 30px;
  }

  .badge-card {
    padding: 20px 16px;
  }

  .badge-image-wrapper {
    height: 100px;
  }

  .badge-card:hover {
    transform: translateY(-6px) scale(1.04);
  }
}

/* ==================== MOBILE RESPONSIVE (max-width: 768px) ==================== */
@media (max-width: 768px) {
  .badges {
    padding: clamp(60px, 12vw, 80px) 0;
  }

  .badges::before,
  .badges::after {
    opacity: 0.3;
  }

  .badges h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 0.8rem;
  }

  .badges p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    padding: 0 20px;
  }

  .badges-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: clamp(16px, 4vw, 24px);
    margin-top: 40px;
    padding: 0 16px;
  }

  .badge-card {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .badge-image-wrapper {
    height: 85px;
    margin-bottom: 10px;
  }

  .badge-card img {
    max-width: 85%;
  }

  .badge-title {
    font-size: 0.85rem;
    margin-top: 8px;
  }

  .badge-date {
    font-size: 0.7rem;
    margin-top: 3px;
  }

  /* Simplified hover for mobile (touch devices) */
  .badge-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
      0 8px 30px rgba(59, 130, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .badge-card:hover img {
    transform: scale(1.1) rotate(3deg);
  }

  .badge-status {
    width: 6px;
    height: 6px;
    top: 10px;
    right: 10px;
  }

  .badge-count {
    font-size: 0.65rem;
    padding: 3px 6px;
    top: -6px;
    right: -6px;
  }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */
@media (max-width: 480px) {
  .badges {
    padding: 50px 0;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 12px;
    margin-top: 35px;
  }

  .badge-card {
    padding: 14px 10px;
    border-radius: 16px;
  }

  .badge-image-wrapper {
    height: 75px;
  }

  .badge-title {
    font-size: 0.8rem;
    margin-top: 6px;
  }

  .badge-date {
    font-size: 0.68rem;
  }

  .badge-card:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

/* ==================== VERY SMALL MOBILE (max-width: 360px) ==================== */
@media (max-width: 360px) {
  .badges-grid {
    gap: 12px;
  }

  .badge-card {
    padding: 12px 8px;
  }

  .badge-image-wrapper {
    height: 70px;
  }

  .badge-title {
    font-size: 0.75rem;
  }

  .badge-date {
    font-size: 0.65rem;
  }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 900px) and (orientation: landscape) {
  .badges {
    padding: 50px 0;
  }

  .badges-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    margin-top: 30px;
  }

  .badge-card {
    padding: 12px;
  }

  .badge-image-wrapper {
    height: 70px;
  }
}

/* ==================== LARGE DESKTOP (min-width: 1440px) ==================== */
@media (min-width: 1440px) {
  .badges-grid {
    max-width: 1400px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
  }

  .badge-card {
    padding: 32px;
  }

  .badge-image-wrapper {
    height: 130px;
  }
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
@media (prefers-reduced-motion: reduce) {
  .badge-card,
  .badge-card img,
  .badge-title,
  .badge-date,
  .badge-card::before,
  .badge-card::after,
  .badges::before,
  .badges::after {
    animation: none !important;
    transition: none !important;
  }

  .badge-card:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.badge-card:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
  border-color: var(--accent-primary);
}

.badge-card:focus-visible img {
  transform: scale(1.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .badge-card {
    border: 2px solid currentColor;
  }

  .badge-title {
    font-weight: 900;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .badge-card {
    box-shadow: 
      0 6px 24px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .badge-card:hover {
    box-shadow: 
      0 16px 48px rgba(59, 130, 246, 0.3),
      0 0 80px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* Print styles */
@media print {
  .badges {
    background: white;
    padding: 20px 0;
  }

  .badges::before,
  .badges::after {
    display: none;
  }

  .badges-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .badge-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .badge-card:hover {
    transform: none;
  }
}

/* Loading skeleton animation (optional) */
.badge-card.loading {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


/* Hide default cursor */
body {
  cursor: none;
}

/* Inner dot */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #00f7ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #00f7ff;
}

/* Outer ring */
.cursor-ring {
  position: fixed;
  width: 35px;
  height: 35px;
  border: 2px solid rgba(0, 247, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: 
    width 0.2s ease,
    height 0.2s ease,
    border 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.6);
}

/* Hover effect */
a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring {
  width: 55px;
  height: 55px;
  border-color: #9b5cff;
  box-shadow: 0 0 30px #9b5cff;
}

/* Mobile: keep default cursor */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}


/* Institute + Logo container */
.timeline-institute {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  flex-wrap: wrap;
}

/* Logo styling */
.timeline-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Ensure h2 doesn't break layout */
.timeline-institute h2 {
  margin: 0;
  font-size: 1.2rem;
}

/* ============================= */
/* 📝 Articles Section */
/* ============================= */

.articles-section {
  padding: 80px 10%;
  color: #ffffff;
}

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

/* ============================= */
/* 📄 Article Card */
/* ============================= */

.article-card {
  background: none;
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: #FFD700;
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
}

/* Content */
.article-date {
  font-size: 0.8rem;
  opacity: 0.6;
}

.article-card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.article-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* Tags */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.article-tags span {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
}

/* Button */
.article-btn {
  text-decoration: none;
  color: #FFD700;
  font-weight: 500;
  transition: 0.3s;
}

.article-btn:hover {
  letter-spacing: 1px;
}

/* ============================= */
/* 📱 Responsive */
/* ============================= */

@media (max-width: 768px) {
  .articles-section {
    padding: 60px 6%;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .articles-section {
    padding: 50px 5%;
  }

  .article-card {
    padding: 18px;
  }

  .article-card h3 {
    font-size: 1rem;
  }
}

/*classic button*/
.Btn {
  width: 200px;
  height: 60px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right,#77530a,#ffd277,#77530a,#77530a,#ffd277,#77530a);
  background-size: 250%;
  background-position: left;
  color: #ffd277;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 1s;
  overflow: hidden;
}

.Btn::before {
  position: absolute;
  content: "Classic version";
  color: #ffd277;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97%;
  height: 90%;
  border-radius: 8px;
  transition-duration: 1s;
  background-color: rgba(0, 0, 0, 0.842);
  background-size: 200%;
}

.Btn:hover {
  background-position: right;
  transition-duration: 1s;
}

.Btn:hover::before {
  background-position: right;
  transition-duration: 1s;
}

.Btn:active {
  transform: scale(0.95);
}
.btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh; 
}

/* ===============================
   LEETCODE SECTION
================================ */

.leetcode-section {
  padding: 80px 0;
  color: #fff;
}

.section-header.center {
  text-align: center;
  margin-bottom: 40px;
}

.leetcode-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.leetcode-card:hover {
  transform: translateY(-6px);
}

/* ===============================
   STATS
================================ */

.leetcode-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.stat-box {
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
}

.stat-box span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===============================
   HEATMAP
================================ */

.heatmap-wrapper {
  overflow-x: auto;
  padding-bottom: 10px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(53, 14px);
  gap: 5px;
  min-width: 800px; 
}

.heat-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  transition: transform 0.2s ease;
}

.heat-box:hover {
  transform: scale(1.4);
}

/* ===============================
   BUTTON
================================ */

.profile-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 26px;
  border: 2px solid #38bdf8;
  border-radius: 30px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.profile-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* ===============================
   RESPONSIVE DESIGN
================================ */

/* Tablets */
@media (max-width: 1024px) {
  .leetcode-card {
    padding: 30px;
  }

  .leetcode-stats {
    gap: 15px;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  .leetcode-stats {
    grid-template-columns: 1fr;
  }

  .stat-box strong {
    font-size: 1.5rem;
  }

  .leetcode-card {
    padding: 25px;
  }

  .heatmap {
    min-width: 750px;
  }
}
/* Status badge */
    .status-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 2px;
      font-family: 'DM Mono', monospace;
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      backdrop-filter: blur(10px);
      z-index: 3;
    }

    .status-badge .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .status-complete {
      background: rgba(74,222,128,0.12);
      color: var(--green);
      border: 1px solid rgba(74,222,128,0.25);
    }
    .status-complete .dot {
      background: var(--green);
      box-shadow: 0 0 6px var(--green);
    }

    .status-inprogress {
      background: rgba(251,191,36,0.12);
      color: var(--yellow);
      border: 1px solid rgba(251,191,36,0.25);
    }
    .status-inprogress .dot {
      background: var(--yellow);
      animation: pulse 1.5s infinite;
      box-shadow: 0 0 6px var(--yellow);
    }

    .status-live {
      background: rgba(96,165,250,0.12);
      color: var(--blue);
      border: 1px solid rgba(96,165,250,0.25);
    }
    .status-live .dot {
      background: var(--blue);
      animation: pulse 2s infinite;
      box-shadow: 0 0 6px var(--blue);
    }

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


    .github-section{
margin-top:120px;
}

.github-card{
background:rgba(255,255,255,0.03);
backdrop-filter: blur(10px);
padding:40px;
border-radius:16px;
box-shadow:0 20px 40px rgba(0,0,0,0.3);
text-align:center;
}

.github-stats{
display:flex;
justify-content:center;
gap:40px;
margin-bottom:30px;
flex-wrap:wrap;
}

.stat-box{
display:flex;
flex-direction:column;
align-items:center;
font-size:18px;
}

.stat-box strong{
font-size:28px;
font-weight:700;
color:#58a6ff;
}

.stat-box span{
font-size:14px;
opacity:0.8;
}

.heatmap-wrapper{
margin-top:20px;
overflow-x:auto;
padding:20px;
background:#0d1117;
border-radius:12px;
}

.calendar{
width:100%;
}

.profile-btn{
margin-top:30px;
display:inline-block;
padding:12px 28px;
border:1px solid #58a6ff;
border-radius:8px;
text-decoration:none;
color:#58a6ff;
transition:0.3s;
}

.profile-btn:hover{
background:#58a6ff;
color:#fff;
}