/* css/style.css */

/* --- External Resources --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens & Theme Configuration --- */
:root {
    /* Color Palette */
    --primary-color: #2A4B7C;
    --primary-gradient: linear-gradient(135deg, #2A4B7C 0%, #4A6B9C 100%);
    --primary-light: #4A6B9C;
    --secondary-color: #38761D;
    --accent-color: #A8D08D;

    /* Backgrounds & Surfaces */
    --background-color: #Fdfdfd;
    --surface-color: #ffffff;
    --section-bg: #F0F4F8;
    --input-bg: #f0f2f5;

    /* Typography */
    --text-color: #2D3436;
    --text-light-color: #636E72;

    /* Visual Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur-amount: 16px;

    /* Shadows */
    --card-shadow: 0 10px 30px -10px rgba(42, 75, 124, 0.1);
    --card-hover-shadow: 0 20px 40px -10px rgba(42, 75, 124, 0.2);

    /* Layout & Animation */
    --border-radius: 20px;
    --transition-speed: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --primary-color: #6D93D1;
    --primary-light: #8BAAD8;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --section-bg: #181818;
    --input-bg: #2b2b2b;
    --text-color: #E2E8F0;
    --text-light-color: #A0AEC0;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --- Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
    border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.body-visible {
    visibility: visible;
    opacity: 1;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Animation Utilities --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered Animation Delays */
.services-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.blog-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.blog-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}


/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    /* Animated Gradient Text */
    background: linear-gradient(120deg, var(--primary-color), var(--primary-light), var(--accent-color), var(--primary-color));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light-color);
    font-size: 1.05rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-weight: 500;
}

a:hover {
    color: var(--primary-light);
}

/* General Section Layout */
section {
    padding: 120px 0;
}

/* Top spacing for first section to clear fixed header*/
main > section:first-child {
    padding-top: 200px;
}

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

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

/* --- Button Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 10px 20px -5px rgba(42, 75, 124, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(42, 75, 124, 0.6);
    color: #fff;
}

.btn:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(42, 75, 124, 0.3);
}

/* --- Header & Navigation Layout --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    /* Header Background Styles */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    z-index: 1000;

    /* Entrance Animation */
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.4s ease;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

[data-theme="dark"] .main-header {
    background: rgba(20, 20, 20, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px; /* Base height */
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 10px;
}

/* Sticky Header State */
.navbar.shrink {
    height: 70px;
}

.navbar .logo img {
    height: 65px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 5px 15px rgba(42, 75, 124, 0.2));
}

.navbar.shrink .logo img {
    height: 45px;
}

/* Desktop Navigation Container */
.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;

    background: rgba(255, 255, 255, 0.4);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .nav-links {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Navigation Links */
.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Content masking for border radius compatibility */
    position: relative;
    overflow: hidden;

    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);

    letter-spacing: 0.3px;
    z-index: 1;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Active Link State */
.nav-links a.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 25px -5px rgba(42, 75, 124, 0.5);
}

/* Shimmer Animation Effect */
.nav-links a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
    z-index: 2;
    pointer-events: none;
}

.nav-links a span {
    position: relative;
    z-index: 3;
}

@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        left: 200%;
        opacity: 1;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.nav-links a::after {
    display: none;
}

/* --- Theme & Language Controls --- */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Orb Button Styling */
.theme-switch-wrapper button,
.lang-switch-btn {
    border: none;
    outline: none;

    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .theme-switch-wrapper button,
[data-theme="dark"] .lang-switch-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Control Button Interactions */
.theme-switch-wrapper button:hover,
.lang-switch-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(42, 75, 124, 0.4);
    border: none;
}

.theme-switch-wrapper button i {
    transition: transform 0.5s ease;
}

.theme-switch-wrapper button:hover i {
    transform: rotate(180deg);
}

.theme-switch-wrapper button:active,
.lang-switch-btn:active {
    transform: scale(0.95);
}


/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none !important;
}

