/* General Body & Font Styling */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* --- Vertical Navigation Bar --- */
.vertical-nav {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.vertical-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-nav ul::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 153, 51, 0.3) 20%,
    rgba(255, 153, 51, 0.6) 50%,
    rgba(255, 153, 51, 0.3) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 153, 51, 0.4);
}

.vertical-nav a {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 51, 0.2);
  width: auto;
  overflow: hidden;
}

.vertical-nav a:hover {
  transform: translateX(10px);
  background: rgba(255, 153, 51, 0.1);
  border-color: rgba(255, 153, 51, 0.5);
  box-shadow: 0 0 20px rgba(255, 153, 51, 0.4);
}

.vertical-nav i {
  font-size: 24px;
  color: #ff9933;
  text-shadow: 0 0 10px rgba(255, 153, 51, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 24px;
}

.vertical-nav a:hover i {
  color: #ffaa44;
  text-shadow: 0 0 15px rgba(255, 153, 51, 0.8);
  transform: scale(1.1);
}

.nav-label {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 153, 51, 0.3);
}

/* Minimized Navigation State (Desktop Scroll) */
.vertical-nav.minimized a {
  padding-right: 20px; /* Keep padding for roundness */
  width: 24px; /* Collapse width to icon size */
}
.vertical-nav.minimized .nav-label {
  opacity: 0;
  transform: translateX(-20px);
}

/* Hide mobile navigation on desktop */
.mobile-top-nav,
.mobile-bottom-nav {
  display: none;
}

/* Hide mobile-only nav items on desktop */
.mobile-only-nav {
  display: none;
}

/* Mobile App Style Navigation */
@media (max-width: 1024px) {
  /* Hide desktop vertical nav completely */
  .vertical-nav {
    display: none !important;
  }

  /* Hide desktop right buttons completely */
  .right-buttons {
    display: none !important;
  }

  /* Show mobile navigation */
  .mobile-top-nav,
  .mobile-bottom-nav {
    display: flex;
  }

  /* Show mobile-only nav items */
  .mobile-only-nav {
    display: block;
  }
}

/* Top Action Bar for Mobile/Tablet */
@media (max-width: 1024px) {
  .mobile-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255, 153, 51, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-top-nav.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-top-nav.visible {
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-top-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 25px;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .mobile-top-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 153, 51, 0.1),
      transparent
    );
    transition: left 0.5s;
  }

  .mobile-top-btn:hover::before {
    left: 100%;
  }

  .mobile-top-btn:hover {
    background: rgba(255, 153, 51, 0.1);
    border-color: rgba(255, 153, 51, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.2);
  }

  .mobile-top-btn i {
    font-size: 14px;
    color: #ff9933;
    text-shadow: 0 0 8px rgba(255, 153, 51, 0.5);
    transition: all 0.3s ease;
  }

  .mobile-top-btn:hover i {
    color: #ffaa44;
    text-shadow: 0 0 12px rgba(255, 153, 51, 0.7);
    transform: scale(1.05);
  }

  .mobile-top-btn.cta-btn {
    background: linear-gradient(135deg, #ff9933 0%, #ffaa44 100%);
    border-color: rgba(255, 153, 51, 0.6);
    box-shadow: 0 2px 10px rgba(255, 153, 51, 0.2);
    font-weight: 500;
    color: #000000;
    min-width: 120px;
  }

  .mobile-top-btn.cta-btn:hover {
    background: linear-gradient(135deg, #ffaa44 0%, #ff9933 100%);
    border-color: rgba(255, 153, 51, 0.8);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
    color: #000000;
  }

  .mobile-top-btn.cta-btn i {
    color: #000000;
    text-shadow: none;
    font-size: 14px;
  }

  .mobile-top-btn.cta-btn:hover i {
    color: #000000;
    text-shadow: none;
  }
}

/* Bottom Social Footer for Mobile/Tablet */
@media (max-width: 1024px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 153, 51, 0.15);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.6);
  }

  .mobile-bottom-nav.hidden {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-bottom-nav.visible {
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-bottom-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 40px;
    position: relative;
    overflow: hidden;
    margin: 0 6px;
  }

  .mobile-bottom-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 153, 51, 0.08) 0%,
      rgba(255, 170, 68, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-bottom-btn:hover::before {
    opacity: 1;
  }

  .mobile-bottom-btn:hover {
    background: rgba(255, 153, 51, 0.08);
    border-color: rgba(255, 153, 51, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.15);
  }

  .mobile-bottom-btn i {
    font-size: 16px;
    color: #ff9933;
    text-shadow: 0 0 8px rgba(255, 153, 51, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
  }

  .mobile-bottom-btn:hover i {
    color: #ffaa44;
    text-shadow: 0 0 15px rgba(255, 153, 51, 0.6);
    transform: scale(1.1);
  }

  /* Add elegant connecting line between buttons */
  .mobile-bottom-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 153, 51, 0.1) 20%,
      rgba(255, 153, 51, 0.2) 50%,
      rgba(255, 153, 51, 0.1) 80%,
      transparent 100%
    );
    z-index: 0;
  }

  /* Ensure buttons are above the line */
  .mobile-bottom-btn {
    z-index: 1;
    background: rgba(10, 10, 10, 0.9);
  }
}

