/*
   1001 Concepts - Main Stylesheet
   A modern, luxury design with gold accents, rich animations, and sophisticated sections
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Waiting+for+the+Sunrise&family=Playfair+Display:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f9f7f2; /* Slightly warmer background */
    --accent-color: #c99e67; /* Golden color */
    --accent-dark: #B38728; /* Darker gold for contrast */
    --accent-light: #F9D776; /* Lighter gold for highlights */
    --text-color: #2D2A2A; /* Richer black for text */
    --text-secondary: #5A5858; /* Warmer gray */
    --brand-copper: #c99e67;
    --brand-copper-light: #e0c7a7;
    --copper-gradient: linear-gradient(
            135deg,
            var(--brand-copper) 0%,
            var(--brand-copper-light) 50%,
            var(--brand-copper) 100%
    );

    /* Dégradé “reverse” */
    --copper-gradient-reverse: linear-gradient(
            135deg,
            var(--brand-copper-light) 0%,
            var(--brand-copper) 50%,
            var(--brand-copper-light) 100%
    );
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* More sophisticated easing */
    --golden-gradient: var(--copper-gradient);
    --golden-gradient-reverse: var(--copper-gradient-reverse);
    --section-padding: 80px 0;
    --box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100px;
    height: 100px;
}

.preloader-circle {
    position: absolute;
    width: 170%;
    height: 170%;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    position: relative;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Waiting for the Sunrise', cursive;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-align: center;
}

h1 {
    font-size: 3.5rem !important;
    text-align: center;
}

h2 {
    font-size: 2.8rem !important;
    text-align: center;
}

h3 {
    font-size: 2.2rem !important;
    text-align: center;
}

h4 {
    font-size: 1.8rem !important;
    text-align: center;
}

h5 {
    font-size: 1.5rem !important;
    text-align: center;
}

h6 {
    font-size: 1.3rem !important;
    text-align: center;
}

.hero-section h1 {
    font-size: 4.5rem !important;
    text-align: center;
}

.section-heading h2 {
    font-size: 3rem !important;
    text-align: center;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: #c09b30;
}

img {
    max-width: 100%;
}

.section-padding {
    padding: var(--section-padding);
}

.section-alternate {
    background-color: var(--secondary-color);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
    position: relative;
    z-index: 1;
}

.section-alternate::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--secondary-color);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.section-alternate::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--secondary-color);
    clip-path: polygon(0 0, 100% 50%, 100% 0, 0 0);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.section-heading {
    margin-bottom: 50px;
    text-align: center;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--golden-gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
}

.section-heading.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Section heading responsive improvements */
@media (max-width: 767.98px) {
    .section-heading {
        margin-bottom: 35px;
        text-align: center;
        padding: 0 15px;
    }
    
    .section-heading h2 {
        text-align: center;
        font-size: 2rem !important;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .section-heading p {
        text-align: center;
        padding: 0 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .section-heading {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .section-heading h2 {
        font-size: 1.7rem !important;
        padding: 0 5px;
    }
    
    .section-heading p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section-heading h2::after {
        width: 60px;
    }
}

.golden-text {
    background: var(--golden-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #c99e67;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--golden-gradient);
    color: #000;
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #F9D776 0%, #D4AF37 50%, #F9D776 100%);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
}

.btn-outline-light {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline-light:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    max-width: 100%;
    overflow: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: white;
    z-index: 100;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar-brand {
    font-family: 'Waiting for the Sunrise', cursive;
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--text-color) !important;
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 100px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.brand-text {
    display: inline-block;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--golden-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.navbar-brand:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-item {
    margin: 0 5px;
}

.nav-link {
    padding: 8px 15px !important;
    position: relative;
    color: var(--text-color) !important;
    font-weight: 600;
}

.nav-link.contact-btn {
    background: var(--golden-gradient);
    color: #000 !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-link.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(212, 175, 55, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--golden-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

.nav-link.contact-btn::after {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.9);
}

.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image-container img {
    transform: scale(1);
    transition: transform 0.5s ease;
}

.hero-image-container:hover img {
    transform: scale(1.05);
}

.hero-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-slide, .next-slide {
    background: var(--golden-gradient);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
    transform: translateY(-3px);
}

/* ===== STATISTICS SECTION ===== */
.bg-gradient-overlay {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.9) 100%);
    overflow: hidden;
}

.bg-gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=1000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.1;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--golden-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--golden-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Statistics responsive improvements */
@media (max-width: 767.98px) {
    .bg-gradient-overlay::before {
        background-attachment: scroll;
    }
    
    .stat-item {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-text {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 575.98px) {
    .stat-item {
        padding: 10px 5px;
        margin-bottom: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
        padding: 0 5px;
    }
}

/* ===== PROJECT GALLERY SECTION ===== */
.project-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--golden-gradient);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* ===== SIDEBAR FILTERS ===== */
.filters-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.1);
}

.sidebar-header h4 {
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.clear-all-filters {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.clear-all-filters:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.05);
}

/* All products button */
.filter-group {
    margin-bottom: 20px;
}

.filter-btn-all {
    background: var(--golden-gradient);
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    width: 100%;
    text-align: left;
}

.filter-btn-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #F9D776 0%, #D4AF37 50%, #F9D776 100%);
}

.filter-btn-all.active {
    background: linear-gradient(135deg, #F9D776 0%, #D4AF37 50%, #F9D776 100%);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.count-badge {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.85rem;
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

/* Hierarchical dropdowns */
.filter-categories {
    margin-top: 20px;
}

.filter-dropdown {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.filter-dropdown:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.dropdown-header {
    background: rgba(249, 247, 242, 0.5);
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-header:hover {
    background: rgba(212, 175, 55, 0.1);
}

.dropdown-header.active {
    background: var(--golden-gradient);
    color: #000;
}

.dropdown-icon {
    width: 35px;
    height: 35px;
    background: var(--golden-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
    flex-shrink: 0;
}

.dropdown-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-name {
    font-weight: 600;
    color: var(--text-color);
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
}

.dropdown-arrow {
    color: var(--accent-color);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.dropdown-content.open {
    max-height: 400px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Filter options */
.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    position: relative;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background: rgba(212, 175, 55, 0.05);
    padding-left: 20px;
}

.filter-option.main-category {
    background: rgba(249, 247, 242, 0.3);
    font-weight: 600;
}

.filter-option.subcategory.level-1 {
    padding-left: 30px;
}

.filter-option.subcategory.level-2 {
    padding-left: 45px;
}

.filter-option.subcategory.level-3 {
    padding-left: 60px;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--golden-gradient);
    border-color: var(--accent-color);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.option-text {
    flex: 1;
    color: var(--text-color);
    font-size: 0.9rem;
}

.option-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
}

/* Subcategories */
.subcategories {
    border-left: 2px solid rgba(212, 175, 55, 0.2);
    margin-left: 15px;
}

.subcategories.level-1 {
    margin-left: 20px;
}

/* Active filters in sidebar */
.active-filters {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(212, 175, 55, 0.1);
}

.active-filters-title h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.active-filters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.active-filter-tag {
    background: var(--golden-gradient);
    color: #000;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.remove-filter {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.remove-filter:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Products header and controls */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.products-info h3 {
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: var(--golden-gradient);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.products-grid {
    min-height: 500px;
}

/* Search Bar Styles */
.search-bar-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 247, 242, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 25px 30px;
    border: 2px solid var(--accent-color);
    box-shadow:
        0 8px 32px rgba(212, 175, 55, 0.25),
        0 0 0 4px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: visible;
}

.search-bar-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: 21px;
    opacity: 0.6;
    animation: search-glow 2.5s ease-in-out infinite;
}

@keyframes search-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.01);
    }
}

.search-bar-container:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(212, 175, 55, 0.35),
        0 0 0 6px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--accent-dark);
}

.search-bar-container:hover::before {
    opacity: 0.8;
    animation-duration: 1.5s;
}

/* Search bar label/title */
.search-bar-container .search-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.search-bar-container .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(212, 175, 55, 0.1);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    background: #fff;
}

