/* =========================================
   1. GLOBAL & RESET
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f0f4f8; 
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scroll during slide animations */
}

ul { list-style: none; }
a { 
    text-decoration: none; 
    transition: all 0.4s cubic-bezier(0.2, 0.5, 0.4, 1); 
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- SCROLL REVEAL SYSTEM --- */
/* This makes sections invisible until they enter the viewport */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.2, 0.5, 0.4, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* This handles the child items (cards/boxes) appearing one-by-one */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 0.5, 0.4, 1);
}

.active.reveal-stagger > *,
.active .reveal-stagger > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays - Items will pop in with 0.1s gaps */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }
/* =========================================
   2. HEADER STYLES (WHITE THEME)
   ========================================= */
header {
    background-color: rgba(255, 255, 255, 0.98); /* Changed to White */
    padding: 12px 0; 
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Softened shadow for white bg */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    min-height: 110px; 
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

/* Updated Image Size for Header */
.logo-img {
    height: 85px; 
    width: auto;
    min-width: 180px; 
    display: block;
    object-fit: contain;
    /* Removed background-color since header is white now */
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Navbar Container */
.navbar {
    margin: 0; 
    padding: 0; 
    margin-left: auto;
    margin-right: 30px; 
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 25px; 
    margin: 0; 
    padding: 0; 
}

.navbar a {
    color: #007bff; /* Changed to Dark Blue/Black for visibility */
    font-size: 16px;
    font-weight: 600; /* Increased weight slightly for readability */
    position: relative;
    padding: 5px 0; 
}

/* Dynamic Glossy Underline */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px; 
    background: linear-gradient(90deg, #e37b12, #e56604); 
    border-radius: 1.5px;
    transition: width 0.5s cubic-bezier(0.2, 0.5, 0.4, 1.2); 
}

.navbar a:hover {
    color: #e4660c; /* Hover color changed to Blue */
}
.navbar a:hover::after {
    width: 100%;
}

/* Contact Button (nav-btn) */
.nav-btn {
    background: linear-gradient(45deg, #007bff, #00c6ff);
    color: white !important; /* Keep text white inside the button */
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.5, 0.4, 1);
}
.nav-btn:hover {
    background: linear-gradient(135deg, #00c6ff, #007bff);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.5);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    color: #001f3f; /* Changed to Dark color so it is visible on white */
    font-size: 28px;
    cursor: pointer;
}/* =========================================
   3. HERO SECTION (HOME PAGE) - UPDATED TO MATCH ABOUT US STYLE
   ========================================= */
.hero {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.98), rgba(0, 20, 40, 0.98)), url('../../assets/img/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    min-height: 700px; /* Increased slightly for larger text */
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px; 
    overflow: hidden; 
}

.hero-content { 
    max-width: 1000px; /* Matched to About Us */
    padding: 0 20px; 
    text-align: center;
    margin: 0 auto; 
    z-index: 2;
}

/* Sub-heading / Years of Excellence Style */
.hero-content h4 {
    font-size: 18px;
    color: #4facfe; /* Lighter tech blue */
    text-transform: uppercase;
    letter-spacing: 4px; 
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

/* Main Heading - Matched to About Us (72px, Bold 800) */
.hero-content h1 {
    font-size: 72px; 
    font-weight: 800; 
    line-height: 1.1;
    margin-bottom: 25px;
    color: #e86d0e;
    letter-spacing: -2px; /* Key for that modern bold look */
    opacity: 0;
    animation: fadeInLeft 1s ease-out 0.3s forwards;
}

/* Gradient Text Effect for Span */
.hero-content h1 span { 
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #00c6ff; /* Fallback */
}

/* Paragraph - Matched to About Us (22px) */
.hero-content p {
    font-size: 22px; 
    color: #cbd5e1; 
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.6s forwards;
}

.hero-buttons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

/* --- Button Styles --- */
.btn {
    padding: 18px 45px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 16px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #007bff, #00c6ff); 
    color: white; 
    border: none;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 198, 255, 0.4);
}

.btn-secondary {
    background: transparent; 
    color: white; 
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #021B35;
    transform: translateY(-3px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 42px; letter-spacing: -1px; }
    .hero-content p { font-size: 18px; }
    .hero { height: auto; padding: 120px 0 80px 0; }
}

/* =========================================
   4. STATS SECTION (FLOATING - MATCHED TO HOME)
   ========================================= */
.stats-wrapper {
    padding: 100px 0;
    background: linear-gradient(180deg, #f4f7fa 0%, #e3e9f0 100%);
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Base Variable Colors for Stats */
.stat-box:nth-child(1) { --stat-color: #007bff; }
.stat-box:nth-child(2) { --stat-color: #b224ef; }
.stat-box:nth-child(3) { --stat-color: #00c853; }
.stat-box:nth-child(4) { --stat-color: #ff6d00; }

.stat-box {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle color overlay on hover */
.stat-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--stat-color);
    opacity: 0;
    transition: height 0.5s ease-out, opacity 0.5s ease-out;
    z-index: -1;
}

.stat-box:hover::before {
    height: 100%;
    opacity: 0.5; /* Matches your home page requirement */
}

.stat-box:hover { 
    transform: translateY(-15px); 
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: var(--stat-color);
}

/* Text color change on hover for readability */
.stat-box:hover h2, 
.stat-box:hover p {
    color: #ffffff !important;
}

.icon-box {
    width: 75px; 
    height: 75px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    font-size: 32px; 
    margin: 0 auto 25px; 
    color: #ffffff; /* White icons on colored backgrounds */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.stat-box:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: #ffffff !important;
    color: var(--stat-color) !important;
}

/* Gradient Classes for Icons */
.icon-blue { background: linear-gradient(135deg, #2196f3, #007bff); }
.icon-purple { background: linear-gradient(135deg, #d533ff, #b224ef); }
.icon-green { background: linear-gradient(135deg, #00e676, #00c853); }
.icon-orange { background: linear-gradient(135deg, #ff9100, #ff6d00); }

.stat-box h2 {
    font-size: 44px; 
    color: #001f3f; 
    margin-bottom: 5px; 
    font-weight: 800;
    transition: color 0.3s;
}

.stat-box p {
    font-size: 16px; 
    color: #666; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
/* =========================================

    5. SERVICES SECTION

   ========================================= */

.services {

    padding: 120px 0;

    background: linear-gradient(180deg, #f0f4f8 0%, #e3e9f0 100%);

}



.section-title { text-align: center; margin-bottom: 80px; }

.section-title h2 {

    font-size: 42px;

    font-weight: 900;

    color: #001f3f;

    margin-bottom: 10px;

    position: relative;

    display: inline-block;

}

.section-title h2::after {

    content: '';

    position: absolute;

    bottom: -15px;

    left: 50%;

    transform: translateX(-50%);

    width: 80px;

    height: 5px;

    background: #00c6ff;

    border-radius: 3px;

    box-shadow: 0 2px 10px rgba(0, 198, 255, 0.4);

}

.section-title p {

    font-size: 19px;

    color: #555;

    margin-top: 25px;

    font-style: italic;

}



.service-container {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 35px;

}
.service-card:nth-child(1) { --card-color: #007bff; }
.service-card:nth-child(2) { --card-color: #28a745; }
.service-card:nth-child(3) { --card-color: #ffc107; }
.service-card:nth-child(4) { --card-color: #dc3545; }
.service-card:nth-child(5) { --card-color: #17a2b8; }
.service-card:nth-child(6) { --card-color: #6610f2; }
.service-card {

    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05), -5px -5px 15px rgba(255,255,255,0.8);

    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    border: 1px solid #e0e0e0;

    position: relative;

    overflow: hidden;

    z-index: 1;

    cursor: pointer;

}



.service-card::before {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

    height: 0;

    background: linear-gradient(0deg, var(--card-color), var(--card-color) 70%);

    opacity: 0.1;

    transition: height 0.5s ease-out, opacity 0.5s ease-out;

    z-index: -1;

}



.service-card:hover::before {

    height: 100%;

    opacity: 0.15;

}



.service-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 25px 50px rgba(0,0,0,0.15);

    border-color: var(--card-color);

}



.service-card:hover a {

    gap: 15px;

    filter: brightness(1.2);

}



.service-card h3 {

    font-size: 26px;

    margin-bottom: 15px;

    color: #001f3f;

    font-weight: 800;

}

.service-card p {

    font-size: 16px;

    color: #555;

    line-height: 1.7;

    margin-bottom: 25px;

}

.service-card a {

    color: var(--card-color);

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: gap 0.3s ease, color 0.3s ease;

}

/* =========================================
   6. TESTIMONIALS SECTION
   ========================================= */
.testimonials {
    background-color: #001f3f; 
    padding: 100px 0; 
    color: white; 
    text-align: center;
}
.section-title-white { font-size: 38px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.section-subtitle { font-size: 18px; color: #b0c4de; margin-bottom: 60px; }

.testimonial-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    text-align: left;
}

.testimonial-card {
    background: rgba(255,255,255,0.05); 
    padding: 40px; 
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1); 
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(5px); 
}
.testimonial-card:hover { 
    transform: translateY(-10px); 
    background: rgba(255,255,255,0.1); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stars { color: #ffc107; margin-bottom: 20px; font-size: 18px; }
.quote { font-size: 17px; font-style: italic; color: #e0e0e0; margin-bottom: 25px; line-height: 1.7; }
.client-info .name { font-weight: 700; color: #fff; margin-bottom: 5px; }
.client-info .role { font-size: 14px; color: #00c6ff; }

/* =========================================
   7. COMPANIES & CTA
   ========================================= */
.companies { 
    padding: 80px 0; 
    background: #fff; 
    text-align: center; 
    border-bottom: 1px solid #eee; 
}
.companies h2 { font-size: 22px; color: #070505; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; }
.company-logos { 
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    flex-wrap: wrap; 
    opacity: 0.6; 
}
.company-logos span { 
    font-size: 32px; 
    font-weight: 800; 
    color: #090606; 
    transition: all 0.3s ease;
}
.company-logos span:hover { 
    opacity: 1; 
    color: #007bff; 
    transform: scale(1.1);
}

.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #0056b3, #007bff);
    text-align: center; 
    color: white;
}
.cta h2 { font-size: 48px; margin-bottom: 15px; font-weight: 900; }
.cta p { font-size: 22px; margin-bottom: 50px; opacity: 0.9; }

.btn-primary-white {
    background: white; 
    color: #001f3f; 
    padding: 18px 50px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 18px; 
    transition: all 0.4s cubic-bezier(0.2, 0.5, 0.4, 1); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    position: relative;
    overflow: hidden;
}

.btn-primary-white:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4); 
    background-color: #ffffff; 
    color: #007bff; 
}
/* =========================================
   8. FOOTER STYLES (WHITE THEME)
   ========================================= */
.site-footer {
    background-color: #ffffff; /* Pure White Background */
    color: #333333; /* Dark Text */
    padding-top: 100px;
    margin-top: auto;
    /* Soft shadow on top to separate from content */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f0f0f0;
}

/* Manual dimensions for Footer Logo */
.footer-logo-img {
    height: 50px;            
    width: 140px;            
    display: block;
    margin-bottom: 20px;
    object-fit: contain;      
    background-color: transparent; /* Transparent since footer is white */
    padding: 0;            
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col {
    padding: 10px;
    background: transparent; 
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 30px;
    color: #007bff; /* Dark Blue Heading */
    border-bottom: 4px solid #ff4d00;
    display: inline-block;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-col p {
    color: #555555; /* Dark Grey Paragraphs */
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start; 
}

.footer-col ul li a, 
.footer-col ul li span {
    color: #555555; /* Dark Grey Links */
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: #1f7fe5; /* Bright Blue on Hover */
    transform: translateX(5px);
}

.footer-col i {
    color: hsl(213, 100%, 50%);
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Footer Social Icons - Adapted for White BG */
.footer-social {
    display: flex;
    gap: 15px; 
    margin-top: 30px;
}

.footer-social a {
    width: 45px; 
    height: 45px;
    background: #f4f7fa; /* Light Grey Circle */
    color: #3f1300; /* Dark Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e1e1e1; /* Subtle Border */
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden; 
    z-index: 1;
}

/* Liquid Fill Effect */
.footer-social a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #8ee8ee; /* Blue Fill on Hover */
    border-radius: 50%;
    transform: translateY(100%); 
    transition: transform 0.5s ease-out;
    z-index: -1;
}

.footer-social a:hover {
    color: white; /* Icon becomes white */
    transform: translateY(-5px) scale(1.1); 
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    border-color: #007bff;
}

.footer-social a:hover::after {
    transform: translateY(0);
}
/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    header { min-height: 85px; padding: 10px 0; }
    .logo-img { height: 60px; min-width: 150px; } 
    .navbar { display: none; } 
    .menu-toggle { display: block; }
    .footer-logo-img { height: 40px; width: 110px; } /* Even smaller on mobile */
}