body {
  scroll-behavior: smooth;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
}

:root {
  --navy: #0a1f44;
  --light-gray: #f5f7fa;
  --accent: #1e90ff;
  --white: #ffffff;
}

.navbar { background: var(--navy); }
.navbar .nav-link.active { font-weight: bold; color: var(--accent) !important; }

/* Logo */
.logo-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1100;
}
.logo-container img {
  width: 320px;
  max-width: 40vw;
}
@media (max-width:768px){ .logo-container img{ width:180px; } }

/* General section spacing */
section { padding: 80px 0; border-bottom: 1px solid #e0e0e0; }

/* Hero */
.hero-section {
    background: linear-gradient(-45deg, #0a1f44, #162e58, #0a1f44, #1e90ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
  }

  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .hero-logo {
    width: 380px;
    max-width: 85vw;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
  }

  .hero-logo:hover {
    transform: scale(1.02);
  }

  .hero-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Remove the old absolute logo container from your previous code */
  .logo-container { display: none; }

/* About Section Overlay */
.about-section {
  position: relative;
  background: url('/assets/images/about-bg.png')
              no-repeat center center/cover;
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  padding: 100px 20px;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

/* --- Foundation / Founders Image --- */
.about-img {
  width: 500px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease; /* Adds a nice smooth load/hover effect */
}

/* Services */
.work-section { background: var(--white); padding: 100px 20px; }
.work-card { transition: transform .3s ease, box-shadow .3s ease; border: none; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.card-body i { color: var(--accent); }

/* Stats */
.stats { background: var(--light-gray); padding: 100px 20px; }
.stat-box { text-align:center; }
.stat-box h3 { font-size:2.5rem; font-weight:700; color:var(--navy); }

/* Clients Section Base */
.clients { background: var(--white); padding: 100px 20px; overflow: hidden; }

/* The "Window" that hides the overflow */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* The actual moving track */
.logo-slide-track {
    display: flex;
    width: max-content; /* Let the content define the width */
    animation: scroll 40s linear infinite;
}

/* Maintain your existing logo styling */
.client-logo {
    max-height: 60px;
    width: auto;
    margin: 0 40px; 
    flex-shrink: 0; /* Prevents the browser from squishing logos to fit */
    filter: grayscale(100%);
    opacity: .8;
    transition: all .3s ease;
}

.client-logo:hover { 
    filter: grayscale(0%); 
    opacity: 1; 
    cursor: pointer;
}

/* Pause animation on hover for readability */
.logo-slider:hover .logo-slide-track {
    animation-play-state: paused;
}

/* Animation Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half the track width */
}

/* Team */
.team { background: var(--navy); color: var(--white); padding: 100px 20px; }
.team img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin-bottom: 15px;
}

/* Contact */
.contact-section { background: var(--light-gray); padding: 100px 20px; }
footer { background: var(--navy); color: var(--white); padding:40px 0; }
footer a { color: var(--accent); text-decoration:none; margin:0 8px; }

.sticky-cta { position:fixed; bottom:20px; right:20px; z-index:1200; }

/* ------------------------------------------------------
   MOBILE OPTIMIZATIONS
--------------------------------------------------------- */
@media (max-width: 576px) {
    section { padding: 60px 0; } /* Less vertical space needed on small screens */

    /* Hero adjustments */
    .hero-content {
        padding: 1.5rem; /* Shorter padding so text doesn't hit edges */
        border-radius: 15px;
    }

    .display-4 {
        font-size: 1.8rem !important; /* Shrink main headline for mobile */
    }

    .lead {
        font-size: 1rem !important;
    }
	
	.about-img {
      width: 100%; /* Allows it to shrink naturally with the screen */
      max-width: 320px; /* Keeps it from looking too massive on sideways phones */
      border-width: 2px; /* Slightly thinner border for small screens */
      box-shadow: 0 3px 10px rgba(0,0,0,0.2); /* Softer shadow on mobile */
    } 

    /* Stats adjustments */
    .stat-box h3 {
        font-size: 2rem;
    }

    /* Team image size */
    .team img {
        width: 150px;
        height: 150px;
    }

    /* Sticky CTA - Make it slightly smaller so it doesn't block content */
    .sticky-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Partner logos spacing */
    .partner-logo {
        max-height: 45px;
        margin: 10px;
    }
}