/* =========================================
   🔹 Root Variables & Reset
========================================= */
:root {
  --codinav-blue: #A7E1F7;
  --codinav-mint: #B6EAD9;
  --codinav-light: #E1E7EA;
  --codinav-dark: #0f172a;
}

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

html {
  height: auto;
}

body {
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background: var(--codinav-dark);
  color: var(--codinav-light);
  overflow-x: hidden;
}


/* =========================================
   🔹 Logo
========================================= */
.logo-header {
  position: absolute;
  top: 20px;
  left: 50px;
  z-index: 100;
}

.site-logo {
  width: 260px;
  height: auto;
}


/* =========================================
   🔹 Hero Section
========================================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: visible;
  background: url('../assets/images/hero-placeholder.png') no-repeat center center / cover;
  animation: fadeInLeft 2s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.hero.fade-out {
  opacity: 0;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 1));
  pointer-events: none;
  z-index: 2;
}

.hero-overlay {
  background-color: rgba(15, 23, 42, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  position: relative;
}

.hero-text {
  max-width: 600px;
  z-index: 10;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--codinav-light);
  width: 0;
}

#hero-title {
  font-size: 2.8rem;
  animation: typing 2s steps(30, end) forwards, blink 0.75s step-end infinite;
}

.subtitle {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: var(--codinav-mint);
  animation: typing-sub 2s steps(40, end) forwards 2.2s, blink 0.75s step-end infinite 2.2s;
}



/* =========================================
   🔹 Navbar & Dropdown
========================================= */
.navbar-placement {
  margin-top: 4rem;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: center;
}

.navbar.glassy {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  max-width: 700px;
  width: 100%;
  text-align: center;
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--codinav-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  transition: color 0.3s ease;
}

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 10;
}

.dropdown-menu li a {
  padding: 0.5rem 1rem;
  display: block;
  color: var(--codinav-mint);
}

.dropdown:hover .dropdown-menu {
  display: block;
}


/* =========================================
   🔹 Mobile Nav & Responsiveness
========================================= */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .logo-header {
    top: 30px;
    left: 20px;
  }

  .site-logo {
    width: 100px;
  }

  .hero-overlay {
    padding: 0 1rem;
    padding-top: 140px;
    justify-content: flex-start;
  }

  .hero-text {
    max-width: 100%;
  }

  #hero-title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .navbar-placement {
    margin-top: 2rem;
    padding-left: 0;
    justify-content: center;
  }

  .navbar.glassy {
    padding: 1rem;
    max-width: 90%;
    flex-direction: column;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-only {
    display: block;
    text-align: right;
    font-size: 1.6rem;
    margin-top: 1rem;
    cursor: pointer;
    color: var(--codinav-light);
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .mobile-nav.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.06);
    padding-left: 1rem;
  }

  .dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    padding: 0 1rem;
  }
}
/* Animations */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes typing-sub {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--codinav-light); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   🔹 Codinav Section (Corrected + Optimized)
========================================= */
.codinav-section {
  height: 100vh;
  width: 100%;
  padding: 5rem 2rem;
  background-color: #0f172a; /* ✅ solid dark fallback */
  background-image: url('../assets/images/codinav-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--codinav-light);
  border-radius: 60px 60px 0 0;
  overflow: hidden;
}

.codinav-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85); /* ✅ overlay for contrast */
  backdrop-filter: blur(6px);
  z-index: 1;
}

.codinav-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--codinav-blue);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.codinav-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap; /* 🔥 Important: Prevent vertical stacking */
  position: relative;
  z-index: 2;
  min-height: 600px;
}


