/* Variables and Reset */
:root {
    /* Color Palette */
    --primary-color: #0E2954;
    --primary-light: #1F6E8C;
    --secondary-color: #2E8A99;
    --accent-color: #00DFA2;
    --dark-bg: #0B132B;
    --dark-surface: #1C2541;
    --light-bg: #F4F7F6;
    --text-main: #2A363B;
    --text-light: #9DAAF2;
    --white: #FFFFFF;

    /* Spacing & Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 223, 162, 0.3);
}

.btn-primary:hover {
    background: #00b383;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 223, 162, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    bottom: -8px;
}

/* Hero Section & Slider */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 19, 43, 0.4) 0%, rgba(11, 19, 43, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px !important;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--light-bg);
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-heading p {
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.service-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--dark-bg);
    color: var(--white);
    position: relative;
}

.contact-card {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-list svg {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-list a {
    color: var(--white);
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: #060B19;
    padding: 4rem 0 2rem;
    color: #8892B0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-color);
}

/* Enhanced 4-Column Footer Grid */
.footer-grid-4col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-heading {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col-link {
    color: #8892B0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col-link:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Page Wrapper for Smooth Scroll/Parallax feel */
.page-wrapper {
    overflow: hidden;
}

/* Premium Section Spacing */
section {
    padding: 8rem 0;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
}

.glass-dark {
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* slider Dots & Properly Placed Stats Section */
.slider-dots {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 20px;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    margin: 0 auto;
}

.stat-item {
    padding: 2.2rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(0, 223, 162, 0.05);
}

.stat-val {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.stat-txt {
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.8;
}

/* Feature Section Refined */
.features-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.features-split:nth-child(even) {
    flex-direction: row-reverse;
}

.features-content {
    flex: 1;
}

.features-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.features-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tagline {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Responsive */
@media (max-width: 900px) {
    section {
        padding: 4rem 0;
    }

    .features-split {
        flex-direction: column !important;
        gap: 2rem;
    }

    /* Images inside features-split fill full width on mobile */
    .features-image {
        width: 100%;
        min-height: 240px;
    }

    .features-image img {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: cover;
    }

    .stats-grid {
        margin-top: 2rem;
    }

    /* Stats bar: 2 columns on tablet */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links,
    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Logo: shrink on mobile */
    .logo img,
    .nav-logo-img {
        height: 54px !important;
    }

    /* Navbar padding reduced on mobile */
    .navbar {
        padding: 0.6rem 0;
    }

    /* Mobile Nav Active - now handled by sidebar */
    .navbar.menu-open {
        background: rgba(11, 19, 43, 0.98);
    }

    /* Hamburger Animation */
    .menu-open .hamburger {
        background: transparent;
    }

    .menu-open .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-open .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .contact-card {
        padding: 2rem;
    }

    /* Footer: 2 columns on tablet */
    .footer-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Policy page hero heading */
    .page-hero h1 {
        font-size: 2.2rem !important;
    }

    /* Service cards image height */
    .service-image {
        height: 180px;
    }

    /* Section headings */
    .section-heading h2 {
        font-size: 2rem;
    }

    /* Features content heading */
    .features-content h2 {
        font-size: 2rem !important;
    }

    /* CTA section heading */
    .cta-heading {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 600px) {
    .footer-grid-4col {
        grid-template-columns: 1fr;
    }

    /* Logo: smallest screens */
    .logo img,
    .nav-logo-img {
        height: 44px !important;
    }

    /* Stats bar: single row scroll on very small */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 1.4rem 0.75rem;
    }

    .stat-val {
        font-size: 1.5rem;
    }

    /* Hero dots position */
    .slider-dots {
        bottom: 90px;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Buttons on small screens */
    .btn-large {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    /* Policy page hero heading */
    .page-hero h1 {
        font-size: 1.8rem !important;
    }

    /* Service card images */
    .service-image {
        height: 160px;
    }
}

/* =============================================
   MOBILE SIDEBAR
   ============================================= */

/* Dark overlay behind sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 30, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Panel */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 88vw;
    height: 100%;
    background: linear-gradient(160deg, #0B132B 0%, #1C2541 60%, #0E2954 100%);
    z-index: 1600;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.open {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.sidebar-close {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

/* Sidebar Nav Links */
.sidebar-nav {
    padding: 1.5rem 0;
    flex: 1;
}

.sidebar-nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--accent-color);
    background: rgba(0, 223, 162, 0.07);
    border-left-color: var(--accent-color);
    padding-left: 1.8rem;
}

.sidebar-nav a .snav-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    color: var(--accent-color);
}

.sidebar-nav a:hover .snav-icon,
.sidebar-nav a.active .snav-icon {
    background: rgba(0, 223, 162, 0.15);
}

/* Sidebar CTA Buttons */
.sidebar-ctas {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-ctas a {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-ctas .sbtn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 223, 162, 0.25);
}

.sidebar-ctas .sbtn-primary:hover {
    background: #00b383;
    transform: translateY(-2px);
}

.sidebar-ctas .sbtn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.sidebar-ctas .sbtn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Sidebar Contact Strip */
.sidebar-contact {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.sidebar-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.25s;
}

.sidebar-contact a:hover {
    color: var(--accent-color);
}

.sidebar-contact svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

/* Only show sidebar on mobile */
.sidebar-overlay,
.mobile-sidebar {
    display: none;
}

@media (max-width: 900px) {
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: all;
    }

    .mobile-sidebar {
        display: flex;
    }
}