/* public/css/frontend/styles.css */

:root {
    --tcl-blue: #0056b3;
    --tcl-gray-light: #f0f4f8;
    --tcl-gray-dark: #1a2b4d;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--tcl-gray-dark);
    background-color: #f8f9fa;
    /* Bootstrap's light gray */
    overflow-x: hidden;
}

/* Hero Section Styling - The slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Swiper container for the hero slider */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.swiper-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    padding: 0;
}

.swiper-slide-content .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.swiper-slide-content .slide-text-content {
    max-width: 600px;
    margin-left: -2rem;
    margin-top: 3rem;
    text-align: left;
    color: white;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
    padding: 0;
}

.swiper-slide-content .slide-text-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 1px 1px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
    color: white;
}

.swiper-slide-content .slide-text-content .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.95);
}

.swiper-slide-content .slide-text-content .description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.swiper-slide-content .slide-text-content .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.swiper-slide-content .slide-text-content .slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button style variations */
.slide-btn.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.slide-btn.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.slide-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.slide-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: white;
}

.slide-btn.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.slide-btn.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
}

.slide-btn.btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.slide-btn.btn-dark {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
    color: white;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-slide-content {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
        justify-content: center;
        text-align: center;
        padding: 1rem;
    }

    .swiper-slide-content .slide-text-content {
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
        background: rgba(0, 0, 0, 0.6);
        padding: 1.5rem;
        border-radius: 12px;
    }

    .swiper-slide-content .slide-text-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Mobile slider optimizations */
    .hero-slider {
        height: 60vh; /* Reduced height for mobile */
        min-height: 500px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px;
    }

    /* Hide navigation buttons on very small screens */
    @media (max-width: 480px) {
        .swiper-button-prev,
        .swiper-button-next {
            display: none;
        }
    }

    /* Mobile pagination improvements */
    .swiper-pagination {
        bottom: 20px !important;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    /* Custom pagination mobile adjustments */
    .my-bullet-pagination-wrapper {
        padding: 6px 12px;
        border-radius: 25px;
    }

    .my-bullet-pagination-dots-icon {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .toggle-display {
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }

    .my-bullet-pagination-dots-container {
        bottom: 25px;
        right: 20px;
        gap: 15px;
    }
}

.swiper-button-prev,
.swiper-button-next {
    color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: white !important;
    transform: scale(1.2);
}

/* --- Updated Tabbed Product Showcase CSS --- */
.tab-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Remove old .tab-image styles as they are no longer used */
/* .tab-image { ... } */
/* .tab-image.active { ... } */

.tab-nav-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 10;
}

.tab-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
    /* Changed transition */
    border: none;
    /* Remove border */
    outline: none;
    /* Remove outline */
    cursor: pointer;
    margin: 0 1rem;
    /* Add horizontal margin for spacing */
    position: relative;
    /* Needed for the underline */
}

.tab-btn:hover {
    color: #fff;
    /* Change color on hover */
}

.tab-btn.active-tab {
    color: #fff;
    /* Set color for active tab */
    background-color: transparent;
    /* Remove background color */
    border-radius: 0;
    /* Remove border radius */
    /* Add underline */
    border-bottom: 2px solid #fff;
}

.tab-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* Mobile Featured Tabs Optimizations */
@media (max-width: 768px) {
    .tab-section {
        height: 70vh;
        min-height: 500px;
    }

    .tab-nav-container {
        position: absolute;
        top: 20px;
        left: 0;
        width: 100%;
        padding: 1rem;
        z-index: 15;
    }

    .tab-nav-container .d-flex {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .tab-nav-container .d-flex::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
        background-color: rgba(0, 0, 0, 0.5);
        color: rgba(255, 255, 255, 0.8);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: auto;
        margin: 0 0.25rem;
    }

    .tab-btn:hover,
    .tab-btn.active-tab {
        background-color: rgba(255, 255, 255, 0.9);
        color: #000;
        border-color: rgba(255, 255, 255, 0.8);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-bottom: none;
    }

    .tab-content-overlay {
        padding: 1.5rem 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    }

    .tab-content-overlay h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .tab-content-overlay p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .tab-content-overlay .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    /* Mobile swiper navigation for featured tabs */
    .tab-swiper .swiper-button-prev,
    .tab-swiper .swiper-button-next {
        display: none; /* Hide arrow navigation on mobile */
    }

    /* Add mobile swipe indicators */
    .tab-section::after {
        content: 'Swipe to explore';
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.75rem;
        z-index: 10;
        opacity: 0.8;
        backdrop-filter: blur(10px);
    }

    /* Hide swipe indicator after a few seconds */
    .tab-section.interacted::after {
        opacity: 0;
        transition: opacity 0.5s ease;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .tab-section {
        height: 60vh;
        min-height: 400px;
    }

    .tab-content-overlay {
        padding: 1rem 0.75rem;
    }

    .tab-content-overlay h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem;
    }

    .tab-content-overlay p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem;
    }

    .tab-content-overlay .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.25rem;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
    }

    .tab-nav-container {
        top: 15px;
        padding: 0.75rem;
    }
}

/* Video carousel specific styles */
.video-carousel {
    background-color: #ffffff; /* Set the background color of the container to white */

}

.video-carousel .swiper {
    /* Ensure the inner swiper takes full width/height of its parent */
    width: 100%;
    height: 100%;

    overflow: hidden; /* Contain the video and its potential background */
}

.video-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    /* The slide background should be black to frame the video */
    background-color: #000000;
}

.video-carousel video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole video is visible */
}

/* Card Hover Effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Updated Fade-in on scroll animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px); /* Slightly increased initial offset */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Slightly longer duration */
    will-change: opacity, transform;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
/* --- End Updated Fade-in on scroll animation --- */

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* Semi-transparent white */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1050;
    /* Above Bootstrap components */
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex-grow: 1;
    margin-right: 15px;
    font-size: 0.85rem;
    color: var(--tcl-gray-dark);
}

.cookie-text a {
    color: var(--tcl-blue);
    text-decoration: underline;
}

.cookie-buttons {
    white-space: nowrap;
}

.btn-cookie {
    margin-left: 10px;
    padding: 5px 15px;
    font-size: 0.8rem;
}
