/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Wood-inspired Color Palette */
    --primary-500: #8B4513; /* Saddle Brown */
    --primary-700: #654321; /* Dark Brown */
    --primary-300: #CD853F; /* Peru */
    --primary-100: #DEB887; /* Burlywood */
    
    /* Warm Accent Colors */
    --accent-orange: #D2691E; /* Chocolate */
    --accent-gold: #DAA520; /* Golden Rod */
    --accent-amber: #FFBF00;
    
    /* Neutral Colors */
    --neutral-900: #000000;
    --neutral-600: #000000;
    --neutral-400: #A8A29E;
    --neutral-300: #D6D3D1;
    --neutral-200: #FFFFFF;
    --neutral-50: #F7F5F4;
    
    /* Status Colors */
    --success: #16A34A;
    --warning: #F97316;
    --error: #DC2626;
    
    /* Wood Texture Gradients */
    --wood-gradient: linear-gradient(135deg, #DEB887 0%, #CD853F 50%, #8B4513 100%);
    --warm-gradient: linear-gradient(135deg, #FFBF00 0%, #D2691E 50%, #8B4513 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--neutral-900);
}

h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--neutral-900);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--neutral-900);
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Header */
.header {
    background: var(--neutral-200);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-100);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-500);
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
}

.hamburger {
    display: none;
}

.nav {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--neutral-900);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav a:hover {
    color: var(--primary-500);
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wood-gradient);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 160px 0 96px;
    text-align: center;
    background: 
        linear-gradient(rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0.6)),
        url('../imgs/hero_wood_texture_0.jpg') center/cover;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wood-gradient);
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 64px;
    margin-bottom: 32px;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;   
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--warm-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-500);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 96px 0;
    background: var(--neutral-50);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-500);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--wood-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--neutral-600);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.service-card {
    background: var(--neutral-200);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-100);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wood-gradient);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(139, 69, 19, 0.15);
    border-color: var(--primary-300);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--wood-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.service-card h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-500);
}

.service-card p {
    color: var(--neutral-600);
    margin-bottom: 24px;
    font-size: 17px;
}

/* Inventory Section */
.inventory {
    padding: 96px 0;
    background: 
        linear-gradient(rgba(222, 184, 135, 0.1), rgba(205, 133, 63, 0.1)),
        url('../imgs/services_wood_image_7.jpg') center/cover;
    background-attachment: fixed;
    position: relative;
}

.inventory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 245, 244, 0.95);
    z-index: 1;
}

.inventory .container {
    position: relative;
    z-index: 2;
}

.inventory-table {
    background: var(--neutral-200);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.15);
    margin-top: 48px;
    border: 2px solid var(--primary-100);
}

.table-header {
    background: var(--wood-gradient);
    padding: 32px;
    color: white;
}

.table-header h3 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.inventory-grid {
    display: grid;
    gap: 0;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--primary-100);
    transition: all 0.3s ease;
    align-items: center;
    background: var(--neutral-200);
}

.table-row:hover {
    background: var(--primary-100);
    transform: translateX(4px);
}

.table-row:last-child {
    border-bottom: none;
}

.wood-type {
    font-weight: 600;
    color: var(--primary-500);
    font-size: 17px;
}

.wood-details {
    font-size: 15px;
    color: var(--neutral-600);
}

.price {
    font-weight: 600;
    color: var(--accent-orange);
    font-size: 17px;
}

.stock-status {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.in-stock {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.2));
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.low-stock {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
    color: var(--warning);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.wood-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-right: 12px;
}

/* Contact Section */
.contact {
    padding: 96px 0;
    background: var(--neutral-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
}

.contact-info {
    background: var(--neutral-200);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1);
    border: 2px solid var(--primary-100);
}

.contact-info h3 {
    color: var(--primary-500);
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--neutral-600);
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-form {
    background: var(--neutral-200);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.15);
    border: 2px solid var(--primary-300);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-500);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--neutral-300);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: var(--neutral-50);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-300);
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.15);
    background: var(--neutral-200);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--neutral-900), var(--primary-700));
    color: var(--neutral-200);
    padding: 64px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wood-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--neutral-600);
    color: var(--neutral-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    
    .hero h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
        padding: 20px 24px;
    }

    .table-header {
        display: none;
    }

    .nav {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .service-card,
    .contact-form,
    .contact-info {
        padding: 24px;
    }

    .nav.show {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: var(--neutral-200);
        padding: 20px;
        position: absolute;
        top: 60px;
        right: 20px;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    .nav.show {
        display: flex;
    }

    .hamburger {
        display: block;
        font-size: 30px;
        background: none;
        border: none;
        color: var(--primary-500);
        cursor: pointer;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.table-row {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation for Images */
.loading {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--primary-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}