/*
 * Food Art Studio — Responsive CSS
 * Breakpoints:
 *   xs  : ≤ 575px   (küçük telefon)
 *   sm  : 576–767px (büyük telefon)
 *   md  : 768–991px (tablet)
 *   lg  : 992–1199px (küçük masaüstü)
 *   xl+ : 1200px+   (geniş masaüstü — zaten tasarlandı)
 */

/* ============================================================
   GLOBAL — tüm cihazlar
   ============================================================ */
img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Yatay taşmayı engelle */
html,
body {
    overflow-x: hidden;
}

/* Büyük display başlıkları — clamp ile akıllı boyutlandırma */
.display-1 {
    font-size: clamp(2rem, 6vw, 5rem) !important;
}

.display-2 {
    font-size: clamp(1.8rem, 5vw, 4.5rem) !important;
}

.display-3 {
    font-size: clamp(1.6rem, 4.5vw, 3.75rem) !important;
}

.display-4 {
    font-size: clamp(1.4rem, 4vw, 3rem) !important;
}

.display-5 {
    font-size: clamp(1.2rem, 3vw, 2.5rem) !important;
}

.display-6 {
    font-size: clamp(1.1rem, 2.5vw, 2rem) !important;
}

/* Section padding küçük ekranlarda azalt */
.section-padding {
    padding: clamp(3rem, 6vw, 6rem) 0 !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.logo img {
    height: 48px !important;
}

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

    .header-top {
        padding: 0.6rem 1rem;
    }

    /* Sosyal ikonlar mobilde gizle — drawer'da var */
    .header-top .social-links {
        display: none !important;
    }

    .home-page .header {
        position: fixed !important;
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(12px) !important;
    }

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

    .home-page .header .menu-btn span.bar {
        background: #fff !important;
    }

    .home-page .header .lang-switcher .lang-text {
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
}

/* ============================================================
   HERO VIDEO (Anasayfa)
   ============================================================ */
@media (max-width: 767px) {
    .hero-video-section {
        min-height: 100svh !important;
        padding-top: 90px !important;
        /* sticky header yüksekliği */
    }

    .hero-video-content {
        padding-top: 2rem !important;
    }

    /* Video overlay daha koyu — okunurluk */
    .hero-video-overlay {
        background: rgba(0, 0, 0, 0.6) !important;
    }

    /* Hero başlık ve metin */
    .hero-video-section h1 {
        font-size: clamp(2rem, 9vw, 3rem) !important;
        letter-spacing: -1px !important;
        text-align: left;
    }

    .hero-video-section .fs-4 {
        font-size: 1rem !important;
    }

    .hero-video-section .btn-lg {
        width: 100%;
        text-align: center;
        padding: 14px 24px !important;
    }
}

/* ============================================================
   SERVICES / EXPERTISE LİSTESİ (Anasayfa)
   ============================================================ */
@media (max-width: 767px) {

    /* Expertise satırları — yatay düzen bozulur, dikey yap */
    .expertise-row .d-flex.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .expertise-row .display-5 {
        font-size: 1.3rem !important;
        letter-spacing: 0 !important;
    }

    .expertise-row .btn-arrow {
        width: 44px !important;
        height: 44px !important;
        align-self: flex-end;
    }
}

/* ============================================================
   AI VIDEO SECTION (Anasayfa)
   ============================================================ */
@media (max-width: 991px) {

    /* AI section — sabit 700px yerine auto */
    section#ai-video {
        min-height: 520px !important;
    }

    /* Marquee videoları küçüt */
    .ai-marquee-item {
        width: 160px !important;
        height: 280px !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }

    /* Sol metin sütunu tablet'te biraz geniş */
    .ai-text-col {
        width: 65% !important;
    }
}

@media (max-width: 767px) {
    section#ai-video {
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Blur ve fade overlay'leri kapat — mobil'de sığmaz */
    .ai-fade-overlay,
    .ai-blur-overlay {
        display: none !important;
    }

    /* Metin sütunu — tam genişlik, absolute'dan çık */
    .ai-text-col {
        position: relative !important;
        width: 100% !important;
        padding: 3rem 1.5rem 2rem !important;
        pointer-events: all !important;
        background: linear-gradient(180deg, #050505 80%, rgba(5, 5, 5, 0.6) 100%);
        z-index: 5 !important;
    }

    /* Marquee arka plana yapış, metin üste gelsin */
    .marquee-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0.3 !important;
    }

    .ai-marquee-item {
        width: 120px !important;
        height: 210px !important;
    }

    .ai-text-col h2 {
        font-size: 1.9rem !important;
        letter-spacing: -1px !important;
    }

    .ai-text-col p.fs-5 {
        font-size: 0.95rem !important;
    }

    .ai-text-col .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 575px) {
    .ai-text-col {
        padding: 2.5rem 1rem 1.5rem !important;
    }

    .ai-text-col h2 {
        font-size: 1.6rem !important;
    }
}

