/* ==========================================================================
   1. Global Styles
   ========================================================================== */

:root {
    --primary: #34495e;
    --secondary: #9b7c5f;
    --light: #f5f5f5;
    --dark: #0C0D0C;
    --accent: #a32118;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* ==========================================================================
   2. Header and Navigation
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s ease, background-color 0.4s ease;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transform: translateY(-100%);
}

header.scrolled {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.logo-header {
    height: 100px;
    width: auto;
    max-width: 100%;
    padding-bottom: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 10px;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--accent);
}

/* Language Switcher */
.language-switcher-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher {
    color: var(--dark);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-switcher.active {
    color: var(--accent);
    font-weight: 700;
}

.language-separator {
    margin: 0 5px;
    color: var(--dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    z-index: 1;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    left: -30px;
}

.menu-toggle.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */

#hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/1.webp');
    background-size: cover;
    background-position: center;
    animation: fadeIn 2s ease-out forwards;
    opacity: 0;
    transition: filter 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; background-color: white; }
    to { opacity: 1; background-color: transparent; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: black;
    max-width: 800px;
    padding: 20px;
    transition: opacity 0.5s ease-out;
}

.logo-animation {
    position: relative;
    margin: 0 auto 10px;
    width: 100%;
    max-width: 500px;
    height: 80px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.logo-hero {
    height: 75px;
    animation: slideIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 1.5rem;
    animation: fadeInText 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.1rem;
    animation: fadeInText 1s ease-out 1.5s forwards;
    opacity: 0;
}

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

/* ==========================================================================
   4. Cards Section
   ========================================================================== */

#cards {
    position: relative;
    min-height: 300vh;
    padding-top: 100vh;
    z-index: 2;
}

.card-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 1200px;
    height: 70%;
    max-height: 600px;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translate(-50%, 100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
}

.card.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.card.previous {
    opacity: 0.3;
    transform: translate(-50%, -120%) scale(0.95);
    z-index: 1;
}

.card-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    /*filter: blur(5px);*/
}

.card:nth-child(1) .card-image { background-image: url('images/2.webp'); }
.card:nth-child(2) .card-image { background-image: url('images/3.webp'); }
.card:nth-child(3) .card-image { background-image: url('images/4.webp'); }

.card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.card p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

/* ==========================================================================
   5. Main Content Sections
   ========================================================================== */

section {
    padding: 80px 40px;
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

#services {
    background-color: #f0f4f8;
}

#gallery {
    background-color: #f8f0f4;
}

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

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    transform: translateX(-50%);
}

.section-title p {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.about-text {
    padding: 20px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #555;
}

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

.service-card {
    background: none;
    padding: 0;
    box-shadow: none;
    text-align: center;
}

.polaroid {
    background: white;
    padding: 15px 15px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.polaroid img {
    flex: 1;
    object-fit: cover;
    width: 100%;
    min-height: 0;
    border-radius: 4px 4px 0 0;
}

.polaroid-caption {
    padding: 10px;
    background: white;
    text-align: center;
}

.service-card:hover .polaroid {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   6. Modal with Carousel
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    width: 800px;
    margin: auto;
}

.modal-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    background-color: white;
    padding: 1.5% 1.5% 3%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.polaroid-caption {
    text-align: center;
    padding: 15px 0 0;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.polaroid-caption h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: normal;
}

.polaroid-caption p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.modal-carousel .carousel-container {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
    background: white;
}

.modal-carousel .carousel-slide.active {
    opacity: 1;
}

.modal-carousel .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    position: relative;
    background: black;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.modal-carousel .carousel-slide.active img {
    opacity: 1;
}

.modal-carousel .carousel-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1002;
    pointer-events: none;
}

.modal-carousel .carousel-arrow {
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    text-shadow: 0 0 4px rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    padding: 10px;
    pointer-events: auto;
    position: relative;
}

.modal-carousel .carousel-arrow.prev { left: 20px; }
.modal-carousel .carousel-arrow.next { right: 20px; }

.modal-carousel .carousel-arrow:hover {
    color: var(--accent);
    transform: scale(1.2);
    text-shadow: none;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2;
}

.close-modal-minimal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.close-modal-minimal:hover {
    color: var(--accent);
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(163, 33, 24, 0.8);
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    overflow-x: auto;
    margin: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0,0,0,0.1);
}

.modal-thumbnails::-webkit-scrollbar { height: 6px; }
.modal-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

