/* ===================================
   1. Design System & Variables
   =================================== */
:root {
    /* Brand Colors */
    --color-primary: #0077b6;      /* Strong Corporate Blue */
    --color-primary-dark: #0B1C3E; /* Updated: Deep Midnight Blue for better contrast */
    --color-primary-light: #caf0f8;/* Soft Sky */
    --color-accent: #00b4d8;       /* Vibrant Cyan for clear CTAs */
    --color-text-main: #1d3557;    /* Very dark blue for text (easier on eyes than black) */
    --color-text-muted: #457b9d;   /* Muted grayish blue */
    --color-bg-light: #f1faee;     /* Off-white minty tint */
    --color-white: #ffffff;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #f1faee 0%, #e1eef5 100%);
    --gradient-primary: linear-gradient(135deg, #0077b6 0%, #0096c7 100%);
    /* Updated Overlay Gradient to match new dark color */
    --gradient-overlay: linear-gradient(to right, rgba(11, 28, 62, 0.9), rgba(11, 28, 62, 0.5));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-card: 0 10px 30px -10px rgba(0, 119, 182, 0.15);
    --shadow-hover: 0 20px 40px -15px rgba(0, 119, 182, 0.25);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* ===================================
   2. Reset & Base
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
}

a { text-decoration: none; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===================================
   3. Layout Utilities
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-bg { background-color: var(--color-bg-light); }

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 968px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===================================
   4. Navigation (Sticky & Modern)
   =================================== */
.navbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img { height: 50px; }

.nav-menu { display: flex; gap: 2.5rem; }

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
}

/* ===================================
   5. Hero & Animations
   =================================== */
.hero-slider-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active { opacity: 1; }

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.slide-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    transform: translateY(30px);
    opacity: 0;
    transition: 0.8s ease-out;
    color: white;
}

.slide-desc {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    transform: translateY(30px);
    opacity: 0;
    transition: 0.8s ease-out 0.2s;
}

.slide-btns {
    transform: translateY(30px);
    opacity: 0;
    transition: 0.8s ease-out 0.4s;
}

.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-btns {
    transform: translateY(0);
    opacity: 1;
}

.highlight { color: var(--color-accent); }

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-dots { display: flex; gap: 10px; }
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active { background: white; transform: scale(1.2); }

.prev-slide, .next-slide {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.prev-slide:hover, .next-slide:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* Floating Background Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.shape-1 { width: 100px; height: 100px; top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 150px; height: 150px; bottom: 20%; right: 10%; animation-delay: 2s; }
.shape-3 { width: 60px; height: 60px; top: 60%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

/* ===================================
   6. Sections & Components
   =================================== */

/* Page Headers (New) */
.page-header {
    background-color: var(--color-primary-dark);
    padding: 8rem 0 4rem;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 62, 0.75); /* Dark overlay for text readability */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Floating Feature Section */
.section-floating-bg { position: relative; overflow: hidden; }
.floating-image-wrapper { position: relative; }
.float-img-main {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    width: 100%;
    animation: gentle-hover 4s infinite ease-in-out;
}
@keyframes gentle-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-card {
    position: absolute;
    top: 30px;
    right: -20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 6s infinite ease-in-out;
}
.float-card i { color: var(--color-primary); font-size: 1.5rem; }
.card-bottom { top: auto; bottom: 30px; right: auto; left: -20px; animation-delay: 1s; }

/* Enhanced Services Grid */
.section-heading-center { text-align: center; margin-bottom: 4rem; }
.sub-heading {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.heading-line {
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 1rem auto;
    border-radius: 2px;
}

.service-hover-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #eee;
    z-index: 1;
}
.service-hover-card:hover { transform: translateY(-10px); color: white; border-color: transparent; }
.hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: 0.4s;
    z-index: -1;
    border-radius: 50%;
}
.service-hover-card:hover .hover-bg { opacity: 1; transform: scale(1.5); border-radius: 0; }
.service-hover-card h4 { margin: 1.5rem 0 0.5rem; transition: 0.3s; }
.service-hover-card:hover h4 { color: white; }
.service-hover-card p { color: var(--color-text-muted); transition: 0.3s; margin-bottom: 1.5rem; }
.service-hover-card:hover p { color: rgba(255,255,255,0.9); }
.icon-wrapper {
    font-size: 2.5rem;
    color: var(--color-primary);
    transition: 0.3s;
}
.service-hover-card:hover .icon-wrapper { color: white; transform: scale(1.1); }
.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}
.service-hover-card:hover .link-arrow { color: white; }