/* --- Right Side Buttons --- */
.right-buttons {
  position: fixed;
  right: 30px;
  top: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.career-btn {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 25px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.career-btn:hover {
  transform: translateX(-5px);
  background: rgba(255, 153, 51, 0.1);
  border-color: rgba(255, 153, 51, 0.5);
  box-shadow: 0 6px 25px rgba(255, 153, 51, 0.2);
}

.cta-btn {
  background: linear-gradient(135deg, #ff9933 0%, #ffaa44 100%);
  border: none;
  border-radius: 25px;
  padding: 15px 25px;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 6px 25px rgba(255, 153, 51, 0.3);
  text-shadow: none;
  text-decoration: none;
}

.cta-btn:hover {
  transform: translateX(-5px) scale(1.05);
  background: linear-gradient(135deg, #ffaa44 0%, #ff9933 100%);
  box-shadow: 0 8px 30px rgba(255, 153, 51, 0.4);
}

/* Button Hide/Show Animation */
.right-buttons.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-buttons.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design for Right Buttons */
@media (max-width: 1024px) {
  /* Hide right buttons on tablet/mobile - they'll be integrated into nav */
  .right-buttons {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Right buttons are hidden on mobile - integrated into nav */
  .right-buttons {
    display: none !important;
  }
}

/* Mobile-Optimized Starfield Animation */
@keyframes starfield {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}

/* Slower animation for reduced motion preference */
@keyframes starfield-slow {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-50px);
  }
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    #0c0c0c 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f0f23 75%,
    #000000 100%
  );
  color: #e0e0e0;
  margin: 0;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Mobile-Optimized Animated Starfield Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Reduced from 30+ gradients to 12 for mobile performance */
  background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 140px 40px, #fff, transparent),
    radial-gradient(
      1px 1px at 200px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1px 1px at 260px 20px, #ddd, transparent),
    radial-gradient(
      1px 1px at 320px 60px,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(1px 1px at 380px 90px, #eee, transparent),
    radial-gradient(
      1px 1px at 440px 50px,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(1px 1px at 500px 10px, #fff, transparent),
    radial-gradient(
      1px 1px at 560px 80px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 620px 30px, #ddd, transparent),
    radial-gradient(
      1px 1px at 680px 70px,
      rgba(255, 255, 255, 0.6),
      transparent
    );
  background-size: 800px 100px;
  animation: starfield 30s linear infinite;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: starfield-slow 60s linear infinite;
  }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  body::before {
    /* Optimized version with fewer gradients for better mobile performance */
    background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent),
      radial-gradient(
        1px 1px at 80px 70px,
        rgba(255, 255, 255, 0.8),
        transparent
      ),
      radial-gradient(1px 1px at 140px 40px, #fff, transparent),
      radial-gradient(
        1px 1px at 200px 80px,
        rgba(255, 255, 255, 0.6),
        transparent
      );
    background-size: 400px 100px;
    animation: starfield 50s linear infinite;
  }
}

/* Ultra-mobile optimization for very small screens */
@media (max-width: 480px) {
  body::before {
    /* Minimal stars for very small screens */
    background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent),
      radial-gradient(
        1px 1px at 80px 70px,
        rgba(255, 255, 255, 0.8),
        transparent
      );
    background-size: 250px 100px;
    animation: starfield 70s linear infinite;
  }
}

/* Main Container & Layout */
.container {
  width: 100%;
  max-width: 1120px;
  position: relative;
  z-index: 10;
}

section {
  margin-bottom: 80px;
  padding-top: 40px;
}
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 100px;
  padding-top: 40px;
  min-height: 250px;
}
.hero-section h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}
.hero-section #typewriter-text {
  display: inline;
  border-right: 4px solid #ff9933;
  animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #ff9933;
  }
}
.hero-section .intro-bio {
  font-size: 20px;
  color: #a0a0a0;
  max-width: 700px;
  margin: 25px auto 50px auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* --- Profile Picture --- */
.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 153, 51, 0.6);
  box-shadow: 0 0 30px rgba(255, 153, 51, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  animation: gentleBounce 3s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.profile-picture:hover {
  transform: scale(1.05);
  border-color: rgba(255, 153, 51, 0.8);
  box-shadow: 0 0 40px rgba(255, 153, 51, 0.6), 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: none;
}

/* Responsive Design for Profile Picture */
@media (max-width: 768px) {
  .profile-container {
    margin-bottom: 25px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }

  @keyframes gentleBounce {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-6px);
    }
  }
}

@media (max-width: 480px) {
  .profile-container {
    margin-bottom: 20px;
  }

  .profile-picture {
    width: 100px;
    height: 100px;
    border-width: 2px;
  }

  @keyframes gentleBounce {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-5px);
    }
  }
}

