:root {
  --primary: #0A2540;
  --secondary: #00B4D8;
  --accent: #FF9F1C;
}

body { font-family: 'Inter', sans-serif; color: #333; }

/* Hero */
.hero {
  padding-top: 80px; /* Height of navbar + buffer */
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.home-page .hero-background {
  background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)), 
              url('/image/developer-coding-on-laptop-ai-600nw-2686216519.webp') center/cover no-repeat fixed;
}

.about-page .hero-background {
  background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)), 
              url('/image/360_F_728103698_tuOBVWpvGDbZvy69Le1eNR3LOUUoF9Mp.jpg') center/cover no-repeat fixed;
}

.services-page .hero-background {
  background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)), 
              url('/image/services.avif') center/cover no-repeat fixed;
}

.portfolio-page .hero-background {
  background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)), 
              url('/image/abstract-digital-circuit-board-on-600nw-2473370835.webp') center/cover no-repeat fixed;
}

.contact-page .hero-background {
  background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)), 
              url('/image/image.jpg') center/cover no-repeat fixed;
}

/* Wave bottom */
.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
}

.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

/* Buttons */
.btn-info:hover, .btn-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .hero {
    padding-top: 70px;
  }
  h1.display-4 {
    font-size: 2.5rem;
  }
  .fs-2 {
    font-size: 1.5rem !important;
  }
}

.card { transition: transform 0.3s; }
.card:hover { transform: translateY(-10px); }

.card:hover { transform: translateY(-8px); transition: all 0.3s; }

/* Navbar base */
/* Navbar full width & padding fix */
.navbar {
  background-color: #0A2540 !important;
  padding: 0.8rem 0;
  min-height: 70px;
}

/* Links container - full width, scrollable, hidden scrollbar */
.nav-links {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  max-width: 100%;
  flex-grow: 1; /* Takes remaining space */
}

/* Hide scrollbar completely */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Mobile: compact + full-width feel */
@media (max-width: 576px) {
  .nav-links {
    gap: 0.5rem !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    min-width: auto;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  .navbar-brand span {
    font-size: 1.1rem;
  }
}

/* Desktop: normal spacing */
@media (min-width: 577px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}

/* Hover & Active */
.nav-link:hover {
  color: #00B4D8 !important;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  color: #00B4D8 !important;
  background-color: rgba(0, 180, 216, 0.25);
}
/* Footer social icons hover */
footer a.text-white:hover,
footer a.hover-text-info:hover {
  color: var(--secondary) !important;  /* Teal on hover */
  transition: color 0.3s ease;
}

/* Quick links hover */
footer a.text-white-50:hover {
  color: var(--secondary) !important;
}
/* Founder image with caption */
.founder-img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.founder-caption {
  background: rgba(0, 0, 0, 0.7);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* Mobile adjustments for founder section */
@media (max-width: 991px) {
  .founder-img {
    max-height: 400px;
  }
  .founder-caption {
    padding: 1rem;
  }
  .founder-caption h5 {
    font-size: 1.3rem;
  }
  .founder-caption p {
    font-size: 0.9rem;
  }
}

/* Hero height on mobile */
/* ONLY About page hero - Smaller on mobile, normal on desktop */


/* Mobile-only reduction for About page hero */
@media (max-width: 767px) {
  .about-page .hero {
    min-height: 70vh; /* Much shorter on mobile - only affects About page */
    padding-top: 70px;
  }
  
  .about-page h1.display-4 {
    font-size: 2.5rem; /* Smaller title on mobile About page */
  }
  
  .about-page p.fs-4 {
    font-size: 1.5rem !important;
  }
  .services-page .hero{
      min-height: 70vh; 
    padding-top: 70px;
  }
  .services-page  h1.display-4{
     font-size: 2.5rem;
  }
  .services-page p.fs-4{
    font-size: 1.5rem !important;
  }
}
/* Portfolio page hero - shorter */


/* Mobile hero reduction (general, but adjustable) */
@media (max-width: 767px) {
  .portfolio-page .hero {
    min-height: 70vh;
  }
  .portfolio-page h1.display-4 {
    font-size: 2.5rem;
  }
  .portfolio-page p.fs-3 {
    font-size: 1.5rem !important;
  }
  .contact-page .hero {
    min-height: 70vh;
  }
}

/* Card improvements */
.card {
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* CTA buttons */
.btn-info, .btn-outline-info {
  transition: all 0.3s ease;
}
.btn-info:hover, .btn-outline-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