.search-bar-container .input-group:focus-within {
    border-color: var(--accent-dark);
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.35),
        inset 0 2px 4px rgba(212, 175, 55, 0.15);
}

.search-bar-container .input-group-text {
    border: none;
    background: var(--golden-gradient);
    color: #000;
    font-size: 1.4rem;
    padding: 16px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.search-bar-container .input-group-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(212, 175, 55, 0.3);
}

.search-bar-container .input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, #F9D776 0%, #D4AF37 50%, #F9D776 100%);
    color: #000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar-container .form-control {
    border: none;
    padding: 16px 22px;
    font-size: 1.05rem;
    background-color: #fff;
    margin-bottom: 0;
    color: var(--text-color);
    font-weight: 500;
}

.search-bar-container .outline-gold {
    border: 2px solid var(--golden-gradient);
}

.search-bar-container .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 400;
    font-style: italic;
}

.search-bar-container .form-control:focus {
    box-shadow: none;
    outline: none;
    background-color: #fff;
}

.search-bar-container .btn {
    border: none;
    background: var(--golden-gradient);
    color: #000;
    padding: 16px 20px;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.search-bar-container .btn:hover {
    background: linear-gradient(135deg, #F9D776 0%, #D4AF37 50%, #F9D776 100%);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.search-bar-container .btn:active {
    transform: scale(0.95);
}

/* Shimmer effect on hover */
.search-bar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
    border-radius: 18px;
}

.search-bar-container:hover::after {
    left: 100%;
}

/* Info Banner Styles (matches search bar but softer) */
.info-banner-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 247, 242, 0.90) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 18px 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow:
        0 4px 20px rgba(212, 175, 55, 0.12),
        0 0 0 2px rgba(212, 175, 55, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.info-banner-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.2;
}

.info-banner-container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.18),
        0 0 0 3px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.4);
}

.info-banner-container i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.info-banner-container span {
    color: var(--text-color);
    font-size: 1rem;
}

.info-banner-container strong {
    color: var(--accent-color);
    font-weight: 600;
}

.info-banner-container a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-banner-container a:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