/* Testimonials */
.testimonials-section { background: white; }
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
}
.quote-icon {
    font-size: 2rem;
    color: rgba(0, 119, 182, 0.2);
    margin-bottom: 1rem;
}
.review-text { font-style: italic; color: #555; margin-bottom: 1.5rem; }
.reviewer-info { display: flex; align-items: center; gap: 1rem; }
.reviewer-img {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Stats Parallax */
.parallax-stats {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    color: white;
    text-align: center;
}
.overlay-blue {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 62, 0.85); /* Updated to match new dark */
}
.relative-z { position: relative; z-index: 2; }
.stat-counter h3 { font-size: 3.5rem; margin: 0; color: white; display: inline-block; }
.stat-counter span { font-size: 3.5rem; font-weight: bold; color: var(--color-accent); }
.stat-counter p { font-size: 1.1rem; opacity: 0.9; margin-top: 5px; }

/* Cards */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-card);
    transition: 0.4s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary-light);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
}

/* Icons */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   7. Page Specific Styles
   =================================== */
/* Services Page */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.service-row.reverse { direction: rtl; }
.service-row.reverse .service-content { direction: ltr; }

.service-content h3 { font-size: 2rem; color: var(--color-primary); }
.service-content ul { margin: 1.5rem 0; }
.service-content li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
}
.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.service-img {
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: #f0f0f0; /* Fallback */
}

/* Team Page */
.team-card {
    text-align: center;
    padding: 3rem 2rem;
}
.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    background: var(--color-primary-light);
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.member-role {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.contact-info-panel {
    background: var(--color-primary-dark);
    color: white;
    padding: 4rem;
}
.contact-info-panel h2 { color: white; }
.contact-form-panel { padding: 4rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-main);
}
.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1eef5;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
footer {
    background: var(--color-text-main);
    color: white;
    padding: 4rem 0 2rem;
}
.footer-col h4 { color: white; margin-bottom: 1.5rem; }
.footer-link { color: #8d99ae; display: block; margin-bottom: 0.75rem; }
.footer-link:hover { color: var(--color-accent); padding-left: 5px; }

/* ===================================
   8. Process Timeline Animation
   =================================== */
.process-wrapper {
    position: relative;
    padding: 2rem 0;
}
.process-line-bg {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e1eef5;
    z-index: 0;
}
.process-line-fill {
    position: absolute;
    top: 40px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--color-primary);
    z-index: 0;
    transition: width 1.5s ease-out;
}
.process-step {
    position: relative;
    z-index: 1;
    background: white; /* To hide line behind icon if needed, though we use icon-box */
    padding: 1rem;
    transition: 0.3s;
    border-radius: 12px;
}
.process-step .icon-box {
    transition: 0.4s;
    border: 4px solid white; /* Creates gap from line */
    box-shadow: 0 0 0 4px #e1eef5; /* Outer ring matches bg line */
}
.process-step:hover .icon-box {
    transform: scale(1.1);
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}
.process-step:hover {
    transform: translateY(-5px);
}

/* ===================================
   9. Trusted Partners
   =================================== */
.partners-section {
    padding: 3rem 0;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
}
.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
    cursor: pointer;
}
.partner-logo:hover {
    color: var(--color-primary);
    opacity: 1;
    transform: translateY(-2px);
}

/* ===================================
   10. FAQ Accordion
   =================================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid #eee;
}
.faq-summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary-dark);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: 0.3s;
}
details[open] .faq-summary::after {
    transform: rotate(45deg);
}
.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid transparent;
}
details[open] .faq-content {
    border-color: #f1f1f1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu */
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .hero-content-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-img { display: none; }
    .hero-text h1 { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    
    .process-line-bg, .process-line-fill { display: none; } /* Hide horizontal line on mobile */
    .grid-4 .process-step { margin-bottom: 2rem; }
    
    /* Fix Testimonials and Partners on Mobile */
    .testimonial-slider { grid-template-columns: 1fr; }
    .partners-grid { gap: 2rem; }
    .page-title { font-size: 2.5rem; }
}
