/* Base Reset & Variables */
:root {
    --primary-gold: #D4AF37;
    --primary-gold-light: #f3cf55;
    --dark-bg: #fdfcf5;
    /* Changed from black to cream */
    --dark-secondary: #f4e4bc;
    /* Lighter gold/cream accent */
    --text-light: #5a5a5a;
    /* Dark gray for text on light bg */
    --text-dark: #333333;
    --text-muted: #888888;
    --white: #ffffff;
    --accent-pink: #f8d7da;
    /* Soft pink from reference */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Typography & Utilities */
.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-gold);
    margin: 15px 0;
}

.divider.center {
    margin: 15px auto;
}

.placeholder-image {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-bg);
    /* Solid background */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: rgba(253, 252, 245, 0.85);
    /* Semi-transparent cream */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled .main-nav a {
    color: var(--text-dark);
    text-shadow: none;
    /* No shadow needed on solid bg */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-img {
    height: 90px;
    /* Adjusted for better balance */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 0.95rem;
    /* Slightly larger */
    text-transform: uppercase;
    position: relative;
    font-weight: 700;
    /* Bolder */
    padding: 5px 0;
    /* Add text shadow for better readability on mixed backgrounds */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-dark);
    /* Match text */
    transition: var(--transition);
}

/* Navbar Dropdown Styles */
.main-nav li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 15, 15, 0.95);
    /* Dark background matching theme */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0 !important;
    /* Override main nav gap */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.main-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: capitalize;
    /* Cleaner look for sub-items */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    padding-left: 25px;
    /* Slight movement on hover */
}

.dropdown-menu a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header Extras & Language Switcher */
.header-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-dropdown {
    position: relative;
    cursor: pointer;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
}

.current-lang i {
    color: var(--text-dark);
    font-size: 0.7rem;
}

.flag-icon {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.lang-list {
    position: absolute;
    top: 120%;
    /* Below the button */
    right: 0;
    background-color: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lang-list.active {
    display: flex;
}

.lang-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-dark);
    /* Changed from white to dark for visibility */
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.lang-list li:hover {
    background-color: rgba(212, 175, 55, 0.1);
    /* Gold tint */
    color: var(--primary-gold);
}

.lang-list img {
    width: 20px;
    height: auto;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background removed to prevent covering the image */
    color: var(--white);
    text-align: center;
}

/* Legacy hero-bg block removed */

.hero-content {
    position: relative;
    z-index: 20;
    /* Boosted z-index to stay above slides */
    /* Ensure text is above background */
}

/* ... content skipping ... */

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    /* Default z-index */
    transition: opacity 1.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 10;
    /* Active slide on top */
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary-gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    color: var(--primary-gold);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Intro Section */
.intro-section {
    padding: 80px 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.2rem;
    color: var(--dark-secondary);
}

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-item i {
    color: var(--primary-gold);
}

.intro-image {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Ensure image stays within radius */
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-section {
    background-color: #fafafa;
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    min-width: 250px;
    height: 480px;
    /* Fixed height for uniformity */
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    cursor: pointer;
    /* Enable pointer for clickability */
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    color: var(--dark-secondary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-top: 15px;
}

.btn-text:hover {
    color: var(--dark-secondary);
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    /* Changed to dark gray */
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-links h4 {
    color: var(--text-dark);
    /* Changed to dark for light bg */
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-gold);
    /* Gold border */
    border-radius: 50%;
    color: var(--primary-gold);
    /* Gold icon */
}

.footer-social a:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
    /* White icon on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Lighter border */
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 20px;
        clip-path: circle(0% at 100% 0%);
        transition: all 0.5s ease-in-out;
    }

    .main-nav.active {
        clip-path: circle(150% at 100% 0%);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Mobile Dropdown Support */
    .has-dropdown.dropdown-active .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        background-color: transparent;
        width: 100%;
        text-align: center;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        border-top: none;
    }

    .has-dropdown.dropdown-active .dropdown-menu li {
        margin-bottom: 5px;
    }

    .has-dropdown.dropdown-active .dropdown-menu a {
        color: var(--text-dark);
        /* Ensure visibility */
        font-size: 0.9rem;
    }

    /* Better Gallery/Product Grid for Mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        /* Smaller min-width for mobile 2-col */
    }
}

/* Product Slider Styles */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
    /* Space for buttons */
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

.product-slider-container {
    overflow: hidden;
    width: 100%;
}

.product-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 20px 0;
    /* Space for shadow */
    width: 100%;
    /* Ensure it takes full width */
}