/* ============================================================
   CASE STUDIES (Anasayfa slider + liste sayfası)
   ============================================================ */
@media (max-width: 767px) {

    /* Slider — tek sütun tam genişlik */
    .portfolioSwiper {
        min-height: 380px !important;
        padding-bottom: 50px !important;
    }

    .portfolioSwiper .portfolio-card {
        aspect-ratio: 3/4 !important;
    }

    /* Case study detay – yan yana görseller alta */
    .case-studies-section .row.g-4>[class*="col-md"],
    .case-studies-section .row.g-4>[class*="col-lg"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   INSIGHTS SECTION (Anasayfa + Insights sayfası)
   ============================================================ */
@media (max-width: 767px) {

    /* Insight grid — tek sütun */
    .insights-grid .row>[class*="col-lg"],
    .insights-grid .row>[class*="col-md"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .insight-card-home {
        margin-bottom: 1.5rem;
    }
}

/* ============================================================
   READY TO INNOVATE CTA KARTI
   ============================================================ */
@media (max-width: 767px) {

    /* CTA card — kenar boşlukları ve padding küçüt */
    #insights+div.mx-3,
    div.animate-up.mx-3 {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
        padding: 2rem 1.25rem !important;
        min-height: 200px !important;
        border-radius: 16px !important;
    }

    div.animate-up.mx-3 h3 {
        font-size: 1.4rem !important;
        letter-spacing: -0.5px !important;
    }

    div.animate-up.mx-3 p {
        font-size: 0.95rem !important;
    }

    div.animate-up.mx-3 .btn {
        width: 100% !important;
        padding: 12px 20px !important;
    }
}

/* ============================================================
   HİZMETLER SAYFASI (services.php)
   ============================================================ */
@media (max-width: 991px) {

    /* Hizmet kartı — sol metin + sağ görsel yan yana → alt alta */
    .services-grid .row.g-0 {
        flex-direction: column !important;
    }

    .services-grid .row.g-0>[class*="col-lg"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .services-grid .row.g-0>.col-lg-6[style*="background:"] {
        min-height: 220px !important;
    }
}

/* Hizmet kartları — col-md-6 → tam genişlik on telefon */
@media (max-width: 575px) {
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Hizmet iç row — metin + görsel dikey */
    .card .row.g-0 {
        flex-direction: column !important;
    }

    .card .row.g-0 .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .card .row.g-0 [style*="min-height: 300px"] {
        min-height: 200px !important;
    }

    .card-body.p-5 {
        padding: 1.5rem !important;
    }
}

/* ============================================================
   AI VIDEO SAYFASI (ai-video.php)
   ============================================================ */
@media (max-width: 767px) {
    .ai-video-container {
        border-radius: 12px !important;
    }

    .play-pause-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .play-pause-btn i {
        font-size: 1.2rem !important;
    }
}

/* ============================================================
   CASE STUDY DETAY SAYFASI
   ============================================================ */
@media (max-width: 767px) {
    .case-study-hero {
        min-height: 50vh !important;
    }

    .case-study-hero h1 {
        font-size: 1.6rem !important;
    }

    /* Meta bilgi satırı → dikey */
    .case-meta .row {
        flex-direction: column !important;
    }

    .case-meta .col-md-4,
    .case-meta .col-md-3 {
        margin-bottom: 1rem !important;
    }
}

/* ============================================================
   ABOUT SAYFASI
   ============================================================ */
@media (max-width: 767px) {

    /* Hero — 2 kolon → alt alta */
    #about .col-lg-6,
    #about .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Stats — 2×2 kalır, küçülür */
    #about .col-6 .p-4 {
        padding: 1rem !important;
    }

    #about .display-4 {
        font-size: 1.8rem !important;
    }

    /* Ekip görseli */
    #about .rounded-circle {
        width: 150px !important;
        height: 150px !important;
    }
}

/* ============================================================
   PROCESS SAYFASI
   ============================================================ */
@media (max-width: 767px) {

    /* Süreç adımları — yatay timeline → dikey */
    .process-step .col-lg-6,
    .process-step .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .process-step img {
        max-height: 250px;
        object-fit: cover;
    }
}

/* ============================================================
   CONTACT SAYFASI
   ============================================================ */
@media (max-width: 767px) {

    .contact-section .col-lg-6,
    .contact-section .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem;
    }
}

