/* 
   New Forest Premium Theme 
   Palette: Forest Green, Crisp White, Sand/Gold Accent
*/

:root {
    --primary-color: #0F3D3E;
    /* Deep Forest Teal */
    --primary-light: #1A5F60;
    --accent-color: #D4AF37;
    /* Muted Gold */
    --text-dark: #2C3333;
    --text-light: #F0F2F5;
    --bg-light: #FFFFFF;
    --bg-offwhite: #F9FAFB;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.intro-text {
    font-size: 1.1rem;
    color: #666;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scrolling-text span {
    margin-right: 15px;
}

.separator {
    color: var(--accent-color);
    margin: 0 5px;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
    font-weight: 500;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--text-light);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.logo-accent {
    color: var(--accent-color);
    font-size: 2rem;
    line-height: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(135deg, #0F3D3E 0%, #172a2a 100%);
    /* Fallback until image */
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

/* Use CSS Pattern/Gradient as placeholder for image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?q=80&w=2074&auto=format&fit=crop') no-repeat center center/cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Features */
.features {
    padding: 60px 0;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top: 3px solid var(--accent-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Products */
.products {
    padding: 80px 0;
    background-color: var(--bg-offwhite);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Placeholder colored backgrounds for products */
.card-image {
    height: 250px;
    background-color: #ddd;
    position: relative;
    width: 100%;
}

.elastic-bg {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

/* Light Blue */
.outdoor-bg {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

/* Teal/Green */
.urban-bg {
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

/* Purple/Blue */

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--text-dark);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-info p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    height: 60px;
}

/* Forced height for alignment */
.specs {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.specs li i {
    margin-right: 5px;
}

/* Trust Section */
.trust-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.trust-content {
    max-width: 800px;
    margin: 0 auto;
}

.trust-content h2 {
    color: white;
    margin-bottom: 30px;
}

.trust-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 50px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px !important;
}

.qr-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 140px;
}

.qr-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.qr-box span {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .features .container,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Typography */
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Mobile Grids */
    .features .container,
    .footer-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Dye Lab Mobile */
    .dye-container {
        flex-direction: column;
        gap: 20px;
    }

    .fabric-preview {
        gap: 15px;
    }

    .fabric-img {
        width: 120px;
        height: 120px;
    }

    .fabric-item span {
        font-size: 0.9rem;
    }

    .color-controls {
        width: 100%;
        padding: 0 10px;
    }
}

/* Dye Lab Section */
.dye-lab {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.dye-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.fabric-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.fabric-item {
    text-align: center;
}

.fabric-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fabric-img:hover {
    transform: scale(1.05);
}

.fabric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dye-color, #ff004c);
    mix-blend-mode: multiply;
    transition: background-color 0.2s ease;
}

.fabric-item span {
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
}

.color-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

input[type="color"]:hover {
    transform: scale(1.1);
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

.color-controls label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hue Slider */
.hue-slider {
    -webkit-appearance: none;
    width: 80%;
    max-width: 800px;
    height: 30px;
    border-radius: 15px;
    background: linear-gradient(to right, red, orange, yellow, lime, cyan, blue, magenta, red);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hue-slider:hover {
    opacity: 1;
}

.hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: 4px solid #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.hue-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.hue-slider::-moz-range-thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: 4px solid #333;
    cursor: pointer;
}/* Rainbow Water Wave Text Effect */
.shimmer-text {
    background: linear-gradient(to right,
            #ff0000,
            #ff7f00,
            #ffff00,
            #00ff00,
            #0000ff,
            #4b0082,
            #9400d3,
            #ff0000);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbow-flow 2s linear infinite;
    display: inline-block;
    /* Ensures background covers correctly */
}

/* Ensure inner spans inherit the transparent color to show the background */
.shimmer-text span {
    color: transparent !important;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes rainbow-flow {
    to {
        background-position: 200% center;
    }
}
