/* ========================================
   DEODAR - Premium Wooden Panels Website
   ======================================== */

/* CSS Variables */
:root {
    --color-dark: #121212;
    --color-accent: #64748B; /* Blue-gray accent */
    --color-accent-light: #94A3B8;
    --color-cream: #F5F5F3;
    --color-grey: #888888;
    --color-white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========================================
   NAVIGATION - Hides on scroll
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 80px;
    transition: transform 0.4s var(--transition-smooth), opacity 0.4s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-line {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--color-white);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--color-white);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-dark);
    z-index: 999;
    transition: right 0.5s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    right: 0;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin: 24px 0;
    overflow: hidden;
}

.menu-links a {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-white);
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.menu-links a:hover::after,
.menu-links a.active::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: var(--color-white);
    padding: 0 48px;
    padding-left: 80px;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Hero Animations */
.animate-slide {
    opacity: 0;
    transform: translateX(60px);
    animation: slideIn 0.8s ease forwards;
}

.animate-slide.delay-1 {
    animation-delay: 0.2s;
}

.animate-slide.delay-2 {
    animation-delay: 0.4s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-catalogue {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-catalogue:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-textures {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-textures:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-white), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   FEATURED SECTION
   ======================================== */
.featured {
    padding: 140px 48px;
    background: var(--color-cream);
}

.featured-content {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.featured-text {
    font-size: 1.1rem;
    color: var(--color-grey);
    line-height: 1.8;
}

.featured-image-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
}

.featured-image-wrapper {
    transform: scale(0.85);
    transition: transform 0.3s ease-out;
}

.featured-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========================================
   SERIES SECTION - HORIZONTAL SCROLL (Fixed)
   ======================================== */
.series-section {
    position: relative;
    background: var(--color-dark);
}

.series-wrapper {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--color-dark);
}

.series-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.series-slide {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 80px;
    gap: 80px;
    flex-shrink: 0;
    box-sizing: border-box;
    background: var(--color-dark);
}

.series-slide:nth-child(even) {
    flex-direction: row-reverse;
}

.series-image {
    flex: 1;
    height: 70vh;
    overflow: hidden;
}

.series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.series-slide:hover .series-image img {
    transform: scale(1.05);
}

/* 3D Model Container */
.series-model {
    flex: 1;
    height: 70vh;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.series-model canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Fallback images - hidden on desktop */
.series-fallback-img {
    display: none;
}

.series-info {
    flex: 1;
    color: var(--color-white);
    padding: 40px;
}

.series-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 300;
    color: var(--color-accent);
    opacity: 0.6;
    display: block;
    margin-bottom: 20px;
}

.series-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 20px;
}

.series-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-grey);
    margin-bottom: 40px;
    max-width: 400px;
}

.btn-know-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    position: relative;
    padding-bottom: 8px;
}

.btn-know-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-know-more:hover::after {
    transform: scaleX(1);
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    padding: 140px 48px;
    background: var(--color-cream);
    text-align: center;
}

.map-content {
    margin-bottom: 60px;
}

.map-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.map-subtitle {
    font-size: 1rem;
    color: var(--color-grey);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.world-map {
    width: 100%;
    filter: grayscale(100%) contrast(0.8);
    opacity: 0.6;
}

/* Country Maps Grid */
.country-maps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.country-map-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-map-container {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-map-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    opacity: 0.85;
}

.country-map-container .map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.country-map-label {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

@media (max-width: 900px) {
    .country-maps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .country-map-container {
        height: 180px;
    }
}

/* Map Markers */
.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
}

.map-marker.uae {
    top: 36%;
    left: 60%;
}

.map-marker.germany {
    top: 27%;
    left: 52%;
}

.map-marker.qatar {
    top: 36%;
    left: 58%;
}

.marker-dot {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.marker-dot:hover {
    transform: scale(1.3);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.marker-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-marker:hover .marker-label {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ========================================
   FOOTER - Modern & Attractive
   ======================================== */
.footer {
    background: var(--color-dark);
    padding: 100px 48px 50px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-tagline {
    color: var(--color-grey);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-cta {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 28px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--color-grey);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.footer-contact p {
    color: var(--color-grey);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-grey);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--color-grey);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--color-grey);
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }
    
    .menu-links a {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .featured {
        padding: 80px 24px;
    }
    
    .featured-image {
        height: 400px;
    }
    
    /* Mobile: Stack series vertically */
    .series-section {
        height: auto !important;
    }
    
    .series-wrapper {
        position: relative;
        height: auto;
    }
    
    .series-track {
        flex-direction: column;
        width: 100%;
        transform: none !important;
    }
    
    .series-slide {
        width: 100%;
        min-width: 100%;
        height: auto;
        flex-direction: column !important;
        padding: 60px 24px;
        gap: 40px;
    }
    
    .series-image {
        height: 300px;
        width: 100%;
    }
    
    .series-info {
        padding: 0;
        text-align: center;
    }
    
    .series-desc {
        max-width: 100%;
    }
    
    .series-number {
        font-size: 3rem;
    }
    
    /* Hide 3D models on mobile - too heavy */
    .series-model {
        display: none !important;
    }
    
    .series-fallback-img {
        display: block !important;
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .map-section {
        padding: 80px 24px;
    }
    
    .footer {
        padding: 60px 24px 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
