body {
    box-sizing: border-box;
}

:root {
    --primary: #C18D67;
    --dark-bg: #163138;
    --secondary-bg: #1E3940;
    --accent: #855F42;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    height: 100%;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 3D Assembly Container */
.assembly-container {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Furniture Pieces */
.furniture-piece {
    position: absolute;
    transform-style: preserve-3d;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.piece-body {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    position: relative;
    transform-style: preserve-3d;
}

.piece-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.03) 8px,
            rgba(255, 255, 255, 0.03) 9px);
    border-radius: 8px;
}

.piece-top {
    width: 220px;
    height: 25px;
    background: linear-gradient(135deg, #d4a574 0%, var(--primary) 100%);
    border-radius: 6px;
    position: relative;
}

.piece-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.05) 4px,
            rgba(255, 255, 255, 0.05) 5px);
    border-radius: 6px;
}

.piece-side {
    width: 18px;
    height: 100px;
    background: linear-gradient(180deg, var(--accent) 0%, #6b4930 100%);
    border-radius: 4px;
}

.piece-shelf {
    width: 180px;
    height: 15px;
    background: linear-gradient(90deg, var(--primary) 0%, #d4a574 100%);
    border-radius: 3px;
}

.piece-drawer {
    width: 85px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #6b4930 100%);
    border-radius: 4px;
    position: relative;
}

.piece-drawer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
}

.piece-leg {
    width: 15px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent) 0%, #4a3525 100%);
    border-radius: 3px;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
}

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

/* Glow Effect */
.glow-effect {
    box-shadow: 0 0 60px rgba(193, 141, 103, 0.3);
}

/* Text Animations */
.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-20deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.char-reveal.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Section Reveal */
.section-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Elements */
.parallax-layer {
    transition: transform 0.1s ease-out;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(30, 57, 64, 0.5) 100%);
    border: 1px solid rgba(193, 141, 103, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 141, 103, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(193, 141, 103, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

/* Project Gallery */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 49, 56, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}

.btn-primary::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 ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(193, 141, 103, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: dividerShine 3s infinite;
}

@keyframes dividerShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Partner Logos */
.partner-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Form Inputs */
.form-input {
    background: rgba(30, 57, 64, 0.5);
    border: 1px solid rgba(193, 141, 103, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(193, 141, 103, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 10s infinite ease-in-out;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(50px, -100px) scale(1.5);
        opacity: 0.6;
    }
}

/* Navigation */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Icon Animations */
.icon-pulse {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Progress Bar */
.assembly-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 100;
    transition: width 0.1s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Wood Grain Texture Overlay */
.wood-texture {
    background-image:
        repeating-linear-gradient(120deg,
            transparent,
            transparent 1px,
            rgba(193, 141, 103, 0.03) 1px,
            rgba(193, 141, 103, 0.03) 2px);
}

/* Animated Background Gradient */
.animated-bg {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-bg) 50%, var(--dark-bg) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Stagger Animation Classes */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

.project-overlay {
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transition: background 0.4s ease, opacity 0.4s ease;
}

.lightbox.active {
  background: rgba(0,0,0,0.85);
  opacity: 1;
}

.lightbox-content {
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.hidden {
  display: none;
}

@font-face {
  font-family: 'CopperplateGothic';
  src: url('../inputs/fonts/Copperplate-Gothic-Std-32-AB.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.brand-font {
  font-family: 'CopperplateGothic', serif;
  letter-spacing: 0.08em;
}