/* ============================================
   SAWDUST, INC. - Custom Styles
   Fine Architectural Wood Working
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-dark: #1a1510;
    --color-brown-dark: #2d1f14;
    --color-brown: #4a3728;
    --color-brown-light: #6b4d3a;
    --color-tan: #c9a86c;
    --color-tan-light: #d4b896;
    --color-cream: #f5efe6;
    --color-gold: #c4a35a;
    --color-gold-dark: #8b6914;
    --color-white: #ffffff;
    --color-gray-light: #e8e4df;
    
    /* Typography */
    --font-script: 'Pinyon Script', cursive;
    --font-elegant: 'Cormorant Garamond', serif;
    --font-sans: 'Poppins', sans-serif;
    
    /* Spacing */
    --sidebar-width: 220px;
    --sidebar-width-mobile: 280px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-gray-light);
    color: var(--color-brown-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

/* ============================================
   VIDEO BACKGROUND (Home Page)
   ============================================ */
.video-background {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 228, 223, 0.3) 0%, rgba(232, 228, 223, 0.1) 100%);
}

/* ============================================
   SOUND CONTROL BUTTON
   ============================================ */
.sound-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-cream);
    background: rgba(45, 31, 20, 0.9);
    color: var(--color-cream);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sound-control:hover {
    background: var(--color-brown);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.sound-control i {
    transition: transform 0.2s ease;
}

.sound-control:active i {
    transform: scale(0.9);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1000;
    overflow: hidden;
    background-color: #2d1f14;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: url('../assets/images/frame.png');
    background-size: cover;
    z-index: -1;
    border-radius: 12px;
background-position: center;
}

/* Wood grain texture overlay */


.sidebar-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 1;
}

/* Logo */
.sidebar-logo {
    margin-bottom: 50px;
    text-align: center;
}

.logo-text {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-cream);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: block;
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-cream);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
    text-align: center;
}

/* All nav links hover and active states - styled like WHO WE ARE */
.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    background: rgba(209, 184, 143, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-right: none;
    border-radius: 6px;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-left: 20px;
}

.nav-link .bi-chevron-down {
    font-size: 0.6rem;
    margin-left: 5px;
    transition: var(--transition-base);
}

.nav-item.dropdown:hover .bi-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(45, 31, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0;
    min-width: 180px;
}

.dropdown-item {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-cream);
    padding: 10px 20px;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Sidebar Badge */
.sidebar-badge {
    margin-top: auto;
    position: relative;
}

.badge-content {
    position: relative;
    background: linear-gradient(135deg, #d4a574 0%, #c9a86c 50%, #b8956a 100%);
    padding: 15px 20px;
    text-align: center;
    transform: rotate(-5deg);
    box-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid #a0522d;
}

.badge-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.badge-fine {
    display: block;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-cream);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.badge-architectural {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-cream);
    margin-top: 5px;
}

.badge-woodworking {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-cream);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
}

/* Hero Content (Home Page) */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
}

.floating-sawblade {
    animation: float 6s ease-in-out infinite;
}

.sawblade-img {
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Corner Sawblade */
.corner-sawblade {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.3;
}

.corner-sawblade img {
    width: 60px;
    height: 60px;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-page {
    background: var(--color-dark);
}

.about-page .main-content {
    position: relative;
}

.wood-background {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    z-index: -1;
    background: 
        linear-gradient(
            135deg,
            rgba(210, 180, 140, 0.9) 0%,
            rgba(205, 175, 135, 0.85) 25%,
            rgba(200, 170, 130, 0.9) 50%,
            rgba(195, 165, 125, 0.85) 75%,
            rgba(190, 160, 120, 0.9) 100%
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(139, 90, 43, 0.05) 100px,
            rgba(139, 90, 43, 0.05) 102px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(160, 82, 45, 0.03) 50px,
            rgba(160, 82, 45, 0.03) 51px
        );
    background-color: #c9a86c;
}

.wood-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(139, 90, 43, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 90, 43, 0.08) 0%, transparent 40%);
background-image: url('../assets/images/bg.png');
    }

