:root {
  /* Updated brand colors */
  --primary-dark: #052f5c;    /* darkest ridge of the cedar */
  --primary:      #18629e;    /* calculated mid-tone between the two blues */
  --accent:       #2c95e0;    /* bright highlight */
  
  /* Supporting neutrals (unchanged) */
  --secondary:    #0f1b2d;
  --light:        #f8f9fa;
  --dark:         #212529;
  --gray:         #6c757d;
  --light-gray:   #e9ecef;

  /* Updated gradients */
  --gradient:      linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 10%);
  --gradient-dark: linear-gradient(135deg, #031d3a 0%, #0c4f86 60%);
}
.navbar-logo {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .navbar-logo {
    height: 45px;
    max-width: 140px;
  }
}

/* All other CSS remains the same */

/*───────────────────────────────────────────────
  Global reset & typography
────────────────────────────────────────────────*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ONE rule is enough – remove the media-query override */
.logo {
  width: 200px;    /* or `max-width: 200px` */
  height: auto;    /* browser calculates height from the bitmap */
  display: block;  /* avoids inline-gap if you like */
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; position: relative; margin-bottom: 3rem; }

/* h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
} */

h2.text-center::after { left: 50%; transform: translateX(-50%); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.lead { font-size: 1.25rem; font-weight: 300; }

/*───────────────────────────────────────────────
  Buttons
────────────────────────────────────────────────*/
.btn {
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline-light {
  border: 2px solid #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/*───────────────────────────────────────────────
  Pre-loader
────────────────────────────────────────────────*/
#preloader {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }

.preloader-logo { animation: pulse 1.5s infinite; }

@keyframes pulse {
  0% { transform: scale(1);   opacity: 1; }
  50%{ transform: scale(1.1); opacity: 0.8; }
  100%{transform: scale(1);   opacity: 1; }
}

/*───────────────────────────────────────────────
  Navbar
────────────────────────────────────────────────*/
.navbar {
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  
  /* Glass effect styles */
  background: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Frosted glass blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
}
.nav-link{
  color: #123974!important;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem; padding: 0.2rem 1.3rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: rgba(3, 71, 133, 0.1);
  color: '';
}

.navbar-nav .nav-link.active {
  background: var(--gradient);
  color: #fff !important;
}

.navbar-scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/*───────────────────────────────────────────────
  Hero
────────────────────────────────────────────────*/
#home {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--gradient-dark);
}

.hero-content { position: relative; z-index: 2; padding-top: 5rem; }

.hero-logo {
  height: 80px; margin-bottom: 2rem;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}
    
    .hero-shape {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,224L48,218.7C96,213,192,203,288,197.3C384,192,480,192,576,181.3C672,171,768,149,864,149.3C960,149,1056,171,1152,170.7C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
      background-size: cover;
      background-position: bottom;
    }
    
    .hero-code-box {
      position: relative;
      transform-style: preserve-3d;
    animation: float 6s ease-in-out;
    }
    
    @keyframes float {
      0% { transform: translateY(0) rotate(1deg); }
      50% { transform: translateY(-20px) rotate(2deg); }
      100% { transform: translateY(0) rotate(1deg); }
    }
    
    .hero-code-box::before,
    .hero-code-box::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.1);
      z-index: -1;
    }
    
    .hero-code-box::before {
      top: -10px;
      left: -10px;
      transform: rotate(-3deg);
    }
    
    .hero-code-box::after {
      top: 10px;
      left: 10px;
      transform: rotate(3deg);
    }
    
    /* Section Styling */
    section {
      padding: 6rem 0;
      position: relative;
    }
    
    .section-title {
      text-align: center;
      margin-bottom: 4rem;
    }
    
    .section-title p {
      max-width: 700px;
      margin: 1rem auto 0;
      color: var(--gray);
    }
    
    .section-pattern {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      opacity: 0.03;
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23034785' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      z-index: -1;
    }
    
    /* Services */
    .service-card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      height: 100%;
      box-shadow: var(--shadow);
      border: 1px solid rgba(0, 0, 0, 0.05);
      position: relative;
    }
    
    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-hover);
    }
    .service-icon{
      height: 80px;
      width: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 102, 255, 0.1);
      border-radius: 50%;
      margin: 2rem auto 1.5rem;
      font-size: 2rem;
      color: var(--primary);
      transition: all 0.3s ease;
    }
    .service-icon,
