/* Food Art Studio - 360° Creative Agency Theme */
/* Fonts: Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    /* Colors - Food Art Studio Corporate */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #222222;
    --color-text-muted: #666666;
    --color-primary: #111111;
    /* Corporate Black */
    --color-primary-dark: #1a252f;
    --color-primary-rgb: 17, 17, 17;
    --color-secondary: #1a1a1a;
    --color-dark: #0f1115;
    --color-light: #ffffff;

    /* Spacing */
    --section-padding: 6rem 0;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.12);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: all 0.3s ease;
}

.section-padding {
    padding: var(--section-padding);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    /* Increased size */
    width: auto;
}

.header-search {
    display: none;
    /* Hidden */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--color-text);
    font-size: 1.2rem;
}

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

.lang-switcher .lang-text {
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.lang-switcher .lang-text:hover {
    background: var(--color-text);
    color: white;
}

/* Nav */
.header-bottom {
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.2rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: block;   /* Important for hover area */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav .dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff !important;
    min-width: 480px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: none !important;
    z-index: 10000;
    list-style: none !important;
    margin: 0 !important;
}

.main-nav .dropdown:hover .nav-dropdown-menu {
    display: flex !important;
}

/* Fix visibility: Override global white color rules for dropdown content */
.nav-dropdown-menu .dropdown-item,
.nav-dropdown-menu .fw-bold,
.nav-dropdown-menu .hover-primary,
.nav-dropdown-menu i {
    color: #1a1a1a !important;
}

.nav-dropdown-menu .text-muted,
.nav-dropdown-menu small {
    color: #666666 !important;
}

.nav-dropdown-menu .bg-soft-primary .fw-bold,
.nav-dropdown-menu .bg-soft-primary small {
    color: var(--color-primary) !important;
}

.main-nav .dropdown-item {
    display: flex !important;
    width: 100% !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-transform: none !important;
    text-align: left !important;
    white-space: normal !important;
    letter-spacing: 0 !important;
    align-items: center;
    background: transparent !important;
}

.nav-dropdown-menu li {
    width: 100%;
    display: block;
}

.nav-dropdown-menu .px-5 {
    padding-left: 3.5rem !important; /* Adjusted for better alignment */
    padding-right: 1.5rem !important;
}

.main-nav .dropdown-item:hover {
    background: #f8f9fa !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    transform: translateX(5px);
}

.hover-primary {
    transition: all 0.2s ease;
}

.hover-primary:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
}

.dropdown-item p,
.dropdown-item small {
    margin-bottom: 0;
}

.dropdown-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.dropdown-item:hover .dropdown-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-primary) !important;
}

.dropdown-item:hover .dropdown-icon-box i {
    color: white !important;
}

.dropdown-item:hover .fw-bold {
    color: var(--color-primary) !important;
}

.bg-soft-primary {
    background-color: rgba(17, 17, 17, 0.03);
}

.main-nav .dropdown-item small {
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 400;
}

.main-nav .dropdown-item.rounded-3 {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: none;
}

.menu-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
}

.menu-btn span.bar {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    right: 0;
}

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

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

body.menu-open {
    overflow: hidden;
}

.mobile-nav a.text-primary {
    color: var(--color-primary) !important;
}

/* Dantatsu Expertise Row Animations */
.expertise-row .display-5 {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.3s !important;
}

.expertise-row:hover .display-5 {
    transform: translateX(10px) !important;
}

.expertise-row .btn-arrow {
    background: transparent;
    color: #111;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.expertise-row:hover .btn-arrow {
    background: #111 !important;
    color: #fff !important;
    transform: scale(1.1) translateX(-5px) !important;
}

/* Hero 360 & Video Hero */
.hero-360 {
    padding: 3rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(255, 87, 34, 0.05) 0%, transparent 40%);
}

.hero-video-section {
    position: relative;
    height: auto;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background-color: #000;
}

.hero-video-section h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-features {
    font-family: var(--font-display);
}

.feature-tag {
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222222;
    /* Set to dark color */
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Service Boxes */
.service-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover) !important;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--color-bg-alt);
    transition: all 0.3s;
}

.service-box:hover .icon-circle {
    background: var(--color-primary);
}

.service-box:hover .icon-circle i {
    color: white !important;
}

/* AI Block */
.ai-block {
    background: var(--color-dark);
    color: white;
    border-radius: 0;
}

.ai-block h2 {
    font-size: 4rem;
    letter-spacing: -2px;
}

/* Animations Handled by GSAP */
/* Sadece .animate-up ve .split-text GSAP tarafından başlatılıyor */
/* display-* sınıfları artık animations.js tarafından split edilmiyor */
html.js .animate-up,
html.js .split-text {
    opacity: 0;
    /* FOUC (Flash of Unstyled Content) önle */
}

/* Fallback for noscript */
.animate-up {
    opacity: 1;
    transform: none;
}

