/* =========================================
   FRZ Coffee - Premium Design System
   ========================================= */

/* -- CSS Variables -- */
:root {
    /* Colors */
    --clr-bg-dark: #3a3233;
    /* Dark mocha matching new logo */
    --clr-bg-card: #453b3d;
    /* Slightly lighter mocha for cards/sections */
    --clr-accent: #c69c6d;
    /* Premium gold/copper accent */
    --clr-accent-hover: #e0b481;
    /* Lighter gold for hover states */
    --clr-text-main: #f0f0f0;
    /* Off-white for readability */
    --clr-text-muted: #a0a0a0;
    /* Grey for subtitles */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-out;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(198, 156, 109, 0.3);
}

/* =========================================
   Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Helpers */
.title-underline {
    height: 3px;
    width: 60px;
    background-color: var(--clr-accent);
    margin-bottom: var(--spacing-md);
    border-radius: 2px;
}

.center-underline {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Layout Helpers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

.dark-section {
    background-color: var(--clr-bg-card);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(198, 156, 109, 0.4);
}

/* =========================================
   Navigation
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(58, 50, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}


.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-mobile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    color: var(--clr-text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn {
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lang-btn:hover {
    color: var(--clr-accent-hover);
}

.lang-btn.active {
    color: var(--clr-accent);
    font-weight: 800;
}



.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text-main);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: var(--clr-bg-dark);
}

.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 187.5%;
    height: 262.5%;
    min-height: 600px;
    background-image: url('../assets/logo.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* Soft watermark effect */
    z-index: -1;
    pointer-events: none;
    filter: drop-shadow(0 0 50px rgba(198, 156, 109, 0.2));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(58, 50, 51, 0.4) 0%, rgba(58, 50, 51, 0.90) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

/* =========================================
   About Section
   ========================================= */
.section-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.section-text {
    flex: 1;
}

.section-text h2 {
    font-size: 2.5rem;
}

.section-text p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.benefits-list {
    margin-top: var(--spacing-md);
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefits-list i {
    color: var(--clr-accent);
    font-size: 1.2rem;
}

.section-image {
    flex: 1;
    position: relative;
}

.section-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--clr-accent);
    border-radius: 10px;
    z-index: 0;
}

.rounded-image {
    border-radius: 10px;
    position: relative;
    z-index: 1;
    object-fit: cover;
    height: 400px;
    width: 100%;
}

/* =========================================
   Services / Features Section
   ========================================= */
.feature-section {
    background-color: var(--clr-bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-lg);
}

.feature-card {
    background-color: var(--clr-bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    transition: transform var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(198, 156, 109, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--clr-text-muted);
}

/* =========================================
   Gallery Section
   ========================================= */
.section-description {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 50, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 1px solid var(--clr-accent);
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #08090b;
    padding: 60px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--clr-text-muted);
    max-width: 300px;
}

.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-contact p {
    color: var(--clr-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--clr-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-bg-card);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--clr-accent);
    color: var(--clr-bg-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Gallery Modal
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(58, 50, 51, 0.4);
    backdrop-filter: blur(1px); /* Bulanıklık çok aza indirildi */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: fixed;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    top: var(--origin-top);
    left: var(--origin-left);
    width: var(--origin-width);
    height: var(--origin-height);
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.active .modal-content {
    transform: scale(2.2); /* Büyüme oranı artırıldı */
}

.modal-close {
    display: none; /* Çarpı işareti tamamen gizlendi */
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    font-family: var(--font-heading);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--clr-accent);
    text-decoration: none;
    cursor: pointer;
}

/* =========================================
   Motorcycle Hover Animation
   ========================================= */
#mobile-theke-card {
    overflow: hidden; /* Animasyon kartın dışına taşmasın diye */
}

@keyframes wheelieAndDrive {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    15% {
        /* Ön kaldırıyor */
        transform: translate(0, -10px) rotate(-30deg);
        opacity: 1;
    }
    40% {
        /* Ön kaldırarak biraz bekliyor */
        transform: translate(20px, -10px) rotate(-30deg);
        opacity: 1;
    }
    80% {
        /* Hızla ileri fırlayıp kadrajdan çıkıyor */
        transform: translate(150px, 0) rotate(0deg);
        opacity: 0;
    }
    100% {
        /* Tamamen yok oluyor */
        transform: translate(200px, 0) rotate(0deg);
        opacity: 0;
    }
}

#mobile-theke-card:hover #motorcycle-icon {
    /* Animasyon "hover" durumunda tetiklenir ve bitince son karesinde kalır (forwards). Fare çekilince tekrar eski konumuna kendi döner (CSS varsayılanı). */
    animation: wheelieAndDrive 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* =========================================
   Coffee Smoke Hover Animation
   ========================================= */
#premium-kaffee-card {
    position: relative; /* Dumanın konumlandırılması için */
}

#coffee-icon {
    position: relative;
}

#coffee-icon::after {
    /* Font Awesome duman ikonu içeriği */
    content: '\f0c2'; /* Cloud icon as smoke */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    color: var(--clr-accent);
    opacity: 0;
    pointer-events: none;
    font-size: 1.2rem;
}

@keyframes smokeRise {
    0% {
        top: -10px;
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    30% {
        opacity: 0.8;
        transform: translateX(-60%) scale(1);
    }
    60% {
        opacity: 0.6;
        transform: translateX(-30%) scale(1.5);
    }
    100% {
        top: -40px;
        opacity: 0;
        transform: translateX(-50%) scale(2);
    }
}

#premium-kaffee-card:hover #coffee-icon::after {
    animation: smokeRise 1.5s ease-out forwards;
}

/* =========================================
   Barista Waving Hover Animation
   ========================================= */
#barista-icon {
    display: inline-block;
    transform-origin: bottom center; /* Dönme noktası karakterin alt kısmı (beli/ayakları) olacak şekilde */
}

@keyframes baristaWave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(15deg); }
    80% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

#barista-card:hover #barista-icon {
    animation: baristaWave 1s ease-in-out;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 900px) {
    .section-container {
        flex-direction: column;
        text-align: center;
    }

    .center-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .benefits-list li {
        justify-content: center;
    }

    .section-image::before {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-bg-logo {
        width: 225%;
        height: 225%;
        min-height: 375px;
    }
}

@media (max-width: 768px) {

    .desktop-lang {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(58, 50, 51, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-list.active {
        max-height: 400px;
    }

    .nav-link {
        padding: 20px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-bg-logo {
        width: 300%;
        height: 112.5%;
        min-height: 225px;
    }

    /* Telefon ekranında galeri resmini ortala ve büyütme oranını ayarla */
    .modal-content {
        /* JS tarafından atanan origin değerlerini ezip ekranın merkezine sabitle */
        top: 50% !important;
        left: 50% !important;
        transform-origin: center center;
        /* Ekrana yerleşecek varsayılan boyutlar */
        width: 90vw !important;
        height: auto !important;
        max-height: 80vh !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }

    .modal.active .modal-content {
        /* Aktifleştiğinde merkezde kalarak normal 1 oranında (ya da istenilen oranda) kalsın */
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

@media (min-width: 769px) {

    .mobile-lang {
        display: none;
    }
}