/* --- Mobile Navigation --- */
@media (max-width: 992px) {

    /* Reset Styles for Tablet/Mobile */
    .nav-links {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 768px) {

    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: var(--text-color);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
        margin-left: 10px;
    }

    [data-theme="dark"] .mobile-menu-toggle {
        color: #fff;
    }

    /* Fullscreen Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1001;
        border-radius: 0 !important;
        border: none !important;
    }

    .nav-links.active {
        right: 0;
    }

    /* Mobile Links */
    .nav-links a {
        border-radius: 0;
        padding: 10px 0;
        font-size: 1.8rem;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--text-color) !important;
        font-weight: 700;
        width: auto;
        text-align: center;
    }

    .nav-links a.active {
        background: transparent !important;
        box-shadow: none !important;
        color: var(--primary-color) !important;
        -webkit-text-fill-color: var(--primary-color);
    }

    .nav-links a.active::before {
        display: none;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(18, 18, 18, 0.98) !important;
    }

    .navbar {
        height: 90px;
    }

    .navbar.shrink {
        height: 70px;
    }
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    min-height: 650px;
    text-align: center;
    background: url('../assets/hero-image.webp') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    margin-top: 0;
    padding-top: 260px;
}

/* Overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(30, 40, 50, 0.3) 0%, rgba(5, 10, 15, 0.9) 100%);
    z-index: 1;
}

/* Hero Content Card */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    padding: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- Service Grid & Cards --- */
.services-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 50px 35px;
    text-align: center;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

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

/* Icon Styles */
.service-card .icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(42, 75, 124, 0.3);

    /* Transitions */
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon Animation */
.service-card .icon i {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.service-card:hover .icon {
    transform: rotateY(180deg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.read-more {
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* --- Blog Card Styles --- */
.blog-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    border: none;
}

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

.blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-content {
    padding: 30px;
}


/* --- About Section --- */
.about-teaser,
.page-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 100%;
}

.about-image {
    width: 100%;
    position: relative;
    min-width: 0;
    border-radius: var(--border-radius);
    box-shadow: none;
}

/* Carousel Container */
.about-swiper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--card-hover-shadow);
    background-color: transparent;
}

.about-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Image Positioning */
.about-swiper .swiper-slide img {
    display: block;
    width: 100.5%;
    height: 100.5%;
    transform: translate(-0.25%, -0.25%);
    object-fit: cover;
}

/* Fallback Image */
.about-image>img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--card-hover-shadow);
}

/* Carousel Navigation */
.about-swiper .swiper-button-next,
.about-swiper .swiper-button-prev {
    color: #fff;
    background: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: none;
}

.about-swiper .swiper-button-next:after,
.about-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.about-swiper .swiper-button-next:hover,
.about-swiper .swiper-button-prev:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
    margin-top: 50px;
}

.contact-cta {
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
    background: var(--surface-color);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
    border: 4px solid #fff;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: grayscale(20%);
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background-color: var(--surface-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(42, 75, 124, 0.1);
}

.legal-notice {
    margin-top: 80px;
    padding: 50px;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Content/Detail Pages --- */
.post-full {
    padding: 60px 0;
    /* Spacing for fixed header */
    padding-top: 160px;
    min-height: 80vh;
}

.post-image img {
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.post-content h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* Main Content Spacing on Mobile */
    main > section:first-child {
        padding-top: 150px;
    }

    .post-full {
        padding-top: 130px;
        padding-bottom: 40px;
    }

    .post-header h2 {
        font-size: 2.2rem !important;
    }

    .post-header .lead {
        font-size: 1.1rem !important;
    }

    .info-card-grid {
        gap: 20px;
        margin: 30px 0;
    }
}

/* --- Footer Section --- */
.main-footer {
    background: linear-gradient(to bottom, #1a252f, #10171e);
    color: #a0aab5;
    padding: 100px 0 40px;
    font-size: 0.95rem;
    position: relative;
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0% 100%);
    margin-top: -50px;
    padding-top: 130px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #a0aab5;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Breakpoints & Layout --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

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

    .about-teaser,
    .page-content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-swiper {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 0 20px;
    }

    .hero {
        padding: 150px 20px 80px;
        height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta,
    .legal-notice {
        padding: 40px 25px;
        width: 100%;
    }

    .map-container {
        height: 300px;
    }

    .hero-content {
        padding: 25px;
        border-radius: 20px;
    }
}

body.no-scroll {
    overflow: hidden !important;
}

/* --- Modal / Popup Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);

    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 50px;
    width: 100%;
    max-width: 550px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content input,
.modal-content textarea {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    background-color: var(--surface-color);
    border-color: var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--text-light-color);
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reg-mark {
    font-size: 0.7em;
    vertical-align: top;
}

#formMessage {
    margin-top: 1rem;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
}

#formMessage.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formMessage.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}