.robot-side {
  flex: 0 0 320px; /* 🔥 Fixed width */
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-image img {
  height: 500px;
  width: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.content-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0; /* Prevent overflow */
}

.speech-box {
  min-height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  font-size: 1rem;
  color: var(--codinav-light);
  font-weight: 500;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.codinav-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  min-height: 180px;
  width: 100%;
  transition: opacity 0.4s ease;
}
.codinav-images img {
  transition: opacity 0.3s ease;
  opacity: 1;
}
.codinav-images.fade {
  opacity: 0;
  pointer-events: none;
}

.image-box {
  flex: 1 1 150px;
  min-width: 150px;
  max-width: 200px;
  min-height: 160px;
  height: 160px;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}




.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 🔹 Codinav Tabs */
.codinav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.codinav-tab {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--codinav-light);
  color: var(--codinav-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.codinav-tab:hover {
  background: var(--codinav-blue);
  color: var(--codinav-dark);
  border-color: var(--codinav-blue);
}

.codinav-tab.active {
  background: var(--codinav-blue);
  color: var(--codinav-dark);
  border-color: var(--codinav-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 🔹 Scroll Reveal */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}







/* =========================================
   🔹 Section: Packages
========================================= */
.packages-section {
  min-height: 100vh;
  padding: 2rem 2rem 3rem;
  background: url('../assets/images/bg-placeholder.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}

.packages-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch; /* ✅ make all cards the same height */
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}




/* =========================================
   🔹 Sidebar
========================================= */
.sidebar {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: nowrap;
}





/* =========================================
   🔹 Package Cards
========================================= */
.package-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 100%;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: white;
  backdrop-filter: blur(14px);
  transform-origin: center center;
  position: relative;
  z-index: 1;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
} 

.package-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.package-card.moving {
  transform: scale(1.02);
}

.package-card:hover {
  transform: scale(1.05);
  z-index: 2;
}

.package-card.active {
  transform: scale(1.15);
  z-index: 3;
  background: rgba(255, 255, 255, 0.18);
}

.package-card.dimmed {
  opacity: 0.4;
  transform: scale(0.92);
  z-index: 1;
}

.package-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.package-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
/* -----------------------------------------
   📐 Package Card Typography Enhancements
------------------------------------------ */

.package-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.package-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  color: var(--codinav-light);
  margin-bottom: 1rem;
}

.package-card p.price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.package-card p.short-desc {
  font-size: 0.95rem;
  color: var(--codinav-mint);
  font-weight: 400;
  margin-bottom: 1rem;
}

.package-card p.usage-note {
  font-size: 0.85rem;
  font-style: italic;
  color: #bbb;
  margin-bottom: 1.2rem;
}

.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.package-card ul li {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}


/* =========================================
   🔹 Continue Button
========================================= */
.package-card .continue-btn {
  margin-top: 1rem;
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.package-card .continue-btn:hover {
  background: white;
  color: #0f172a;
}


/* =========================================
   🔹 Theme Borders (Optional)
========================================= */
.package-card.silver { border: 2px solid #ccc; }
.package-card.lightblue { border: 2px solid #A7E1F7; }
.package-card.classy { border: 2px solid #7CA3E0; }
.package-card.max { border: 2px solid #6D28D9; }


/* =========================================
   🔹 Package Content Panel
========================================= */
.package-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../assets/images/panel-bg.jpg') center center / cover no-repeat; /* ✅ Your image here */
  z-index: 10;
  display: none;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  overflow-y: auto;
  padding: 4rem 2rem;
}

.panel-overlay {
  background: rgba(15, 23, 42, 0.85); /* ✅ dark transparent layer */
  width: 100%;
  height: 100%;
  padding: 2rem;
  border-radius: 16px;
}

.package-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.package-title {
  text-align: center;
  font-size: 2rem;
}

.package-main {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.package-left, .package-right {
  flex: 1;
  min-width: 280px;
}

.package-what-you-get,
.package-process {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: var(--codinav-light);
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.package-extra {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: var(--codinav-light);
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

package-extra h4 {
  color: #ff5c5c; /* bright red heading */
}

.package-extra p {
  color: #ff9999; /* soft red text */
}
.package-right img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.package-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.chat-btn, .pay-btn {
  background: white;
  color: #0f172a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.package-what-you-get h4,
.package-process h4 {
  color: var(--codinav-mint);
}

.package-what-you-get p,
.package-process p {
  color: var(--codinav-light);
}


/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.4s; }
.fade-in-delay-2 { animation-delay: 0.8s; }
.fade-in-delay-3 { animation-delay: 1.2s; }
.fade-in-delay-4 { animation-delay: 1.6s; }

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


/* =========================================
   🔹 Content Box
========================================= */
.content-box h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.content-box p {
  color: #ccc;
  line-height: 1.5;
}


/* =========================================
   🔹 Intro Headline Styling
========================================= */
.intro-highlight {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.intro-highlight.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-highlight .line1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.intro-highlight .line2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--codinav-mint);
  opacity: 0.8;
  letter-spacing: 0.3px;
}






/* =========================================
   🔹 Back Button
========================================= */
.back-btn {
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  color: var(--codinav-blue);
  cursor: pointer;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  display: inline-block;
  position: relative;
  z-index: 10;
}

.back-btn:hover {
  color: var(--codinav-light);
  text-decoration: underline;
}

#selected-content {
  padding-top: 1.5rem;
}

/* =========================================
   🔹 Fixed Package Nav (Appears After Continue)
========================================= */
.fixed-package-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 999;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mini-package-btn {
  background: transparent;
  border: 2px solid var(--codinav-light);
  color: var(--codinav-light);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mini-package-btn:hover,
.mini-package-btn.active {
  background: var(--codinav-blue);
  color: var(--codinav-dark);
  border-color: var(--codinav-blue);
}


/* =========================================
   🔹 Close Button in Content Panel
========================================= */
.close-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  background: white;
  color: var(--codinav-dark);
  border: none;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
}


