:root {
    /* Light Mode Colors */
    --primary: #6B4226;
    --secondary: #C19A6B;
    --accent: #4CAF50;
    --light: #F5F5DC;
    --dark: #2C1810;
    --white: #FFFFFF;
    --shadow: rgba(107, 66, 38, 0.1);
    --overlay: rgba(44, 24, 16, 0.7);

    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Open Sans', sans-serif;
    --accent-font: 'Merriweather', serif;
}

/* Enhanced Dark Mode Colors */
[data-theme="dark"] {
    --primary: #E8D5C0;
    --secondary: #D4AF87;
    --accent: #81C784;
    --light: #1A1A1A;
    --dark: #F5F5DC;
    --white: #2A2A2A;
    --shadow: rgba(232, 213, 192, 0.15);
    --overlay: rgba(26, 26, 26, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    transition: all 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Wood Texture Background */
.wood-texture {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(193, 154, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 66, 38, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, rgba(193, 154, 107, 0.1) 0%, rgba(107, 66, 38, 0.1) 100%);
}

/* Scrolling Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-up {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
    backdrop-filter: none;
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(245, 245, 220, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px var(--shadow);
}

[data-theme="dark"] header.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(193, 154, 107, 0.2);
}

.navbar {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    position: relative;
}

.logo {
    font-family: var(--heading-font);
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    background: linear-gradient(45deg, var(--light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

header.scrolled .logo {
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#header .logo {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--heading-font);
}

#header .logo img {
    max-height: 35px;
    width: 35px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    object-fit: cover;
    flex-shrink: 0;
}

/* Logo colors for different states */
header.scrolled .logo {
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] header.scrolled .logo {
    color: var(--light);
    background: linear-gradient(45deg, var(--light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

header.scrolled .nav-links a {
    color: var(--dark);
}

[data-theme="dark"] header.scrolled .nav-links a {
    color: var(--light);
}

.nav-links a:hover {
    color: var(--secondary);
}

header.scrolled .nav-links a:hover {
    color: var(--primary);
}

[data-theme="dark"] header.scrolled .nav-links a:hover {
    color: var(--secondary);
}

/* Active link underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

header.scrolled .nav-links a::after {
    background: var(--primary);
}

[data-theme="dark"] header.scrolled .nav-links a::after {
    background: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

/* Quote Button */
.quote-btn {
    background: linear-gradient(45deg, var(--accent), #66BB6A);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--light);
    color: var(--light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

header.scrolled .theme-toggle {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] header.scrolled .theme-toggle {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle:hover {
    background: var(--light);
    color: var(--primary);
    transform: scale(1.1);
}

header.scrolled .theme-toggle:hover {
    background: var(--primary);
    color: var(--light);
}

[data-theme="dark"] header.scrolled .theme-toggle:hover {
    background: var(--primary);
    color: var(--light);
}

/* Enhanced Mobile Navigation Toggle Visibility */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    z-index: 1002; /* Increased z-index */
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
header .nav-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

header .nav-toggle span {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

header.scrolled .nav-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
}

header.scrolled .nav-toggle span {
    background: var(--primary) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] header .nav-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] header .nav-toggle span {
    background: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] header.scrolled .nav-toggle {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--primary);
}

[data-theme="dark"] header.scrolled .nav-toggle span {
    background: var(--primary) !important;
}
/* Active/cross state visibility */
.nav-toggle.active {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 1);
}

.nav-toggle.active span {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover effects for better visibility */
.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

header.scrolled .nav-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section with Video Background */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Video Background Styles */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Fixed Video Overlay Effect */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.8) 0%,
        rgba(107, 66, 38, 0.7) 50%,
        rgba(193, 154, 107, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .video-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(44, 24, 16, 0.7) 50%,
        rgba(107, 66, 38, 0.6) 100%
    );
}

/* Fallback Background */
.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--overlay), var(--overlay)),
        url('/assets/img/hero.png') center/cover;
    z-index: -3;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(193, 154, 107, 0.1) 25%,
            transparent 50%,
            rgba(107, 66, 38, 0.1) 75%,
            transparent 100%);
    animation: woodGrain 20s ease-in-out infinite;
    z-index: 1;
}

[data-theme="dark"] .hero::before {
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(232, 213, 192, 0.08) 25%,
            transparent 50%,
            rgba(212, 175, 135, 0.06) 75%,
            transparent 100%);
}

