/* =========== DESIGN SYSTEM & VARIABLES =========== */
:root {
    /* Primary Colors */
    --clr-navy: #003366;
    --clr-navy-light: #004b99;
    --clr-navy-dark: #001f3d;
    --clr-water: #00AEEF;
    --clr-water-light: #4dc7f4;
    --clr-water-dark: #0087ba;
    
    /* Neutral Colors */
    --clr-white: #ffffff;
    --clr-bg-light: #f8fafc;
    --clr-text-main: #334155;
    --clr-text-light: #64748b;
    --clr-border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing & Utilities */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 8px;
    --radius-lg: 16px;
    --container-max: 1200px;
}

/* =========== RESET & GLOBAL =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-navy-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--clr-water), var(--clr-navy));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--clr-white);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-blue {
    background-color: rgba(0, 174, 239, 0.1);
    color: var(--clr-water);
    border: 1px solid rgba(0, 174, 239, 0.3);
    backdrop-filter: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background-color: var(--clr-water);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-navy);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border: 2px solid var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-navy);
}

/* =========== HEADER & NAVIGATION =========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-normal);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--clr-white);
}

.navbar.scrolled .logo {
    color: var(--clr-navy);
}

.logo-icon {
    color: var(--clr-water);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Removed overflow: hidden to prevent clipping of editor outlines */
}

.nav-links a:not(.btn) {
    color: var(--clr-white);
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--clr-navy);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-water);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-white);
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--clr-navy);
}

/* =========== HERO SECTION =========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient mixing Navy and transparent to let image show */
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 174, 239, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 10; /* Always above the wave */
}

.hero-content {
    max-width: 800px;
    color: var(--clr-white);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-wave {
    position: absolute;
    bottom: -1px; /* prevents 1px gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    transform: rotateY(180deg);
}

.hero-wave svg path {
    fill: var(--clr-white);
}

/* =========== TRUST BAR =========== */
.trust-bar {
    background-color: var(--clr-white);
    padding: 2rem 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--clr-navy);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--clr-water);
}

/* =========== SERVICES SECTION =========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-water), var(--clr-navy));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 174, 239, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: var(--clr-water);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--clr-water);
    color: var(--clr-white);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--clr-text-light);
}

/* =========== BEFORE / AFTER SLIDER =========== */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px; /* Base height */
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--clr-white);
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-comp-under {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-comp-overlay {
    position: absolute;
    width: 50%; /* Initial width for script to adjust */
    height: 100%;
    object-fit: cover;
    object-position: left; /* Keep left aligned as it shrinks */
    border-right: 4px solid var(--clr-white);
    z-index: 5;
}

.img-comp-slider {
    position: absolute;
    z-index: 10;
    cursor: ew-resize;
    width: 40px;
    height: 40px;
    background-color: var(--clr-navy);
    color: var(--clr-white);
    opacity: 0.9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    /* Left is calculated in JS */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    border: 3px solid var(--clr-white);
}

.comparison-label {
    position: absolute;
    bottom: 20px;
    padding: 0.5rem 1rem;
    background: rgba(0, 51, 102, 0.8);
    color: var(--clr-white);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    z-index: 6;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.before-label { left: 20px; }
.after-label { right: 20px; }

/* =========== BENEFITS SECTION =========== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
    background-color: var(--clr-bg-light);
}

.benefits-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.benefits-image-wrapper:hover .benefits-image {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background-color: var(--clr-navy);
    color: var(--clr-white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 5px solid var(--clr-white);
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.experience-badge .number {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--clr-water);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    white-space: normal;
    line-height: 1.2;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.list-icon {
    width: 40px;
    height: 40px;
    background-color: var(--clr-water);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.list-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.list-content p {
    color: var(--clr-text-light);
}

/* =========== CONTACT SECTION (Glassmorphism) =========== */
.contact {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--clr-white);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.85); /* Deep navy overlay */
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    color: var(--clr-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-block i {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--clr-water);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-block h4 {
    color: var(--clr-white);
    margin-bottom: 0.25rem;
}

.info-block p {
    opacity: 0.8;
}

/* Contact Form - Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glassmorphism h3 {
    color: var(--clr-white);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.75rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form select option {
    background-color: var(--clr-navy);
    color: var(--clr-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-water);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.2);
}

/* =========== FOOTER =========== */
.footer {
    background-color: var(--clr-navy-dark);
    color: var(--clr-white);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    opacity: 0.7;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h4 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.link-group a:hover {
    opacity: 1;
    color: var(--clr-water);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    opacity: 0.7;
    font-size: 0.875rem;
}

/* =========== ANIMATIONS =========== */
.fade-in-up {
    animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========== MEDIA QUERIES =========== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .benefits-grid,
    .contact-grid,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .experience-badge {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--clr-navy);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1001; /* Above nav links */
    }

    /* Change toggle color if nav is active */
    .mobile-toggle.active {
        color: var(--clr-white) !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .trust-container {
        justify-content: center;
    }
    
    .comparison-container {
        height: 400px; /* smaller height on mobile */
    }
}

@media (max-width: 576px) {
    .section {
        padding: 4rem 0;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .glassmorphism {
        padding: 1.5rem;
    }
    .comparison-container {
        height: 300px; 
    }
}
/* =========== REVIEWS SECTION =========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--clr-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-top: 4px solid var(--clr-water);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-name {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--clr-navy);
}

.review-stars {
    color: #ffc107;
}

.review-text {
    font-style: italic;
    color: var(--clr-text-light);
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    text-align: right;
}

.rating-input .stars i {
    transition: transform 0.2s ease;
}

.rating-input .stars i:hover {
    transform: scale(1.2);
}

.review-form-wrapper {
    margin-top: 4rem;
    background: rgba(0, 51, 102, 0.9) !important; /* Deep navy like contact section */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--clr-white) !important;
}

.review-form-wrapper h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    color: var(--clr-white) !important;
    text-align: center;
}

.review-form .input-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.review-form input,
.review-form textarea {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-md) !important;
    color: var(--clr-white) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.review-form input:focus,
.review-form textarea:focus {
    border-color: var(--clr-water) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.2) !important;
    outline: none !important;
}

.rating-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.rating-input p {
    color: var(--clr-white) !important;
}

.rating-input .stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.review-form .btn-primary {
    padding: 1.2rem !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
