:root {
    --bg-color: #050505;
    --primary-color: #D4AF37;
    --secondary-color: #A0A0A0;
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --card-bg: #111111;
    --nav-bg: rgba(0, 0, 0, 0.5);
    /* Semi-transparent for glass effect */
    --font-main: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* Reset & Scaffolding */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    /* Revealing the #floor-assembling-bg */
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* body::before removed to allow dynamic background to show */

@keyframes shiftPattern {
    0% {
        background-position: 0px 2px;
    }

    100% {
        background-position: 58px 60px;
    }
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.grid {
    display: grid;
    gap: 4rem;
    /* Increased gap for breathability */
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.col-2 {
    /* Main content area */
    grid-column: span 2;
    padding-right: 2rem;
}

.sidebar {
    /* Sidebar styling */
    position: sticky;
    top: 120px;
    /* Stick below navbar */
    height: fit-content;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    background-image: url('wood_pattern.png');
    background-size: cover;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn:hover {
    color: var(--primary-color);
}

.btn-outline {
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark background for contrast */
    color: #fff;
    border: 2px solid #000;
    backdrop-filter: blur(5px);
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-shadow: none;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
    text-shadow: none;
}

/* Navigation & Mega Menu */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    /* Premium glass effect */
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    /* Adjusted for full height links */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px;
    /* Reduced from 140px */
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    /* Reduced from 1.4rem */
    font-weight: 800;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo img {
    height: 60px;
    /* Base size */
    width: 60px;
    border-radius: 50%;
    /* Extreme crop to remove the white ring completely */
    clip-path: circle(40%);
    transform: scale(1.6);
    /* Visual size will be ~96px, fitting within 100px navbar header */
    object-fit: cover;
}

/* Page specific hero for sub-pages */
.page-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 140px;
    /* Ensure clearance for 100px navbar + 40px gap */
    padding-top: 20px;
    /* Extra internal breathing room */
}

/* ... existing styles ... */

/* Dynamic Floor Animation */
#floor-assembling-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    /* Far behind everything */
    background-color: #050505;
    /* Deep dark base */
    overflow: hidden;
    pointer-events: none;
}

.floor-plank {
    position: absolute;
    background-image: url('wood_pattern.png');
    background-size: 300px;
    /* Texture scale */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    /* Inner shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0.5);
    /* Seam definition */
    opacity: 0;

    /* Continuous Loop: Assemble, Hold, Scatter */
    animation: assembleLoop 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes assembleLoop {
    0% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(1.5);
    }

    15% {
        opacity: 0.3;
        /* Assembled */
        transform: translate(0, 0) rotate(0) scale(1);
    }

    85% {
        opacity: 0.3;
        /* Hold */
        transform: translate(0, 0) rotate(0) scale(1);
    }

    100% {
        opacity: 0;
        /* Scatter away */
        transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(0.5);
    }
}

.hero h1 {
    color: var(--primary-color);
    /* Strong black contour/outline */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    /* Strong black contour/outline */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 0;
    /* Remove gap, use padding on links */
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1.5rem;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: #0a0a0a;
    background-image: url('wood_pattern.png');
    background-size: cover;
    background-blend-mode: multiply;
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ccc;
    text-transform: none;
    /* Keep sub-items regular case or check preference */
    border-left: 2px solid transparent;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
    /* Slight shift */
}


/* Hero Section */
/* Hero Section */
/* Hero Section */
.hero {
    /* min-height removed to allow content (video) to define height */
    position: relative;
    background-color: #000;
    /* padding-top to push content down below navbar */
    padding-top: 140px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: block;
    /* Changed from flex to block to let flow handle height */
    margin-top: 0;
}

/* Add spacing for non-hero pages if they exist, or generic padding */
body {
    padding-top: 0;
    /* We handle this via margin on sections */
}

.hero-video-bg {
    position: relative;
    /* Changed from absolute to relative take up space */
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    /* Maintains aspect ratio */
    transform: none;
    /* Remove centering transform */
    display: block;
    z-index: 0;
}


/* Removing overlay div styling as we might not use it based on previous view */
/* Creating specific styling to overlay content on top of the fluid video */
.hero-content {
    position: absolute;
    /* Changed to absolute to sit on TOP of the relative video */
    top: 55%;
    /* Vertically centered-ish */
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered */
    z-index: 2;
    max-width: 800px;
    width: 90%;
    text-align: center;
}

/* Reset for page-hero usage (Area pages) to respect margin/padding flow */
.page-hero .hero-content {
    position: static;
    transform: none;
    margin: 0 auto;
}

/* .hero-content style block removed/merged above */

.hero-logo-large {
    max-width: 400px;
    margin-bottom: 2rem;
}

.hero h1 {
    color: var(--primary-color);
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 4px 5px rgba(0, 0, 0, 0.9);
    /* Heavy black contour/shadow */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-content .btn,
.hero-content .btn-outline {
    background-color: rgba(0, 0, 0, 0.3);
    /* Slight tint for readability */
    background-image: none;
    backdrop-filter: blur(2px);
    border: 1px solid var(--primary-color);
}

.hero-content .btn:hover,
.hero-content .btn-outline:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    /* Glow effect */
}

/* Services Grid */
.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card a {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.service-card a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-card a:hover::after {
    transform: translateX(5px);
}

/* About Snippet */
.about-section {
    background-color: rgba(10, 10, 10, 0.5);
    /* Slight transparency for dynamic bg */
    backdrop-filter: blur(5px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b08d26 100%);
    color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--bg-color);
}

.cta-section h2::after {
    background-color: var(--bg-color);
}

.cta-section .btn {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
    background-color: transparent;
    color: var(--bg-color);
}

/* FAQ */
.faq-item {
    background-color: var(--card-bg);
    margin-bottom: 1rem;
    padding: 2rem;
    border-left: 3px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.faq-item:hover {
    background-color: #1a1a1a;
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

/* Footer */
footer {
    background-color: #020202;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* In real production, would add mobile sandwich menu here */
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Wide Dropdown for Areas */
.dropdown-menu.wide-menu {
    width: 600px;
    max-width: 90vw;
    display: none;
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
    gap: 1rem;
    left: auto;
    right: 0;
    /* Slight offset to center it better under the item if needed, or just right:0 */
    transform: none;
}

/* On smaller screens, keep it fully on screen */
@media (max-width: 768px) {
    .dropdown-menu.wide-menu {
        right: 0;
        left: 0;
        width: 100%;
        position: static;
        /* Stack in mobile view */
    }
}

.nav-item:hover .dropdown-menu.wide-menu {
    display: grid;
}

.dropdown-menu.wide-menu>div {
    display: flex;
    flex-direction: column;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.nav-item:hover .dropdown-menu.wide-menu {
    display: grid;
}