﻿/* ============================================
   SULOOK - MOBILE RESPONSIVE STYLES
   Comprehensive mobile-first responsive design
   ============================================ */

/* ========== GLOBAL MOBILE RESETS ========== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        overflow-x: hidden;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        padding: 60px 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    p {
        font-size: 0.95rem;
    }

    /* Prevent header scrollbar */
    .header {
        overflow: visible;
    }

    /* ===== CONTACT PAGE MOBILE (iletisim.html) ===== */
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .contact-info {
        width: 100% !important;
        order: 1;
    }

    .contact-form-wrapper {
        width: 100% !important;
        order: 2;
    }

    .contact-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .contact-card {
        padding: 16px 20px;
    }

    /* ===== CONTACT SECTION MOBILE (index.html) ===== */
    .contact-section .contact-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .contact-section .contact-info {
        width: 100% !important;
        order: 1;
    }

    .contact-section .contact-form-wrapper {
        width: 100% !important;
        order: 2;
    }

    .contact-methods {
        flex-direction: column;
        gap: 16px;
    }

    .contact-method {
        width: 100%;
    }

    /* Page hero spacing fix */
    .page-hero-modern {
        padding: 100px 0 50px !important;
        min-height: auto !important;
    }

    .content-section-modern {
        padding: 40px 0 !important;
    }

    /* Map section spacing */
    .map-section-modern {
        margin-top: 30px;
    }
}

/* ========== HEADER & NAVIGATION ========== */
/* Desktop: hide mobile menu button */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 992px) {
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: rgba(14, 165, 233, 0.1);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        color: var(--primary);
        font-size: 1.2rem;
        transition: all 0.3s ease;
        order: 3;
    }

    .mobile-menu-btn:hover {
        background: var(--primary);
        color: white;
    }

    .mobile-menu-btn.active {
        background: var(--primary);
        color: white;
    }

    /* Navigation menu - hidden by default */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        z-index: 999;
    }

    /* Active state - show menu */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        font-size: 1.1rem;
    }

    .nav-menu .nav-dropdown {
        width: 100%;
    }

    .nav-menu .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        padding-left: 20px;
        border-radius: 0;
        transition: all 0.3s ease;
    }

    /* Show dropdown when parent has .open class */
    .nav-menu .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Rotate chevron icon when open */
    .nav-menu .nav-dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Hide the old nav-toggle (extra hamburger) */
    .nav-toggle {
        display: none !important;
    }

    .nav-actions {
        border-left: none;
        margin-left: auto;
        padding-left: 0;
        order: 2;
    }

    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Hide text on small screens */
    .nav-actions .btn span {
        display: none;
    }
}

/* ========== HERO SECTION ========== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

/* ========== WATER FILL SECTION ========== */
@media (max-width: 768px) {
    .water-fill-section {
        padding: 40px 0;
    }

    .water-fill-container {
        flex-direction: column;
        gap: 30px;
    }

    .water-info {
        order: 1;
        text-align: center;
    }

    .water-visual {
        order: 2;
    }

    .water-bottle-container {
        width: 120px;
        height: 300px;
    }

    .info-item h4 {
        font-size: 1.2rem;
    }

    /* Damacana Stats - Fix overlapping */
    .damacana-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .damacana-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .stat-box {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 12px 16px;
        margin: 0;
    }

    /* References slider scrolling handled by JS, no CSS animation needed on mobile */
}