/* --- PERFECT 3D SPHERICAL SOLAR SYSTEM --- */

/* --- Stats Section --- */
.stats-section {
  text-align: center;
  margin: 60px 0;
  padding: 0 20px;
}

.stats-section h2 {
  font-size: 22px;
  font-style: italic;
  color: #a0a0a0;
  margin-bottom: 35px;
  font-weight: 400;
  text-align: center;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 18px;
  padding: 30px 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 153, 51, 0.08) 0%,
    rgba(255, 153, 51, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: 0 12px 40px rgba(255, 153, 51, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: #ff9933;
  text-shadow: 0 0 20px rgba(255, 153, 51, 0.5);
  margin-bottom: 12px;
  line-height: 1;
  transition: all 0.3s ease;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-description {
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Responsive Design for Stats */
@media (max-width: 768px) {
  .stats-section {
    margin: 45px 0;
    padding: 0 15px;
  }

  .stats-section h2 {
    font-size: 19px;
    margin-bottom: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 380px;
  }

  .stat-item {
    padding: 25px 18px;
  }

  .stat-number {
    font-size: 32px;
    margin-bottom: 10px;
    min-height: 40px;
  }

  .stat-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    margin: 35px 0;
  }

  .stats-section h2 {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .stat-item {
    padding: 22px 15px;
  }

  .stat-number {
    font-size: 28px;
    min-height: 35px;
  }

  .stat-description {
    font-size: 13px;
  }
}

.tech-stack-section {
  background: transparent;
  position: relative;
}
.tech-stack-section .section-title,
.tech-stack-section p {
  position: relative;
  z-index: 3;
}

#universe {
  position: relative;
  height: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
  perspective-origin: center center;
  overflow: hidden;
  padding: 0 20px;
  background: transparent;
  z-index: 2;
}

#solar-system-container {
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: 12px;
  transform-style: preserve-3d;
  background: transparent;
}

body.view-3D #solar-system-container {
  transform: rotateX(75deg);
}

/* Perfect 3D Sun */
#sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8em;
  height: 8em;
  margin-top: -4em;
  margin-left: -4em;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff 0%,
    #ffee58 20%,
    #ffb300 50%,
    #ff8f00 80%,
    #e65100 100%
  );
  box-shadow: 0 0 120px rgba(255, 179, 0, 0.9), 0 0 200px rgba(255, 143, 0, 0.5),
    inset -20px -20px 40px rgba(0, 0, 0, 0.3),
    inset 20px 20px 40px rgba(255, 255, 255, 0.4);
  transform: rotateX(-90deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 700;
  color: #1a1a1a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: sunPulse 4s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

#sun:hover {
  transform: rotateX(-90deg) scale(1.1);
  box-shadow: 0 0 150px rgba(255, 179, 0, 1), 0 0 250px rgba(255, 143, 0, 0.7),
    inset -25px -25px 50px rgba(0, 0, 0, 0.4),
    inset 25px 25px 50px rgba(255, 255, 255, 0.5);
}

@keyframes sunPulse {
  0%,
  100% {
    box-shadow: 0 0 120px rgba(255, 179, 0, 0.9),
      0 0 200px rgba(255, 143, 0, 0.5),
      inset -20px -20px 40px rgba(0, 0, 0, 0.3),
      inset 20px 20px 40px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 140px rgba(255, 179, 0, 1), 0 0 220px rgba(255, 143, 0, 0.6),
      inset -25px -25px 50px rgba(0, 0, 0, 0.4),
      inset 25px 25px 50px rgba(255, 255, 255, 0.5);
  }
}

