/* ============================================
   NAVIGATION FIXES v7.0
   - Keep original gradient/transparent background
   - Add smooth page transitions
   - Fix logo visibility
   - Optimize all pages
   ============================================ */

/* NAVIGATION: Keep original styling from homepage */
.navbar {
  background: rgba(10, 36, 99, 0.95) !important;
  backdrop-filter: blur(10px) !important;
}

.navbar.scrolled {
  background: rgba(10, 36, 99, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

.nav-link {
  color: #ffffff !important;
}

.nav-link:hover {
  color: #5eead4 !important;
}

.nav-link.active {
  color: #5eead4 !important;
}

/* Logo Styling - Transparent Logo */
.logo-img,
.logo-image {
  height: 50px !important;
  width: auto !important;
  max-width: 150px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain !important;
  filter: none !important;
}

.logo-text {
  display: none !important; /* Hide text since logo already contains it */
}

.logo-accent {
  color: #14b8a6 !important;
}

/* SMOOTH PAGE TRANSITIONS */
body {
  opacity: 0;
  animation: fadeInPage 0.5s ease-in forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth !important;
}

/* Page transition on link click */
a:not([href^='#']) {
  transition: opacity 0.2s ease;
}

/* Section animations */
.section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

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

/* SUBPAGE SPECIFIC FIXES */
body:not(.home) {
  padding-top: 80px !important;
}

/* Ensure sections have proper spacing on subpages */
.section:first-of-type {
  padding-top: 100px !important;
}

/* Dark sections text contrast */
.section-dark .section-title,
.section-dark .section-description,
.section-dark h3,
.section-dark p {
  color: #ffffff !important;
}

/* Timeline items animation */
.timeline-item {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.5s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.7s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tech badges animation */
.tech-badge {
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.4s ease-out forwards;
}

.tech-badge:nth-child(1) {
  animation-delay: 0.4s;
}
.tech-badge:nth-child(2) {
  animation-delay: 0.5s;
}
.tech-badge:nth-child(3) {
  animation-delay: 0.6s;
}
.tech-badge:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FAQ items animation */
.faq-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.faq-item:nth-child(1) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.5s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.6s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.7s;
}
.faq-item:nth-child(6) {
  animation-delay: 0.8s;
}

/* Mobile menu fixes - ORIGINAL STYLE */
@media (max-width: 768px) {
  .nav-menu {
    background: rgba(10, 36, 99, 0.98) !important;
  }

  .nav-menu.active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  }

  .nav-link {
    color: #ffffff !important;
  }

  .logo-img,
  .logo-image {
    height: 38px !important;
    max-width: 113px !important;
  }
}