.thumbnail {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.thumbnail.active {
    border-color: var(--accent);
    transform: scale(1.05);
}

.modal-description {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.modal-description h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.modal-description p {
    color: #555;
    margin-bottom: 0;
}

/* ==========================================================================
   7. Contact Section
   ========================================================================== */

#contact {
    background-color: #f9f7f5; /* Warm light base */
    background-image: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
        linear-gradient(rgba(155, 124, 95, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 124, 95, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(245, 245, 245, 1) 0%, rgba(245, 245, 245, 0) 150px);
    pointer-events: none;
    z-index: 1;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    z-index: 2;
}

.contact-card-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    background: #fdfdfd;
    border-radius: 4px 4px 0 0;
}

.contact-card-icon img {
    max-width: 180px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.contact-emails {
    margin-top: 20px;
}

.contact-emails p {
    margin-bottom: 10px;
}

.contact-emails a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
}

.polaroid-caption a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.polaroid-caption a:hover {
    color: var(--accent);
}

.contact-emails a:hover {
    color: var(--accent);
}

.contact-emails i {
    margin-right: 10px;
}

.whatsapp-inquiry {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 6px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-inquiry:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.whatsapp-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #128C7E;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-btn:hover {
    background-color: #075E54;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: white;
}

.social-media {
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.social-text {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--accent);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon-wrapper:hover {
    transform: translateY(-5px);
}

.social-handle {
    margin-top: 10px;
    color: var(--dark);
    font-weight: 500;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f8f8f8;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    font-size: 30px;
}

.social-icon-wrapper:hover .social-icon {
    background-color: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fa-instagram {
    font-size: 32px;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 5px 0;
}

.copyright {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    color: #aaa;
}

/* ==========================================================================
   9. Responsive Styles
   ========================================================================== */

/* Tablets and smaller desktops */
@media (max-width: 991px) {
    .language-switcher-item {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    /* --- Modal responsiveness fixes --- */
    .modal {
        padding: 15px;
        overflow: hidden; /* Prevent scrolling on the modal background */
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
    }

    .modal-description {
        flex-shrink: 0;
        margin-bottom: 10px;
        padding: 15px;
        overflow-y: auto; /* Allow scrolling for long descriptions */
        background-color: white;
        border-radius: 5px;
    }

    .modal-carousel {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Critical for flex-grow in a column */
        margin-bottom: 10px;
        background-color: white;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px;
    }

    .modal-carousel .carousel-container {
        flex-grow: 1;
        height: auto; /* Let flexbox determine the height */
        min-height: 0;
    }

    .modal-thumbnails {
        flex-shrink: 0;
        margin: 0;
        padding-bottom: 5px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .modal-carousel .carousel-arrows {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        padding: 0 5px;
    }

    .modal-carousel .carousel-arrow.prev { left: -15px; }
    .modal-carousel .carousel-arrow.next { right: -15px; }
    
    .modal-carousel .carousel-arrow {
        color: black;
        text-shadow: none;
    }

    .image-counter {
        position: relative; /* Changed from absolute */
        text-align: center;
        margin-top: 8px; /* Space below the carousel */
        color: #555; /* Darker text for readability */
        background-color: transparent; /* Removed background */
        padding: 2px 10px;
        font-size: 0.85rem; /* Slightly smaller font */
        z-index: 2;
        /* Reset transform and positioning */
        bottom: auto;
        left: auto;
        transform: none;
    }

    .close-modal-minimal {
        top: 10px;
        right: 10px;
        color: black;
        text-shadow: none;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
    }
    
    .close-modal-minimal:hover {
        color: var(--accent);
        background-color: white;
        transform: scale(1.1);
    }

    /* --- Existing mobile styles --- */
    #hero {
        position: relative !important;
        height: 100vh;
        z-index: 1;
        pointer-events: auto;
    }
    
    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('images/1.webp');
        background-size: cover;
        background-position: center;
        opacity: 1;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        opacity: 1 !important;
    }
    
    .logo-hero {
        height: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    #cards {
        position: static !important;
        min-height: auto !important;
        padding-top: 0 !important;
        padding: 40px 20px;
        background-color: var(--light);
        z-index: 2;
        margin-top: 25px;
    }

    .card-container {
        position: static !important;
        height: auto !important;
        display: flex;
        gap: 30px;
        max-width: 100%;
        overflow: visible !important;
        flex-direction: column;
    }

    .card {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin-bottom: 0;
        transition: none;
        z-index: auto;
        top: auto !important;
        left: auto !important;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        flex-direction: column;
    }

    .card.active,
    .card.previous {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: auto;
    }

    .card-image {
        width: 100%;
        height: 250px;
        order: -1;
        border-radius: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: block;
        flex: none;
    }

    .card-text {
        padding: 20px;
        order: 1;
        flex: 1;
    }

    .card h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .card p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

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

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

    .about-content {
        gap: 20px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 20px auto;
    }

    .contact-card-icon {
        padding: 40px 0;
        font-size: 3rem;
    }

    .contact-emails a {
        font-size: 16px;
    }
}

/* Smaller mobile devices */
@media (max-width: 576px) {
    section {
        padding: 60px 20px;
    }

    .carousel-arrows {
        padding: 0 10px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* Smallest mobile devices */
@media screen and (max-width: 480px) {
    #cards {
        padding: 20px 15px;
    }

    .card-container {
        gap: 20px;
    }

    .card-image {
        height: 200px;
    }

    .card-text {
        padding: 15px;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card p {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .logo-hero {
        height: 50px;
    }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    color: var(--dark);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-top: 3px solid var(--secondary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    font-size: 0.85rem;
}

.cookie-btn.accept {
    background-color: var(--secondary);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: var(--primary);
}

.cookie-btn.reject {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-btn.reject:hover {
    background-color: rgba(52, 73, 94, 0.05);
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ==========================================================================
   10. Privacy Policy Page
   ========================================================================== */

.policy-content {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.policy-content h1 {
    color: var(--primary);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
    font-size: 2.2rem;
}

.policy-content h2 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    background-color: #f9f7f5;
    padding: 10px 15px;
    border-left: 4px solid var(--secondary);
}

.policy-content p, .policy-content li {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.policy-content ul {
    margin-left: 25px;
    margin-bottom: 25px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.policy-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-style: italic;
    color: #777;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 30px 20px;
        margin-top: 100px;
    }
    .policy-content h1 { 
        font-size: 1.8rem; 
    }
}

/* ==========================================================================
   11. Privacy Policy Table Styles
   ========================================================================== */

.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.table-container th, .table-container td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.table-container th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.table-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-container tr:hover {
    background-color: #f5f5f5;
}

@media (max-width: 600px) {
    .table-container th, .table-container td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