/* Decorative Sawblade */
.decorative-sawblade {
    position: fixed;
    top: -100px;
    right: -100px;
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
}


.decorative-sawblade img {
    width: 350px;
    height: 350px;
    animation: rotateSawblade 20s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
}

@keyframes rotateSawblade {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* About Content */
.about-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-brown);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-elegant);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-brown-dark);
    font-style: normal;
}

/* Commitment List */
.commitment-list {
    max-width: 900px;
    margin: 0 auto;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 0px;
    padding: 15px 0;
    transition: var(--transition-base);
}

.commitment-item:hover {
    transform: translateX(10px);
}

.commitment-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-brown-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.commitment-number span {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-brown);
}

.commitment-image {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 0px;
    object-fit: contain;
}

.commitment-text {
    flex: 1;
    padding-top: 0;
}

.commitment-text p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-brown-dark);
    line-height: 1.6;
    margin: 0;
    text-transform: uppercase;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background-image: 
        linear-gradient(180deg, rgba(209, 184, 143, 0.10) 0%, rgba(72, 40, 25, 0.20) 100%),
        url('../assets/images/dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.services-section .section-subtitle {
    color: #D1B88F;
}

.services-section .section-title {
    color: #D1B88F;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: linear-gradient(180deg, rgba(209, 184, 143, 0.10) 0%, rgba(72, 40, 25, 0.20) 100%);
    border: 1px solid rgba(196, 169, 122, 0.3);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
}

.service-item:hover {
    background: rgba(45, 31, 20, 0.95);
    border-color: rgba(196, 169, 122, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-item span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #D1B88F;
    text-transform: uppercase;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-footer {
    margin-top: 60px;
}

.services-company-name {
    max-width: 300px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.services-tagline {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #D1B88F;
    text-transform: uppercase;
    margin: 0;
}

.services-dark-end {
    width: 100%;
    height: 150px;
    background: var(--color-brown-dark);
    margin-top: 60px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    padding: 20px;
    z-index: 10;
}

.footer-line {
    height: 2px;
    background: linear-gradient(90deg, var(--color-brown-dark) 0%, transparent 100%);
    max-width: 100px;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border: none;
    background: var(--color-brown);
    color: var(--color-cream);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.mobile-menu-toggle:hover {
    background: var(--color-brown-dark);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width-mobile);
        transition: var(--transition-slow);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .video-background {
        left: 0;
    }
    
    .wood-background {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-footer {
        left: 0;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .sawblade-img {
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .decorative-sawblade {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767.98px) {
    .commitment-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .commitment-text {
        padding-top: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 40px 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .service-item {
        padding: 18px 12px;
    }
    
    .service-item span {
        font-size: 0.7rem;
    }
    
    .services-company-name {
        font-size: 2rem;
    }
    
    .services-tagline {
        font-size: 0.65rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold {
    color: var(--color-gold);
}

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

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ============================================
   WELCOME SCREEN
   ============================================ */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1510 0%, #2d1f14 50%, #1a1510 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.welcome-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    color: var(--color-cream);
}

.welcome-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    animation: spin 20s linear infinite;
    filter: drop-shadow(0 0 20px rgba(196, 163, 90, 0.5));
}

.welcome-content h1 {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.enter-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-dark);
    border: none;
    padding: 18px 50px;
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.enter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(196, 163, 90, 0.4);
}

.enter-btn i {
    font-size: 1.5rem;
}

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

/* ============================================
   SOUND BUTTON
   ============================================ */
.sound-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(196, 163, 90, 0.9);
    border: 2px solid var(--color-gold);
    color: var(--color-dark);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sound-btn:hover {
    transform: scale(1.1);
    background: var(--color-gold);
    box-shadow: 0 6px 25px rgba(196, 163, 90, 0.5);
}

.sound-btn.sound-on {
    background: var(--color-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(196, 163, 90, 0.5); }
    50% { box-shadow: 0 4px 25px rgba(196, 163, 90, 0.8); }
}


