/* EMERALD - Premium Furniture CSS */

/* === Variables === */
:root {
    --emerald-primary: #2c3e50;
    --emerald-gold: #52796f;
    --emerald-wood: #8b7355;
    --color-background: #ffffff;
    --color-secondary: #f8f8f6;
    --color-accent: #3d5a45;
    --color-text-dark: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-border: #e0e0e0;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* === Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-full {
    width: 100%;
    padding: 0;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar {
    padding: 8px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    width: 100%;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.logo a {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--emerald-primary);
    text-shadow: 0 0 20px rgba(82, 121, 111, 0.25);
    transition: all 0.3s ease;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(82, 121, 111, 0.3);
    display: inline-block;
}

.logo a:hover {
    text-shadow: 0 0 25px rgba(82, 121, 111, 0.4);
    letter-spacing: 4.5px;
    border-bottom-color: rgba(82, 121, 111, 0.5);
}

@media (max-width: 1200px) {
    .logo a {
        font-size: 26px;
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 20px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
        order: auto;
    }

    .logo a {
        font-size: 20px;
        letter-spacing: 2px;
        padding-bottom: 5px;
    }

    .nav-menu:not(.nav-menu-right) {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 40px 20px;
        justify-content: flex-start;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu:not(.nav-menu-right) li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        padding: 15px 0;
    }

    .nav-menu:not(.nav-menu-right) li:last-child {
        border-bottom: none;
    }

    .nav-menu:not(.nav-menu-right) a {
        display: block;
        font-size: 16px;
    }

    .nav-menu.nav-menu-right {
        display: none !important;
        position: static !important;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    margin-right: auto;
}

.nav-menu.nav-menu-right {
    margin-right: 15px;
    margin-left: auto;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--emerald-gold);
}

.nav-icons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-icons {
        gap: 10px;
        margin-left: auto;
        order: 3;
    }
}

.icon-btn-wrapper {
    position: relative;
    display: inline-block;
}

.icon-btn {
    color: var(--color-text-dark);
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--emerald-gold);
}

.tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--emerald-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--emerald-primary);
    transform: rotate(45deg);
}

.icon-btn-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    transition: var(--transition);
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === Hamburger Button (Alias for mobile-menu-toggle) === */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    transition: var(--transition);
    display: block;
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 1200px) {
    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 350px;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .scroll-down {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 300px;
        margin-top: 55px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 12px;
    }
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 36px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-primary {
    background: var(--emerald-gold);
    color: white;
}

.btn-primary:hover {
    background: #3d5a45;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(82, 121, 111, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--emerald-primary);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--emerald-primary);
    color: white;
    border-color: var(--emerald-primary);
}

/* === About Section === */
.about {
    padding: 120px 0;
    background: var(--color-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about h1 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--emerald-primary);
}

.about p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-light);
}

@media (max-width: 1200px) {
    .about {
        padding: 80px 0;
    }

    .about h1 {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .about p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }

    .about h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .about p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* === Categories Section === */
.categories {
    padding: 100px 0;
    background: white;
}

.categories-slider {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 30px;
    padding: 0 40px;
}

.category-item {
    text-align: center;
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--color-secondary);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-item h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-dark);
}

@media (max-width: 1200px) {
    .categories {
        padding: 80px 0;
    }

    .categories-slider {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 0 30px;
    }

    .category-item h3 {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .categories {
        padding: 60px 0;
    }

    .categories-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .category-image {
        margin-bottom: 15px;
    }

    .category-item h3 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .categories {
        padding: 40px 0;
    }

    .categories-slider {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .category-item h3 {
        font-size: 11px;
    }
}

/* === New Collection Section === */
.new-collection {
    padding: 100px 0;
    background: var(--color-secondary);
}

.new-collection-content {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.new-collection h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--emerald-primary);
}

.new-collection p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.new-collection-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.new-collection-image img {
    width: 100%;
    height: auto;
}

.new-collection-cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

/* === Footer === */
.footer {
    background: var(--emerald-primary);
    color: white;
    padding: 80px 0 40px;
}

.footer-intro {
    text-align: center;
    margin-bottom: 80px;
}

.footer-intro h2 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: white;
}

.footer-intro p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-intro {
        margin-bottom: 60px;
    }

    .footer-intro h2 {
        font-size: 36px;
    }

    .footer-intro p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 25px;
    }

    .footer-intro {
        margin-bottom: 40px;
    }

    .footer-intro h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .footer-intro p {
        font-size: 14px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section {
    text-align: center;
}

.footer-icon {
    margin-bottom: 20px;
    color: var(--emerald-gold);
}

.footer-icon svg {
    margin: 0 auto;
}

.footer h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
}

.footer p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    font-size: 14px;
    border-radius: 2px;
}

@media (max-width: 1200px) {
    .footer-content {
        gap: 40px;
        margin-bottom: 50px;
    }

    .footer h3 {
        font-size: 20px;
    }

    .footer p {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .newsletter-form {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer p {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 20px;
    }

    .footer h3 {
        font-size: 16px;
    }

    .footer p {
        font-size: 11px;
    }
}

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

.newsletter-form button {
    padding: 12px 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
    background: var(--emerald-gold);
    border-color: var(--emerald-gold);
    color: var(--emerald-primary);
    transform: translateY(-3px);
}

.social-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .social-links {
        gap: 15px;
        margin-top: 15px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 10px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }
}

.footer-section a {
    color: var(--emerald-gold);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a:hover {
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .footer-bottom {
        padding-top: 30px;
        font-size: 12px;
    }

    .footer-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 25px;
    }

    .footer-links {
        gap: 20px;
        order: 2;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        padding-top: 20px;
        font-size: 11px;
    }

    .footer-links {
        gap: 15px;
    }
}

/* === Gallery Section === */
.gallery {
    padding: 100px 0;
    background: var(--color-secondary);
}

.gallery-content {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 20px;
}

.gallery-content h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--emerald-primary);
}

.gallery-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
}

@media (max-width: 1200px) {
    .gallery {
        padding: 80px 0;
    }

    .gallery-content h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .gallery-content p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 60px 0;
    }

    .gallery-content {
        margin: 0 auto 40px;
    }

    .gallery-content h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .gallery-content p {
        font-size: 14px;
    }
}

.gallery-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 50px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

@media (max-width: 768px) {
    .gallery-slider {
        margin: 0 auto 40px;
        border-radius: 8px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .gallery-slider {
        margin: 0 auto 30px;
        border-radius: 6px;
        padding: 0 10px;
    }
}

.gallery-slide {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    animation: fadeIn 0.5s ease-in-out;
}

.gallery-slide.active {
    display: grid;
}

.gallery-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--emerald-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.gallery-btn:hover {
    background: var(--emerald-gold);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-controls {
        gap: 30px;
    }

    .gallery-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .gallery-controls {
        gap: 20px;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
    }
}

.gallery-dots {
    display: flex;
    gap: 12px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.gallery-dot:hover {
    background: var(--color-text-light);
}

.gallery-dot.active {
    background: var(--emerald-primary);
    width: 14px;
    height: 14px;
}

/* === Responsive (Additional tweaks) === */
@media (max-width: 992px) {
    .gallery-slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-slide img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .gallery-slide {
        grid-template-columns: 1fr;
    }

    .gallery-slide img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .gallery-slide img {
        height: 240px;
    }
}