/* ========== 3D CAROUSEL / GALLERY ========== */
@media (max-width: 992px) {
    .dribbble-gallery-wrapper {
        min-height: 450px;
        padding: 60px 0;
    }

    .carousel-3d-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .dribbble-gallery-wrapper {
        min-height: 380px;
        padding: 50px 0;
    }

    .carousel-3d-container {
        height: 350px;
        perspective: 800px;
    }

    .carousel-3d-track {
        width: 200px;
        height: 280px;
    }

    .carousel-3d-card-overlay {
        padding: 15px 12px;
    }

    .carousel-3d-card-overlay h4 {
        font-size: 1rem;
    }

    .carousel-3d-card-overlay p {
        font-size: 0.8rem;
    }

    .carousel-3d-indicators {
        margin-top: 20px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* ========== CALCULATOR SECTION ========== */
@media (max-width: 768px) {
    .calculator-section {
        padding: 50px 0;
        overflow: hidden !important;
    }

    .calculator-section *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .calculator-section * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .calculator-wrapper {
        overflow: hidden !important;
    }

    .calculator-inputs {
        overflow: hidden !important;
    }

    .calc-section {
        overflow: hidden !important;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calc-input-group {
        flex-direction: column;
    }

    .calc-slider-container {
        padding: 15px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-card {
        padding: 15px;
    }

    .result-value {
        font-size: 1.8rem;
    }
}

/* ========== INVESTMENT CARDS ========== */
@media (max-width: 768px) {
    .investment-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .invest-card {
        padding: 25px;
    }
}

/* ========== PRODUCT SECTION ========== */
@media (max-width: 992px) {
    .product-showcase {
        flex-direction: column;
        gap: 30px;
    }

    .product-visual {
        order: 1;
    }

    .product-details {
        order: 2;
    }
}

@media (max-width: 768px) {
    .product-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .spec-item {
        padding: 12px;
    }

    .spec-value {
        font-size: 1.2rem;
    }

    .color-options {
        justify-content: center;
    }
}

/* ========== OTOMAT PAGE ========== */
@media (max-width: 768px) {
    .filt-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filt-item {
        padding: 12px;
    }

    .investment-timeline {
        grid-template-columns: 1fr !important;
    }

    .timeline-step {
        padding: 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .image-gallery-section .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ========== OTÄ°S PAGE ========== */
@media (max-width: 768px) {
    .content-block {
        flex-direction: column;
        text-align: center;
    }

    .content-icon-box {
        margin: 0 auto 20px;
    }

    .smart-service-benefits {
        flex-direction: column;
    }

    .ssb-item {
        flex-direction: row;
        text-align: left;
    }

    .otis-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BLOG PAGE ========== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-content {
        padding: 15px;
    }
}

/* ========== CONTACT PAGE ========== */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }
}

/* ========== FAQ PAGE ========== */
@media (max-width: 768px) {
    .faq-item {
        padding: 15px;
    }

    .faq-question {
        font-size: 1rem;
        padding-right: 30px;
    }
}

/* ========== FOOTER ========== */
@media (max-width: 768px) {
    .footer-modern {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        flex-direction: column;
        gap: 10px;
    }
}

/* ========== CTA SECTION ========== */
@media (max-width: 768px) {
    .cta-section {
        padding: 50px 0;
    }

    .cta-content {
        text-align: center;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========== INLINE SEARCH ========== */
@media (max-width: 768px) {
    .inline-search.active .search-input-wrapper {
        position: fixed;
        top: 85px;
        right: 16px;
        left: 16px;
        width: calc(100% - 32px);
        padding: 8px 12px 8px 20px;
        z-index: 9999;
        border-radius: 30px;
        overflow: visible;
    }

    .inline-search .search-input-wrapper input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .inline-search.active~.btn-outline-light {
        margin-left: 0;
    }

    .inline-search .search-close-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* ========== BUTTONS ========== */
@media (max-width: 768px) {
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-full {
        width: 100%;
    }
}

/* ========== SECTION HEADERS ========== */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .section-desc {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* ========== BAYILIK PAGE ========== */
@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .requirement-card {
        padding: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== NOKTALAR-SERVISLER PAGE ========== */
@media (max-width: 768px) {

    .city-cards-v2,
    .cities-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .city-card-v2 {
        padding: 15px 10px;
    }

    .city-card-v2 h4 {
        font-size: 0.9rem;
    }
}

/* ========== TURKEY MAP SECTION - MOBILE RESPONSIVE ========== */
@media (max-width: 992px) {
    .turkey-svg-container-realistic {
        padding: 25px 15px;
        margin: 0;
        overflow: visible;
    }

    .turkey-map-wrapper {
        position: relative;
        width: 100%;
    }

    .turkey-base-map {
        width: 100%;
        height: auto;
        display: block;
    }

    .turkey-markers-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .map-legend-v2 {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px;
        margin-top: 15px;
    }

    .legend-item-v2 {
        font-size: 0.8rem;
    }

    .legend-dot-v2 {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .map-section-v2 {
        padding: 40px 0;
    }

    .turkey-svg-container-realistic {
        padding: 15px 10px;
        border-radius: 16px;
        overflow: hidden;
        margin: 0 -8px;
        /* Keep the dark background */
        background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0f172a 100%) !important;
    }

    .turkey-map-wrapper {
        position: relative;
        width: 100%;
        min-height: 150px;
        display: block;
    }

    /* Make the object element scale properly */
    .turkey-base-map {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* MOBILE: Show markers overlay with proper positioning */
    .turkey-markers-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none;
    }

    /* Hide pulse animations for cleaner mobile look */
    .city-marker-realistic .marker-pulse,
    .city-marker-realistic .marker-pulse-hq,
    .city-marker-realistic .marker-pulse-service {
        display: none !important;
    }

    /* Hide all text labels on mobile */
    .city-marker-realistic text,
    .city-marker-realistic .marker-label {
        display: none !important;
    }

    /* Scale down marker circles for mobile */
    .city-marker-realistic circle:nth-child(2) {
        r: 4 !important;
    }

    .city-marker-realistic circle:nth-child(3) {
        r: 2.5 !important;
    }

    .city-marker-realistic circle:nth-child(4) {
        r: 1 !important;
    }

    /* Headquarters (İzmir) slightly bigger */
    .city-marker-realistic.headquarters circle:nth-child(2) {
        r: 6 !important;
    }

    .city-marker-realistic.headquarters circle:nth-child(3) {
        r: 3.5 !important;
    }

    .city-marker-realistic.headquarters circle:nth-child(4) {
        r: 1.5 !important;
    }

    /* Service/Dealership markers */
    .city-marker-realistic.service circle:nth-child(2) {
        r: 5 !important;
    }

    .city-marker-realistic.service circle:nth-child(3) {
        r: 3 !important;
    }

    .city-marker-realistic.service circle:nth-child(4) {
        r: 1.5 !important;
    }

    /* Map Legend mobile - Properly Centered */
    .map-legend-v2 {
        position: relative !important;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(0, 20, 40, 0.85);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin: 15px auto 0 !important;
        width: fit-content;
        max-width: calc(100% - 20px);
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .legend-item-v2 {
        font-size: 0.75rem;
        gap: 6px;
        white-space: nowrap;
    }

    .legend-dot-v2 {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    /* Cities Grid mobile */
    .cities-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .city-card-v2 {
        padding: 12px 10px;
        gap: 8px;
    }

    .city-card-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .city-card-content h4 {
        font-size: 0.85rem;
    }

    .city-card-content p {
        font-size: 0.7rem;
    }

    .city-card-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* Map Tooltip mobile - hide on mobile, use cards instead */
    .map-tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .turkey-svg-container-realistic {
        padding: 12px 8px;
        margin: 0 -8px;
        border-radius: 12px;
    }

    .turkey-map-wrapper {
        width: 100%;
        min-height: 120px;
    }

    .turkey-base-map {
        width: 100% !important;
        height: auto !important;
    }

    /* Legend centered on small screens */
    .map-legend-v2 {
        gap: 6px;
        padding: 8px 12px;
        margin: 10px auto 0 !important;
        width: auto;
        max-width: calc(100% - 16px);
        flex-wrap: wrap;
    }

    .legend-item-v2 {
        font-size: 0.65rem;
        gap: 4px;
    }

    .legend-item-v2 span:last-child {
        font-size: 0.6rem;
    }

    .legend-dot-v2 {
        width: 8px;
        height: 8px;
    }

    .cities-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .city-card-v2 {
        padding: 10px 8px;
    }

    .city-card-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .city-card-content h4 {
        font-size: 0.8rem;
    }

    .city-card-content p {
        font-size: 0.65rem;
    }
}

/* ========== ANIMATIONS - Disable on mobile for performance ========== */
@media (max-width: 768px) {

    .tilt-card,
    .magnetic-btn {
        transform: none !important;
    }

    .parallax-element {
        transform: none !important;
    }

    * {
        animation-duration: 0.3s !important;
    }
}

/* ========== SCROLL TO TOP BUTTON ========== */
@media (max-width: 768px) {

    .scroll-top-btn,
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}

/* ========== TABLET SPECIFIC ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .investment-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .dribbble-gallery-wrapper {
        min-height: 300px;
    }

    .carousel-3d-container {
        height: 280px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .carousel-3d-card {
        transition: none !important;
    }
}

/* =====================================================
   COMPREHENSIVE MOBILE FIXES
   ===================================================== */

/* ========== DAMACANA / WATER FILL SECTION ========== */
@media (max-width: 768px) {
    .water-fill-section {
        padding: 50px 0 80px;
        overflow: visible !important;
    }

    .water-fill-container {
        padding: 0 10px;
        overflow: visible !important;
    }

    .fill-progress {
        margin-bottom: 30px;
        height: 6px;
    }

    .progress-text {
        right: 0;
        font-size: 0.75rem;
        padding: 2px 6px;
    }

    .damacana-wrapper {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
        padding: 0 10px;
    }

    .damacana-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
        order: 2;
    }

    .damacana-stats.left-stats {
        order: 1;
    }

    .damacana-stats.right-stats {
        order: 3;
    }

    .stat-box {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 10px 12px;
        gap: 10px;
        opacity: 1 !important;
        transform: none !important;
    }

    .stat-box i {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .damacana-container {
        order: 2;
        position: relative;
        margin: 20px auto;
        overflow: visible !important;
    }

    .damacana-wrapper {
        overflow: visible !important;
    }

    .damacana {
        overflow: visible !important;
    }

    .damacana {
        width: 140px;
        height: 250px;
    }

    .damacana-body {
        width: 130px;
        height: 210px;
    }

    .damacana-neck {
        width: 35px;
        height: 30px;
    }

    .damacana-cap {
        width: 30px;
        height: 15px;
    }

    .damacana-label {
        font-size: 1.3rem;
    }

    .fill-status {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 15px auto 0;
        padding: 10px 20px;
    }

    .fill-status .liters {
        font-size: 1.8rem;
    }

    .fill-status .unit {
        font-size: 0.8rem;
    }

    .fill-nozzle {
        top: -45px;
    }

    .nozzle-body {
        width: 22px;
        height: 38px;
    }

    .water-stream.active {
        height: 45px;
    }

    .fill-complete-message {
        padding: 16px 24px;
        font-size: 1rem;
        gap: 10px;
    }

    .fill-complete-message i {
        font-size: 1.3rem;
    }
}

/* ========== PRODUCT SHOWCASE SECTION ========== */
@media (max-width: 768px) {
    .product-showcase-section {
        padding: 50px 0;
    }

    .product-showcase-container {
        flex-direction: column;
        gap: 30px;
    }

    .color-selector {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .color-option {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .color-option span {
        font-size: 0.75rem;
    }

    .color-swatch {
        width: 40px;
        height: 40px;
    }

    .product-viewer {
        order: 1;
    }

    .product-stage {
        height: 250px;
    }

    .product-image-container img {
        max-height: 220px;
    }

    .floating-badge {
        display: none;
    }

    .rotate-hint {
        display: none;
    }

    .product-info-panel {
        order: 2;
        width: 100%;
    }

    .product-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .spec-item {
        padding: 12px;
    }

    .spec-value {
        font-size: 1.1rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .product-features {
        flex-wrap: wrap;
        gap: 8px;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* ========== DRIBBBLE CAROUSEL / GALLERY ========== */
@media (max-width: 768px) {
    .dribbble-carousel-section {
        padding: 50px 0;
    }

    .dribbble-carousel {
        padding: 0;
    }

    .carousel-wrapper {
        padding: 0 10px;
    }

    .carousel-track {
        gap: 12px;
    }

    .carousel-card {
        min-width: 240px;
        height: 180px;
        border-radius: 12px;
    }

    .carousel-card-content {
        padding: 12px;
    }

    .carousel-card-content h4 {
        font-size: 0.9rem;
    }

    .carousel-card-content p {
        font-size: 0.75rem;
    }

    .carousel-indicators {
        margin-top: 15px;
    }
}

/* ========== CALCULATOR SECTION ========== */
@media (max-width: 768px) {
    .calculator-section {
        padding: 50px 0;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calc-section {
        padding: 20px;
    }

    .calc-section-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .bottle-icon {
        width: 45px;
        height: 45px;
    }

    .bottle-icon i {
        font-size: 1.1rem;
    }

    .calc-section h3 {
        font-size: 1.1rem;
    }

    .calc-input-group {
        margin-bottom: 16px;
    }

    .label-value {
        font-size: 1.2rem;
    }

    .range-slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .calc-subtotal {
        padding: 12px 15px;
    }

    .subtotal-value {
        font-size: 1.1rem;
    }

    .calculator-results {
        padding: 24px;
        position: static;
    }

    .results-header {
        margin-bottom: 16px;
    }

    .results-header h3 {
        font-size: 1.1rem;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .result-card {
        padding: 15px;
    }

    .result-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .result-value {
        font-size: 1.3rem;
    }

    .result-label {
        font-size: 0.7rem;
    }

    .result-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .results-summary {
        padding: 15px;
        margin-top: 15px;
    }

    .summary-item {
        font-size: 0.85rem;
    }

    .roi-disclaimer {
        font-size: 0.7rem;
    }
}

/* ========== INVESTMENT CARDS SECTION ========== */
@media (max-width: 768px) {
    .investment-section {
        padding: 50px 0;
    }

    .investment-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .invest-card {
        padding: 20px;
    }

    .invest-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .invest-card h3 {
        font-size: 1.1rem;
    }

    .invest-card p {
        font-size: 0.85rem;
    }
}

/* ========== OTİS SECTION ========== */
@media (max-width: 768px) {
    .otis-section {
        padding: 50px 0;
    }

    .otis-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .otis-feature-card {
        padding: 20px;
    }

    .feature-number {
        font-size: 2rem;
    }

    .otis-feature-card h4 {
        font-size: 1rem;
    }

    .otis-feature-card p {
        font-size: 0.85rem;
    }
}

/* ========== REFERENCES SECTION ========== */
@media (max-width: 768px) {
    .references-section {
        padding: 50px 0;
    }

    .references-slider {
        padding: 20px 0;
    }

    .reference-logo {
        padding: 12px 20px;
        min-width: 100px;
    }

    .reference-logo span {
        font-size: 0.9rem;
    }
}

/* ========== CUSTOMER REVIEWS SECTION ========== */
@media (max-width: 768px) {
    .reviews-section {
        padding: 50px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .review-card {
        padding: 20px;
    }
}

/* ========== HERO SECTION - ADDITIONAL FIXES ========== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    .hero-title br {
        display: none;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .investment-comparison {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========== BACK TO TOP BUTTON ========== */
@media (max-width: 768px) {

    #backToTop,
    .back-to-top,
    .scroll-top-btn {
        width: 38px !important;
        height: 38px !important;
        bottom: 12px !important;
        right: 12px !important;
        font-size: 0.85rem !important;
        z-index: 9000;
    }
}

/* ========== GENERAL MOBILE TYPOGRAPHY FIXES ========== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .section-desc {
        font-size: 0.8rem;
    }

    .damacana {
        width: 120px;
        height: 220px;
    }

    .damacana-body {
        width: 110px;
        height: 180px;
    }

    .stat-box {
        flex: 0 0 calc(50% - 6px);
        padding: 8px 10px;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

/* =====================================================
   ADDITIONAL MOBILE FIXES - USER REQUESTS
   ===================================================== */

/* ========== HEADER SCROLLBAR & ANIMATION FIX ========== */
@media (max-width: 768px) {

    /* Fix header - OVERFLOW MUST BE VISIBLE for mobile menu to show */
    .header {
        overflow: visible !important;
        min-height: 70px;
    }

    .header .container {
        overflow: visible !important;
    }

    /* Hero section - hide overflow completely */
    .hero-section,
    .hero,
    .hero-content,
    section.hero-section {
        overflow: hidden !important;
    }

    /* DISABLE all background animations to stop shaking */
    .hero-section::before,
    .hero::before,
    .hero-bg-animation,
    .hero-background,
    .bubble-animation,
    .floating-elements,
    .hero-particles,
    .bg-particles {
        animation: none !important;
        transform: none !important;
    }

    /* Disable floating bubble animations */
    .bubble,
    .hero .bubble,
    .floating-bubble,
    .water-droplet,
    .floating-element {
        animation: none !important;
        display: none !important;
    }

    /* No transitions on hero background */
    .hero-section *,
    .hero * {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* ========== PRODUCT/OTOMAT SIZE FIX - MUCH BIGGER ========== */
@media (max-width: 768px) {

    /* Make the product image MUCH larger */
    .product-viewer,
    .product-3d-viewer,
    .product-visual {
        min-height: 350px !important;
        height: 350px !important;
    }

    .product-stage {
        height: 350px !important;
        min-height: 320px !important;
    }

    .product-image-container {
        height: 340px !important;
        min-height: 300px !important;
    }

    .product-image-container img,
    .product-stage img,
    .product-viewer img,
    .product-visual img,
    .product-3d-viewer img {
        max-height: 340px !important;
        min-height: 280px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Ensure product section has proper spacing */
    .product-showcase-section {
        padding-bottom: 80px !important;
    }

    .product-showcase-section .product-viewer {
        order: 1;
        margin-bottom: 30px;
    }

    /* Color selector bigger */
    .color-selector {
        margin-bottom: 20px;
        gap: 20px;
    }

    .color-swatch {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ========== SPECS SECTION - FIX CROPPING ========== */
@media (max-width: 768px) {

    /* Add extra margin/padding to prevent cropping */
    .product-specs-section,
    .device-specs-section,
    .specs-section,
    .cta-section,
    .features-section {
        position: relative;
        z-index: 1;
        overflow: visible !important;
        padding-bottom: 80px !important;
        margin-bottom: 0 !important;
    }

    /* The section below should not overlap */
    .product-specs-section+section,
    .device-specs-section+section,
    .specs-section+section,
    .cta-section+section {
        position: relative;
        z-index: 0;
        margin-top: 0 !important;
        padding-top: 40px;
    }

    /* Specs grid and items */
    .product-specs,
    .specs-grid,
    .features-grid {
        overflow: visible !important;
        margin-bottom: 30px;
    }

    /* CTA buttons - ensure visible */
    .cta-buttons,
    .cta-content .btn,
    .btn-cta {
        margin-bottom: 20px;
        position: relative;
        z-index: 5;
    }

    /* Make sure buttons are fully visible */
    .btn-primary-lg,
    .btn-cta,
    a.btn[href*="teklif"],
    .cta-section .btn {
        margin-bottom: 30px !important;
    }
}

/* ========== GALLERY SMOOTH TRANSITIONS ========== */
@media (max-width: 768px) {

    .carousel-card,
    .carousel-3d-card,
    .dribbble-card {
        transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    }

    .carousel-track,
    .carousel-3d-track {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-wrapper {
        scroll-snap-type: x mandatory;
    }

    .carousel-card {
        scroll-snap-align: center;
    }
}

/* ========== PARTNER LOGOS - MODERATE SPEED ========== */
@media (max-width: 768px) {

    .references-track,
    .references-track.auto-scroll,
    .partners-track {
        animation-duration: 40s !important;
    }
}

/* ========== HAMBURGER MENU - DROPDOWNS CLOSED BY DEFAULT ========== */
@media (max-width: 992px) {

    /* Ensure dropdowns are closed by default */
    .nav-menu .nav-dropdown .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    /* Only show when .open class is added via JS */
    .nav-menu .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Chevron rotation */
    .nav-menu .nav-dropdown .dropdown-toggle i {
        transition: transform 0.3s ease;
        transform: rotate(0deg);
    }

    .nav-menu .nav-dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* =====================================================
   CRITICAL MOBILE FIXES - FINAL VERSION
   ===================================================== */

/* ========== HERO SECTION - STOP ALL ANIMATIONS ========== */
@media (max-width: 768px) {

    /* Hero - disable ALL animations to stop shaking */
    .hero {
        overflow: hidden !important;
    }

    .hero-particles,
    .hero-waves,
    .wave,
    .wave-1,
    .wave-2,
    .wave-3 {
        display: none !important;
        animation: none !important;
    }

    /* Disable wave animations completely */
    @keyframes wave {

        0%,
        100% {
            transform: none;
        }
    }
}

/* ========== PRODUCT SHOWCASE - MAKE OTOMAT MUCH BIGGER ========== */
@media (max-width: 768px) {
    .product-showcase-section {
        padding: 40px 0 100px !important;
        overflow: visible !important;
    }

    .product-showcase-container {
        flex-direction: column !important;
        gap: 30px;
    }

    /* Color selector on top */
    .color-selector {
        order: 1;
        flex-direction: row !important;
        justify-content: center;
        gap: 30px;
        margin-bottom: 20px;
    }

    .color-option {
        flex-direction: column;
        align-items: center;
    }

    .color-swatch {
        width: 60px !important;
        height: 60px !important;
    }

    /* Product viewer - MUCH BIGGER */
    .product-viewer {
        order: 2;
        width: 100%;
        min-height: 400px !important;
    }

    .product-stage {
        height: 400px !important;
        min-height: 380px !important;
    }

    .product-image-container {
        height: 380px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image-container img,
    .product-image {
        max-height: 380px !important;
        min-height: 320px !important;
        width: auto !important;
        max-width: 90% !important;
        object-fit: contain !important;
    }

    /* Hide floating badges on mobile */
    .floating-badge,
    .rotate-hint {
        display: none !important;
    }

    /* Product info panel */
    .product-info-panel {
        order: 3;
        width: 100%;
        padding: 20px;
    }

    /* Product CTA button */
    .product-cta {
        margin-top: 20px;
        padding-bottom: 30px;
    }

    .product-cta .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    /* Background decoration - hide */
    .showcase-bg-decoration {
        display: none !important;
    }
}

/* ========== PRODUCT SPECS - PREVENT CROPPING ========== */
@media (max-width: 768px) {
    .product-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .product-features {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .feature-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ========== PARTNER LOGOS SPEED ========== */
@media (max-width: 768px) {

    /* 40 seconds for moderate speed */
    .references-track {
        animation-duration: 35s !important;
    }

    .references-track.auto-scroll {
        animation-duration: 35s !important;
    }
}

/* =====================================================
   ULTIMATE MOBILE FIXES - ALL ISSUES ADDRESSED
   ===================================================== */

/* ========== HERO WAVES - COMPLETELY DISABLE ========== */
@media (max-width: 768px) {

    /* Disable wave animations that cause stuttering */
    .wave,
    .wave-1,
    .wave-2,
    .wave-3 {
        animation: none !important;
        transform: none !important;
        display: none !important;
    }

    .hero-waves {
        display: none !important;
    }

    .hero-particles {
        display: none !important;
    }

    /* Hero section stable */
    .hero {
        min-height: auto !important;
        padding: 100px 0 60px !important;
        overflow: hidden !important;
    }

    /* Remove any transform/animation from hero elements */
    .hero *,
    .hero::before,
    .hero::after {
        animation-play-state: paused !important;
    }

    .hero-badge,
    .hero-title,
    .hero-description,
    .hero-buttons {
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
    }

    /* Hide comparison on mobile */
    .investment-comparison,
    .hero-visual {
        display: none !important;
    }

    .scroll-indicator {
        display: none !important;
    }
}

/* ========== PRODUCT SHOWCASE - VERY LARGE OTOMAT ========== */
@media (max-width: 768px) {
    .product-showcase-section {
        padding: 50px 0 120px !important;
        overflow: visible !important;
        position: relative;
        z-index: 1;
    }

    .product-showcase-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }

    /* Color selector stays on top */
    .color-selector {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 40px !important;
        order: 1;
    }

    .color-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .color-swatch {
        width: 65px !important;
        height: 65px !important;
        border-radius: 50%;
    }

    .color-option span {
        font-size: 0.85rem;
    }

    /* OTOMAT IMAGE - VERY LARGE */
    .product-viewer {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 450px !important;
    }

    .product-stage {
        width: 100%;
        height: 450px !important;
        min-height: 420px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-image-container {
        width: 100%;
        height: 420px !important;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .product-image-container img.product-image,
    img.product-image {
        max-height: 400px !important;
        min-height: 350px !important;
        height: auto !important;
        width: auto !important;
        max-width: 95% !important;
        object-fit: contain !important;
    }

    .product-glow {
        display: none !important;
    }

    .floating-badge,
    .rotate-hint {
        display: none !important;
    }

    /* Product info panel */
    .product-info-panel {
        order: 3;
        width: 100%;
    }

    /* Product specs 2x2 grid */
    .product-specs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-bottom: 20px;
    }

    .spec-item {
        padding: 15px;
    }

    /* Features wrap properly */
    .product-features {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 25px;
    }

    .feature-tag {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* CTA button - fully visible, not cropped */
    .product-cta {
        margin-top: 20px;
        margin-bottom: 40px !important;
        padding-bottom: 30px !important;
    }

    .product-cta .btn,
    .product-cta a {
        width: 100%;
        padding: 18px 24px !important;
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    /* Hide background decoration */
    .showcase-bg-decoration,
    .deco-circle {
        display: none !important;
    }
}

/* ========== NEXT SECTION - DON'T OVERLAP ========== */
@media (max-width: 768px) {

    /* Water fill section should not overlap product section */
    .water-fill-section {
        margin-top: 0 !important;
        padding-top: 60px !important;
        position: relative;
        z-index: 0;
    }
}

/* ========== PARTNERS - BALANCED SPEED (35s) ========== */
@media (max-width: 768px) {

    .references-track,
    .references-track.auto-scroll {
        animation-duration: 30s !important;
    }
}

/* =====================================================
   FINAL CRITICAL FIXES - ALL USER ISSUES
   ===================================================== */

/* ========== 1. SCROLLBAR IN HERO - COMPLETELY REMOVE ========== */
@media (max-width: 768px) {

    /* Remove ALL scrollbars from hero area */
    html {
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
    }

    .hero {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    /* This is the key fix - prevent any inner scroll */
    .hero-container,
    .hero-content,
    .hero-visual,
    .hero-buttons {
        overflow: visible !important;
        max-width: 100% !important;
    }

    /* Remove webkit scrollbar */
    .hero::-webkit-scrollbar,
    .hero-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
    }
}

/* ========== 2. HAMBURGER MENU - FIX VISIBILITY ========== */
@media (max-width: 992px) {

    /* Navigation menu must be visible when active */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-menu .nav-link {
        display: block !important;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        font-size: 1.1rem;
        color: var(--dark);
    }

    .nav-menu .nav-dropdown {
        display: block !important;
        width: 100%;
    }

    .nav-menu .dropdown-toggle {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu .nav-actions {
        display: flex !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* ========== 3. OTOMAT - FULL WIDTH LIKE COLOR BOX ========== */
@media (max-width: 768px) {
    .product-showcase-section {
        padding: 40px 0 140px !important;
    }

    .product-showcase-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        padding: 0 10px;
    }

    /* Color selector box - reference width */
    .color-selector {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 40px;
        background: #f8f9fa;
        border-radius: 20px;
        padding: 25px;
        order: 1;
    }

    /* Product viewer - SAME WIDTH as color box */
    .product-viewer {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 450px !important;
        background: transparent !important;
        border-radius: 0;
        padding: 20px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-stage {
        width: 100% !important;
        height: 480px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-image-container {
        width: 100% !important;
        height: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Product image - AS WIDE AS CONTAINER */
    .product-image-container img.product-image,
    img.product-image {
        max-height: 450px !important;
        min-height: 380px !important;
        width: auto !important;
        max-width: 90% !important;
        object-fit: contain !important;
    }

    /* Info panel */
    .product-info-panel {
        order: 3;
        width: 100%;
        padding: 20px;
        margin-bottom: 40px;
    }
}

/* ========== 4. FIX CROPPING - ADD MORE BOTTOM SPACE ========== */
@media (max-width: 768px) {
    .product-specs {
        margin-bottom: 25px;
    }

    .product-features {
        margin-bottom: 25px;
        padding-bottom: 10px;
    }

    .product-cta {
        margin-bottom: 60px !important;
        padding-bottom: 40px !important;
    }

    .product-cta .btn,
    .product-cta a.btn {
        margin-bottom: 30px !important;
    }

    /* Next section spacing */
    .water-fill-section {
        margin-top: 20px;
    }
}

/* ========== 6. PARTNER LOGOS - MODERATE SPEED (35s) ========== */
@media (max-width: 768px) {

    .references-track,
    .references-track.auto-scroll {
        animation-duration: 35s !important;
    }
}

/* ========== BACKGROUND DECORATION HIDE ========== */
@media (max-width: 768px) {

    .showcase-bg-decoration,
    .deco-circle,
    .circle-1,
    .circle-2,
    .circle-3,
    .product-glow,
    .floating-badge,
    .rotate-hint {
        display: none !important;
    }
}

/* =====================================================
   FIX HAMBURGER MENU - OVERRIDE TRANSFORM
   ===================================================== */

@media (max-width: 768px) {

    /* Override the transform from style.css */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
    }

    /* ACTIVE STATE - MUST OVERRIDE TRANSFORM */
    .nav-menu.active {
        transform: translateX(0) !important;
        display: flex !important;
    }

    .nav-menu .nav-link {
        display: block !important;
        padding: 18px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        width: 100% !important;
        font-size: 1.1rem !important;
        color: #333 !important;
    }

    .nav-menu .nav-dropdown {
        display: block !important;
        width: 100% !important;
    }

    .nav-menu .dropdown-toggle {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .nav-menu .nav-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        margin-top: 30px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =====================================================
   FINAL FIXES - REDUCE WHITESPACE & FIX HAMBURGER
   ===================================================== */

/* ========== REDUCE EXCESSIVE WHITESPACE ========== */
@media (max-width: 768px) {

    /* Product showcase section - reduce padding */
    .product-showcase-section {
        padding: 30px 0 60px !important;
    }

    /* Water fill section - reduce top padding, start closer to product */
    .water-fill-section {
        padding: 30px 0 50px !important;
        margin-top: -20px !important;
    }

    /* Section headers - reduce margin */
    .section-header {
        margin-bottom: 20px !important;
    }

    /* Damacana wrapper - reduce gaps */
    .damacana-wrapper {
        gap: 15px !important;
    }

    /* Damacana container spacing */
    .damacana-container {
        margin: 15px auto !important;
    }

    /* Stats boxes - tighter */
    .damacana-stats {
        gap: 8px !important;
    }

    /* Gallery section */
    .dribbble-carousel-section {
        padding: 30px 0 !important;
    }

    /* Calculator section */
    .calculator-section {
        padding: 30px 0 40px !important;
    }

    /* Investment section */
    .investment-section {
        padding: 30px 0 40px !important;
    }

    /* OTİS section */
    .otis-section {
        padding: 30px 0 40px !important;
    }

    /* References section */
    .references-section {
        padding: 30px 0 40px !important;
    }

    /* Reviews section */
    .reviews-section {
        padding: 30px 0 40px !important;
    }
}

/* ========== HAMBURGER MENU FIX - ENSURE IT OPENS ========== */
@media (max-width: 992px) {

    /* Mobile menu button must be visible and clickable */
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 10000 !important;
        position: relative !important;
        cursor: pointer !important;
        background: rgba(14, 165, 233, 0.1) !important;
        border: none !important;
        border-radius: 12px !important;
        width: 44px !important;
        height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0ea5e9 !important;
        font-size: 1.2rem !important;
    }

    .mobile-menu-btn:active,
    .mobile-menu-btn.active {
        background: #0ea5e9 !important;
        color: white !important;
    }

    /* Navigation menu - HIDDEN by default with display:none */
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 0 !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
    }

    /* ACTIVE STATE - SHOW MENU */
    .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Nav links styling */
    .nav-menu .nav-link {
        display: block !important;
        padding: 16px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        font-size: 1.1rem !important;
        color: #333 !important;
        text-decoration: none !important;
    }

    /* Dropdown handling */
    .nav-menu .nav-dropdown {
        display: block !important;
        width: 100% !important;
    }

    .nav-menu .nav-dropdown .dropdown-menu {
        position: static !important;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.02) !important;
        padding: 0 !important;
        margin-left: 20px !important;
        border-radius: 0 !important;
        transition: all 0.3s ease !important;
    }

    .nav-menu .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 10px 0 !important;
    }

    .nav-menu .dropdown-toggle {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .nav-menu .dropdown-toggle i {
        transition: transform 0.3s ease !important;
    }

    .nav-menu .nav-dropdown.open .dropdown-toggle i {
        transform: rotate(180deg) !important;
    }

    /* Nav actions at bottom */
    .nav-menu .nav-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        margin-top: auto !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ========== PARTNER LOGOS - DRAGGABLE & SCROLLABLE ========== */
@media (max-width: 768px) {
    .references-slider {
        overflow: hidden;
    }

    .references-track {
        gap: 16px;
        padding: 15px 20px;
        overflow-x: auto;
        cursor: grab;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .references-track::-webkit-scrollbar {
        display: none;
    }

    .references-track.is-dragging {
        cursor: grabbing;
    }

    .reference-logo {
        min-width: 120px;
        padding: 16px 20px;
    }

    .reference-logo span {
        font-size: 0.85rem;
    }
}

/* ============================================
   MOBILE DROPDOWN FIX - FINAL OVERRIDE
   Ensures dropdowns work on inner pages where 
   the toggle may have .active class
   ============================================ */
@media (max-width: 992px) {

    /* Force dropdown menu to show when .open class is present */
    .nav-menu .nav-dropdown.open>.dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        display: block !important;
    }

    /* Ensure dropdown menu links are visible */
    .nav-menu .nav-dropdown.open>.dropdown-menu>a {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 12px 20px !important;
    }
}

/* ============================================
   ADDITIONAL MOBILE FIXES
   ============================================ */

/* 1. Hakkımızda ikon crop sorunu düzeltmesi */
@media (max-width: 768px) {
    .intro-block-modern {
        overflow: visible !important;
        padding: 30px 20px !important;
    }

    .intro-icon-box {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        overflow: visible !important;
        font-size: 2rem !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    .intro-icon-wrapper {
        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    .intro-flex {
        overflow: visible !important;
    }
}

/* 2. Otomat sayfası - Kurulum Süreci 2x2 grid düzeni */
@media (max-width: 992px) {
    .install-timeline {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
        padding: 0 10px;
        overflow: visible !important;
    }

    .install-timeline::before {
        display: none !important;
    }

    .install-step {
        margin-bottom: 10px;
        overflow: visible !important;
    }

    .install-step .step-number {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        font-size: 1.3rem !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
    }

    .install-step .step-content {
        padding: 20px 16px !important;
        min-height: auto !important;
        text-align: center !important;
        overflow: visible !important;
        border-radius: 16px !important;
    }

    .install-step .step-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .install-step .step-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 576px) {
    .install-timeline {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        overflow: visible !important;
    }

    .install-step .step-number {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        min-height: 55px !important;
        font-size: 1.2rem !important;
        margin-bottom: 14px !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
    }

    .install-step .step-content {
        padding: 18px 14px !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .install-step .step-content h4 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .install-step .step-content p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

/* 3. Filtrasyon ikon-yazı hizalama düzeltmesi */
@media (max-width: 768px) {
    .filt-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 20px !important;
        min-height: auto !important;
        text-align: left !important;
    }

    .filt-icon {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        font-size: 1.4rem !important;
        flex-shrink: 0 !important;
        border-radius: 14px !important;
    }

    .filt-item span {
        font-size: 1rem !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        flex: 1 !important;
    }

    .filtration-grid {
        gap: 14px !important;
    }
}

/* 4. Bayilik Başvurusu form/footer boşluk düzeltmesi */
.application-form-section {
    padding-bottom: 40px !important;
    margin-bottom: 0 !important;
}

.application-process {
    margin-bottom: 40px !important;
}

.dealer-form {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

/* Content section to footer spacing */
.content-section {
    padding-bottom: 40px !important;
}

.content-section+.footer-modern {
    margin-top: 0 !important;
}

/* Bayilik sayfası için özel düzeltme */
body:has(.dealer-form) .content-section {
    padding-bottom: 30px !important;
}

@media (max-width: 768px) {
    .application-form-section {
        padding-bottom: 30px !important;
    }

    .application-process {
        margin-bottom: 30px !important;
    }

    .dealer-form {
        padding: 25px !important;
        margin-bottom: 0 !important;
    }

    .dealer-form .btn-lg {
        width: 100%;
        padding: 16px 24px !important;
        font-size: 1rem !important;
        margin-top: 15px !important;
    }

    .content-section {
        padding-bottom: 30px !important;
    }
}

/* Footer üst boşluk düzeltmesi */
.footer-modern {
    margin-top: 0 !important;
}

/* 5. Bayilik Koşulları - Kimler Başvurabilir? ikonları büyük ve ortalı */
@media (max-width: 768px) {
    .applicants-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .applicant-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 30px 24px !important;
    }

    .app-icon {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        font-size: 1.8rem !important;
        margin-bottom: 16px !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .app-content {
        text-align: center !important;
    }

    .applicant-card h4 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }

    .applicant-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* 6. Bayilik Başvurusu - Başvuru Süreci büyük ve ortalı */
@media (max-width: 768px) {
    .application-process {
        padding: 30px 20px !important;
    }

    .process-timeline {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 20px 0 !important;
    }

    .process-timeline::before {
        display: none !important;
    }

    .process-step {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 16px 0 !important;
        text-align: left !important;
    }

    .ps-number {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        font-size: 1.3rem !important;
        margin: 0 !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1 / 1 !important;
    }

    .ps-content {
        flex: 1 !important;
        text-align: left !important;
        padding-top: 8px !important;
    }

    .ps-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }

    .ps-content p {
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    .process-connector {
        display: none !important;
    }
}

/* Hakkımızda ikon crop düzeltmesi - ek önlem */
@media (max-width: 768px) {
    .about-intro-modern {
        margin-top: 40px !important;
        overflow: visible !important;
        padding: 50px 30px !important;
    }

    .intro-quote-icon {
        top: -30px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        z-index: 10 !important;
    }
}

/* =====================================================
   FINAL MOBILE FIXES - 2026-01-21
   ===================================================== */

/* ========== 1. GALLERY SMOOTH TOUCH SCROLL ========== */
@media (max-width: 768px) {
    .dribbble-carousel {
        overflow: visible;
    }

    .carousel-wrapper {
        overflow: visible;
    }

    .carousel-track {
        display: flex;
        gap: 16px;
        padding: 10px 0;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        touch-action: pan-x;
    }

    .carousel-track.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
    }

    /* Prevent touch scroll jitter */
    .carousel-card {
        flex-shrink: 0;
        will-change: transform;
        touch-action: pan-x;
    }
}

/* ========== 2. CALCULATOR OVERLAPPING FIX ========== */
@media (max-width: 768px) {
    .calculator-results {
        position: relative;
    }

    .results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .result-card {
        position: relative;
        padding: 20px 15px;
        min-height: auto;
    }

    .result-card.highlight {
        grid-column: span 2;
    }

    /* Fix the badge positioning */
    .result-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 0.65rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        white-space: nowrap;
        z-index: 5;
    }

    .result-card .result-info {
        padding-top: 0;
    }

    .result-card .result-value {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .result-card .result-label {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .result-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
}

/* ========== 3. PARTNER LOGOS - EDGE FADE GRADIENTS ========== */
.references-slider {
    position: relative;
    overflow: hidden;
}

/* Edge fade gradients - positioned at screen edges */
.references-slider::before,
.references-slider::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.references-slider::before {
    left: 0;
    background: linear-gradient(to right, #e0f2fe 0%, #e0f2fe 30%, transparent 100%) !important;
}

.references-slider::after {
    right: 0;
    background: linear-gradient(to left, #e0f2fe 0%, #e0f2fe 30%, transparent 100%) !important;
}

/* Mobile specific - smaller fade width */
@media (max-width: 768px) {
    .references-section {
        background: #e0f4fe !important;
        overflow: hidden;
    }

    .references-slider::before,
    .references-slider::after {
        width: 50px;
    }

    .references-slider::before {
        left: 0;
        background: linear-gradient(to right, #e0f4fe 0%, #e0f4fe 40%, transparent 100%) !important;
    }

    .references-slider::after {
        right: 0;
        background: linear-gradient(to left, #e0f4fe 0%, #e0f4fe 40%, transparent 100%) !important;
    }
}

/* ========== 4. COLOR CIRCLES - PERFECT ROUND ========== */
.color-opt .color-circle,
.color-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
}

.color-circle.white {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
    border: 2px solid #cbd5e1 !important;
}

.color-circle.blue {
    background: linear-gradient(135deg, #0c4a6e, #0369a1) !important;
    border: 2px solid #0284c7 !important;
}

.color-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-opt.active {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
}

@media (max-width: 768px) {
    .color-options-grid {
        display: flex;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .color-opt {
        padding: 12px 16px;
    }

    .color-opt .color-circle,
    .color-circle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}

/* ========== 5. INSTALLATION STEPS - CENTER CONTENT ========== */
@media (max-width: 768px) {
    .installation-section {
        padding: 30px 15px !important;
        overflow: visible !important;
    }

    .install-timeline {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        justify-items: center !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .install-step {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .install-step .step-number {
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        margin-bottom: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .install-step .step-content {
        width: 100% !important;
        text-align: center !important;
        padding: 16px 12px !important;
    }

    .install-step .step-content h4 {
        text-align: center !important;
        font-size: 0.95rem !important;
    }

    .install-step .step-content p {
        text-align: center !important;
        font-size: 0.85rem !important;
    }

    /* 5 ve final (Satışa Hazır) yan yana olsun */
    .install-step.final {
        grid-column: span 1;
        max-width: none;
    }
}

/* ========== 6. BAYILIK FORM BOTTOM SPACING ========== */
.dealer-form {
    margin-bottom: 0 !important;
}

.application-form-section {
    padding-bottom: 20px !important;
}

.dealer-form .btn-lg {
    margin-bottom: 0 !important;
}

.dealer-form .form-checkbox {
    margin-bottom: 20px;
}

/* Remove excess space between form and footer */
.content-section:last-of-type {
    padding-bottom: 40px !important;
}

.footer-modern {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .application-form-section {
        padding: 25px 15px 15px !important;
    }

    .dealer-form {
        padding-bottom: 10px !important;
    }

    .content-section {
        padding-bottom: 20px !important;
    }
}

/* ========== 7. BLOG DETAIL PAGE - CENTER CONTENT ========== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .article-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .article-section {
        padding: 40px 0;
    }

    .article-content {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .article-featured-image {
        margin: -25px -20px 25px -20px;
        border-radius: 0;
    }

    .article-featured-image img {
        border-radius: 0;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    .article-body p {
        font-size: 0.95rem;
    }

    .article-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .article-stat {
        padding: 15px 10px;
    }

    .article-stat .as-value {
        font-size: 1.2rem;
    }

    .article-stat .as-label {
        font-size: 0.7rem;
    }

    .article-share {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .author-box {
        margin: 0 15px;
        padding: 20px;
    }

    .related-posts {
        padding: 0 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========== 8. DAMACANA FILL TIMING FIX ========== */
/* This is handled in JS - see main.js waterFillOnScroll function */

/* ========== 9. FORM-FOOTER BOŞLUK GİDERME (INDEX + BAYİLİK) ========== */
/* Anasayfa contact section - form ile footer arası */
.contact-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.contact-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.contact-form-wrapper {
    margin-bottom: 0 !important;
}

.contact-form {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.contact-form .btn-full {
    margin-bottom: 0 !important;
}

/* Bayilik başvurusu sayfası */
.application-form-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.dealer-form {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.dealer-form .btn-red,
.dealer-form .btn-lg {
    margin-bottom: 0 !important;
}

/* Genel content section to footer */
.content-section {
    padding-bottom: 40px !important;
}

/* Son section footer'a sıfır boşlukla bağlansın */
section:last-of-type:not(.footer-modern) {
    margin-bottom: 0 !important;
}

/* Footer üstü boşluk yok */
.footer-modern {
    margin-top: 0 !important;
    padding-top: 60px;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0 0 !important;
    }

    .contact-wrapper {
        gap: 30px;
        padding-bottom: 0 !important;
    }

    .contact-form-wrapper {
        padding: 25px !important;
        margin-bottom: 0 !important;
    }

    .content-section {
        padding-bottom: 20px !important;
    }

    .application-form-section {
        padding: 20px 10px 0 !important;
    }

    .dealer-form {
        padding: 20px !important;
        margin-bottom: 0 !important;
    }

    .footer-modern {
        padding-top: 40px;
    }
}

/* =====================================================
   LEGAL PAGES STYLES (KVKK, Gizlilik, Çerez, Kullanım)
   ===================================================== */

.legal-content {
    padding: 60px 0 80px;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 60px;
}

.legal-update-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50px;
    color: #0ea5e9;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.legal-update-info i {
    font-size: 1rem;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.legal-section h2 i {
    color: #0ea5e9;
    font-size: 1.2rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 20px 0 12px;
}

.legal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section p a {
    color: #0ea5e9;
    font-weight: 500;
    text-decoration: underline;
}

.legal-section p a:hover {
    color: #0369a1;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.legal-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.7;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-radius: 50%;
}

.legal-list li strong {
    color: #0f172a;
}

.legal-info-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #0ea5e9;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 20px 0;
}

.legal-info-box p {
    margin-bottom: 8px;
    color: #0f172a;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

.legal-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.legal-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.legal-contact-item:hover {
    background: #f0f9ff;
    transform: translateX(5px);
}

.legal-contact-item i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.legal-contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.legal-contact-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Cookie Policy Specific Styles */
.cookie-type-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-header i {
    font-size: 1.5rem;
}

.cookie-header i.required {
    color: #22c55e;
}

.cookie-header i.analytics {
    color: #8b5cf6;
}

.cookie-header i.functional {
    color: #f59e0b;
}

.cookie-header i.marketing {
    color: #ef4444;
}

.cookie-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
}

.cookie-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cookie-badge.required {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.cookie-badge.analytics {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.cookie-badge.functional {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.cookie-badge.marketing {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-table th {
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.cookie-table th:first-child {
    border-radius: 12px 0 0 0;
}

.cookie-table th:last-child {
    border-radius: 0 12px 0 0;
}

.cookie-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
}

.cookie-table tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.cookie-table tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.cookie-table tr:hover td {
    background: #f8fafc;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge.required {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.type-badge.analytics {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* Browser Links */
.browser-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0ea5e9;
    font-weight: 500;
}

.browser-links a:hover {
    color: #0369a1;
}

.browser-links i {
    font-size: 1.1rem;
}

/* Cookie Preferences Button */
.cookie-preferences-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .legal-document {
        padding: 30px 20px;
        border-radius: 16px;
        margin: 0 10px;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-section h2 i {
        font-size: 1rem;
    }

    .legal-contact-methods {
        gap: 12px;
    }

    .legal-contact-item {
        padding: 16px;
    }

    .cookie-type-card {
        padding: 18px;
    }

    .cookie-header {
        flex-wrap: wrap;
    }

    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 8px;
    }
}

/* =====================================================
   LANGUAGE SELECTOR STYLES
   ===================================================== */

.language-selector {
    position: relative;
    margin-left: 12px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-toggle .lang-code {
    font-weight: 600;
}

.lang-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-selector.active .lang-toggle i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f0f9ff;
    color: #0ea5e9;
}

.lang-option.active {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0ea5e9;
}

.lang-option .lang-flag {
    font-size: 1.3rem;
}

/* Scrolled header - darker style */
.header.scrolled .lang-toggle {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    color: #0f172a;
}

.header.scrolled .lang-toggle:hover {
    background: rgba(14, 165, 233, 0.15);
}

/* Mobile responsive */
@media (max-width: 992px) {
    .language-selector {
        margin-right: 8px;
    }

    .lang-toggle {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .lang-toggle .lang-flag {
        font-size: 1.1rem;
    }

    .lang-toggle .lang-code {
        display: none;
    }

    .lang-dropdown {
        right: -20px;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        position: fixed;
        top: 12px;
        right: 60px;
        z-index: 1001;
        margin: 0;
    }

    .lang-toggle {
        padding: 8px 12px;
        background: white;
        border: 1px solid #e2e8f0;
        color: #0f172a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .lang-toggle:hover {
        background: #f8fafc;
    }

    .lang-toggle .lang-code {
        display: inline;
        font-size: 0.8rem;
    }

    .lang-dropdown {
        right: 0;
        top: calc(100% + 6px);
    }
}