.portfolio-overlay,
.process-item .step,
.stat-item h2:after,
.social-links a:hover,
.back-to-top,
.story-header {
  /* These were previously set with generic blues;
     they now pull directly from our brand tokens. */
  background: var(--gradient);
  color: #fff;
}
.service-card:hover .service-icon { background: var(--gradient); color: #fff; }
.portfolio-overlay { background: rgba(3, 71, 133, 0.85); }
    
    .service-card:hover .service-icon {
      transform: scale(1.1);
      background: var(--gradient);
      color: white;
    }
    
    .service-card h5 {
      margin-bottom: 1rem;
    }
    
    .service-card .card-body {
      padding: 2rem;
    }
    
    /* Stats */
    #stats {
      background: var(--gradient-dark);
      position: relative;
      overflow: hidden;
    }
    
    .stat-item {
      padding: 1.5rem;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }
    
    .stat-item.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .stat-item h2 {
      font-size: 3.5rem;
      margin-bottom: 0.5rem;
      color: white;
    }
    
    .stat-item h2:after {
      background: rgba(255, 255, 255, 0.3);
      left: 50%;
      transform: translateX(-50%);
    }
    
    .stat-item p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1.1rem;
      margin-bottom: 0;
    }
    
    /* Portfolio */
    .portfolio-item {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
      height: 300px;
      cursor: pointer;
      transform: translateY(0);
      transition: all 0.4s ease;
    }
    
    .portfolio-item:hover {
      transform: translateY(-10px);
    }
    
    .portfolio-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.5s ease;
    }
    
    .portfolio-item:hover img {
      transform: scale(1.1);
    }
    
    .portfolio-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 102, 255, 0.8);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem;
      opacity: 0;
      transition: all 0.3s ease;
    }
    
    .portfolio-item:hover .portfolio-overlay {
      opacity: 1;
    }
    
    /* Process */
    .process-timeline {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
    }
    
    .process-timeline:before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 100%;
      background: var(--light-gray);
    }
    
    .process-item {
      position: relative;
      width: 50%;
      padding: 2rem;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.5s ease;
    }
    
    .process-item.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .process-item:nth-child(odd) {
      left: 0;
      padding-right: 3rem;
      text-align: right;
    }
    
    .process-item:nth-child(even) {
      left: 50%;
      padding-left: 3rem;
    }
    
    .process-item:before {
      content: '';
      position: absolute;
      top: 2.5rem;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: white;
      border: 4px solid var(--primary);
      z-index: 1;
    }
    
    .process-item:nth-child(odd):before {
      right: -12px;
    }
    
    .process-item:nth-child(even):before {
      left: -12px;
    }
    
    .process-item .step {
      position: absolute;
      top: 1.5rem;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: white;
      background: var(--primary);
      transition: all 0.3s ease;
    }
    
    .process-item:hover .step {
      transform: scale(1.1);
      background: var(--accent);
    }
    
    .process-item:nth-child(odd) .step {
      right: -20px;
    }
    
    .process-item:nth-child(even) .step {
      left: -20px;
    }
    
    .process-item .card {
      border: none;
      border-radius: 12px;
      box-shadow: var(--shadow);
      transition: all 0.3s ease;
    }
    
    .process-item .card:hover {
      box-shadow: var(--shadow-hover);
    }
    
    /* Testimonials */
    .testimonial-card {
      background: white;
      border-radius: 16px;
      padding: 2.5rem;
      box-shadow: var(--shadow);
      margin: 1rem;
      position: relative;
      transform: translateY(0);
      transition: all 0.3s ease;
    }
    
    .testimonial-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-hover);
    }
    
    .testimonial-card:before {
      content: '"';
      position: absolute;
      top: 1rem;
      left: 1.5rem;
      font-size: 5rem;
      font-family: Georgia, serif;
      color: rgba(0, 102, 255, 0.1);
      line-height: 1;
    }
    
    .testimonial-content {
      font-size: 1.1rem;
      font-style: italic;
      color: var(--gray);
      margin-bottom: 1.5rem;
    }
    
    .testimonial-author {
      display: flex;
      align-items: center;
    }
    
    .testimonial-author img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-right: 1rem;
      object-fit: cover;
    }
    
    .testimonial-author h6 {
      margin-bottom: 0.25rem;
      font-size: 1.1rem;
    }
    
    .testimonial-author p {
      margin-bottom: 0;
      color: var(--gray);
      font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq-item {
      margin-bottom: 1rem;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }
    
    .faq-item:hover {
      box-shadow: var(--shadow);
    }
    
    .faq-question {
      padding: 1.5rem;
      background: white;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
    }
    
.faq-question:hover {
  background: rgba(3, 71, 133, 0.05); /* uses --primary in RGB */
}

    
    .faq-answer {
      padding: 0 1.5rem;
      max-height: 0;
      overflow: hidden;
      background: white;
      color: var(--gray);
      transition: all 0.5s ease;
    }
    
    .faq-item.active .faq-answer {
      padding: 0 1.5rem 1.5rem;
      max-height: 500px;
    }
    
    .faq-item.active .faq-question i {
      transform: rotate(180deg);
    }
    
    /* Contact */
    #contact {
      background: var(--secondary);
      color: white;
      position: relative;
      overflow: hidden;
    }
    
    .contact-content h2 {
      color: white;
    }
    
    .contact-content h2:after {
      background: var(--accent);
    }
    
    .contact-form .form-control {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 12px;
      padding: 1rem 1.5rem;
      color: white;
      margin-bottom: 1rem;
      transition: all 0.3s ease;
    }
    
    .contact-form .form-control:focus {
      box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.3);
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
    }
    
    .contact-form .form-control::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }
    
    /* Footer */
    footer {
      background: var(--secondary);
      color: rgba(255, 255, 255, 0.6);
      padding: 3rem 0;
      font-size: 0.9rem;
    }
    
    .footer-links {
      list-style: none;
      padding: 0;
    }
    
    .footer-links li {
      margin-bottom: 0.75rem;
    }
    
    .footer-links a {
      color: rgba(255, 255, 255, 0.6);
      text-decoration: none;
      transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
      color: white;
      transform: translateX(5px);
    }
    
    .social-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      margin-right: 0.75rem;
      transition: all 0.3s ease;
    }
    
    .social-links a:hover {
      background: var(--primary);
      transform: translateY(-3px);
    }
    
    .copyright {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 1.5rem;
      margin-top: 2rem;
      text-align: center;
      color: rgba(255, 255, 255, 0.4);
    }
    
    /* Back to top */
    .back-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
      z-index: 1000;
    }
    
    .back-to-top.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .back-to-top:hover {
      background: var(--primary-dark);
      transform: translateY(-3px);
    }
    
    /* Scroll progress */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 4px;
      background: var(--gradient);
      z-index: 1001;
      width: 0%;
      transition: width 0.2s ease;
    }
    
    /* Responsive */
    @media (max-width: 992px) {
      h1 {
        font-size: 2.8rem;
      }
      
      h2 {
        font-size: 2.2rem;
      }
      
      .process-timeline:before {
        left: 20px;
      }
  .logo {
    width: 100px;
    height: 50px; /* <- forces 2:1 aspect again */
  }
      .process-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
        text-align: left !important;
      }
      
      .process-item:before {
        left: 8px !important;
        right: auto !important;
      }
      
      .process-item .step {
        left: 0 !important;
        right: auto !important;
      }
    }
    
    @media (max-width: 768px) {
      section {
        padding: 4rem 0;
      }
      
      h1 {
        font-size: 2.3rem;
      }
      
      h2 {
        font-size: 1.8rem;
      }
      
      .hero-logo {
        /* height: 60px; */
      }
      
      .stat-item h2 {
        font-size: 2.5rem;
      }
      
      .hero-code-box {
        margin-top: 3rem;
      }
    }


     #tech-stack {
      background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
      background-size: 400% 400%;
      animation: gradientBG 15s ease infinite;
      color: white;
      padding: 5rem 0;
      position: relative;
      overflow: hidden;
    }
    
    @keyframes gradientBG {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    
    .tech-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }
    
    .tech-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 15px;
      padding: 1.5rem;
      text-align: center;
      transition: all 0.3s ease;
      height: 150px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    
    .tech-card:hover {
      transform: translateY(-10px);
      background: rgba(255, 255, 255, 0.2);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .tech-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
      transform: rotate(30deg);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .tech-card:hover::before {
      opacity: 1;
    }
    
    .tech-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      background: linear-gradient(45deg, #ff8a00, #e52e71);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    
    .tech-name {
      font-size: 0.9rem;
      font-weight: 500;
    }
    
    /* Success Stories Section */
    #success-stories {
      padding: 5rem 0;
      background: #f8f9fa;
      position: relative;
    }
    
    .story-card {
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .story-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    .story-header {
      padding: 1.5rem;
   background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
      color: white;
    }
    
    .story-body {
      padding: 1.5rem;
      flex-grow: 1;
    }
    
    .metrics {
      display: flex;
      justify-content: space-around;
      margin-top: 1rem;
      background: #f1f8ff;
      padding: 1rem;
      border-radius: 10px;
    }
    
    .metric-item {
      text-align: center;
    }
    
    .metric-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: #0066ff;
    }
    
    .metric-label {
      font-size: 0.8rem;
      color: #666;
    }
    
    /* Animation enhancements */
    .animate-fadeInUp {
      animation: fadeInUp 0.8s ease forwards;
    }
    
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .animate-delay-1 { animation-delay: 0.2s; }
    .animate-delay-2 { animation-delay: 0.4s; }
    .animate-delay-3 { animation-delay: 0.6s; }
    .animate-delay-4 { animation-delay: 0.8s; }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
      .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
      }
      
      .tech-card {
        padding: 1rem;
        height: 120px;
      }
      
      .tech-icon {
        font-size: 2rem;
      }
    }