/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.4);
  
  /* Defaults (Light Theme) */
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --nav-bg: rgba(248, 250, 252, 0.85);
  --card-shadow: rgba(0, 0, 0, 0.05);
}

.dark-theme {
  --bg-dark: #000000; /* Pure Black for Premium look */
  --bg-card: rgba(18, 18, 18, 0.7);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --nav-bg: rgba(0, 0, 0, 0.95);
  --card-shadow: rgba(0, 0, 0, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
}

/* ===== CUSTOM CURSOR ===== */
#cursor, #cursor-follower {
  display: none !important;
}

body {
  cursor: auto !important;
}

a, button, [role="button"], .project-card, .skill-chip, .contact-card, .social-btn, .orbit-card-inner, .orbit-dot-btn {
  cursor: pointer !important;
}

body:hover #cursor { opacity: 1; }

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  gap: 1.5rem;
}

.loader-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--primary), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.loader-bar {
  width: 250px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--primary));
  animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar {
  to { left: 0; }
}

.loader-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse 1s infinite;
}

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  pointer-events: auto;
}

#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 1.5rem;
}

@media (max-width: 900px) {
  #navbar {
    padding: 0.75rem 1.25rem !important;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary); /* Fallback */
  letter-spacing: -0.02em;
  z-index: 1001;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desktop-only {
  display: inline-flex;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 3D Floating Cubes Background */
.cubes-bg {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  overflow: hidden;
}

.cube {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.03);
  animation: floatCube linear infinite;
}

.cube::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), transparent);
}

@keyframes floatCube {
  0% {
    transform: translateY(110vh) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-15vh) rotateX(360deg) rotateY(720deg) rotateZ(180deg);
    opacity: 0;
  }
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@media (max-width: 600px) {
  .orb {
    display: none; /* Hide expensive orbs on small screens to avoid overflow */
  }
  .cubes-bg {
    opacity: 0.3;
  }
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  width: fit-content;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s infinite;
  box-shadow: 0 0 8px var(--cyan);
}

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

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99,102,241,0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span { position: relative; z-index: 1; }
.btn-primary svg { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Right - Photo + Skills */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

/* ===== PROFILE PHOTO ===== */
.profile-photo-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.profile-photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: spinRing linear infinite;
}

.ring-outer {
  inset: -12px;
  border-top-color: var(--cyan);
  border-right-color: var(--primary);
  animation-duration: 6s;
  box-shadow: 0 0 20px rgba(6,182,212,0.2);
}

.ring-inner {
  inset: -6px;
  border-bottom-color: var(--violet);
  border-left-color: var(--cyan);
  animation-duration: 4s;
  animation-direction: reverse;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.profile-photo-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 40px rgba(99,102,241,0.25),
    0 0 80px rgba(6,182,212,0.1),
    inset 0 0 20px rgba(0,0,0,0.3);
}

.profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-photo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(6,182,212,0.2));
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background-clip: text;
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating badge on photo */
.profile-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  background: rgba(5,8,16,0.9);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(99,102,241,0.2);
  letter-spacing: 0.05em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.skill-chip {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-chip:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}

.skill-chip .icon {
  font-size: 1.5rem;
}

.skill-chip .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  padding: 5px;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.34, 1, 0.64, 1);
}

.mobile-menu-overlay.active .mobile-menu-bg {
  transform: translateY(0);
}

.mobile-menu-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-content {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-link {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-link:hover {
  color: var(--cyan);
  transform: scale(1.1);
}

.mobile-menu-footer {
  margin-top: 4rem;
}

.social-mini {
  display: flex;
  gap: 1.5rem;
}

.social-mini a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.social-mini a:hover {
  color: var(--cyan);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title .gradient {
  background: linear-gradient(135deg, var(--cyan), var(--primary), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== PROJECTS SECTION ===== */
#projects {
  padding: 8rem 2rem;
  position: relative;
}

/* Dynamic background overlay */
.project-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: all 1s ease;
}

/* Project Grid with scroll stagger effect */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  perspective: 2000px;
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center bottom;
}

.project-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--card-color, rgba(99,102,241,0.4));
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    0 0 40px var(--card-glow, rgba(99,102,241,0.15)),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-header {
  padding: 1.75rem 1.75rem 1rem;
  position: relative;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.card-star-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 0 15px rgba(245,158,11,0.4);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.card-problem {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 1.75rem;
}

.card-body {
  padding: 1rem 1.75rem 1.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.feature-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-color, var(--primary));
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--card-glow, rgba(99,102,241,0.6));
}