/* Orbit styling */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation-name: orbit;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  transition: all 0.3s ease;
}
.orbit:hover {
  border-color: rgba(255, 153, 51, 0.6);
  border-width: 2px;
  box-shadow: 0 0 20px rgba(255, 153, 51, 0.3),
    inset 0 0 20px rgba(255, 153, 51, 0.1);
  animation-play-state: paused;
}
.orbit:hover .pos {
  animation-play-state: paused;
}
.orbit:hover .planet {
  transform: scale(1.3) translateZ(15px);
}

.pos {
  position: absolute;
  top: 50%;
  width: 2em;
  height: 2em;
  margin-top: -1em;
  margin-left: -1em;
  transform-style: preserve-3d;
  animation-name: invert;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* TRUE 3D SPHERICAL PLANETS */
.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3em;
  height: 3em;
  margin-top: -1.5em;
  margin-left: -1.5em;
  border-radius: 50%;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: radial-gradient(
      ellipse 40% 30% at 30% 20%,
      rgba(255, 255, 255, 0.9),
      transparent 60%
    ),
    radial-gradient(
      ellipse 100% 100% at 50% 50%,
      rgba(180, 180, 180, 1) 0%,
      rgba(140, 140, 140, 1) 25%,
      rgba(100, 100, 100, 1) 50%,
      rgba(60, 60, 60, 1) 75%,
      rgba(30, 30, 30, 1) 100%
    ),
    radial-gradient(
      ellipse 120% 80% at 70% 70%,
      transparent 40%,
      rgba(0, 0, 0, 0.8) 100%
    );
  box-shadow: inset -25px -25px 50px rgba(0, 0, 0, 0.8),
    inset 25px 25px 50px rgba(255, 255, 255, 0.3),
    inset -15px -15px 30px rgba(0, 0, 0, 0.6),
    inset 15px 15px 30px rgba(255, 255, 255, 0.4),
    0 10px 20px rgba(0, 0, 0, 0.6), 0 20px 40px rgba(0, 0, 0, 0.4),
    0 40px 80px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: #fff;
  animation: sphereRotate 20s linear infinite;
}

@keyframes sphereRotate {
  0%,
  100% {
    background-position: 0% 0%, 0% 0%, 0% 0%;
  }
  25% {
    background-position: -20% 0%, 0% 0%, 20% 0%;
  }
  50% {
    background-position: -40% 0%, 0% 0%, 40% 0%;
  }
  75% {
    background-position: -20% 0%, 0% 0%, 20% 0%;
  }
}

.planet:hover {
  transform: scale(1.15) translateZ(10px);
  border-color: rgba(255, 153, 51, 0.6);
  animation-play-state: paused;
  box-shadow: inset -30px -30px 60px rgba(0, 0, 0, 0.9),
    inset 30px 30px 60px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 153, 51, 0.8), 0 15px 30px rgba(0, 0, 0, 0.7),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

.planet:active {
  transform: scale(0.95) translateZ(5px);
}
.planet.clicked {
  animation: planetClick 0.6s ease-out;
}

@keyframes planetClick {
  0% {
    transform: scale(1) translateZ(0px);
  }
  50% {
    transform: scale(1.25) translateZ(15px);
    box-shadow: 0 0 80px rgba(255, 153, 51, 1),
      inset -40px -40px 80px rgba(0, 0, 0, 1),
      inset 40px 40px 80px rgba(255, 255, 255, 0.5);
  }
  100% {
    transform: scale(1) translateZ(0px);
  }
}

.planet i,
.planet img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  position: relative;
  z-index: 3;
  filter: brightness(1.8) contrast(1.6) saturate(1.4)
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(15px);
  transform-style: preserve-3d;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6);
}

.planet:hover i,
.planet:hover img {
  filter: brightness(1.8) contrast(1.5) saturate(1.4)
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 30px rgba(255, 153, 51, 1));
  transform: translateZ(20px) scale(1.1);
  text-shadow: 0 0 15px #fff, 0 0 30px #fff, 0 0 45px rgba(255, 153, 51, 0.6);
}

