@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-blue: #0d2c54;
    --accent-red: #e63946;
    --secondary-blue: #1b4965;
    --text-dark: #2b2d42;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --accent-glow: 0 0 20px rgba(230, 57, 70, 0.5);
    --header-height: 90px;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
.btn,
.nav-links {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

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

section {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    height: 70px;
    background: rgba(13, 44, 84, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    transition: var(--transition);
}

header:hover {
    background: rgba(13, 44, 84, 0.9);
}

header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 60px;
    border-radius: 0;
    background: rgba(13, 44, 84, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
}

header.scrolled .logo {
    font-size: 0.95rem;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.5);
    transform: scale(1);
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #c02a36;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

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

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-blue);
}

/* Hero Feature Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: -100px auto 0;
    padding: 0 5%;
    position: relative;
    z-index: 100;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-red);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-feature-card i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.hero-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.hero-feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-red);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Stats Section */
.stats {
    background: var(--primary-blue);
    color: var(--text-light);
    display: flex;
    justify-content: space-around;
    padding: 80px 5%;
    flex-wrap: wrap;
    gap: 40px;
}

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

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-red);
}

/* Reviews */
/* Reviews Slider Controls */
.slider-wrapper {
    position: relative;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: var(--accent-red);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev-btn {
    left: -20px;
}

.slider-btn.next-btn {
    right: -20px;
}

/* Reviews Container */
.reviews-container {
    padding: 40px 0;
    overflow-x: auto;
    position: relative;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-behavior: smooth;
}

.reviews-container::-webkit-scrollbar {
    display: none;
}

.reviews-track {
    display: flex;
    gap: 20px;
    padding: 10px;
    /* keep padding small */
    width: max-content;
    /* ensure track collapses around flex children */
}

.review-card {
    flex: 0 0 350px; /* Fixed width */
    height: 350px; /* Fixed height to create a perfect square */
    max-width: 100%;
    scroll-snap-align: start;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-red);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push author info to the bottom */
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary-blue);
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

/* Contact & Map */
.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    margin-top: 50px;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Service Areas */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}

.area-item {
    padding: 15px;
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    font-weight: 700;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f0f4f8;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 300px;
}

/* Watermark Styles */
.watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: rgba(13, 44, 84, 0.03);
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
}

.section-title {
    position: relative;
    z-index: 1;
}

/* Glow Animation */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(230, 57, 70, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(230, 57, 70, 0.2);
    }
}

.btn-primary {
    animation: glowPulse 3s infinite;
}

/* Special Offer Banner */
.offer-banner {
    background: linear-gradient(135deg, var(--accent-red), #900);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.offer-content h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.offer-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

footer {
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 80px 5% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: var(--accent-red);
}

.footer-links li {
    margin-bottom: 12px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-red);
    font-weight: 600;
}

/* Scroll Animation Initial States */
.service-card,
.section-title,
.review-card,
.hero-feature-card,
.step-card,
.stat-item,
.area-item,
.faq-item {
    opacity: 0;
    transform: translateY(40px);
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .contact-map-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 5%;
        /* Reduce massive padding */
    }

    .hero-cards {
        grid-template-columns: 1fr;
        margin-top: -50px;
        gap: 15px;
    }

    header {
        padding: 0 20px;
        width: 95%;
        top: 10px;
        height: 60px;
    }

    .logo {
        font-size: 0.85rem;
        /* Shrink logo */
    }

    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: rgba(13, 44, 84, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        width: 45%;
    }

    .process-steps {
        flex-direction: column;
        /* Fix squished process steps */
        align-items: center;
    }

    .process-steps .step-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .watermark {
        font-size: 5rem;
        /* Stop watermark from overflowing */
        opacity: 0.05;
    }

    .review-card {
        flex: 0 0 300px; /* Fixed width for square on mobile */
        height: 300px; /* Fixed height */
        min-width: 0; 
        padding: 20px;
    }

    .slider-btn {
        display: none;
        /* Hide buttons on mobile to encourage natural swiping and prevent cutoff */
    }

    .reviews-track {
        padding: 5px;
        gap: 15px;
        width: max-content;
    }

    .offer-content h3 {
        font-size: 1.8rem;
    }

    .footer-content {
        gap: 30px;
    }

    footer {
        padding: 60px 5% 30px;
    }
}