.product-slider-track .product-card {
    flex: 0 0 calc(25% - 20px);
    /* 4 items layout by default */
    min-width: 200px;
    /* Minimum width */
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.product-slider-track .product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.product-img {
    height: 250px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.product-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark-secondary);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-desc {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
    /* Keeps alignment uniform */
}

.product-vol {
    font-weight: 600;
    color: var(--primary-gold) !important;
    margin-top: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.mt-30 {
    margin-top: 30px;
}

/* Responsive Slider */
@media (max-width: 992px) {
    .product-slider-track .product-card {
        flex: 0 0 calc(33.333% - 20px);
        /* 3 items */
    }
}

@media (max-width: 768px) {
    .product-slider-track .product-card {
        flex: 0 0 calc(50% - 20px);
        /* 2 items */
    }

    .product-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .product-slider-track .product-card {
        flex: 0 0 100%;
        /* 1 item */
    }
}

/* Photo Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Mobile specific grid override moved inside media query above */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 1;
    /* Square images for grid */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    /* Keeps full viewport height */
    min-height: 600px;
    /* Min height for mobile to prevent collapsing */
    display: flex;
    align-items: center;
    color: var(--white);
    background-color: #000;
    /* Dark fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
    /* Dark fallback for container */
}

/* Overlay for text readability */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    /* Darken images significantly */
    z-index: 15;
    /* Above slides (z-index 10), below content (z-index 20) */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 10;
    /* Active slide on top */
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* References Section */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.reference-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 300px;
    /* Increased height significantly */
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.reference-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed grayscale filter */
    transition: transform 0.3s ease;
}

.reference-item:hover img {
    transform: scale(1.05);
    /* Gentle zoom instead of color change */
}



.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--primary-gold);
    font-size: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-item.video-item {
    aspect-ratio: auto;
    /* Allow videos to have their natural aspect ratio or set one */
    height: 100%;
    background: #000;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    backdrop-filter: blur(8px);
    /* The requested blur effect */
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    /* Rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Pop effect */
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-img {
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 2rem;
    color: var(--dark-secondary);
    margin-bottom: 10px;
}

.modal-vol {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.modal-desc {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-img {
        padding: 20px;
    }

    .modal-img img {
        max-height: 250px;
    }

    .modal-info {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.6rem;
    }
}

/* Homepage Specific Header Styles */

/* 1. Default State (Top of page) - Transparent & Absolute */
.home-page .main-header:not(.scrolled) {
    position: absolute;
    /* Overlays hero */
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* White Elements on Transparent Header */
.home-page .main-header:not(.scrolled) .main-nav a {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.home-page .main-header:not(.scrolled) .main-nav a::after {
    background-color: var(--white);
}

.home-page .main-header:not(.scrolled) .header-extras {
    color: var(--white);
}

.home-page .main-header:not(.scrolled) .current-lang {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.home-page .main-header:not(.scrolled) .current-lang i {
    color: var(--white);
}

.home-page .main-header:not(.scrolled) .mobile-toggle {
    color: var(--white);
}

/* 2. Mobile Specific Override */
@media (max-width: 768px) {

    /* Keep header absolute on mobile too to avoid pushing content */
    .home-page .main-header {
        position: absolute;
    }

    /* BUT, when menu is open (or just generic mobile menu), text must be dark 
       because mobile menu background is light/cream */
    .home-page .main-header:not(.scrolled) .main-nav a {
        color: var(--text-dark);
        text-shadow: none;
    }


    .home-page .main-header:not(.scrolled) .main-nav a::after {
        background-color: var(--text-dark);
    }
}

/* Critical Mobile Banner Fix */
/* Mobile Banner Gallery - Default Hidden */
.mobile-banner-gallery,
.mobile-hero-slider {
    display: none;
}

@media (max-width: 768px) {

    html,
    body {
        height: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    /* Show Mobile Slider */
    /* Show Mobile Slider */
    .mobile-hero-slider {
        display: block;
        position: relative;
        width: 100%;
        height: 100vh;
        /* Fallback for older browsers */
        height: 100dvh;
        /* Modern mobile viewport height */
        min-height: 100vh;
        /* Ensure it never collapses */
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .mobile-banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        z-index: 1;
    }

    .mobile-banner-slide.active {
        opacity: 1;
        z-index: 2;
    }

    .mobile-banner-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        /* Force cover to ensure no whitespace */
        object-position: center;
    }

    /* Fix for 'kapak foto' (4 faces) being cropped */
    .mobile-banner-slide img[src*="kapak%20foto"] {
        object-fit: contain !important;
        background-color: #000;
    }

    /* Mobile Overlay for text readability */
    .mobile-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
        z-index: 3;
        pointer-events: none;
    }

    .mobile-hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
        z-index: 4;
        padding: 0 20px;
        color: #fff;
    }

    .mobile-hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .mobile-hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Hide desktop hero completely on mobile */
    .hero-section {
        display: none !important;
    }

    .hero-bg {
        display: none !important;
    }
}