/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline-dark {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Utilities */
.object-fit-cover {
    object-fit: cover;
}

.hover-up {
    transition: transform 0.3s;
}

.hover-up:hover {
    transform: translateY(-5px);
}

.group-hover:hover img {
    transform: scale(1.05);
    transition: transform 0.5s;
}

/* Mobile */
@media (max-width: 991px) {
    .header-bottom {
        display: none !important;
    }

    .hero-360 {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .ai-block h2 {
        font-size: 2.5rem;
    }
}

/* Global Content Spacing */
main>section:last-of-type {
    margin-bottom: 8rem;
}

/* Transparent Header for Home Page */
.home-page .header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: absolute;
    width: 100%;
    z-index: 1000;
    box-shadow: none !important;
}

.home-page .header .logo img {
    filter: brightness(0) invert(1);
}

.home-page .header .main-nav > ul > li > a,
.home-page .header .lang-switcher .lang-text,
.home-page .header .social-links a,
.home-page .header .menu-btn span.bar {
    color: white !important;
}

.home-page .header .lang-switcher .lang-text {
    border-color: white !important;
}

.home-page .header .main-nav a::after {
    background-color: white !important;
}

/* Sticky Header functionality */
.header.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    animation: slideDown 0.3s ease-out;
}

.header.sticky .header-bottom {
    display: none !important;
}

.home-page .header.sticky .logo img {
    filter: none;
}

.home-page .header.sticky .main-nav a,
.home-page .header.sticky .lang-switcher .lang-text,
.home-page .header.sticky .social-links a,
.home-page .header.sticky .menu-btn span.bar {
    color: var(--color-text) !important;
}

.home-page .header.sticky .lang-switcher .lang-text {
    border-color: var(--color-text) !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* AI Video Player Styles */
.ai-video-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.ai-video-wrapper {
    position: relative;
}

.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(var(--color-primary-rgb), 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.play-pause-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    background: var(--color-primary);
}

.play-pause-btn i {
    font-size: 1.5rem;
}

.ai-video-container video {
    transition: opacity 0.3s ease;
}

.ai-video-container:hover .play-pause-btn {
    background: var(--color-primary);
}

/* Portfolio Slider Enhancements */
.portfolioSwiper .portfolio-card {
    aspect-ratio: 4/5;
}

.portfolio-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-card .transition-transform {
    transition: transform 0.8s ease;
}

.portfolio-card:hover .transition-transform {
    transform: scale(1.1);
}

.portfolio-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-card:hover .card-img-overlay {
    opacity: 1;
}

.portfolio-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
}

.portfolioSwiper {
    overflow: visible !important;
    /* Allow cards to show shadows */
    min-height: 500px;
    padding-bottom: 70px !important;
}

.portfolioSwiper .swiper-slide {
    height: auto !important;
    /* Allow card ratio to define height */
    display: flex;
}

.card-title {
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   TÜM SAYFALAR İÇİN DERLİ TOPLU (Maksimum Genişlikte) YAPI
   ========================================================================== */
@media (min-width: 992px) {

    /* Genel tüm sayfalardaki içerik (Ana çerçeve/hizmetler/iletişim vs) */
    .container {
        max-width: 1080px !important;
        /* Orijinal 1320px yerine daraltıldı */
    }

    /* İşler (Case Studies) vb. kısımlarda .container-fluid ile %100 alanlar için ek sınır */
    .container-fluid {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Çok uzun paragraflarda yazının harf sınırlarının gözü/okumayı yormaması için */
    .text-center p.lead,
    .text-center p.text-muted,
    p.opacity-75 {
        max-width: 700px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* ══════════════════════════════════════════════════
   GLOBAL BUTTON COMPONENTS (FA-BTN)
══════════════════════════════════════════════════ */
.fa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 2px solid transparent;
}
.fa-btn-sm {
    padding: 12px 28px;
    font-size: .95rem;
}
.fa-btn-lg {
    padding: 20px 52px;
    font-size: 1.15rem;
}
.fa-btn i {
    transition: transform 0.3s ease;
}
.fa-btn:hover {
    transform: scale(1.05); /* Homepage hero scale effect */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Light Variant */
.fa-btn-light {
    background-color: #fff;
    color: #111 !important;
    border-color: #fff;
}
.fa-btn-light:hover {
    background-color: #fff;
    color: #111 !important;
}

/* Dark Variant */
.fa-btn-dark {
    background-color: #111;
    color: #fff !important;
    border-color: #111;
}
.fa-btn-dark:hover {
    background-color: #111;
    color: #fff !important;
}

/* Outline Light Variant */
.fa-btn-outline-light {
    background-color: transparent;
    color: #fff !important;
    border-color: #fff;
}
.fa-btn-outline-light:hover {
    background-color: #fff;
    color: #111 !important;
}

/* Outline Dark Variant */
.fa-btn-outline-dark {
    background-color: transparent;
    color: #111 !important;
    border-color: #111;
}
.fa-btn-outline-dark:hover {
    background-color: #111;
    color: #fff !important;
}

/* Primary Variant (Orange) */
.fa-btn-primary {
    background-color: #FF6B35;
    color: #fff !important;
    border-color: #FF6B35;
}
.fa-btn-primary:hover {
    background-color: #FF6B35;
    color: #fff !important;
}
