/* CSS Variables & Theme */
:root {
    /* Colors - Refreshingly Pure Theme */
    --color-primary: #00838f;
    /* Deep Teal */
    --color-primary-dark: #006064;
    --color-primary-light: #e0f7fa;
    --color-accent: #26c6da;
    /* Bright Cyan */
    --color-text-main: #263238;
    --color-text-light: #546e7a;
    --color-bg-body: #ffffff;
    --color-bg-light: #f5fcfd;
    /* Very subtle cyan tint */
    --color-white: #ffffff;
    --color-border: #b2ebf2;

    /* Spacing - 8px Grid System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;

    /* Typography */
    --font-family-base: 'Outfit', sans-serif;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 3rem;
    --fs-4xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(0, 96, 100, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 96, 100, 0.15);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-text-main: #e0f7fa;
    --color-text-light: #b0bec5;
    --color-bg-body: #121212;
    --color-bg-light: #1e1e1e;
    --color-white: #263238;
    --color-border: #37474f;
    --color-primary-light: #004d40;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Fixed Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: var(--shadow-hover);
    transition: var(--transition-base), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    background-color: var(--color-primary-dark);
}

/* Icon visibility */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Dark mode specific section overrides */
[data-theme="dark"] .section.quality.bg-light,
[data-theme="dark"] .product-card,
[data-theme="dark"] .contact-wrapper,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border-color: var(--color-border);
}

[data-theme="dark"] .header {
    background-color: rgba(18, 18, 18, 0.95);
}

[data-theme="dark"] .footer {
    background-color: #000000;
}



/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--space-10) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-1) var(--space-2);
    font-size: var(--fs-sm);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography Utilities */
.section-tag {
    display: inline-block;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: var(--fs-3xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.section-desc {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: var(--space-2) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-left: var(--space-2);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    margin: 5px 0;
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--space-10) + var(--space-8));
    padding-bottom: var(--space-10);
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #e0f2f1 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--fs-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-5);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-image img {
    border-radius: 20px;
}

.feature-list {
    margin-top: var(--space-4);
}

.feature-list li {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-lg);
    font-weight: 500;
}

.check-icon {
    color: var(--color-primary);
    font-weight: bold;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    justify-content: center;
}

.product-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    background-color: var(--color-bg-light);
    padding: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-info {
    padding: var(--space-4);
    text-align: center;
}

.product-info h3 {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-1);
}

.product-price {
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.product-desc {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-3);
}

/* Quality Section */
.quality {
    background-image: url('quality-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.quality::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 96, 100, 0.6);
    /* Overlay for readability */
    z-index: 1;
}

.quality .container {
    position: relative;
    z-index: 2;
}

.quality .section-tag,
.quality .section-title,
.quality .section-desc {
    color: var(--color-white);
}

.quality .section-tag {
    color: var(--color-accent);
    /* Keep accent or make white? White might be better on dark overlay */
}

/* Override utility if needed or let specificity handle it */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.process-item {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary-light);
    opacity: 0.5;
    z-index: 0;
}

.process-item h3 {
    position: relative;
    z-index: 1;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.process-item p {
    position: relative;
    z-index: 1;
    color: var(--color-text-light);
    font-size: var(--fs-sm);
}



/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-6);
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.contact-info {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-6);
}

.contact-info h2 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-5);
}

.contact-details .contact-item {
    margin-bottom: var(--space-4);
}

.contact-item strong {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--color-accent);
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    padding: var(--space-6);
}

.contact-form h3 {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--fs-base);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Footer */
.footer {
    background-color: #004d40;
    color: var(--color-white);
    padding-top: var(--space-10);
    padding-bottom: var(--space-4);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: var(--space-2);
}

.footer-links h4,
.footer-social h4 {
    color: var(--color-accent);
    margin-bottom: var(--space-3);
    font-size: var(--fs-lg);
}

.footer-links ul li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: var(--space-2);
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--color-white);
    font-size: var(--fs-sm);
    font-weight: bold;
}

.social-icons a:hover {
    background: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .section-title {
        font-size: var(--fs-2xl);
    }

    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content,
    .about-content {
        order: 1;
    }

    .hero-image,
    .about-image {
        order: 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 var(--space-2);
    }

    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-base);
        padding: var(--space-6);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-6);
        font-size: var(--fs-xl);
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .js-ready .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .js-ready .fade-in-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .js-ready .fade-in-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .delay-100 {
        transition-delay: 0.1s;
    }

    .delay-200 {
        transition-delay: 0.2s;
    }

    .delay-300 {
        transition-delay: 0.3s;
    }
}