.card-impact {
  padding: 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.card-impact strong {
  color: var(--text-primary);
  font-style: normal;
}

/* Card glow line at top */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-color, var(--primary)), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* ===== ROADMAP SECTION ===== */
#roadmap {
  padding: 8rem 2rem;
  position: relative;
}

.roadmap-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--cyan), transparent);
  transform: translateX(-50%);
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.roadmap-item:nth-child(even) {
  flex-direction: row-reverse;
}

.roadmap-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 2;
  flex-shrink: 0;
}

.roadmap-content {
  width: calc(50% - 2rem);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.roadmap-content:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 30px rgba(99,102,241,0.1);
  transform: scale(1.02);
}

.roadmap-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.roadmap-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.roadmap-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-planning {
  background: rgba(99,102,241,0.15);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.25);
}

.status-inprogress {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.25);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 2s infinite;
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

/* Ensure contact grid cards are always visible */
.contact-grid {
  margin-bottom: 2rem;
}

#contact .social-grid {
  margin-bottom: 4rem;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(99,102,241,0.15);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.contact-info .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.social-btn {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-btn:hover {
  transform: translateY(-5px);
}

.social-btn .social-icon {
  font-size: 1.5rem;
}

.social-github:hover { border-color: #fff; color: #fff; box-shadow: 0 0 25px rgba(255,255,255,0.15); }
.social-whatsapp:hover { border-color: #25d366; color: #25d366; box-shadow: 0 0 25px rgba(37,211,102,0.2); }
.social-instagram:hover { border-color: #e1306c; color: #e1306c; box-shadow: 0 0 25px rgba(225,48,108,0.2); }
.social-twitter:hover { border-color: #1da1f2; color: #1da1f2; box-shadow: 0 0 25px rgba(29,161,242,0.2); }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

footer span {
  color: var(--primary);
}

/* ===== UTILITIES ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.glow-text {
  text-shadow: 0 0 30px rgba(99,102,241,0.5);
}

/* ===== SCROLL ANIMATIONS (initial states) ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.fade-right {
  opacity: 0;
  transform: translateX(-40px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .desktop-only {
    display: none;
  }

  .mobile-menu-btn {
    display: flex !important;
  }
  
  .nav-actions {
    gap: 0.75rem;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 7rem;
    padding-bottom: 3rem;
    text-align: center;
    align-items: center;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-right {
    display: contents;
  }

  .profile-photo-wrapper {
    order: 1;
    width: 180px;
    height: 180px;
    border: none;
    margin-bottom: 2rem;
  }
  
  .hero-left {
    order: 2;
    align-items: center;
    text-align: center;
  }
  
  .skills-grid {
    order: 3;
    margin-top: 1rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .photo-glow {
    filter: blur(40px);
  }

  .hero-badge {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-subtitle {
     font-size: 0.95rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .skill-chip {
    padding: 0.75rem 0.4rem;
  }

  .skill-chip .icon {
    font-size: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-item,
  .roadmap-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 3rem;
  }

  .roadmap-line {
    left: 1rem;
    transform: none;
  }

  .roadmap-dot {
    left: 1rem;
    transform: translate(-50%, 0);
  }

  .roadmap-content {
    width: 100%;
  }

  .nav-links {
    display: none !important;
  }
  
  .nav-logo {
    display: none !important;
  }
  
  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
}

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

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    width: 100%;
  }
  
  .skill-chip {
    padding: 0.6rem 0.25rem;
    width: 100%;
  }
  
  .skill-chip span {
    font-size: 0.65rem;
  }
  
  .section-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-name {
    font-size: 2.2rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-outline {
    width: 100%;
  }
}