/* Tech-specific planet colors and sizes - Elegant Space Theme */
#react .planet {
  background: radial-gradient(circle at 30% 30%, #4a90e2, #2c5aa0, #1a3a5c);
  width: 2em;
  height: 2em;
  margin-top: -1em;
  margin-left: -1em;
}
#python .planet {
  background: radial-gradient(circle at 30% 30%, #f39c12, #e67e22, #d35400);
  width: 2.2em;
  height: 2.2em;
  margin-top: -1.1em;
  margin-left: -1.1em;
}
#docker .planet {
  background: radial-gradient(circle at 30% 30%, #3498db, #2980b9, #1f4e79);
  width: 2.1em;
  height: 2.1em;
  margin-top: -1.05em;
  margin-left: -1.05em;
}
#flutter .planet {
  background: radial-gradient(circle at 30% 30%, #13b9fd, #0175c2, #02569b);
  width: 3.5em;
  height: 3.5em;
  margin-top: -1.75em;
  margin-left: -1.75em;
}
#n8n .planet {
  background: radial-gradient(circle at 30% 30%, #9b59b6, #8e44ad, #6c3483);
  width: 2.9em;
  height: 2.9em;
  margin-top: -1.45em;
  margin-left: -1.45em;
}
#kubernetes .planet {
  background: radial-gradient(circle at 30% 30%, #1abc9c, #16a085, #138d75);
  width: 3.2em;
  height: 3.2em;
  margin-top: -1.6em;
  margin-left: -1.6em;
}
#mongodb .planet {
  background: radial-gradient(circle at 30% 30%, #27ae60, #229954, #1e8449);
  width: 2.8em;
  height: 2.8em;
  margin-top: -1.4em;
  margin-left: -1.4em;
}
#gcloud .planet {
  background: radial-gradient(circle at 30% 30%, #34495e, #2c3e50, #1b2631);
  width: 2.3em;
  height: 2.3em;
  margin-top: -1.15em;
  margin-left: -1.15em;
}

/* Animations */
@keyframes orbit {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(-360deg);
  }
}
@keyframes invert {
  0% {
    transform: rotateX(-90deg) rotateY(360deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
  }
}

/* Orbit Speeds, Sizes, and Animations - Perfect Even Distribution */
/* Strategically positioned to ensure planets are always spread across all quadrants */

#react,
#react .pos {
  animation-duration: 15s; /* Fast */
  animation-delay: 0s; /* Start at 0 degrees (top) */
}
#react.orbit {
  width: 20em;
  height: 20em;
  margin: -10em;
}
#n8n,
#n8n .pos {
  animation-duration: 25s; /* Medium */
  animation-delay: -18.75s; /* Start at 225 degrees (bottom-left) */
}
#n8n.orbit {
  width: 76em;
  height: 76em;
  margin: -38em;
}
#docker,
#docker .pos {
  animation-duration: 20s; /* Medium-fast */
  animation-delay: -5s; /* Start at 60 degrees */
}
#docker.orbit {
  width: 36em;
  height: 36em;
  margin: -18em;
}
#python,
#python .pos {
  animation-duration: 30s; /* Medium-slow */
  animation-delay: -22.5s; /* Start at 270 degrees (left) */
}
#python.orbit {
  width: 44em;
  height: 44em;
  margin: -22em;
}
#kubernetes,
#kubernetes .pos {
  animation-duration: 18s; /* Fast */
  animation-delay: -9s; /* Start at 108 degrees */
}
#kubernetes.orbit {
  width: 52em;
  height: 52em;
  margin: -26em;
}
#flutter,
#flutter .pos {
  animation-duration: 28s; /* Medium */
  animation-delay: -14s; /* Start at 168 degrees (bottom-right) */
}
#flutter.orbit {
  width: 60em;
  height: 60em;
  margin: -30em;
}
#mongodb,
#mongodb .pos {
  animation-duration: 22s; /* Medium-fast */
  animation-delay: -11s; /* Start at 132 degrees */
}
#mongodb.orbit {
  width: 68em;
  height: 68em;
  margin: -34em;
}
#gcloud,
#gcloud .pos {
  animation-duration: 35s; /* Slow */
  animation-delay: -8.75s; /* Start at 90 degrees (right) */
}
#gcloud.orbit {
  width: 28em;
  height: 28em;
  margin: -14em;
}