/* ============================================================
   INSIGHTS / BLOG LİSTE SAYFASI
   ============================================================ */
@media (max-width: 767px) {

    .insights-list .col-md-6,
    .insights-list .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
@media (max-width: 767px) {

    .footer .col-lg-4,
    .footer .col-md-6,
    .footer .col-lg-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center;
    }

    .footer .social-links {
        justify-content: center !important;
    }

    .footer .row.align-items-center {
        text-align: center !important;
    }

    .footer .col-md-6.text-md-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
}

/* ============================================================
   FLOATING NAVIGATION BAR (AWW Style)
   ============================================================ */
@media (max-width: 991px) {
    .aww-floating-wrapper {
        display: none !important;
    }
}

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu-drawer {
    max-width: 100% !important;
    /* tam ekran override */
}

@media (min-width: 576px) {
    .mobile-menu-drawer {
        max-width: 360px !important;
    }
}

/* ============================================================
   TABLET — 768px ile 991px arası
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    /* Hero başlık tablet için orta boyut */
    .hero-video-section h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    }

    /* Services — 2'li grid korunsun */
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* AI video section — küçük tablet */
    section#ai-video {
        min-height: 480px !important;
    }

    .ai-marquee-item {
        width: 180px !important;
        height: 320px !important;
    }

    /* Footer — 2'li grid */
    .footer .col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .footer .col-lg-2 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* ============================================================
   KÜÇÜK MASAÜSTÜ — 992px ile 1199px arası
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    /* Hero başlık biraz küçült */
    .hero-video-section h1 {
        font-size: 3.2rem !important;
    }

    /* AI section metin sütunu */
    section#ai-video>.position-absolute.top-0.start-0.h-100.z-3 {
        width: 50% !important;
    }
}

/* ============================================================
   SEARCH SAYFASI
   ============================================================ */
@media (max-width: 767px) {

    .search-results .col-md-6,
    .search-results .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   GENEL YARDIMCI KURALLAR
   ============================================================ */

/* Yatay scroll barı engelle */
section,
.container,
.row {
    max-width: 100vw;
}

/* Büyük padding/margin'leri küçült */
@media (max-width: 575px) {
    .p-5 {
        padding: 1.5rem !important;
    }

    .px-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mt-5 {
        margin-top: 1.5rem !important;
    }

    .pb-5 {
        padding-bottom: 2rem !important;
    }

    .pt-5 {
        padding-top: 2rem !important;
    }

    /* col → tam genişlik — genel kural */
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Buton tam genişlik */
    .hero-video-section .btn {
        width: 100%;
        justify-content: center;
    }

    /* Insight card görseli küçüt */
    .insight-card-home [style*="height: 340px"] {
        height: 220px !important;
    }

    .insight-card-home [style*="height: 240px"] {
        height: 180px !important;
    }
}

/* Form elemanları mobilde tam genişlik */
@media (max-width: 767px) {

    .form-control,
    .form-select,
    .btn {
        font-size: 16px;
    }

    /* iOS zoom'u engelle */
}

/* Touch-friendly buton boyutları */
@media (max-width: 991px) {
    .btn {
        min-height: 44px;
    }

    a,
    button {
        touch-action: manipulation;
    }
}

/* ============================================================
   RECENT SECTIONS & HEROES RESPONSIVENESS
============================================================ */
@media (max-width: 900px) {
    /* 600px Heroes Graceful Degradation */
    .contact-hero-wrap, .ab-hero, .hero-wrap, .hero-section {
        height: auto !important;
        min-height: 480px !important;
        padding: 140px 0 60px !important;
    }

    /* About: Hikayemiz V2 */
    .ab-story-v2 {
        min-height: auto;
    }
    .ab-sv2-h2 {
        font-size: clamp(2rem, 7vw, 2.5rem) !important;
    }
    .ab-sv2-floatcard {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 16px 20px;
    }

    /* About: Studio Premium */
    .ab-stp-panel {
        min-height: auto !important;
        border-radius: 16px !important;
    }
    .ab-stp-mosaic {
        min-height: 300px !important;
    }
    .ab-stp-video-side {
        min-height: 300px !important;
    }
    .ab-stp-content {
        padding: 35px 24px !important;
    }
    .ab-stp-panel-num {
        font-size: 4.5rem !important;
    }
    .ab-stp-stat-bar {
        padding: 12px 16px !important;
        bottom: 16px !important;
        left: 16px !important;
        right: 16px !important;
        flex-wrap: wrap !important;
        justify-content: space-around !important;
    }
    .ab-stp-header {
        padding: 50px 0 30px !important;
    }
}