@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-red: #A11B1B; /* Deep Menu Red */
    --gold: #FDBF14; /* Vibrant Gold */
    --dark-overlay: rgba(30, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-red);
    color: var(--text-primary);
    scroll-behavior: smooth;
    line-height: 1.6;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInDown 1s ease-out;
}

.main-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(253, 191, 20, 0.4));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
    color: var(--gold);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

nav {
    position: sticky;
    top: 0;
    margin: 0;
    width: 100%;
    background: rgba(161, 27, 27, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
    padding: 0 20px;
    margin: 0;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 50px;
    opacity: 0.7;
}

nav a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

nav a.active {
    color: var(--primary-red);
    background: var(--gold);
    opacity: 1;
    box-shadow: 0 0 15px rgba(253, 191, 20, 0.4);
}

main {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section {
    margin-bottom: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

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

.product-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.product-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(253, 191, 20, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    /* Remove vertical movement and border highlight as requested */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

.product-img-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: var(--transition);
}

.extra-img {
    position: absolute;
    width: 35%;
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    z-index: 5;
    transition: var(--transition);
    pointer-events: none;
}

.extra-bun-1 {
    bottom: 5%;
    left: -5%;
    transform: rotate(-10deg);
}

.extra-bun-2 {
    bottom: 5%;
    right: -5%;
    transform: rotate(10deg);
}

.extra-special-1 {
    bottom: -5%;
    right: -15%;
    width: 42%;
}

.extra-chili-1 {
    bottom: -5%;
    left: -15%;
    width: 42%;
}

/* Smaller and aligned sauces for Box Products (2 & 3 sauces) */
.box-2sous .extra-img,
.box-3sous .extra-img {
    width: 38%; /* Smaller sauce icons */
    bottom: -5% !important; /* Move to the very bottom */
    transform: none; /* Removed !important to allow hover animations */
}

/* 2 Sauces aligned */
.box-2sous .extra-special-1 {
    left: 5%;
    right: auto;
}
.box-2sous .extra-special-2 {
    right: 5%;
    left: auto;
}

/* 3 Sauces aligned */
.box-3sous .extra-img {
    width: 35%; /* Even smaller for 3 sauces */
}
.box-3sous .extra-special-1 {
    left: -5%;
    right: auto;
}
.box-3sous .extra-special-2 {
    left: 50%;
    transform: translateX(-50%) !important; /* Center sauce */
}
.box-3sous .extra-special-3 {
    right: -5%;
    left: auto;
}

/* Updated Hover: only product image scales, no card movement */
.product-card:hover .product-img,
.product-card.mobile-hover .product-img {
    transform: scale(1.08);
}

/* Hover Adjustments for Extras */
.product-card:hover .extra-img,
.product-card.mobile-hover .extra-img {
    transform: scale(1.1) translateY(-5px);
}

/* Dynamic Hover for 2-Sauce Box */
.box-2sous:hover .extra-special-1,
.box-2sous.mobile-hover .extra-special-1 {
    transform: translateY(-10px) rotate(-8deg) scale(1.1);
}
.box-2sous:hover .extra-special-2,
.box-2sous.mobile-hover .extra-special-2 {
    transform: translateY(-10px) rotate(8deg) scale(1.1);
}

/* Dynamic Hover for 3-Sauce Box */
.box-3sous:hover .extra-special-1,
.box-3sous.mobile-hover .extra-special-1 {
    transform: translateY(-12px) rotate(-10deg) scale(1.1);
}
.box-3sous:hover .extra-special-2,
.box-3sous.mobile-hover .extra-special-2 {
    transform: translateX(-50%) translateY(-15px) scale(1.2) !important;
}
.box-3sous:hover .extra-special-3,
.box-3sous.mobile-hover .extra-special-3 {
    transform: translateY(-12px) rotate(10deg) scale(1.1);
}

/* Specific product image scaling */
.product-cheesecake-shokolad .product-img {
    transform: scale(1.15);
    margin-bottom: 25px;
    z-index: 2;
}

.product-cheesecake-shokolad:hover .product-img {
    transform: scale(1.22);
}


/* Crop cocktail images to hide bottom text */
#kokteyllar .product-img {
    object-fit: cover;
    object-position: top;
    height: 300px;
    border-radius: 12px;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card:hover .extra-img {
    transform: scale(1.15) translateY(-5px);
}

.product-card:hover .extra-bun-1 { transform: scale(1.15) translateY(-5px) rotate(-15deg); }
.product-card:hover .extra-bun-2 { transform: scale(1.15) translateY(-5px) rotate(15deg); }

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.product-price {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 600;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.product-price.mini {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #fff;
}

.product-price.katta {
    font-size: 1.1rem;
}

footer {
    padding: 60px 0;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Logo */
.footer-logo-img {
    max-width: 120px;
    height: auto;
    filter: brightness(1.2);
}

/* Decorations */
.decorations-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.decor-item {
    position: absolute;
    user-select: none;
    animation: floatDecor linear infinite;
    opacity: 0.2;
    filter: grayscale(0.5);
}

@keyframes floatDecor {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 80px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        top: 0;
        margin: 0;
        overflow-x: auto;
    }
    
    nav::-webkit-scrollbar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 15px;
        border-radius: 16px;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .main-logo {
        max-width: 180px;
    }
    
    nav ul {
        justify-content: flex-start;
        gap: 10px;
        padding: 5px 15px;
    }

    #kokteyllar .product-img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }

    /* Smaller sauces for Phone Devices */
    /* Mobile Alignment adjustments */
    .box-2sous .extra-img,
    .box-3sous .extra-img {
        width: 32%; /* Even smaller on phones */
        bottom: -3% !important;
    }

    .box-3sous .extra-special-2 {
        left: 50%;
        transform: translateX(-50%) !important;
    }
}
