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

:root {
    --primary-color: #ff4500;
    /* Turuncu - Köz ateşi */
    --secondary-color: #8b0000;
    /* Koyu Kırmızı */
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #f0f0f0;
    --text-muted: #d0d0d0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --neon-glow: 0 0 10px rgba(255, 69, 0, 0.5), 0 0 20px rgba(255, 69, 0, 0.3);
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loading-bar {
    width: 150px;
    height: 3px;
    background: #333;
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* Text Visibility Overrides for Dark Theme */
.text-muted,
.text-secondary,
.text-body-secondary {
    color: #b0b0b0 !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.05);
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    background: url('../img/hero_bg.png') no-repeat center center/cover;
    position: relative;
    margin-top: -76px;
    /* Offset navbar height */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Menu Section */
.menu-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(255, 69, 0, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.card-img-wrapper {
    overflow: hidden;
    height: 250px;
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

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

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
    border-color: rgba(255, 69, 0, 0.5);
}

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

.menu-card:hover img {
    transform: scale(1.1);
}

.card-title {
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    margin: 5px auto 0;
}

.menu-card:hover .card-title::after {
    width: 100%;
}

/* About Section */
.about-img-wrapper img {
    transition: transform 0.3s ease;
}

.about-img-wrapper:hover img {
    transform: scale(1.02);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

/* Contact Section */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Mobile Action Bar */
.mobile-action-bar {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0 15px;
    pointer-events: none;
    /* Allow clicks through empty space */
}

.mobile-action-bar .container {
    pointer-events: auto;
    /* Re-enable clicks on buttons */
}

.btn-action-call,
.btn-action-map {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 0;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-action-call {
    border-color: rgba(255, 69, 0, 0.5);
    color: var(--primary-color);
}

.btn-action-map {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-action-call:hover,
.btn-action-call:active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

.btn-action-map:hover,
.btn-action-map:active {
    background: white;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Hide on desktop (handled by d-md-none in HTML but good to enforce) */
@media (min-width: 769px) {
    .mobile-action-bar {
        display: none !important;
    }
}