/* Responsive Design */
@media (max-width: 768px) {
  #universe {
    height: 500px;
    perspective: 1200px;
    padding: 0 15px;
  }
  #solar-system-container {
    font-size: 10px;
  }
  #sun {
    width: 6em;
    height: 6em;
    margin-top: -3em;
    margin-left: -3em;
    font-size: 1.8em;
  }
  .planet {
    width: 2.5em;
    height: 2.5em;
    margin-top: -1.25em;
    margin-left: -1.25em;
    font-size: 1.8em;
  }

  /* Responsive planet sizes */
  #react .planet {
    width: 1.5em;
    height: 1.5em;
    margin-top: -0.75em;
    margin-left: -0.75em;
  }
  #python .planet {
    width: 1.7em;
    height: 1.7em;
    margin-top: -0.85em;
    margin-left: -0.85em;
  }
  #docker .planet {
    width: 1.6em;
    height: 1.6em;
    margin-top: -0.8em;
    margin-left: -0.8em;
  }
  #flutter .planet {
    width: 2.8em;
    height: 2.8em;
    margin-top: -1.4em;
    margin-left: -1.4em;
  }
  #n8n .planet {
    width: 2.3em;
    height: 2.3em;
    margin-top: -1.15em;
    margin-left: -1.15em;
  }
  #kubernetes .planet {
    width: 2.5em;
    height: 2.5em;
    margin-top: -1.25em;
    margin-left: -1.25em;
  }
  #mongodb .planet {
    width: 2.2em;
    height: 2.2em;
    margin-top: -1.1em;
    margin-left: -1.1em;
  }
  #gcloud .planet {
    width: 1.8em;
    height: 1.8em;
    margin-top: -0.9em;
    margin-left: -0.9em;
  }
  #react.orbit {
    width: 16em;
    height: 16em;
    margin: -8em;
  }
  #n8n.orbit {
    width: 58em;
    height: 58em;
    margin: -29em;
  }
  #docker.orbit {
    width: 28em;
    height: 28em;
    margin: -14em;
  }
  #python.orbit {
    width: 34em;
    height: 34em;
    margin: -17em;
  }
  #kubernetes.orbit {
    width: 40em;
    height: 40em;
    margin: -20em;
  }
  #flutter.orbit {
    width: 46em;
    height: 46em;
    margin: -23em;
  }
  #mongodb.orbit {
    width: 52em;
    height: 52em;
    margin: -26em;
  }
  #gcloud.orbit {
    width: 22em;
    height: 22em;
    margin: -11em;
  }
}

/* --- ALL SECTIONS BELOW THIS LINE ARE UNCHANGED --- */
.header {
  text-align: center;
  margin-bottom: 60px;
}
.header h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px 0;
}
.header .highlight {
  background: linear-gradient(90deg, #ff9933, #ff5f1f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header p {
  font-size: 18px;
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}
.intro-card {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 153, 51, 0.08) 0%,
    rgba(255, 153, 51, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.intro-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: 0 12px 40px rgba(255, 153, 51, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.intro-card:hover::before {
  opacity: 1;
}
.intro-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #ffffff;
}
.intro-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.knowledge-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.knowledge-item .icon {
  font-size: 24px;
  color: #ff9933;
  margin-top: 2px;
}
.knowledge-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #ffffff;
}
.knowledge-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a0;
  margin: 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% -20%,
    hsla(28, 100%, 60%, 0.5),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.card:hover::before {
  opacity: 1;
}
.card h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #ffffff;
}
.card p {
  font-size: 16px;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 30px;
}
.card a.explore-btn {
  display: inline-flex;
  align-items: center;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.card a.explore-btn:hover {
  background-color: #444;
  border-color: #777;
}
.card a.explore-btn .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.card a.explore-btn:hover .arrow {
  transform: translateX(4px);
}
.form-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #c0c0c0;
}
input,
select {
  width: 100%;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid #444;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  color: #e0e0e0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus,
select:focus {
  outline: none;
  border-color: #ff9933;
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}
button {
  background: linear-gradient(90deg, #ff9933, #ff5f1f);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 100, 30, 0.2);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#response-message {
  margin-top: 25px;
  font-weight: 500;
  font-size: 18px;
  height: 25px;
}
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.back-link:hover {
  color: #ffffff;
}

/* --- AI Voice Agent Demo Page --- */
.back-button {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
}

.back-button a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 25px;
  padding: 12px 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
}

.back-button a:hover {
  transform: translateX(-5px);
  background: rgba(255, 153, 51, 0.1);
  border-color: rgba(255, 153, 51, 0.5);
  box-shadow: 0 6px 25px rgba(255, 153, 51, 0.2);
}

.demo-header {
  text-align: center;
  margin: 100px 0 60px 0;
  padding: 0 20px;
}

.demo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff9933 0%, #ffaa44 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  box-shadow: 0 8px 30px rgba(255, 153, 51, 0.3);
}