@keyframes woodGrain {
    0%, 100% { transform: translateX(-100px); }
    50% { transform: translateX(100px); }
}

.hero-content {
    max-width: 90%;
    z-index: 2;
    position: relative;
    padding: 0 1rem;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.section-title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Services Section */
.services {
    background: var(--light);
    padding: 4rem 0;
}

/* Dark Mode Services Section */
[data-theme="dark"] .services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
}

[data-theme="dark"] .service-card {
    background: var(--white);
    color: var(--dark);
    border: 1px solid rgba(232, 213, 192, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 154, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.service-card i {
    font-size: clamp(2.5rem, 6vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

[data-theme="dark"] .service-card h3 {
    color: var(--primary);
}

.service-card p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
}

/* Products Section */
/* Loading state for product items */
.product-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

.product-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.products {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 4rem 0;
    width: 100%;
}

.products .section-title {
    color: var(--light);
}

.products .section-subtitle {
    opacity: 0.9;
}

/* Product Navigation */
.product-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.product-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.product-nav-btn span {
    display: inline;
}

.product-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-nav-btn.active {
    background: var(--light);
    color: var(--primary);
    border-color: var(--light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Product Categories */
.product-category {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.product-category.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

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

.category-title {
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light);
}

.category-description {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 0 1rem;
}

/* Product Gallery */
        .product-nav {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 3rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            backdrop-filter: blur(10px);
        }

        .product-nav-btn {
            padding: 0.8rem 1.5rem;
            background: transparent;
            color: var(--light);
            border: 2px solid transparent;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            white-space: nowrap;
        }

        .product-nav-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .product-nav-btn.active {
            background: var(--light);
            color: var(--primary);
            border-color: var(--light);
        }

        /* Product Categories */
.product-categories {
    position: relative;
    min-height: 500px;
}

.product-category {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.product-category.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

        .category-title {
            font-family: var(--heading-font);
            font-size: clamp(1.8rem, 5vw, 2.5rem);
            text-align: center;
            margin-bottom: 1rem;
            color: var(--light);
        }

        .category-description {
            text-align: center;
            font-size: clamp(1rem, 3vw, 1.2rem);
            opacity: 0.9;
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Product Gallery */
        .product-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
            width: 100%;
        }

        .product-item {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            position: relative;
            width: 100%;
        }

        .product-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .product-image {
            position: relative;
            height: 250px;
            overflow: hidden;
            width: 100%;
        }

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

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

        .product-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(107, 66, 38, 0.8), rgba(193, 154, 107, 0.6));
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .product-item:hover .product-overlay {
            opacity: 1;
        }

        .overlay-icon {
            color: white;
            font-size: 2rem;
            background: rgba(255, 255, 255, 0.2);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            transition: transform 0.3s ease;
        }

        .overlay-icon:hover {
            transform: scale(1.1);
        }

        .product-info {
            padding: 1.5rem;
            text-align: center;
        }

        .product-info h4 {
            font-family: var(--heading-font);
            font-size: clamp(1.1rem, 3vw, 1.3rem);
            margin-bottom: 0.5rem;
            color: var(--light);
        }

        .product-info p {
            opacity: 0.8;
            font-size: clamp(0.8rem, 2.5vw, 0.9rem);
            line-height: 1.5;
        }

        .product-item.hidden {
            display: none;
        }

.expand-btn {
    background: var(--light);
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    font-size: clamp(0.9rem, 3vw, 1rem);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.expand-btn:hover {
    background: var(--secondary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.expand-btn:active {
    transform: translateY(-1px);
}

.expand-btn .btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.expand-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Enhanced Product Item Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-item.hidden {
    display: none !important;
}

        /* Modal for image viewing */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            padding: 2rem;
        }

        .modal img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border-radius: 10px;
        }

        .close-modal {
            position: absolute;
            top: 2rem;
            right: 2rem;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.1);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .product-nav {
                justify-content: flex-start;
                overflow-x: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .product-nav::-webkit-scrollbar {
                display: none;
            }

            .product-nav-btn {
                flex-shrink: 0;
            }

            .product-gallery {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 1rem;
            }
        }

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

.about-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for better alignment */
}

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

.about-image:hover img {
    transform: scale(1.1);
}

.about-text {
    padding-left: 1rem; /* Add some spacing */
}

.about-text h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.7;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.about-features li i {
    color: var(--accent);
    width: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Dark Mode About Section */
[data-theme="dark"] .about-text h3,
[data-theme="dark"] .section-title {
    color: var(--primary);
}

[data-theme="dark"] .about-text p,
[data-theme="dark"] body {
    color: var(--dark);
}
/* Metrics Section */
.metrics {
    background: linear-gradient(rgba(107, 66, 38, 0.9), rgba(193, 154, 107, 0.9)),
        url('/assets/img/hero.png') center/cover;
    color: var(--light);
    padding: 4rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-item h3 {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 0.5rem;
}

.metric-item p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    background: var(--light);
    padding: 4rem 0;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-style: italic;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}
/* Dark Mode Testimonials */
[data-theme="dark"] .testimonials {
    background: var(--light);
}

[data-theme="dark"] .testimonial {
    background: var(--white);
    color: var(--dark);
}

[data-theme="dark"] .testimonial-author {
    color: var(--primary);
}


/* Client Images Row */
.clients-row {
    padding: 2rem 0;
}

.clients-grid {
    padding: 0px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
}

.client-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    height: 100px;
}

.client-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.client-image img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-image:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.clients-title {
    text-align: center;
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 0;
}

/* Dark Mode Client Images */
[data-theme="dark"] .client-image {
    background: var(--white);
}

[data-theme="dark"] .clients-title {
    color: var(--primary);
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-image {
        height: 80px;
    }
}
/* Contact Section */
/* Contact Section */
.contact-content {
    display: block; /* Changed from grid to block for single-column layout */
}

.contact-info {
    padding-right: 0; /* Remove padding as it's not needed */
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three cards in a row */
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    color: var(--primary);
    font-size: 2rem;
    width: 35px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-card div {
    flex: 1;
}

.contact-card h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-card p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    color: var(--dark);
}

.contact-card a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--primary);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 300px; /* Increased height for better visibility */
    border: 0;
}

/* Dark Mode Contact Section */
[data-theme="dark"] .contact-card {
    background: var(--white);
    color: var(--dark);
    border: 1px solid rgba(232, 213, 192, 0.1);
}

[data-theme="dark"] .contact-card h3,
[data-theme="dark"] .contact-card i {
    color: var(--primary);
}

[data-theme="dark"] .contact-card a {
    color: var(--dark);
}

[data-theme="dark"] .contact-card a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-section p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
}

.footer-section p {
    margin-bottom: 0.5rem;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.8rem, 3vw, 1rem);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Enhanced WhatsApp Float with Dual Options */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.whatsapp-float.main-whatsapp {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
}

.whatsapp-float.main-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float.main-whatsapp.active {
    background: #128C7E;
    animation: none;
}

/* WhatsApp Options */
.whatsapp-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    transform: scale(0.8);
    animation: slideInUp 0.4s ease forwards;
}

.whatsapp-option:nth-child(1) { animation-delay: 0.1s; }
.whatsapp-option:nth-child(2) { animation-delay: 0.2s; }

.whatsapp-option:hover {
    background: #128C7E;
    transform: scale(0.85) translateX(-5px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-option i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.whatsapp-option span {
    font-size: 0.85rem;
}

/* Close Button */
.whatsapp-close {
    width: 35px;
    height: 35px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    align-self: center;
    margin-top: 5px;
}

.whatsapp-close.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.whatsapp-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(0.8) translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float.main-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .whatsapp-option {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .whatsapp-option span {
        font-size: 0.75rem;
    }
    
    .whatsapp-close {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-size: clamp(0.9rem, 3vw, 1rem);
    max-width: calc(100vw - 40px);
}

.toast.show {
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading i {
    font-size: 2rem;
    color: var(--light);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Additional Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-item {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }
.product-item:nth-child(6) { animation-delay: 0.6s; }

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

button, .cta-btn, .quote-btn {
    position: relative;
    overflow: hidden;
}

/* Enhanced Button Effects */
.product-nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-nav-btn:hover::after {
    transform: translateX(100%);
}

.expand-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(107, 66, 38, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.expand-btn:active::before {
    width: 200px;
    height: 200px;
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .about-image {
        height: 350px;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
        .nav-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    /* Logo adjustments for mobile */
    #header .logo {
        overflow: hidden;
    }

    #header .logo img {
        max-height: 30px;
        width: 30px;
    }

    /* Navigation menu for mobile */
    .nav-menu {
        flex: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(245, 245, 220, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        padding: 2rem;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(26, 26, 26, 0.98);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        color: var(--dark);
        font-size: 1.5rem;
        font-weight: 600;
        padding: 1rem;
        text-align: center;
        width: 100%;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    [data-theme="dark"] .nav-links a {
        color: var(--light);
    }

    .nav-links a:hover {
        background: rgba(107, 66, 38, 0.1);
        color: var(--primary);
    }

    [data-theme="dark"] .nav-links a:hover {
        background: rgba(193, 154, 107, 0.1);
        color: var(--secondary);
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    /* Navigation actions mobile layout */
    .nav-actions {
        gap: 0.5rem;
        order: 2;
    }

    .quote-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        display: none; /* Hide on mobile to save space */
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Logo order */
    .logo {
        order: 1;
        flex: 1;
    }

    /* Product navigation mobile */
    .product-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-nav::-webkit-scrollbar {
        display: none;
    }

    .product-nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        min-width: auto;
        white-space: nowrap;
    }

    /* Product gallery mobile */
    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 200px;
    }

    /* Enhanced expand button for mobile */
    .expand-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding-left: 0;
        order: 1; /* Text first on mobile */
    }
    
    .about-image {
        order: 2; /* Image second on mobile */
        height: 250px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding-right: 0;
        order: 1; /* Contact info first on mobile */
    }
    
    .contact-form {
        order: 2; /* Form second on mobile */
        padding: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .contact-item i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .map-container iframe {
        height: 200px;
    }

    /* Metrics mobile */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        text-align: center;
    }

    /* Float buttons mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 75px;
        right: 15px;
        font-size: 1rem;
    }

    /* Toast mobile */
    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        max-width: none;
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .product-nav-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        min-height: 55px;
    }

    .product-nav-btn i {
        font-size: 1rem;
    }

    .product-nav-btn span {
        font-size: 0.65rem;
    }

    /* Single column for products on very small screens */
    .product-gallery {
        grid-template-columns: 1fr;
    }

    /* Metrics single column */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer single column */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Testimonial padding */
    .testimonial {
        padding: 1.5rem;
    }

    .contact-content {
        gap: 1.5rem;
    }
    
    .about-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
        width: 25px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .nav-links {
        flex-direction: row;
        height: 100vh;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .services-grid,
    .product-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print styles */
@media print {
    header, .whatsapp-float, .back-to-top, .toast {
        display: none !important;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: none;
        color: var(--dark);
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .product-overlay {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-reveal,
    .scroll-reveal-up,
    .scroll-reveal-left,
    .scroll-reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.nav-links a:focus,
.quote-btn:focus,
.theme-toggle:focus,
.product-nav-btn:focus,
.expand-btn:focus,
.cta-btn:focus,
.submit-btn:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.3);
    }

    .service-card,
    .product-item,
    .testimonial,
    .contact-form {
        border: 2px solid var(--dark);
    }

    .product-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}
