/* --- Variables & Reset --- */
:root {
    --primary: #091B49;    /* Dark Blue */
    --secondary: #0478AC;  /* Bright Blue */
    --accent: #00d2ff;     /* Light Cyan */
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --text-grey: #666;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px; /* Mobile touch target size */
    min-width: 48px;
}
.btn-primary { background: var(--secondary); color: var(--white); border: 2px solid var(--secondary); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.section-title span { color: var(--secondary); font-weight: 700; }
section { padding: 80px 0; }

/* --- Header & Logo --- */
header {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 1.8rem; font-weight: 800; color: var(--white); 
    display: flex; align-items: center; 
}
.logo img { height: 40px; width: auto; margin-right: 10px; }
.logo span { color: var(--secondary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--white); font-weight: 500; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--secondary); transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--secondary); }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(9, 27, 73, 0.9), rgba(4, 120, 172, 0.8)), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 100px 0 60px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1, .page-header h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }

/* Animated Bubbles */
.bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatUp 10s linear infinite;
    z-index: 1;
}
@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* --- Features & Services --- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.process-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}
.process-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.process-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }
.process-step { position: absolute; top: 10px; right: 20px; font-size: 4rem; font-weight: 900; color: rgba(0,0,0,0.03); }

/* Service Cards */
.service-card {
    background: white;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
    height: 100%;
}
.service-card:hover { border-color: var(--secondary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card h3 { color: var(--primary); margin-bottom: 15px; }

/* Image Container (Optional if you use images later) */
.service-img-container {
    width: 100%; height: 200px; overflow: hidden; border-radius: 10px; margin-bottom: 20px; background: #f0f0f0;
}
.service-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-img-container img { transform: scale(1.1); }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.price-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}
.price-card:hover { transform: scale(1.02); }
.price-header { background: var(--primary); color: var(--white); padding: 30px; text-align: center; }
.price-header h3 { font-size: 1.5rem; }
.price-header .price { font-size: 2.5rem; font-weight: 800; margin: 10px 0; }
.price-header .price span { font-size: 1rem; font-weight: 400; opacity: 0.8; }
.price-body { padding: 30px; }
.price-body li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.check-icon { color: var(--secondary); }

/* --- Stats --- */
.stats-section { background: var(--secondary); color: var(--white); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; gap: 30px; }
.stat-number { font-size: 3rem; font-weight: 800; display: block; }

/* --- UPDATED TESTIMONIALS (Fade Method) --- */
.testimonials { 
    background: var(--light); 
    padding: 80px 0; 
    position: relative; 
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 300px; /* Reserves space so footer doesn't jump */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* By default, hide slides */
.testimonial-card {
    display: none; 
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary);
    text-align: center;
    width: 100%; /* Full width of container */
    animation: fadeEffect 0.5s ease-in-out;
}

/* Only show the one with "active" class */
.testimonial-card.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0.4; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-card p { font-size: 1.1rem; font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-author { font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.testimonial-stars { color: #FFD700; margin-bottom: 15px; font-size: 1.2rem; }

/* Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.carousel-btn:hover { background: var(--secondary); }
.prev-btn { left: -20px; } /* Moved slightly outside */
.next-btn { right: -20px; }

/* Mobile Adjustment */
@media (max-width: 768px) {
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
}

/* --- FAQ Buttons --- */
.faq-container { max-width: 800px; margin: 0 auto; }
details {
    background: white; margin-bottom: 15px; border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #eee; overflow: hidden; transition: all 0.3s ease;
}
details:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.05); border-color: var(--secondary); }
summary {
    padding: 20px 25px; cursor: pointer; font-weight: 600; color: var(--primary);
    list-style: none; display: flex; justify-content: space-between; align-items: center; background: white; transition: background 0.3s;
}
summary::after {
    content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.9rem;
    color: var(--secondary); transition: transform 0.3s ease;
}
details[open] summary { background: var(--light); color: var(--secondary); border-bottom: 1px solid #eee; }
details[open] summary::after { transform: rotate(180deg); }
.faq-answer { padding: 25px; color: #666; line-height: 1.6; background: white; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Footer --- */
footer { background: var(--primary); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

/* Social Icons */
.social-icon-btn {
    width: 45px; height: 45px; background: var(--secondary); color: var(--white);
    display: flex; align-items: center; justify-content: center; border-radius: 8px;
    font-size: 1.2rem; transition: all 0.3s ease; border: 1px solid var(--secondary);
}
.social-icon-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

/* --- Floating Button --- */
.floating-container { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.float-btn {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.float-wa { background: #25D366; }
.float-wa:hover { transform: scale(1.1); }

/* =========================================
   MOBILE RESPONSIVENESS (Max-width: 768px)
   ========================================= */
.hamburger { display: none; font-size: 1.5rem; color: white; cursor: pointer; }

@media (max-width: 768px) {
    /* Fonts & Headings */
    .hero h1, .page-header h1 { font-size: 1.8rem !important; line-height: 1.3; margin-bottom: 15px; padding: 0 10px; }
    .hero p, .page-header p { font-size: 1rem !important; line-height: 1.5; max-width: 100%; }
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 0.95rem; }
    
    /* Layout */
    .hero { padding: 120px 0 60px; }
    section { padding: 50px 0; }
    .container { padding: 0 15px; }
    
    /* Navigation */
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--primary); flex-direction: column; padding: 20px; text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }

    /* Stacking Elements */
    .hero .btn, .page-header .btn { width: 100%; margin-bottom: 10px; display: flex; }
    .hero div[style*="display: flex"] { flex-direction: column; gap: 10px; }
    .process-grid, .pricing-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .stats-grid { grid-template-columns: 1fr 1fr; } 

    .about-info div[style*="display:flex"], .contact-section div[style*="display:flex"] {
        flex-direction: column; gap: 30px !important;
    }

    /* Carousel */
    .carousel-btn { width: 30px; height: 30px; font-size: 0.8rem; }
}
/* --- Find this section in your Header & Logo css and update it --- */

.nav-links { 
    display: flex; 
    gap: 30px; 
    align-items: center; /* <--- THIS IS THE MISSING LINE */
    margin: 0;
    padding: 0;
}
/* In your Header CSS */
.nav-links a.active {
    color: var(--accent); /* Change from var(--secondary) to var(--accent) for better contrast */
    font-weight: 700;
}