/* Font Faces */
@font-face {
    font-family: 'Rawgly';
    src: url('Fonts/Rawgly.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Color Palette */
:root {
    --primary: #F5A84F;
    --secondary: #EDE4CE;
    --brown: #64401B;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-mid: #666666;
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Rawgly', 'Montserrat', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    /* Fix selection issues with custom font */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 25px 20px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    top: 15px;
    left: 60px;
    right: 60px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-logo h1 {
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--white);
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-logo h1 {
    color: var(--brown);
    text-shadow: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.navbar.scrolled .nav-menu a {
    color: var(--black);
    text-shadow: none;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cart {
    position: relative;
    cursor: pointer;
    padding: 10px;
    transition: all 0.4s ease;
    color: var(--white);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
    margin-left: auto;
}

.navbar.scrolled .nav-cart {
    color: var(--black);
    filter: none;
}

.nav-cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Gradient Background */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d4c5a8 0%, #e8e0d0 50%, #e89d3f 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-gradient.visible {
    opacity: 1;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    transition: opacity 2s ease;
}

.hero-video.fade-out {
    opacity: 0;
}

/* Dark Overlay for Video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: opacity 2s ease;
}

.hero-overlay.fade-out {
    opacity: 0;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 2s ease, text-shadow 2s ease;
}

.hero-title {
    font-size: clamp(60px, 10vw, 120px);
    color: var(--white);
    margin-bottom: 30px;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    transition: color 2s ease, text-shadow 2s ease;
}

.hero-description {
    font-size: 20px;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 2s ease, text-shadow 2s ease;
}

/* Gradient mode text colors */
.hero.gradient-mode .hero-subtitle {
    color: var(--brown);
    text-shadow: none;
}

.hero.gradient-mode .hero-title {
    color: var(--black);
    text-shadow: none;
}

.hero.gradient-mode .hero-description {
    color: var(--gray-mid);
    text-shadow: none;
}

.hero.gradient-mode .mouse {
    border-color: var(--brown);
}

.hero.gradient-mode .mouse::before {
    background: var(--brown);
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--brown);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border: 2px solid var(--brown);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 168, 79, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 11;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: border-color 2s ease, box-shadow 2s ease;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
    transition: background 2s ease;
}

@keyframes bounce {

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

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease 0.9s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title */
.section-title {
    font-size: clamp(40px, 6vw, 60px);
    text-align: center;
    margin-bottom: 80px;
    color: var(--brown);
    letter-spacing: -1px;
}

/* Gallery Collage Section */
.gallery-section {
    padding: 120px 0;
    background: var(--white);
}

.gallery-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Different sizes for collage effect */
.gallery-large {
    grid-column: span 3;
    aspect-ratio: 16/9;
}

.gallery-wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-tall {
    grid-column: span 1;
    aspect-ratio: 3/4;
}

.gallery-extra-tall {
    grid-column: span 1;
    aspect-ratio: 3/4;
}

.gallery-medium {
    grid-column: span 1;
    aspect-ratio: 3/4;
}

.gallery-small {
    grid-column: span 1;
    aspect-ratio: 3/4;
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rawgly', sans-serif;
    font-size: 28px;
    color: var(--white);
    transition: transform 0.6s ease;
    position: relative;
}

.gallery-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-item:hover .gallery-image::after {
    opacity: 1;
}

.gallery-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-image-real.zoomed {
    transform: scale(1.3);
}

.gallery-image-real.shift-left {
    object-position: 35% center;
}

.gallery-item:hover .gallery-image-real {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-image-real.zoomed {
    transform: scale(1.35);
}


/* Products Section */
.products-section {
    padding: 120px 0;
    background: var(--gray-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--brown);
    color: var(--brown);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 64, 27, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.placeholder-product {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rawgly', sans-serif;
    font-size: 24px;
    color: var(--white);
    transition: transform 0.6s ease;
}

.product-card:hover .placeholder-product {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.quick-view {
    padding: 15px 35px;
    background: var(--white);
    color: var(--brown);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.quick-view:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--brown);
    font-weight: 600;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 18px;
    color: var(--gray-mid);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-top: 40px;
}

.about-features li {
    font-size: 18px;
    color: var(--brown);
    margin-bottom: 15px;
    font-weight: 500;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
}

.placeholder-about {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rawgly', sans-serif;
    font-size: 32px;
    color: var(--white);
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--brown) 0%, var(--black) 100%);
    color: var(--white);
}

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

.newsletter-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 18px 40px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;
}

.newsletter-form button:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 168, 79, 0.3);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-column p {
    opacity: 0.8;
    font-weight: 300;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 300;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 300;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 14px;
    font-weight: 300;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span {
    background-color: var(--black);
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .navbar {
        background: var(--white);
        padding: 15px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-logo h1 {
        color: var(--black);
        text-shadow: none;
    }

    .nav-cart {
        color: var(--black);
        filter: none;
    }

    .menu-toggle span {
        background-color: var(--black);
    }

    .nav-container {
        padding: 0;
        justify-content: space-between;
    }

    .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        /* Left side */
        z-index: 1002;
    }

    .nav-logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        width: auto;
        white-space: nowrap;
    }

    .nav-cart {
        order: 3;
        /* Right side */
        margin: 0;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.4s ease;
        transform: none;
        /* Reset desktop transform */
        z-index: 1000;
        /* Behind navbar elements */
        padding-top: 80px;
        /* Space for navbar */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        color: var(--black);
        font-size: 24px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .nav-menu a::after {
        background: var(--primary);
    }

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

    .hero-description {
        font-size: 16px;
        padding: 0 20px;
    }

    .section-title {
        font-size: 36px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column ul li a:hover {
        padding-left: 0;
        /* Remove hover shift on mobile */
    }

    .social-links {
        align-items: center;
    }

    /* Newsletter Mobile */
    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }

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

    /* Reduce spacing on mobile */
    .gallery-section {
        padding: 60px 0 30px;
        /* Reduced bottom padding */
    }

    .about-section {
        padding: 30px 0 60px;
        /* Reduced top padding */
    }
}

@media (max-width: 480px) {
    .nav-logo h1 {
        font-size: 16px;
    }

    .nav-cart svg {
        width: 20px;
        height: 20px;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
    }

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

/* Utility Classes */
.no-scroll {
    overflow: hidden !important;
    height: 100vh;
    /* Prevent scrolling on mobile */
    touch-action: none;
    /* Disable touch scrolling */
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}