.demo-icon i {
  font-size: 32px;
  color: #000000;
}

.demo-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255, 153, 51, 0.3);
}

.demo-description {
  font-size: 20px;
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.demo-form-container {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.demo-form {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 153, 51, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

.form-group input::placeholder {
  color: #666;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff9933 0%, #ffaa44 100%);
  border: none;
  border-radius: 15px;
  padding: 18px 30px;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 25px rgba(255, 153, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffaa44 0%, #ff9933 100%);
  box-shadow: 0 8px 30px rgba(255, 153, 51, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.success-message i {
  font-size: 48px;
  color: #00ff00;
  margin-bottom: 20px;
}

.success-message h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 15px;
}

.success-message p {
  color: #a0a0a0;
  font-size: 16px;
  line-height: 1.6;
}

.demo-features {
  max-width: 1000px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.demo-features h2 {
  text-align: center;
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: 0 12px 40px rgba(255, 153, 51, 0.25);
}

.feature-item i {
  font-size: 32px;
  color: #ff9933;
  margin-bottom: 20px;
}

.feature-item h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
}

.feature-item p {
  color: #a0a0a0;
  font-size: 14px;
  line-height: 1.6;
}

/* Medium screens - 2 cards per row */
@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

/* Responsive Design for Demo Page */
@media (max-width: 768px) {
  .back-button {
    top: 20px;
    left: 20px;
  }

  .back-button a {
    padding: 10px 16px;
    font-size: 13px;
  }

  .demo-header {
    margin: 80px 0 40px 0;
  }

  .demo-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .demo-icon i {
    font-size: 24px;
  }

  .demo-header h1 {
    font-size: 36px;
  }

  .demo-description {
    font-size: 18px;
  }

  .demo-form {
    padding: 30px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }

  .feature-item {
    padding: 25px 15px;
  }
}

@media (max-width: 1400px) {
  .demo-form-container {
    max-width: 1000px;
  }
}

@media (max-width: 1200px) {
  .demo-form-container {
    max-width: 900px;
  }
}

@media (max-width: 1024px) {
  .demo-form-container {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .demo-form-container {
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .demo-form-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .demo-header h1 {
    font-size: 28px;
  }

  .demo-description {
    font-size: 16px;
  }

  .demo-form {
    padding: 25px 15px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 15px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 15px 25px;
    font-size: 16px;
  }
}

/* --- RAG Agent Demo Specific Styles --- */

/* File Upload Styles */
.file-upload-container {
  position: relative;
  border: 2px dashed rgba(255, 153, 51, 0.3);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.file-upload-container:hover,
.file-upload-container.drag-over {
  border-color: rgba(255, 153, 51, 0.6);
  background: rgba(255, 153, 51, 0.05);
}

.file-upload-container input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-display {
  text-align: center;
  color: #a0a0a0;
}

.file-upload-display i {
  font-size: 32px;
  color: #ff9933;
  margin-bottom: 10px;
  display: block;
}

.file-upload-text {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #ffffff;
}

.file-upload-hint {
  display: block;
  font-size: 12px;
  color: #666;
}

.file-list {
  display: none;
  margin-top: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 8px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.file-info i {
  color: #ff9933;
  font-size: 16px;
}

.file-name {
  color: #ffffff;
  font-weight: 500;
}

.file-size {
  color: #a0a0a0;
  font-size: 12px;
}

.remove-file {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 4px;
  padding: 5px 8px;
  color: #ff6666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-file:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
}

/* Loading Animation Styles */
.loading-animation {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading-content {
  max-width: 400px;
  margin: 0 auto;
}

.chat-animation {
  margin-bottom: 30px;
}

.chat-bubble {
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 20px;
  padding: 20px;
  display: inline-block;
  position: relative;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #ff9933;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-animation h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 15px;
}

.loading-animation p {
  color: #a0a0a0;
  font-size: 16px;
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 153, 51, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9933, #ffaa44);
  border-radius: 2px;
  animation: progress 120s linear infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Chat Interface Styles */
.chat-interface {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.chat-header {
  background: rgba(255, 153, 51, 0.1);
  border-bottom: 1px solid rgba(255, 153, 51, 0.3);
  padding: 20px;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.chat-agent-info i {
  font-size: 24px;
  color: #ff9933;
}

.chat-agent-info h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 5px 0;
}

.chat-agent-info p {
  color: #a0a0a0;
  font-size: 14px;
  margin: 0;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.message {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.message-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 80%;
}

.user-message .message-content {
  flex-direction: row-reverse;
  margin-left: auto;
}

.user-message .message-content i {
  color: #4a90e2;
}

.agent-message .message-content i {
  color: #ff9933;
}

.message-content i {
  font-size: 16px;
  margin-top: 2px;
}

.message-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

.user-message .message-text {
  background: rgba(74, 144, 226, 0.2);
  border-color: rgba(74, 144, 226, 0.3);
}

.agent-message .message-text {
  background: rgba(255, 153, 51, 0.1);
  border-color: rgba(255, 153, 51, 0.3);
}

.message-time {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  text-align: right;
}

.user-message .message-time {
  text-align: left;
}

.typing-message .message-text {
  padding: 8px 16px;
}

.chat-input-container {
  background: rgba(255, 153, 51, 0.1);
  border-top: 1px solid rgba(255, 153, 51, 0.3);
  padding: 20px;
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input-wrapper input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 153, 51, 0.2);
  border-radius: 25px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.chat-input-wrapper input:focus {
  outline: none;
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

.chat-input-wrapper input::placeholder {
  color: #666;
}

.send-btn {
  background: linear-gradient(135deg, #ff9933 0%, #ffaa44 100%);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.send-btn i {
  font-size: 16px;
}

/* Responsive Design for RAG Agent Demo */
@media (max-width: 768px) {
  .file-upload-container {
    padding: 15px;
  }

  .file-upload-display i {
    font-size: 24px;
  }

  .file-upload-text {
    font-size: 14px;
  }

  .loading-animation {
    padding: 30px 20px;
  }

  .loading-animation h3 {
    font-size: 20px;
  }

  .loading-animation p {
    font-size: 14px;
  }

  .chat-messages {
    height: 300px;
    padding: 15px;
  }

  .message-content {
    max-width: 90%;
  }

  .message-text {
    font-size: 13px;
    padding: 10px 14px;
  }

  .chat-input-container {
    padding: 15px;
  }

  .chat-input-wrapper input {
    padding: 10px 16px;
    font-size: 13px;
  }

  .send-btn {
    width: 40px;
    height: 40px;
  }

  .send-btn i {
    font-size: 14px;
  }
}

/* CTA Section Styling */
.cta-section {
  margin: 80px 0 60px;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 35, 0.8),
    rgba(25, 25, 55, 0.8)
  );
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 25px;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 153, 51, 0.1),
    rgba(255, 170, 68, 0.05)
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff9933, #ffaa44);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff9933, #ffaa44);
  color: #000000;
  text-decoration: none;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 153, 51, 0.4);
  background: linear-gradient(135deg, #ffaa44, #ffbb55);
}

.cta-button i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* Mobile Responsive for CTA */
@media (max-width: 768px) {
  .cta-section {
    margin: 60px 0 40px;
    padding: 40px 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/* Main content wrapper to push footer down */
.container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
}

/* Footer */
.site-footer {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 25, 0.95),
    rgba(20, 20, 40, 0.95)
  );
  border-top: 1px solid rgba(255, 153, 51, 0.3);
  backdrop-filter: blur(15px);
  margin-top: auto;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 153, 51, 0.05),
    rgba(255, 170, 68, 0.02)
  );
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: #ff9933;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.contact-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.contact-link:hover {
  color: #ff9933;
  transform: translateX(5px);
}

.location {
  color: #a0a0a0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ff9933;
  transform: translateX(5px);
}

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

.social-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.social-link:hover {
  color: #ff9933;
  transform: translateX(5px);
}

.availability {
  color: #a0a0a0;
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff9933, #ffaa44);
  color: #000000;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
  background: linear-gradient(135deg, #ffaa44, #ff9933);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 153, 51, 0.2);
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: #a0a0a0;
  font-size: 14px;
  margin: 0;
}

.built-with {
  color: #ff9933 !important;
  font-weight: 500;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .contact-link,
  .footer-links a,
  .social-link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 30px 15px 20px;
  }

  .footer-section h3 {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .footer-cta {
    padding: 10px 16px;
    font-size: 13px;
  }
}