/* Responsive info banner */
@media (max-width: 767.98px) {
    .info-banner-container {
        padding: 15px 20px;
        text-align: center;
    }
    
    .info-banner-container .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-banner-container i {
        font-size: 1.3rem;
    }
    
    .info-banner-container span {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .info-banner-container {
        padding: 12px 15px;
    }
    
    .info-banner-container span {
        font-size: 0.9rem;
    }
}

/* Responsive search bar */
@media (max-width: 767.98px) {
    .search-bar-container {
        padding: 15px 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .search-bar-container .input-group-text,
    .search-bar-container .form-control,
    .search-bar-container .btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-bar-container .input-group-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .search-bar-container {
        padding: 12px 15px;
    }
    
    .search-bar-container .form-control {
        font-size: 0.9rem;
    }
    
    .search-bar-container .form-control::placeholder {
        font-size: 0.85rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .filters-sidebar {
        padding: 20px 15px;
    }
    
    .filter-option.subcategory.level-1 {
        padding-left: 25px;
    }
    
    .filter-option.subcategory.level-2 {
        padding-left: 35px;
    }
    
    .filter-option.subcategory.level-3 {
        padding-left: 45px;
    }
    
    .dropdown-header {
        padding: 10px 12px;
    }
    
    .dropdown-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .sidebar-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .filter-btn-all {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .active-filters-list {
        gap: 5px;
    }
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    height: 100%;
    background-color: #fff;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-video {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    height: 220px;
    background: #000;
}

.project-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px 10px 0 0;
}

/* YouTube Facade - Lightweight thumbnail with play button */
.youtube-facade {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.youtube-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.youtube-facade:hover .youtube-thumbnail {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(0.8);
}

.youtube-play-btn {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.youtube-play-btn:hover {
    transform: scale(1.1);
}

.youtube-play-btn svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.youtube-play-btn:hover .youtube-play-bg {
    fill: #ff0000;
}

.youtube-play-bg {
    transition: fill 0.2s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    padding: 20px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.project-tags {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}

.project-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

.project-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-color);
}

.slider-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--golden-gradient);
    transform: scale(1.3);
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.hero-buttons {
    margin-top: 3rem;
}

/* ===== ABOUT SECTION ===== */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.impact-dice-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
}

.dice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 280px;
    margin: 0 auto;
}

.dice-face {
    position: relative;
    width: 120px;
    height: 120px;
    background: var(--golden-gradient);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;
}

/* Dice grid responsive improvements */
@media (max-width: 767.98px) {
    .impact-dice-container {
        padding: 15px;
        text-align: center;
    }
    
    .dice-grid {
        gap: 25px;
        width: 240px;
        margin: 0 auto;
    }
    
    .dice-face {
        width: 100px;
        height: 100px;
    }
    
    .dice-content h4 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .dice-content p {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.1;
    }
}

@media (max-width: 575.98px) {
    .impact-dice-container {
        padding: 10px;
    }
    
    .dice-grid {
        gap: 20px;
        width: 200px;
        margin: 0 auto;
    }
    
    .dice-face {
        width: 80px;
        height: 80px;
    }
    
    .dice-content h4 {
        font-size: 1.3rem;
    }
    
    .dice-content p {
        font-size: 0.7rem;
        line-height: 1;
    }
}

.dice-face::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient-reverse);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dice-face:hover {
    transform: translateY(-5px) rotateY(10deg);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.dice-face:hover::before {
    opacity: 1;
}

.dice-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.dice-face:nth-child(1) .dice-dot:nth-child(1) {
    top: 15px;
    left: 15px;
}

.dice-face:nth-child(2) .dice-dot:nth-child(1) {
    top: 15px;
    left: 15px;
}

.dice-face:nth-child(2) .dice-dot:nth-child(2) {
    bottom: 15px;
    right: 15px;
}

.dice-face:nth-child(3) .dice-dot:nth-child(1) {
    top: 15px;
    left: 15px;
}

.dice-face:nth-child(3) .dice-dot:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dice-face:nth-child(3) .dice-dot:nth-child(3) {
    bottom: 15px;
    right: 15px;
}

.dice-face:nth-child(4) .dice-dot:nth-child(1) {
    top: 15px;
    left: 15px;
}

.dice-face:nth-child(4) .dice-dot:nth-child(2) {
    top: 15px;
    right: 15px;
}

.dice-face:nth-child(4) .dice-dot:nth-child(3) {
    bottom: 15px;
    left: 15px;
}

.dice-face:nth-child(4) .dice-dot:nth-child(4) {
    bottom: 15px;
    right: 15px;
}

.dice-face:nth-child(5) .dice-dot:nth-child(1) {
    top: 15px;
    left: 15px;
}

.dice-face:nth-child(5) .dice-dot:nth-child(2) {
    top: 15px;
    right: 15px;
}

.dice-face:nth-child(5) .dice-dot:nth-child(3) {
    bottom: 15px;
    left: 15px;
}

.dice-face:nth-child(5) .dice-dot:nth-child(4) {
    bottom: 15px;
    right: 15px;
}

.dice-face:nth-child(5) .dice-dot:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.dice-face:nth-child(6) .dice-dot:nth-child(1) {
    top: 15px;
    left: 15px;
}

.dice-face:nth-child(6) .dice-dot:nth-child(2) {
    top: 15px;
    right: 15px;
}

.dice-face:nth-child(6) .dice-dot:nth-child(3) {
    bottom: 15px;
    left: 15px;
}

.dice-face:nth-child(6) .dice-dot:nth-child(4) {
    bottom: 15px;
    right: 15px;
}

.dice-face:nth-child(6) .dice-dot:nth-child(5) {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

.dice-face:nth-child(6) .dice-dot:nth-child(6) {
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.dice-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.dice-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
    font-family: 'Waiting for the Sunrise', cursive;
}

.dice-content p {
    font-size: 0.8rem;
    margin: 0;
    color: #000;
    font-weight: 600;
    line-height: 1.2;
}

.about-image-container {
    position: relative;
    padding: 30px;
}

.about-image-inner {
    position: relative;
    z-index: 1;
}

.about-image-inner img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 10px;
    top: 0;
    left: 0;
    z-index: 0;
    animation: pulse 2s infinite;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: var(--golden-gradient);
    color: #000;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: var(--box-shadow);
    animation: float 3s ease-in-out infinite;
}

.floating-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.floating-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ===== SERVICES SECTION ===== */
.service-card {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.service-card:hover {
    color: inherit;
}

.service-item {
    border: none;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-15px) scale(1.03);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.service-item:hover::before {
    opacity: 1;
}

.service-icon {
    margin: 30px auto;
    width: 90px;
    height: 90px;
    background: var(--golden-gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000;
    transition: all 0.8s ease;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    border: 2px dashed var(--accent-light);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    animation: spin-slow 15s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-item:hover .service-icon {
    transform: rotateY(180deg) scale(1.1);
    border-radius: 50%;
}

.service-item:hover .service-icon::after {
    opacity: 0.7;
}

.service-item .card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.service-item .card-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--golden-gradient);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.service-item:hover .card-title::after {
    width: 80%;
}

.service-item .card-body {
    padding: 1.5rem;
}

.service-item .card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-item .card-footer {
    background: transparent;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.2rem;
    margin-top: 10px;
}

.service-item .btn-link {
    color: var(--accent-color);
    padding: 10px 0;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.service-item .btn-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--golden-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.service-item:hover .btn-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-item:hover .btn-link {
    color: var(--accent-dark);
}

.service-item i {
    transition: var(--transition);
}

.service-item:hover i {
    animation: pulse 1.5s infinite;
}

/* ===== WHY CHOOSE US SECTION ===== */
.feature-card {
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    padding: 40px 25px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
    background: var(--golden-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000;
    transition: all 0.6s ease;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    border: 2px dashed var(--accent-light);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    animation: spin-slow 20s linear infinite;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.feature-card:hover .feature-icon::after {
    opacity: 0.6;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    color: var(--text-color);
    text-align: center;
    width: 100%;
}

.feature-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--golden-gradient);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.feature-description {
    text-align: center;
}

.feature-card:hover .feature-title::after {
    width: 80%;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(249, 247, 242, 0.85)), url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

/* CTA responsive improvements */
@media (max-width: 767.98px) {
    .cta-section {
        padding: 80px 20px;
        background-attachment: scroll;
    }
    
    .cta-section h2 {
        font-size: 2.2rem !important;
        text-align: center;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    .cta-section .lead {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 15px;
    }
}

@media (max-width: 575.98px) {
    .cta-section {
        padding: 60px 15px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem !important;
        text-align: center;
        padding: 0 15px;
        line-height: 1.2;
    }
    
    .cta-section .lead {
        font-size: 1rem;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50,5 L95,50 L50,95 L5,50 Z" fill="none" stroke="%23D4AF37" stroke-width="0.5" opacity="0.3"/></svg>');
    opacity: 0.2;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--golden-gradient);
    z-index: 1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.cta-decoration {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 3px solid var(--accent-light);
    opacity: 0.2;
    z-index: 0;
}

.cta-decoration.left {
    left: -100px;
    top: -100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatAnimation 8s ease-in-out infinite alternate;
}

.cta-decoration.right {
    right: -100px;
    bottom: -100px;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: floatAnimation 8s ease-in-out infinite alternate-reverse;
}

@keyframes floatAnimation {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(10deg) translate(20px, 20px); }
    100% { transform: rotate(0deg) translate(0, 0); }
}

.cta-badge {
    display: inline-block;
    background: var(--golden-gradient);
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-bg-video {
    width: 100%;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    position: relative;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
    line-height: 1.3;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(212, 175, 55, 0.4);
    z-index: -1;
    transform: skewX(-15deg);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cta-section .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    padding: 15px 35px;
    font-size: 1rem;
}

.cta-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.cta-section .btn:hover::before {
    left: 100%;
    transition: 0.8s;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-slider {
    position: relative;
    padding: 40px 0;
}

.testimonial-slider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.2;
    width: 80%;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 35px;
    position: relative;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote {
    position: relative;
    color: var(--accent-color);
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.testimonial-quote i {
    margin-top: -25px;
}

.testimonial-text {
    position: relative;
    font-style: italic;
    margin-bottom: 30px;
    padding: 0 10px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    z-index: 1;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.08;
}

.testimonial-text::before {
    top: -10px;
    left: -15px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -15px;
}

.testimonial-client {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 20px;
}

.testimonial-client::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--golden-gradient);
    border-radius: 10px;
}

.testimonial-info h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.testimonial-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Add rating stars */
.testimonial-rating {
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-form-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Contact section responsive improvements */
@media (max-width: 767.98px) {
    .contact-form-container {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-text h5 {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .contact-text p {
        text-align: center;
        margin-bottom: 0;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-text h5 {
        font-size: 1.1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
    }
}

.form-control, .form-select {
    background-color: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-color);
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
}

.form-control::placeholder {
    color: rgba(102, 102, 102, 0.5);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--golden-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-align: left;
}

.contact-text p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
}

.social-link {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--accent-color);
    transition: var(--transition);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link:hover {
    background: var(--golden-gradient);
    color: #000;
    transform: translateY(-3px);
}

/* ===== NAVIGATION CARDS ===== */
.navigation-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 100%;
}

.nav-link-card {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.nav-link-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.nav-link-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    color: var(--text-color);
    text-decoration: none;
    border-color: transparent;
}

.nav-link-card:hover::before {
    opacity: 1;
}

.nav-icon {
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.nav-link-card:hover .nav-icon {
    background: var(--golden-gradient);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.nav-text h5 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
}

.nav-text p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== DIRECTIONS CARD ===== */
.directions-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.directions-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.directions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.directions-card:hover::before {
    opacity: 0.1;
}

.directions-card h4 {
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.directions-card h4 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.directions-list {
    position: relative;
}

.directions-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.3;
    z-index: 0;
}

.direction-step {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    padding: 15px 0;
    border-radius: 10px;
    background-color: rgba(249, 247, 242, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.direction-step:hover {
    background-color: rgba(249, 247, 242, 0.6);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
    border-color: var(--accent-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--golden-gradient);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 20px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.direction-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.direction-step p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    flex: 1;
}

/* ===== MAP CONTAINER ===== */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: var(--border-radius);
}

/* Responsive adjustments for navigation and directions */
@media (max-width: 768px) {
    .nav-link-card {
        padding: 20px 15px;
    }
    
    .nav-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .nav-text h5 {
        font-size: 1.1rem;
    }
    
    .directions-card {
        padding: 25px 20px;
    }
    
    .direction-step {
        padding: 12px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 0.9rem;
        margin-right: 15px;
    }
    
    .direction-step p {
        font-size: 0.95rem;
    }
    
    .directions-list::before {
        left: 17px;
    }
}

@media (max-width: 576px) {
    .nav-link-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .nav-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .directions-card h4 {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .direction-step {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .directions-list::before {
        display: none;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: #f0f0f0;
    padding: 70px 0 20px;
    position: relative;
}

.footer h4, .footer h5 {
    margin-bottom: 20px;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    text-align: center;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 12px 20px;
    border-radius: 50px 0 0 50px;
    height: auto;
    margin-bottom: 0;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 20px;
}

hr {
    background-color: rgba(212, 175, 55, 0.1);
    margin: 40px 0 20px;
    height: 1px;
}

/* Footer responsive improvements */
@media (max-width: 767.98px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer h4, .footer h5 {
        text-align: center;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .footer p {
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer h4, .footer h5 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .newsletter-form {
        text-align: center;
    }
    
    .newsletter-form .input-group {
        justify-content: center;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--golden-gradient);
    color: #000;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== WORD CLOUD SECTION ===== */
.word-cloud-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    margin: 50px 0;
    position: relative;
    overflow: visible;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.text-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* D3 Word Cloud styles */
.d3-word-cloud {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.d3-word-cloud svg {
    overflow: visible;
    border-radius: 15px;
}

.d3-word-cloud text {
    font-family: 'Montserrat', sans-serif !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    user-select: none;
    letter-spacing: 0.5px;
}

.d3-word-cloud text.golden {
    fill: #D4AF37 !important;
    font-weight: 700 !important;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.d3-word-cloud text:not(.golden) {
    fill: #555 !important;
    font-weight: 500 !important;
}

.d3-word-cloud text:hover {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4)) !important;
    z-index: 10;
}

.d3-word-cloud text.golden:hover {
    fill: #F9D776 !important;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7)) !important;
}

.d3-word-cloud text:not(.golden):hover {
    fill: #D4AF37 !important;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5)) !important;
}

/* Enhanced fade-in animation for D3 words */
@keyframes fadeInWord {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg);
        filter: blur(3px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(-5deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

.d3-word-cloud text {
    animation: fadeInWord 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Responsive adjustments for D3 word cloud */
@media (max-width: 1200px) {
    .word-cloud-container {
        height: 400px;
        margin: 40px 0;
    }
}

@media (max-width: 992px) {
    .word-cloud-container {
        height: 350px;
        margin: 30px 0;
    }
    
    .d3-word-cloud svg {
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    .word-cloud-container {
        height: 300px;
        margin: 25px 0;
    }
    
    .d3-word-cloud svg {
        transform: scale(0.8);
    }
}

@media (max-width: 576px) {
    .word-cloud-container {
        height: 250px;
        margin: 20px 0;
    }
    
    .d3-word-cloud svg {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .word-cloud-container {
        height: 200px;
    }
    
    .d3-word-cloud svg {
        transform: scale(0.6);
    }
}

/* Additional styling for better visual integration */
.word-cloud-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 50%
    );
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

.d3-word-cloud {
    z-index: 1;
    position: relative;
}

/* ===== ANIMATIONS ===== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PAGE HEADER ===== */
.page-header {
    height: 60vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
    padding-top: 100px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.9);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.page-header .lead {
    font-size: 1.3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

/* ===== PRODUCT CATALOG STYLES ===== */
.product-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    height: 100%;
    background-color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Product catalog responsive improvements */
@media (max-width: 767.98px) {
    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .products-info h3 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .results-count {
        text-align: center;
    }
    
    .product-details h4 {
        font-size: 1.2rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .product-description p {
        text-align: center;
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .products-header {
        padding: 15px;
    }
    
    .products-info h3 {
        font-size: 1.5rem;
    }
    
    .product-details {
        padding: 20px 15px;
    }
    
    .product-details h4 {
        font-size: 1.1rem;
        padding: 0 5px;
    }
    
    .product-description p {
        font-size: 0.85rem;
        padding: 0 5px;
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::before {
    opacity: 1;
}

/* Fix for buttons on product hover - ensure buttons remain visible */
.product-card:hover .btn-primary {
    background: #000;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(0);
}

.product-card:hover .btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}

/* Fix specifically for the "Add to Cart" buttons */
.product-card:hover .btn-outline-primary.add-to-cart-btn {
    background: #000;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.product-card:hover .btn-outline-primary.add-to-cart-btn:hover {
    background: #fff;
    color: #000;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.product-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.product-card:hover .product-info {
    transform: translateY(0);
    opacity: 1;
}

.product-details {
    padding: 25px;
}

.product-details h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.product-details h4::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--golden-gradient);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.product-card:hover .product-details h4::after {
    width: 100%;
}

.product-description p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 60px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.product-price {
    display: flex;
    align-items: baseline;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.product-price .price-unit {
    font-size: 0.85rem;
    margin-left: 5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-price .price.sur-devis {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--golden-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* ===== RESPONSIVE STYLES ===== */

/* Extra large screens */
@media (max-width: 1399.98px) {
    h1 {
        font-size: 3.2rem !important;
    }
    
    .hero-section h1 {
        font-size: 4rem !important;
    }
    
    .section-heading h2 {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 1199.98px) {
    h1 {
        font-size: 3rem !important;
    }
    
    .hero-section h1 {
        font-size: 3.5rem !important;
    }
    
    .section-heading h2 {
        font-size: 2.5rem !important;
    }
    
    .page-header h1 {
        font-size: 3rem !important;
    }
    
    /* Ensure proper text centering */
    .section-heading {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .section-heading h2 {
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        min-height: 600px;
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 3rem !important;
    }
    
    .page-header h1 {
        font-size: 2.8rem !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2.2rem !important;
    }
    
    .section-heading h2 {
        font-size: 2.3rem !important;
    }
    
    .about-image-container {
        margin-top: 50px;
    }
    
    /* Ensure all headings are centered */
    .section-heading, .page-header {
        text-align: center;
    }
    
    .section-heading h2,
    .page-header h1 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Add proper padding to text sections */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Improve text spacing */
    p {
        margin-bottom: 1.2rem;
    }
    
    .lead {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-section {
        min-height: 500px;
        padding: 0 20px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .page-header h1 {
        font-size: 2.2rem !important;
        text-align: center;
        line-height: 1.3;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem !important;
        text-align: center;
    }
    
    h2 {
        font-size: 1.9rem !important;
        text-align: center;
    }
    
    h3 {
        font-size: 1.6rem !important;
        text-align: center;
    }
    
    .section-heading h2 {
        font-size: 2rem !important;
        text-align: center;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 10px;
        margin-bottom: 2rem;
    }
    
    .page-header .lead {
        font-size: 1.05rem;
        text-align: center;
        padding: 0 15px;
    }
    
    .section-alternate::before,
    .section-alternate::after {
        height: 50px;
    }
    
    .service-item .card-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .contact-form-container {
        margin-top: 50px;
        padding: 25px 20px;
    }
    
    /* Navbar mobile optimization for tablets */
    .navbar {
        overflow-x: hidden;
        padding: 12px 0;
    }
    
    .navbar-logo {
        height: 65px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Ensure proper text alignment and spacing */
    .text-center {
        text-align: center !important;
    }
    
    /* Add padding to content sections */
    .section-heading {
        text-align: center;
        margin-bottom: 35px;
        padding: 0 15px;
    }
    
    /* Better spacing for paragraphs */
    p {
        margin-bottom: 1.3rem;
        padding: 0 5px;
    }
    
    .lead {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
        padding: 0 10px;
    }
    
    /* Card and content improvements */
    .service-item, .feature-card {
        margin-bottom: 25px;
    }
    
    .service-item .card-body, .feature-card {
        padding: 20px 15px;
    }
    
    .service-item .card-text, .feature-text {
        text-align: center;
        padding: 0 5px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section {
        min-height: 450px;
        padding: 0 15px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 1.2rem;
        line-height: 1.1;
        padding: 0 10px;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        text-align: center;
        line-height: 1.2;
        padding: 0 20px;
    }
    
    h1 {
        font-size: 1.9rem !important;
        text-align: center;
        padding: 0 10px;
    }
    
    h2 {
        font-size: 1.6rem !important;
        text-align: center;
        padding: 0 10px;
    }
    
    h3 {
        font-size: 1.4rem !important;
        text-align: center;
        padding: 0 5px;
    }
    
    h4 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .section-heading h2 {
        font-size: 1.7rem !important;
        text-align: center;
        padding: 0 15px;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        text-align: center;
        padding: 0 15px;
        margin-bottom: 1.8rem;
        line-height: 1.5;
    }
    
    .page-header .lead {
        font-size: 1rem;
        text-align: center;
        padding: 0 20px;
        line-height: 1.4;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 5px auto;
        display: inline-block;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        text-align: center;
        width: fit-content;
    }
    
    .hero-buttons .btn:first-child {
        margin-right: auto;
    }
    
    /* Particles.js mobile optimization */
    #particles-js {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Navbar mobile optimization */
    .navbar {
        padding: 10px 0;
        overflow-x: hidden;
    }
    
    .navbar-logo {
        height: 55px;
        max-width: 100%;
    }
    
    .navbar-brand {
        padding: 0.25rem 0;
        font-size: 1.3rem;
        max-width: calc(100vw - 100px);
        overflow: hidden;
    }
    
    .navbar-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        text-align: center;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        text-align: center;
    }
    
    .nav-link.contact-btn {
        margin-left: 0;
        margin-top: 10px;
        padding: 10px 20px !important;
        font-size: 0.85rem;
        display: inline-block;
        width: auto;
        text-align: center;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Ensure proper text alignment and spacing */
    .text-center {
        text-align: center !important;
    }
    
    /* Add padding to content sections */
    .section-heading {
        text-align: center;
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    /* Better spacing for paragraphs */
    p {
        margin-bottom: 1.2rem;
        padding: 0 10px;
        text-align: justify;
        line-height: 1.6;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
        text-align: center;
        line-height: 1.5;
    }
    
    /* Card and content improvements */
    .service-item, .feature-card {
        margin-bottom: 20px;
    }
    
    .service-item .card-body, .feature-card {
        padding: 15px 10px;
    }
    
    .service-item .card-text, .feature-text {
        text-align: center;
        padding: 0 10px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-item .card-title, .feature-title {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 5px;
    }
}

/* ===== PRODUCT DETAIL PAGE STYLES ===== */
.product-detail-container {
    margin-bottom: 60px;
}

.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--golden-gradient);
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-info {
    height: 100%;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.product-detail-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.product-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--golden-gradient);
    border-radius: 10px;
}

.product-detail-pricing {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
}

.product-detail-pricing .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.product-detail-pricing .price-unit {
    font-size: 1rem;
    margin-left: 5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-detail-desc {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-detail-specs h4 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.availability-status {
    margin-top: 15px;
}

.status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-badge.available {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-badge.unavailable {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.product-actions {
    margin-top: 40px;
}

/* ===== PRODUCT GALLERY (Multi-Images) ===== */
.product-gallery {
    position: relative;
}

.product-main-image {
    position: relative;
    margin-bottom: 15px;
}

.product-main-image img {
    transition: opacity 0.15s ease-in-out, transform 0.5s ease;
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.gallery-nav:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.product-gallery:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav-prev {
    left: 15px;
}

.gallery-nav-next {
    right: 15px;
}

/* Counter */
.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.product-thumbnail:hover {
    opacity: 1;
    border-color: rgba(212, 175, 55, 0.5);
}

.product-thumbnail.active {
    border-color: var(--accent-color);
    opacity: 1;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-thumbnail:hover img {
    transform: scale(1.1);
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        opacity: 1;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Related Products */
.related-products {
    margin-top: 30px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--accent-color);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\2022';
    color: var(--accent-color);
}

/* ===== CART STYLES ===== */
.nav-link .ti-shopping-cart {
    font-size: 1.5rem;
    position: relative;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-count.has-items {
    opacity: 1;
}

.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    height: 120px;
    object-fit: cover;
}

.quantity-control {
    display: flex;
    align-items: center;
    max-width: 140px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.quantity-control .btn {
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background-color: #f8f9fa;
    border: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.quantity-control .btn:hover {
    background-color: var(--accent-light);
    color: #000;
}

.quantity-input {
    width: 50px;
    text-align: center;
    margin: 0 5px;
    padding: 0.375rem 0.5rem;
    color: var(--text-color);
    background-color: #fff;
    border: 1px solid #ced4da;
    font-weight: 600;
    appearance: textfield;
}

/* Remove spinner arrows from number input */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.empty-cart i {
    opacity: 0.2;
}

#rentalDuration {
    max-width: 200px;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.item-quantity label {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-color);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(25, 135, 84, 0.1);
}

/* ===== LEGAL PAGES STYLES ===== */
.legal-content {
    padding: 20px 0;
}

.legal-section {
    position: relative;
    margin-bottom: 50px;
}

.legal-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-color);
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--golden-gradient);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.legal-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}
.legal-card:hover h4 {
    color: white;
}

.legal-card:hover::before {
    opacity: 1;
}

.legal-card h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.legal-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--golden-gradient);
    border-radius: 1px;
}

.legal-card h5 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    margin-top: 35px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    position: relative;
    padding: 15px 0;
}

.legal-card h5:first-of-type {
    margin-top: 20px;
}

.legal-card h5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.3;
}

.legal-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(249, 247, 242, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.legal-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--golden-gradient);
    opacity: 0;
    transition: var(--transition);
}

.legal-info-item:hover {
    background-color: rgba(249, 247, 242, 0.8);
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.legal-info-item:hover::before {
    opacity: 1;
}

.legal-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--golden-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin-right: 20px;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    position: relative;
}

.legal-info-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: var(--golden-gradient-reverse);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.legal-info-item:hover .legal-info-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.legal-info-item:hover .legal-info-icon::after {
    opacity: 0.3;
}

.legal-info-content {
    flex: 1;
    min-width: 0;
}

.legal-info-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    padding: 0;
}

.legal-info-content h5::before {
    display: none;
}

.legal-info-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Séparateurs visuels entre les entreprises */
.legal-card h5.mt-5 {
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    padding-top: 25px;
    position: relative;
}

.legal-card h5.mt-5::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--golden-gradient);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Animation pour les icônes */
@keyframes legal-icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.legal-info-icon:hover {
    animation: legal-icon-pulse 1s ease-in-out;
}

/* Amélioration responsive pour les mentions légales */
@media (max-width: 768px) {
    .legal-card {
        padding: 25px 20px;
    }
    
    .legal-info-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .legal-info-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        margin-right: 15px;
        font-size: 1.1rem;
    }
    
    .legal-section h2 {
        font-size: 1.8rem;
    }
    
    .legal-card h5.mt-5::before {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .legal-card {
        padding: 20px 15px;
    }
    
    .legal-info-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .legal-info-icon {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
}

/* Effet de survol global pour la section légale */
.legal-section:hover .legal-card {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Animation d'entrée pour les éléments légaux */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-info-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-info-item:nth-child(even) {
    animation-delay: 0.1s;
}

.legal-info-item:nth-child(odd) {
    animation-delay: 0.2s;
}

#word-cloud {
    margin-top: 130px;
}

#types  .col-lg-5 .editable-text, #animations .col-lg-5 .editable-text, .diagonal-section .col-md-6 .event-card p.editable-text {
    text-align: justify;
}

/* ===== AOS MOBILE OPTIMIZATIONS ===== */
/* Optimisations pour les animations AOS sur mobile */
@media (max-width: 768px) {
    /* Réduire la distance de déclenchement pour les animations AOS */
    [data-aos] {
        transition-duration: 0.8s !important;
    }
    
    /* Ajustements spécifiques pour les animations fade-up sur mobile */
    [data-aos="fade-up"] {
        transform: translateY(20px) !important; /* Réduction du décalage initial */
    }
    
    /* Ajustements pour les animations zoom sur mobile */
    [data-aos="zoom-in"] {
        transform: scale(0.9) !important; /* Réduction de l'échelle initiale */
    }
    
    /* Animation plus douce pour fade-right et fade-left sur mobile */
    [data-aos="fade-right"] {
        transform: translateX(-15px) !important; /* Réduction du décalage horizontal */
    }
    
    [data-aos="fade-left"] {
        transform: translateX(15px) !important; /* Réduction du décalage horizontal */
    }
    
    /* Réduction des délais pour une expérience plus fluide sur mobile */
    [data-aos-delay] {
        transition-delay: 0s !important; /* Suppression des délais sur mobile */
    }
    
    /* Animation plus rapide pour les éléments qui apparaissent */
    .aos-animate {
        transition-duration: 0.6s !important;
    }
}

/* Optimisations pour tablettes */
@media (max-width: 992px) and (min-width: 769px) {
    [data-aos] {
        transition-duration: 0.9s !important;
    }
    
    [data-aos="fade-up"] {
        transform: translateY(30px) !important;
    }
    
    [data-aos="fade-right"] {
        transform: translateX(-25px) !important;
    }
    
    [data-aos="fade-left"] {
        transform: translateX(25px) !important;
    }
}

/* Amélioration des performances AOS sur mobile */
@media (max-width: 768px) {
    /* Désactivation de certaines animations coûteuses sur mobile */
    .aos-animate[data-aos^="flip"],
    .aos-animate[data-aos^="slide"] {
        animation: none !important;
        transform: none !important;
    }
    
    /* Préférer des animations simples sur mobile */
    .aos-animate[data-aos="flip-up"],
    .aos-animate[data-aos="flip-down"],
    .aos-animate[data-aos="flip-left"],
    .aos-animate[data-aos="flip-right"] {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 0.6s ease !important;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1350px !important;
    }
}

/* ===== ADDITIONAL RESPONSIVE TEXT IMPROVEMENTS ===== */

/* Dice container and elements responsive */
@media (max-width: 767.98px) {
    .impact-dice-container {
        padding: 15px 10px;
        text-align: center;
    }
    
    .dice-grid {
        gap: 25px;
        width: 240px;
        margin: 0 auto;
    }
    
    .dice-face {
        width: 100px;
        height: 100px;
    }
    
    .dice-content h4 {
        font-size: 1.6rem !important;
        text-align: center;
    }
    
    .dice-content p {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.1;
    }
}

@media (max-width: 575.98px) {
    .impact-dice-container {
        padding: 10px 5px;
    }
    
    .dice-grid {
        gap: 20px;
        width: 200px;
        margin: 0 auto;
    }
    
    .dice-face {
        width: 80px;
        height: 80px;
    }
    
    .dice-content h4 {
        font-size: 1.3rem !important;
    }
    
    .dice-content p {
        font-size: 0.7rem;
        line-height: 1;
    }
}

/* Service items mobile improvements */
@media (max-width: 767.98px) {
    .service-item {
        margin-bottom: 25px;
    }
    
    .service-item .card-body {
        padding: 20px 15px;
        text-align: center;
    }
    
    .service-item .card-title {
        font-size: 1.2rem !important;
        text-align: center;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .service-item .card-text {
        text-align: center;
        padding: 0 10px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 20px auto;
    }
}

@media (max-width: 575.98px) {
    .service-item .card-body {
        padding: 15px 10px;
    }
    
    .service-item .card-title {
        font-size: 1.1rem !important;
        padding: 0 5px;
    }
    
    .service-item .card-text {
        font-size: 0.85rem;
        padding: 0 5px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin: 15px auto;
    }
}

/* Feature cards mobile improvements */
@media (max-width: 767.98px) {
    .feature-card {
        padding: 25px 20px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .feature-title {
        font-size: 1.2rem !important;
        text-align: center;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .feature-text {
        text-align: center;
        padding: 0 10px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        margin: 0 auto 20px;
    }
}

@media (max-width: 575.98px) {
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-title {
        font-size: 1.1rem !important;
        padding: 0 5px;
    }
    
    .feature-text {
        font-size: 0.85rem;
        padding: 0 5px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

/* Page header responsive improvements */
@media (max-width: 767.98px) {
    .page-header {
        height: 50vh;
        min-height: 300px;
        padding: 80px 20px 0;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2.2rem !important;
        text-align: center;
        line-height: 1.3;
        padding: 0 15px;
        margin-bottom: 1.2rem;
    }
    
    .page-header .lead {
        font-size: 1.05rem;
        text-align: center;
        padding: 0 15px;
        line-height: 1.4;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        height: 60vh;
        min-height: 250px;
        padding: 70px 15px 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        padding: 0 20px;
        line-height: 1.2;
    }
    
    .page-header .lead {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Project tags and dates responsive */
@media (max-width: 767.98px) {
    .project-tags {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        text-align: center;
    }
    
    .project-tag {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .project-date {
        font-size: 0.85rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .project-tags {
        padding: 12px;
        gap: 8px;
    }
    
    .project-tag {
        font-size: 0.75rem;
    }
    
    .project-date {
        font-size: 0.8rem;
    }
}

/* Text alignment improvements for all text elements */
@media (max-width: 767.98px) {
    /* Ensure all headings are properly centered */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
        padding: 0 10px;
    }
    
    /* Lead paragraphs should be centered on mobile */
    .lead {
        text-align: center !important;
        padding: 0 15px;
        line-height: 1.5;
    }
    
    /* Regular paragraphs with proper spacing */
    p:not(.lead):not(.text-justify) {
        text-align: center;
        padding: 0 10px;
        line-height: 1.6;
    }
    
    /* Keep justified text for specific sections */
    .text-justify {
        text-align: justify !important;
        padding: 0 15px;
    }
}

@media (max-width: 575.98px) {
    h1, h2, h3, h4, h5, h6 {
        padding: 0 15px;
    }
    
    .lead {
        padding: 0 20px;
        font-size: 1rem;
    }
    
    p:not(.lead):not(.text-justify) {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .text-justify {
        padding: 0 20px;
        font-size: 0.9rem;
    }
}

/* Container padding improvements for mobile */
@media (max-width: 575.98px) {
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure no text touches the edges */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Animation page specific responsive improvements */
@media (max-width: 767.98px) {
    .animation-card-overlay h3 {
        font-size: 1.3rem !important;
        text-align: center;
        padding: 0 10px;
    }
    
    .animation-card-overlay p {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 5px;
    }
    
    .reason-heading {
        font-size: 1.2rem !important;
        text-align: center;
        padding: 0 10px;
    }
    
    .reason-item p {
        text-align: center;
        padding: 0 15px;
    }
}

@media (max-width: 575.98px) {
    .animation-card-overlay h3 {
        font-size: 1.1rem !important;
        padding: 0 5px;
    }
    
    .animation-card-overlay p {
        font-size: 0.85rem;
        padding: 0 3px;
    }
    
    .reason-heading {
        font-size: 1.1rem !important;
        padding: 0 5px;
    }
    
    .reason-item p {
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Timeline improvements for mobile */
@media (max-width: 767.98px) {
    .timeline-content h4 {
        font-size: 1.2rem !important;
        text-align: center;
        padding: 0 10px;
    }
    
    .timeline-content p {
        text-align: center;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .timeline-content h4 {
        font-size: 1.1rem !important;
        padding: 0 5px;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
        padding: 0 5px;
    }
}

/* Carousel slider content responsive */
@media (max-width: 767.98px) {
    .slider-title {
        font-size: 1.8rem !important;
        text-align: center;
        padding: 0 15px;
    }
    
    .slider-text {
        font-size: 1rem;
        text-align: center !important;
        padding: 0 15px;
        line-height: 1.5;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 575.98px) {
    .slider-title {
        font-size: 1.5rem !important;
        padding: 0 10px;
    }
    
    .slider-text {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .feature-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* General text improvements for all pages */
@media (max-width: 767.98px) {
    /* All card titles should be centered */
    .card-title, .product-detail-title, .legal-card h4 {
        text-align: center !important;
        padding: 0 10px;
    }
    
    /* All card text should be centered */
    .card-text, .product-detail-desc, .legal-info-content p {
        text-align: center !important;
        padding: 0 10px;
    }
    
    /* Breadcrumb centered on mobile */
    .breadcrumb {
        justify-content: center;
        text-align: center;
    }
    
    /* Button text and spacing */
    .btn {
        text-align: center;
        margin: 5px;
    }
}

@media (max-width: 575.98px) {
    .card-title, .product-detail-title, .legal-card h4 {
        padding: 0 15px;
    }
    
    .card-text, .product-detail-desc, .legal-info-content p {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

/* ===== CARD AND CONTAINER SPACING FIXES ===== */

/* Fix cards stuck to screen edges */
@media (max-width: 767.98px) {
    /* Service and feature cards spacing */
    .service-item, .feature-card, .product-card, .project-card {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    /* Navigation and legal cards spacing */
    .navigation-card, .legal-card, .testimonial-card {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    /* Animation cards spacing */
    .animation-card {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Form containers */
    .contact-form-container, .directions-card, .filters-sidebar {
        margin-left: 0;
        margin-right: 0;
    }
    
    .products-header {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure proper row margins */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Container padding improvements */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 575.98px) {
    /* Increase spacing for very small screens */
    .service-item, .feature-card, .product-card, .project-card {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .navigation-card, .legal-card, .testimonial-card {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .animation-card {
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-form-container, .directions-card, .filters-sidebar {
        margin-left: 0;
        margin-right: 0;
    }
    
    .products-header {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Grid column improvements */
    .col-md-6, .col-lg-4, .col-lg-3, .col-sm-6 {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px;
    }
    
    /* Container improvements */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Dice container spacing */
    .dice-grid {
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
    }
    
    /* Image containers */
    .about-image-container, .product-detail-image {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Ensure section padding doesn't cause overflow */
    .section-padding {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== TABLE RESPONSIVE IMPROVEMENTS ===== */

/* Basic table responsiveness */
@media (max-width: 767.98px) {
    table {
        font-size: 0.9rem;
        margin: 0 auto;
        width: calc(100% - 30px);
    }
    
    table th,
    table td {
        padding: 8px 5px;
        text-align: center;
        word-wrap: break-word;
    }
    
    table th {
        font-size: 0.85rem;
        background-color: var(--secondary-color);
    }
    
    /* Make tables horizontally scrollable if needed */
    .table-responsive {
        margin: 0 auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: calc(100% - 30px);
    }
}

@media (max-width: 575.98px) {
    table {
        font-size: 0.8rem;
        margin: 0 auto;
        width: calc(100% - 40px);
    }
    
    table th,
    table td {
        padding: 6px 3px;
        font-size: 0.8rem;
    }
    
    table th {
        font-size: 0.75rem;
    }
    
    .table-responsive {
        margin: 0 auto;
        width: calc(100% - 40px);
    }
    
    /* Stack table cells vertically on very small screens */
    .table-stack th,
    .table-stack td {
        display: block;
        width: 100%;
        text-align: center;
        border: none;
        padding: 5px 15px;
    }
    
    .table-stack th {
        background-color: var(--accent-color);
        color: white;
        font-weight: 600;
    }
    
    .table-stack tbody tr {
        border: 1px solid rgba(212, 175, 55, 0.2);
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }
}

/* ===== TIMELINE CONTAINER IMPROVEMENTS ===== */

/* Fix timeline container overflow */
@media (max-width: 767.98px) {
    .timeline-section {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .timeline-container {
        padding: 0 25px;
        margin: 0 auto;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .timeline-item {
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 25px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .timeline-content {
        padding: 20px 15px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
    
    .timeline-content h4 {
        font-size: 1.2rem !important;
        text-align: center;
        padding: 0 10px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .timeline-content p {
        text-align: center;
        padding: 0 10px;
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
}

@media (max-width: 575.98px) {
    .timeline-section {
        padding: 50px 0;
    }
    
    .timeline-container {
        padding: 0 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 20px;
        margin-bottom: 20px;
    }
    
    .timeline-content {
        padding: 15px 10px;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem !important;
        text-align: center;
        padding: 0 5px;
        line-height: 1.2;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
        text-align: center;
        padding: 0 5px;
        line-height: 1.4;
    }
}

/* ===== TABLE RESPONSIVE IMPROVEMENTS ===== */

/* Enhanced table styles */
.table-responsive {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    overflow-x: auto;
}

.tech-specs-table {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-specs-table .table {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.tech-specs-table .table th {
    background: var(--golden-gradient);
    color: #000;
    font-weight: 700;
    text-align: center;
    border: none;
    padding: 15px;
    font-size: 1rem;
}

.tech-specs-table .table td {
    border-color: rgba(212, 175, 55, 0.1);
    text-align: center;
    padding: 12px 15px;
    vertical-align: middle;
}

.tech-specs-table .table tr:nth-child(even) {
    background-color: rgba(249, 247, 242, 0.3);
}

.tech-specs-table .table tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s ease;
}

/* Basic table responsiveness */
@media (max-width: 991.98px) {
    .table-responsive {
        margin: 15px 10px;
    }
    
    .tech-specs-table {
        margin: 15px 10px;
    }
    
    .tech-specs-table .table th,
    .tech-specs-table .table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .table-responsive {
        margin: 10px 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .tech-specs-table {
        margin: 10px 15px;
        border-radius: 8px;
    }
    
    .tech-specs-table .table th,
    .tech-specs-table .table td {
        padding: 10px 8px;
        font-size: 0.9rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .tech-specs-table .table th {
        font-size: 0.85rem;
        padding: 12px 8px;
    }
    
    table {
        font-size: 0.9rem;
        margin: 0 auto;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    table th,
    table td {
        padding: 8px 5px;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    table th {
        font-size: 0.85rem;
        background-color: var(--secondary-color);
    }
}

@media (max-width: 575.98px) {
    .table-responsive {
        margin: 10px 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tech-specs-table {
        margin: 10px 20px;
    }
    
    .tech-specs-table .table th,
    .tech-specs-table .table td {
        padding: 8px 5px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .tech-specs-table .table th {
        font-size: 0.75rem;
        padding: 10px 5px;
        white-space: nowrap;
    }
    
    table {
        font-size: 0.8rem;
        margin: 0 auto;
        width: calc(100% - 40px);
        min-width: 300px;
    }
    
    table th,
    table td {
        padding: 6px 3px;
        font-size: 0.8rem;
        min-width: 80px;
        text-align: center;
    }
    
    table th {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    /* Alternative: Stack table cells vertically for better mobile experience */
    .table-stack {
        margin: 0 auto;
        width: calc(100% - 30px);
    }
    
    .table-stack table,
    .table-stack tbody,
    .table-stack tr,
    .table-stack td {
        display: block;
        width: 100%;
    }
    
    .table-stack thead {
        display: none;
    }
    
    .table-stack tr {
        border: 1px solid rgba(212, 175, 55, 0.2);
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .table-stack td {
        border: none;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.9rem;
        position: relative;
        padding-left: 50%;
    }
    
    .table-stack td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--accent-color);
        text-align: left;
    }
    
    .table-stack td:first-child {
        background: rgba(212, 175, 55, 0.1);
        font-weight: 600;
    }
}

/* Very small screens - force horizontal scroll for complex tables */
@media (max-width: 400px) {
    .table-responsive {
        margin: 5px 10px;
    }
    
    .tech-specs-table {
        margin: 5px 10px;
    }
    
    table {
        margin: 0 auto;
        width: calc(100% - 20px);
        min-width: 280px;
    }
    
    .tech-specs-table .table th,
    .tech-specs-table .table td {
        padding: 6px 3px;
        font-size: 0.7rem;
        min-width: 70px;
    }
}

/* ===== MOBILE CENTERING GLOBAL FIXES ===== */
@media (max-width: 767.98px) {
    /* Global container fixes for perfect centering */
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* All sections should be centered */
    section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Bootstrap columns uniform spacing */
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }
    
    .row > * {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* All cards should have no side margins */
    .card, .service-item, .feature-card, .product-card, .project-card,
    .navigation-card, .legal-card, .testimonial-card, .animation-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Form and content containers */
    .contact-form-container, .directions-card, .filters-sidebar,
    .products-header, .about-image-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Text elements perfect centering */
    .text-center, .section-heading, .page-header {
        text-align: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* ===== AOS ANIMATION FIXES FOR MOBILE CENTERING ===== */
    /* Fix AOS animations to maintain proper centering on mobile */
    @media (max-width: 768px) {
        /* Override all AOS fade animations to prevent horizontal displacement */
        [data-aos^="fade"].aos-animate {
            opacity: 1 !important;
            transform: translateZ(0) !important;
        }
        
        /* Specific overrides for fade directions */
        [data-aos="fade-right"].aos-animate,
        [data-aos="fade-left"].aos-animate {
            transform: translateX(0) !important;
        }
        
        [data-aos="fade-up"].aos-animate,
        [data-aos="fade-down"].aos-animate {
            transform: translateY(0) !important;
        }
        
        /* Ensure zoom animations don't affect centering */
        [data-aos="zoom-in"].aos-animate,
        [data-aos="zoom-out"].aos-animate {
            transform: scale(1) !important;
        }
        
        /* Reset all transform-based AOS animations */
        [data-aos].aos-animate {
            transform: none !important;
        }
        
        /* Keep only opacity transitions for smoother mobile experience */
        [data-aos] {
            transition: opacity 0.6s ease !important;
        }
    }
    
    @media (max-width: 575.98px) {
        /* Even simpler animations for very small screens */
        [data-aos] {
            transition: opacity 0.4s ease !important;
        }
        
        [data-aos].aos-animate {
            opacity: 1 !important;
            transform: none !important;
        }
    }
    
    /* Ensure all text content is properly spaced */
    p, .lead, h1, h2, h3, h4, h5, h6 {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 575.98px) {
    /* Even more uniform spacing for very small screens */
    .container, .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }
    
    .row > * {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Perfect text centering */
    .text-center, .section-heading, .page-header,
    .hero-section, .cta-section {
        text-align: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ===== RECRUITMENT POPUP ===== */
.recruitment-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 25px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.recruitment-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--golden-gradient);
    z-index: -1;
    border-radius: 17px;
    opacity: 0.3;
    animation: pulse-golden 3s ease-in-out infinite;
}

@keyframes pulse-golden {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

.recruitment-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.recruitment-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: rgba(212, 175, 55, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
    transition: all 0.3s ease;
    z-index: 2;
}

.recruitment-close:hover {
    background: var(--golden-gradient);
    color: #000;
    transform: rotate(90deg) scale(1.1);
}

.recruitment-close i {
    font-size: 1.2rem;
}

.recruitment-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.recruitment-icon {
    width: 60px;
    height: 60px;
    background: var(--golden-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.recruitment-icon i {
    font-size: 1.8rem;
    color: #000;
}

.recruitment-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
}

.recruitment-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.recruitment-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--golden-gradient);
    color: #000;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.recruitment-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    color: #000;
}

.recruitment-email i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recruitment-popup {
        bottom: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .recruitment-popup {
        bottom: 15px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 20px;
    }
    
    .recruitment-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .recruitment-icon i {
        font-size: 1.5rem;
    }
    
    .recruitment-title {
        font-size: 1.1rem;
    }
    
    .recruitment-text {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .recruitment-email {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}