/**
 * Onur Patiseri - Premium Stylesheet
 * Corporate Colors:
 * - Background: #FFFFFF (white)
 * - Primary: #3A7D44 (pistachio green)
 * - Hover: #2E6035 (darker green)
 */

:root {
    --primary-color: #3A7D44;
    --primary-hover: #2E6035;
    --bg-color: #FFFFFF;
    --text-dark: #333;
    --text-muted: #6c757d;
    --border-light: #eaeaea;
}

/* ============================================
   TYPOGRAPHY & GENERAL
   ============================================ */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Section Spacing - Optimized for Mobile */
section {
    padding: 40px 0;
}

@media (min-width: 576px) {
    section {
        padding: 50px 0;
    }
}

@media (min-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (min-width: 992px) {
    section {
        padding: 80px 0;
    }
}

/* Heading Hierarchy */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   NAVBAR - PREMIUM RED & WHITE DESIGN
   ============================================ */

.premium-navbar {
    padding: 0;
    min-height: 80px;
    background: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.premium-navbar .container {
    position: relative;
}

.premium-logo .premium-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dc3545;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 10px;
}

.premium-logo .premium-logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.premium-logo .premium-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.premium-nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #fff !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem !important;
}

.premium-nav-link.active {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    text-decoration-color: #3A7D44;
}

.premium-nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.premium-whatsapp-btn {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 25px !important;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.premium-whatsapp-btn:hover {
    background-color: #fff !important;
    color: #dc3545 !important;
    transform: translateY(-2px);
}

/* Mobile Menu for Premium Navbar */
@media (max-width: 991px) {
    .premium-navbar #navbarNavMobile {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .premium-navbar #navbarNavMobile .nav-link {
        color: #fff !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .premium-navbar #navbarNavMobile .nav-link:last-child {
        border-bottom: none;
    }
    
    .premium-navbar #navbarNavMobile .nav-link.active {
        color: #dc3545 !important;
        text-decoration: underline;
    }
    
    .premium-navbar .navbar-toggler {
        border: 2px solid #fff;
        color: #fff;
    }
    
    .premium-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-nav-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.navbar-nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.navbar-nav-left .navbar-nav,
.navbar-nav-right .navbar-nav {
    flex-direction: row;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-nav-left .nav-item,
.navbar-nav-right .nav-item {
    margin: 0;
    white-space: nowrap;
}

.navbar-nav-left .nav-link,
.navbar-nav-right .nav-link {
    padding: 0.75rem 0.8rem !important;
    white-space: nowrap;
    display: block;
}

.navbar-brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    flex-shrink: 0;
    pointer-events: auto;
    /* Prevent layout shift */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop'ta mobil menüyü gizle */
@media (min-width: 992px) {
    .navbar-toggler.d-lg-none {
        display: none !important;
    }
    
    #navbarNavMobile {
        display: none !important;
    }
    
    /* Bootstrap'in varsayılan navbar-collapse davranışını override et */
    .navbar-expand-lg .navbar-collapse.d-lg-none {
        display: none !important;
    }
}

.navbar-brand {
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s;
    margin: 0;
}

.navbar-brand img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    transition: all 0.3s;
    border-radius: 50%;
    background: transparent;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.3);
}

@media (max-width: 991px) {
    .navbar-nav-left,
    .navbar-nav-right {
        display: none !important;
    }
    
    .navbar-brand-center {
        position: static;
        transform: none;
        margin: 0 auto;
        flex: 1;
        display: flex;
        justify-content: center;
        order: 1;
        /* Prevent layout shift on mobile */
        width: auto;
        height: auto;
    }
    
    .navbar-brand img {
        height: 50px;
        width: 50px;
    }
    
    .navbar-toggler {
        display: block !important;
        margin-left: auto;
        order: 2;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        padding: 0.4rem;
        width: 44px;
        height: 44px;
        background: var(--primary-color);
        box-shadow: 0 2px 8px rgba(58, 125, 68, 0.3), 0 0 0 2px rgba(58, 125, 68, 0.1);
        transition: all 0.3s ease;
        position: relative;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        box-shadow: 0 4px 16px rgba(58, 125, 68, 0.4), 0 0 0 3px rgba(58, 125, 68, 0.15);
        transform: scale(1.05);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.25);
        outline: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M15 4c-6.5 0-11.5 3-11.5 6.5s5 6.5 11.5 6.5 11.5-3 11.5-6.5S21.5 4 15 4z'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M15 4c6.5 0 11.5 3 11.5 6.5s-5 6.5-11.5 6.5'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 10.5c0 0 2.5 1 8 1s8-1 8-1'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 13c0 0 2.5 1 8 1s8-1 8-1'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 15.5c0 0 2.5 1 8 1s8-1 8-1'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M23 10.5c0 0-2.5 1-8 1s-8-1-8-1'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M23 13c0 0-2.5 1-8 1s-8-1-8-1'/%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M23 15.5c0 0-2.5 1-8 1s-8-1-8-1'/%3e%3c/svg%3e");
        width: 28px;
        height: 28px;
        transition: all 0.3s ease;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navbar-toggler[aria-expanded='true'] {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        box-shadow: 0 4px 16px rgba(58, 125, 68, 0.4), 0 0 0 3px rgba(58, 125, 68, 0.15);
        transform: rotate(90deg);
    }
    
    /* Mobil menüyü Bootstrap'in collapse özelliği ile göster - Minimal Modern Tasarım */
    #navbarNavMobile {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        padding: 0.75rem 0;
        border: 1px solid rgba(58, 125, 68, 0.08);
        position: relative;
        overflow: hidden;
    }
    
    #navbarNavMobile::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: var(--primary-color);
    }
    
    #navbarNavMobile.show {
        display: block !important;
        animation: fadeInUp 0.3s ease-out;
    }
    
    #navbarNavMobile.collapsing {
        display: block !important;
        height: auto;
        overflow: hidden;
        transition: height 0.3s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobil menü öğeleri - Minimal Stil */
    #navbarNavMobile .navbar-nav {
        padding: 0;
    }
    
    #navbarNavMobile .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(58, 125, 68, 0.05);
    }
    
    #navbarNavMobile .nav-item:last-child {
        border-bottom: none;
    }
    
    #navbarNavMobile .nav-link {
        padding: 0.65rem 1rem 0.65rem 1.5rem !important;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-dark) !important;
        background: transparent;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
        position: relative;
        display: flex;
        align-items: center;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    #navbarNavMobile .nav-link::before {
        content: '•';
        position: absolute;
        left: 0.5rem;
        color: var(--primary-color);
        opacity: 0;
        transform: scale(0);
        transition: all 0.2s ease;
        font-size: 1.2rem;
    }
    
    #navbarNavMobile .nav-link:hover,
    #navbarNavMobile .nav-link.active {
        background: rgba(58, 125, 68, 0.04);
        color: var(--primary-color) !important;
        border-left-color: var(--primary-color);
        padding-left: 1.75rem !important;
    }
    
    #navbarNavMobile .nav-link:hover::before,
    #navbarNavMobile .nav-link.active::before {
        opacity: 1;
        transform: scale(1);
    }
    
    #navbarNavMobile .nav-link::after {
        display: none;
    }
    
    /* Bootstrap'in varsayılan davranışını override et - sadece mobilde */
    .navbar-expand-lg #navbarNavMobile {
        display: none;
    }
    
    .navbar-expand-lg #navbarNavMobile.show {
        display: block !important;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
}

/* Logo için ek optimizasyonlar */
.navbar-brand img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem !important;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

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

.navbar-nav {
    flex-wrap: nowrap;
}

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.75rem 0.75rem !important;
        margin: 0 0.15rem;
    }
    
    .navbar-nav {
        flex-wrap: wrap;
    }
}

/* Mobile Menu Smooth Transition */
@media (max-width: 991px) {
    .navbar-collapse.d-lg-none {
        transition: all 0.3s ease;
    }
}

/* ============================================
   MODERN HAMBURGER MENU
   ============================================ */
.modern-hamburger {
    border: none !important;
    padding: 0.5rem !important;
    background: transparent !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.modern-hamburger:hover {
    background: rgba(58, 125, 68, 0.1) !important;
    transform: scale(1.05);
}

.modern-hamburger:focus {
    box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.25) !important;
    outline: none !important;
}

.hamburger-icon {
    width: 28px;
    height: 22px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #3A7D44;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

/* Active state - X icon */
.modern-hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.modern-hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.modern-hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile menu improvements */
#navbarNavMobile {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    padding: 1rem 0;
}

#navbarNavMobile .navbar-nav {
    padding: 0 1rem;
}

#navbarNavMobile .nav-item {
    margin-bottom: 0.5rem;
}

#navbarNavMobile .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    font-weight: 500;
    color: #333 !important;
    border: 2px solid transparent;
}

#navbarNavMobile .nav-link:hover {
    background: rgba(58, 125, 68, 0.1) !important;
    color: #3A7D44 !important;
    transform: translateX(8px);
}

#navbarNavMobile .nav-link.active {
    background: linear-gradient(135deg, #3A7D44 0%, #2E6035 100%) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(58, 125, 68, 0.3);
}

/* WhatsApp button in mobile menu */
#navbarNavMobile .whatsapp-nav-btn {
    background: linear-gradient(135deg, #25d366 0%, #20b954 100%) !important;
    color: white !important;
    border: none !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transform: none !important;
}

#navbarNavMobile .whatsapp-nav-btn:hover {
    background: linear-gradient(135deg, #20b954 0%, #1da048 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   HERO PREMIUM SECTION (Simit Sarayı Style)
   ============================================ */

.hero-premium-section,
.hero-modern-section {
    margin-top: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-premium-wrapper,
.hero-modern-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow: hidden;
    /* Prevent layout shift during load */
    display: block;
}

.hero-premium-video,
.hero-premium-image,
.hero-modern-video,
.hero-modern-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-premium-image,
.hero-modern-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-premium-overlay,
.hero-modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-premium-content,
.hero-modern-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1.2s ease-out;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-premium-top-text,
.hero-modern-top-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', sans-serif;
}

.hero-premium-title {
    font-size: 7rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-style: italic;
    letter-spacing: 2px;
}

.hero-premium-subtitle {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    letter-spacing: 1px;
}

.premium-highlight {
    color: #dc3545;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(220, 53, 69, 0.5);
}

/* Scroll Indicator - Left Side */
.hero-premium-scroll-indicator,
.hero-scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 40px;
    z-index: 3;
    text-align: left;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-premium-scroll-indicator:hover,
.hero-scroll-indicator:hover {
    transform: translateY(-5px);
}

.hero-premium-scroll-indicator:hover .scroll-arrow,
.hero-scroll-indicator:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

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

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-arrow i {
    font-size: 1.5rem;
    color: #fff;
}

.scroll-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: left;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-premium-wrapper,
    .hero-modern-wrapper {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-premium-top-text,
    .hero-modern-top-text {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }
    
    .hero-premium-title,
    .hero-modern-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-premium-subtitle,
    .hero-modern-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-premium-scroll-indicator,
    .hero-scroll-indicator {
        bottom: 30px;
        left: 20px;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
    }
    
    .scroll-arrow i {
        font-size: 1.2rem;
    }
    
    .scroll-text {
        font-size: 0.75rem;
    }
    
    .premium-navbar {
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(10px);
    }
    
    .premium-nav-link {
        color: #fff !important;
    }
}

@media (max-width: 576px) {
    .hero-premium-wrapper,
    .hero-modern-wrapper {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-premium-top-text,
    .hero-modern-top-text {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .hero-premium-title,
    .hero-modern-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-premium-subtitle,
    .hero-modern-subtitle {
        font-size: 0.95rem;
    }
    
    .premium-navbar {
        background: rgba(0, 0, 0, 0.4) !important;
    }
    
    .premium-logo .premium-logo-circle {
        width: 60px;
        height: 60px;
    }
}

/* Logo circle (navbar) - tüm viewportlar */
.modern-logo .logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-logo .logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 991px) {
    .modern-logo .logo-circle {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   SLIDER - PREMIUM WITH BLUR BACKGROUND
   ============================================ */

.hero-slider,
.hero-video-section,
.hero-modern-section {
    margin-top: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Blur background image with overlay */
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 1;
    opacity: 0.5;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 2;
}

.hero-slide > .container {
    position: relative;
    z-index: 3;
}

/* Hero slide video (slider içinde video) */
.hero-slide-video {
    position: relative;
    background: #000;
}

.hero-slide-video-el {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.hero-slide-overlay .container {
    position: relative;
    z-index: 3;
}

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-slide .lead {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* Mobile Slider Adjustments */
@media (max-width: 576px) {
    .hero-slide {
        min-height: 350px;
    }
    
    .hero-slide h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-slide .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-slide .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-slide .lead {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

/* Carousel Controls - Vertical Centered */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 4;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* ============================================
   BUTTONS - PREMIUM STYLE
   ============================================ */

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(58, 125, 68, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.4);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ============================================
   QUALITY SECTION - KALİTEMİZİN SIRRI
   ============================================ */
.quality-section {
    padding: 80px 0;
}

.quality-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.quality-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.quality-icon {
    transition: transform 0.3s ease;
}

.quality-card:hover .quality-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .quality-section {
        padding: 50px 0;
    }
    
    .quality-card .card-body {
        padding: 1.5rem !important;
    }
    
    .quality-icon i {
        font-size: 2.5rem !important;
    }
}

/* ============================================
   INFO CORNER SECTION - BİLGİ KÖŞESİ
   ============================================ */
.info-corner-section {
    padding: 80px 0;
}

.info-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 768px) {
    .info-corner-section {
        padding: 50px 0;
    }
    
    .info-card .card-body {
        padding: 1.5rem !important;
    }
}

/* ============================================
   CATEGORY CARDS - PREMIUM DESIGN
   ============================================ */

.category-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Prevent layout shift - maintain space */
    margin-bottom: 4px;
}

.category-card .card-body {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.category-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.category-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Mobile: 2 columns */
@media (max-width: 576px) {
    .category-card .card-body {
        padding: 2rem 1rem;
    }
    
    .category-card i {
        font-size: 2.5rem;
    }
    
    .category-card h4 {
        font-size: 1.25rem;
    }
}

/* ============================================
   PLAYGROUND SECTION - FIXED
   ============================================ */

.playground-section {
    position: relative;
}

.playground-carousel-container {
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.playground-carousel-container .carousel-inner,
.playground-carousel-container .carousel-item,
.playground-carousel-container img {
    height: 100%;
    object-fit: cover;
}

.playground-carousel-container .carousel-control-prev,
.playground-carousel-container .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   BRANCH CARDS - PERFECTED
   ============================================ */

.branch-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    /* Prevent layout shift - ensure consistent height */
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.branch-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure busy hours section always takes same space */
.branch-card .border-top {
    margin-top: auto;
    padding-top: 1rem;
}

.branch-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    /* Reserve space for hover effect */
    margin: 2px;
}

.branch-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 0;
}

.branch-card .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-card .badge i {
    font-size: 1rem;
}

.branch-card .bi-geo-alt-fill,
.branch-card .bi-telephone-fill {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* ============================================
   TESTIMONIALS - ENHANCED
   ============================================ */

.testimonials-section .bi-star-fill {
    color: var(--primary-color);
    font-size: 1.5rem; /* 20% larger */
    margin: 0 0.25rem;
}

.testimonials-section .bi-star-fill.text-warning {
    color: #ffc107;
}

.testimonial-card {
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ============================================
   GALLERY - PERFECT GRID
   ============================================ */

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    aspect-ratio: 1 / 1; /* Square ratio */
    position: relative;
    transition: transform 0.3s ease;
    /* Fallback for browsers that don't support aspect-ratio */
    width: 100%;
    padding-bottom: 100%; /* Creates square aspect ratio */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 1;
    opacity: 0;
}

.gallery-item img.gallery-img-loaded {
    opacity: 1;
}

.gallery-item-placeholder {
    transition: opacity 0.3s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 125, 68, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    background: rgba(58, 125, 68, 0.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:active .gallery-overlay {
    transform: translateY(0);
}

/* Mobile: Show overlay on tap */
@media (max-width: 768px) {
    .gallery-overlay {
        transform: translateY(0);
        opacity: 0.9;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    }
    
    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
}

/* ============================================
   CONTACT & MAP SECTION
   ============================================ */

.contact-section .ratio {
    border-radius: 12px;
    overflow: hidden;
}

.contact-section iframe {
    border: none;
}

.contact-info i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-section .ratio {
        margin-top: 1.5rem;
    }
}

/* ============================================
   FOOTER - SOFTENED
   ============================================ */

footer {
    margin-top: 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    background-color: #f8f9fa;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--text-dark);
    transition: color 0.3s;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

footer .text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   FORMS - ENHANCED
   ============================================ */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 125, 68, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Job Application Form - Premium Styling */
.job-application-form .form-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.job-application-form .input-group-text {
    border-color: #dee2e6;
}

.job-application-form .form-control,
.job-application-form .form-select {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.job-application-form .form-control:focus,
.job-application-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 125, 68, 0.15);
}

.job-application-form textarea.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s;
}

.job-application-form textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 125, 68, 0.15);
}

.job-application-form .btn:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.3);
}

@media (max-width: 768px) {
    .job-application-form .form-section {
        padding: 1rem;
    }
}

/* Contact Form - Premium Styling */
.contact-form .input-group-text {
    border-color: #dee2e6;
}

.contact-form .form-control {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 125, 68, 0.15);
}

.contact-form textarea.form-control {
    border-left: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s;
}

.contact-form textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 125, 68, 0.15);
}

.contact-form .btn:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.3);
}

.contact-info-section .contact-item {
    transition: all 0.3s;
    padding: 0.75rem;
    border-radius: 8px;
}

.contact-info-section .contact-item:hover {
    background-color: #f8f9fa;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(58, 125, 68, 0.1);
    border-radius: 8px;
}

.branch-item {
    transition: all 0.3s;
}

.branch-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem !important;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.branch-map-card {
    transition: all 0.3s;
}

.branch-map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(58, 125, 68, 0.2) !important;
}

.branch-map-card .btn:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.3);
}

/* Featured Products Slider */
#productsCarousel .product-image-container {
    transition: all 0.3s;
}

#productsCarousel .product-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(58, 125, 68, 0.2) !important;
}

#productsCarousel .product-info {
    padding: 2rem;
}

#productsCarousel .carousel-control-prev,
#productsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s;
}

#productsCarousel .carousel-control-prev {
    left: 20px;
}

#productsCarousel .carousel-control-next {
    right: 20px;
}

#productsCarousel .carousel-control-prev:hover,
#productsCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-hover);
}

@media (max-width: 768px) {
    #productsCarousel .product-image-container img {
        height: 300px;
    }
    
    #productsCarousel .product-info {
        padding: 1.5rem;
        text-align: center;
    }
}

/* About Us Page - Premium Styling */
.about-icon-circle {
    width: 120px;
    height: 120px;
    background: rgba(58, 125, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-section {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
}

.timeline-year {
    flex-shrink: 0;
}

.year-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A7D44 0%, #2E6035 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.3);
}

.timeline-content {
    padding-top: 0.5rem;
}

.value-card {
    transition: all 0.3s;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(58, 125, 68, 0.2) !important;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(58, 125, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.value-card:hover .value-icon {
    background: rgba(58, 125, 68, 0.2);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        margin-bottom: 1rem;
    }
    
    .year-badge {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .about-icon-circle {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   CARDS - GENERAL IMPROVEMENTS
   ============================================ */

.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   BADGES - ENHANCED
   ============================================ */

.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.875rem;
}

.badge[style*="background-color: #3A7D44"] {
    background-color: var(--primary-color) !important;
    color: white;
}

/* ============================================
   LINKS - CONSISTENT
   ============================================ */

a {
    color: var(--primary-color);
    transition: color 0.3s;
    text-decoration: none;
}

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

/* ============================================
   UTILITIES
   ============================================ */

.text-primary-custom {
    color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Section Title Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Mini Gallery Section - Bizden Kareler (homepage) */
.mini-gallery-section .section-title {
    margin-bottom: 1.25rem;
}

.mini-gallery-grid .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding-bottom: 100%;
}

.mini-gallery-grid .gallery-item > *:not(.gallery-item-placeholder) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-gallery-grid .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .mini-gallery-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mini-gallery-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mini-gallery-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .mini-gallery-grid {
        margin-left: -6px;
        margin-right: -6px;
    }
    
    .mini-gallery-grid > [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 8px;
    }
    
    .mini-gallery-grid .gallery-item {
        border-radius: 8px;
    }
    
    .mini-gallery-grid .gallery-overlay {
        padding: 0.5rem 0.4rem;
    }
    
    .mini-gallery-grid .gallery-overlay small {
        font-size: 0.7rem;
        line-height: 1.2;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn-mini-gallery {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.9rem;
    }
}

/* Special Day Cakes Section - Özel Gün Pastalarımız */
.special-cakes-desc {
    max-width: 700px;
}

.special-cakes-grid .gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding-bottom: 100%;
}

.special-cakes-grid .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .special-cakes-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .special-cakes-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .special-cakes-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .special-cakes-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .special-cakes-grid {
        margin-left: -6px;
        margin-right: -6px;
    }
    
    .special-cakes-grid > [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 8px;
    }
    
    .special-cakes-grid .gallery-item {
        border-radius: 8px;
    }
    
    .special-cakes-grid .gallery-overlay {
        padding: 0.5rem 0.4rem;
    }
    
    .special-cakes-grid .gallery-overlay small {
        font-size: 0.7rem;
        line-height: 1.2;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn-special-cakes {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.9rem;
        border-radius: 10px !important;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON & NAV BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Prevent layout shift - reserve space */
    min-width: 60px;
    min-height: 60px;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float i {
    line-height: 1;
}

.whatsapp-nav-btn {
    transition: all 0.3s ease;
}

.whatsapp-nav-btn:hover {
    background-color: #20ba5a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-nav-btn {
        margin-top: 0.5rem !important;
        display: block;
        text-align: center;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(58, 125, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent layout shift - reserve space */
    min-width: 50px;
    min-height: 50px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(58, 125, 68, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        bottom: 80px;
        right: 15px;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.5rem;
    display: none;
    border-top: 3px solid var(--primary-color);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--primary-color);
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ERROR PAGES
   ============================================ */
.error-page {
    padding: 3rem 0;
}

.error-page h1 {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .error-page h1 {
        font-size: 5rem;
    }
    
    .error-page h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.social-share-btn.facebook {
    background-color: #1877f2;
}

.social-share-btn.twitter {
    background-color: #1da1f2;
}

.social-share-btn.whatsapp {
    background-color: #25d366;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   ARIA LABELS & ACCESSIBILITY
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PERFORMANCE: LAZY LOADING & IMAGE OPTIMIZATION
   ============================================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Optimize all images - Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent layout shift during image load */
    background-color: #f5f5f5;
}

/* Set explicit dimensions for common image containers */
.hero-slide img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* gallery-item img already defined above with absolute positioning */

/* Mobile Image Optimization */
@media (max-width: 768px) {
    img {
        width: 100%;
        height: auto;
    }
    
    /* Reduce image quality on mobile for faster loading */
    .hero-slide {
        background-size: cover;
        background-position: center;
    }
}

/* Touch Target Optimization for Mobile */
@media (max-width: 768px) {
    .btn, button, a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 1rem 0.75rem !important;
        min-height: 44px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        min-width: 44px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Typography Optimization */
@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile Card Optimization */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-y: 1.5rem;
        --bs-gutter-x: 1rem;
    }
}

/* Mobile Form Optimization */
@media (max-width: 768px) {
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .input-group-text {
        padding: 0.75rem;
    }
}

/* Mobile Table Optimization */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
}

/* Mobile Social Share Buttons */
@media (max-width: 576px) {
    .social-share {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-share-btn {
        width: 36px;
        height: 36px;
    }
}

/* Mobile Contact Form */
@media (max-width: 768px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Mobile Branch Cards */
@media (max-width: 576px) {
    .branch-card .card-body {
        padding: 1.5rem !important;
    }
}

/* Mobile Gallery - Optimized */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 0;
        border-radius: 6px;
        /* Ensure consistent sizing */
        min-height: 0;
    }
    
    .gallery-item img {
        opacity: 1; /* Show immediately on mobile */
    }
    
    .gallery-overlay {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .gallery-overlay h5 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .gallery-overlay small {
        font-size: 0.75rem;
    }
    
    /* Reduce hover scale on mobile */
    .gallery-item:hover img {
        transform: scale(1.03);
    }
    
    /* Ensure grid items are equal height */
    .row.g-2 > [class*="col-"] {
        display: flex;
    }
    
    .row.g-2 > [class*="col-"] > a {
        width: 100%;
        display: flex;
    }
    
    .row.g-2 > [class*="col-"] > a > .gallery-item {
        width: 100%;
    }
}

/* Mobile Gallery - Extra Small Screens */
@media (max-width: 576px) {
    .gallery-item {
        border-radius: 4px;
    }
    
    .gallery-overlay {
        padding: 0.5rem;
    }
    
    .gallery-overlay h5 {
        font-size: 0.85rem;
    }
    
    .gallery-overlay small {
        font-size: 0.7rem;
    }
    
    /* Gallery grid mobile optimization */
    .gallery-grid-mobile {
        margin-left: -6px;
        margin-right: -6px;
    }
    
    .gallery-col-mobile {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }
    
    /* Ensure all gallery items are same size */
    .gallery-col-mobile .gallery-item {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
    }
    
    .gallery-col-mobile .gallery-item > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Filter Buttons - Mobile Optimized */
.modern-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.modern-filter-buttons .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn {
    background-color: #f8f9fa;
    color: #333;
    border-color: #e0e0e0;
}

.filter-btn:hover {
    background-color: #3A7D44;
    color: white;
    border-color: #3A7D44;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(58, 125, 68, 0.3);
}

.active-filter {
    background-color: #3A7D44;
    color: white;
    border-color: #3A7D44;
    font-weight: 600;
}

.active-filter:hover {
    background-color: #2E6035;
    border-color: #2E6035;
}

@media (max-width: 576px) {
    .modern-filter-buttons {
        gap: 0.4rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .modern-filter-buttons::-webkit-scrollbar {
        height: 4px;
    }
    
    .modern-filter-buttons::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 2px;
    }
    
    .modern-filter-buttons::-webkit-scrollbar-thumb {
        background: #3A7D44;
        border-radius: 2px;
    }
    
    .modern-filter-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .gallery-item {
        aspect-ratio: 1 / 1;
        padding-bottom: 100%;
        /* Prevent layout shift */
        background: linear-gradient(135deg, rgba(58, 125, 68, 0.05) 0%, rgba(46, 96, 53, 0.05) 100%);
    }
    
    .gallery-item img {
        opacity: 1; /* Show immediately on mobile */
    }
    
    /* Placeholder mobilde de görünsün: görsel yüklenmeyince veya hata olunca "Yükleniyor..." / "Görsel yüklenemedi" gösterilir; yüklenince JS ile gizlenir */
    
    /* Gallery page specific spacing */
    section.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Ensure equal height columns */
    .row.g-2 > [class*="col-"] {
        display: flex;
        margin-bottom: 0.5rem;
    }
    
    .row.g-2 > [class*="col-"] > a {
        width: 100%;
        display: flex;
    }
    
    .row.g-2 > [class*="col-"] > a > .gallery-item {
        width: 100%;
    }
}

/* Performance: Will-change for animations */
.hero-slide,
.category-card,
.gallery-item {
    will-change: transform;
}

/* Mobile Performance: Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile: Optimize iframe loading */
@media (max-width: 768px) {
    iframe {
        max-width: 100%;
        height: auto;
    }
    
    .ratio-16x9 {
        min-height: 250px;
    }
}

/* Mobile: Optimize carousel on small screens */
@media (max-width: 576px) {
    .carousel-item img {
        max-height: 300px;
        object-fit: cover;
        /* Prevent layout shift - set explicit dimensions */
        width: 100%;
        height: auto;
        min-height: 250px;
    }
}

/* Mobile: Optimize text readability */
@media (max-width: 768px) {
    p, li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .card-body p {
        font-size: 0.9rem;
    }
}

/* ============================================
   360° VIRTUAL TOUR STYLES
   ============================================ */

/* Virtual Tour Section - Ana Sayfa */
.virtual-tour-section {
    position: relative;
    padding: 60px 0;
}

.virtual-tour-card {
    transition: box-shadow 0.3s ease;
    /* Prevent layout shift on hover - use box-shadow only */
    margin-bottom: 0;
}

.virtual-tour-card:hover {
    /* Remove translateY to prevent layout shift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.virtual-tour-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* Prevent layout shift - ensure consistent height */
    min-height: 400px;
    background: linear-gradient(135deg, rgba(58, 125, 68, 0.05) 0%, rgba(46, 96, 53, 0.05) 100%);
}

.virtual-tour-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.virtual-tour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    /* Prevent layout shift - ensure image fills container */
    display: block;
    position: relative;
    z-index: 1;
}

.virtual-tour-placeholder {
    transition: opacity 0.3s ease;
}

.virtual-tour-img.loaded ~ .virtual-tour-placeholder,
.virtual-tour-img[src]:not([src=""]) ~ .virtual-tour-placeholder {
    display: none !important;
}

.virtual-tour-link:hover .virtual-tour-img {
    /* Remove scale transform to prevent layout shift */
    filter: brightness(1.05);
}

.virtual-tour-overlay {
    background: linear-gradient(135deg, rgba(58, 125, 68, 0.85) 0%, rgba(46, 96, 53, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    /* Prevent layout shift - overlay doesn't affect layout */
    pointer-events: none;
}

.virtual-tour-link:hover .virtual-tour-overlay {
    pointer-events: auto;
}

.virtual-tour-link:hover .virtual-tour-overlay {
    opacity: 1;
}

.virtual-tour-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.virtual-tour-badge {
    transition: opacity 0.3s ease;
    /* Prevent layout shift - badge position is fixed */
    z-index: 5;
}

.virtual-tour-link:hover .virtual-tour-badge {
    /* Remove scale transform to prevent layout shift */
    opacity: 0.9;
}

.virtual-tour-btn {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Prevent layout shift - reserve space for hover effect */
    margin-top: 2px;
}

.virtual-tour-btn:hover {
    background-color: #2E6035 !important;
    /* Remove translateY to prevent layout shift */
    box-shadow: 0 6px 20px rgba(58, 125, 68, 0.4);
}

.virtual-tour-btn i:last-child {
    transition: transform 0.3s ease;
}

.virtual-tour-btn:hover i:last-child {
    transform: translateX(5px);
}

/* Virtual Tour Page - Sanal Tur Sayfası */
.virtual-tour-page {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.virtual-tour-item {
    transition: all 0.3s ease;
    position: relative;
}

.virtual-tour-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.virtual-tour-image-wrapper {
    position: relative;
    overflow: hidden;
}

.virtual-tour-lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.virtual-tour-lightbox-link .virtual-tour-img {
    transition: transform 0.5s ease, filter 0.3s ease;
}

.virtual-tour-lightbox-link:hover .virtual-tour-img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.virtual-tour-hover-overlay {
    background: linear-gradient(135deg, rgba(58, 125, 68, 0.9) 0%, rgba(46, 96, 53, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.virtual-tour-lightbox-link:hover .virtual-tour-hover-overlay {
    opacity: 1;
}

.zoom-icon {
    animation: zoomPulse 2s infinite;
}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Mobile Optimizations for Virtual Tour */
@media (max-width: 768px) {
    .virtual-tour-section {
        padding: 40px 0;
    }
    
    .virtual-tour-card {
        border-radius: 16px !important;
    }
    
    .virtual-tour-image-container {
        min-height: 300px;
    }
    
    .virtual-tour-overlay h4 {
        font-size: 1.25rem;
    }
    
    .virtual-tour-overlay p {
        font-size: 0.9rem;
    }
    
    .virtual-tour-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .virtual-tour-icon i {
        font-size: 2rem !important;
    }
    
    .virtual-tour-badge {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.8rem !important;
    }
    
    .virtual-tour-btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.95rem;
        margin-top: 0;
    }
    
    .virtual-tour-item {
        margin-bottom: 1.5rem;
    }
    
    .virtual-tour-item .card-header {
        padding: 1rem !important;
    }
    
    .virtual-tour-item .card-header h5 {
        font-size: 1rem;
    }
    
    .zoom-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .zoom-icon i {
        font-size: 1.5rem !important;
    }
    
    .ratio-16x9 {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .virtual-tour-section h2 {
        font-size: 1.75rem;
    }
    
    .virtual-tour-section .lead {
        font-size: 0.95rem;
    }
    
    .virtual-tour-card .card-header {
        padding: 1rem !important;
    }
    
    .virtual-tour-card .card-header h5 {
        font-size: 1rem;
    }
    
    .virtual-tour-card .card-header small {
        font-size: 0.75rem;
    }
    
    .virtual-tour-badge {
        display: none;
    }
    
    .virtual-tour-item .card-header .badge {
        display: none;
    }
}

/* ============================================
   BRANCHES CAROUSEL STYLES
   ============================================ */

.branches-section {
    position: relative;
}

#branchesCarousel {
    position: relative;
    padding: 0 50px;
}

#branchesCarousel .carousel-inner {
    padding: 20px 0;
}

#branchesCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
    /* Prevent layout shift during carousel transition */
    min-height: 600px;
}

#branchesCarousel .carousel-item .branch-card {
    /* Ensure card fills carousel item */
    height: 100%;
    min-height: 500px;
}

#branchesCarousel .carousel-control-prev,
#branchesCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #3A7D44;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

#branchesCarousel .carousel-control-prev {
    left: 0;
}

#branchesCarousel .carousel-control-next {
    right: 0;
}

#branchesCarousel .carousel-control-prev:hover,
#branchesCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: #2E6035;
    transform: translateY(-50%) scale(1.1);
}

#branchesCarousel .carousel-control-prev-icon,
#branchesCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#branchesCarousel .carousel-indicators {
    margin-bottom: -40px;
}

#branchesCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3A7D44;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#branchesCarousel .carousel-indicators button.active {
    opacity: 1;
    background-color: #3A7D44;
    transform: scale(1.3);
    border-color: #2E6035;
}

#branchesCarousel .branch-card {
    transition: all 0.3s ease;
}

#branchesCarousel .branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile Optimizations for Branches Carousel */
@media (max-width: 768px) {
    #branchesCarousel {
        padding: 0 40px;
    }
    
    #branchesCarousel .carousel-item {
        min-height: 550px;
    }
    
    #branchesCarousel .carousel-item .branch-card {
        min-height: 450px;
    }
    
    #branchesCarousel .carousel-control-prev,
    #branchesCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #branchesCarousel .carousel-control-prev-icon,
    #branchesCarousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
    
    #branchesCarousel .carousel-indicators {
        margin-bottom: -30px;
    }
    
    #branchesCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .branches-section .section-title {
        font-size: 1.75rem;
    }
    
    .branches-section .lead {
        font-size: 0.95rem;
    }
    
    .branch-card .card-header {
        padding: 1rem !important;
    }
    
    .branch-card .card-header h5 {
        font-size: 1rem;
    }
    
    .branch-card .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    #branchesCarousel {
        padding: 0 30px;
    }
    
    #branchesCarousel .carousel-control-prev,
    #branchesCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .branch-card .card-header .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem !important;
    }
    
    .branch-card .card-body h6 {
        font-size: 0.9rem;
    }
    
    .branch-card .card-body p,
    .branch-card .card-body a {
        font-size: 0.9rem;
    }
}

/* Mobile: Optimize spacing */
@media (max-width: 576px) {
    .mb-4, .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-4, .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ============================================
   360° Pannellum Viewer (.pano-viewer)
   ============================================ */
.pano-viewer {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    min-height: 500px;
}

.pano-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pano-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pano-thumb:hover,
.pano-thumb.active {
    border-color: var(--primary-color, #3A7D44);
}

.pano-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobil: pano-viewer ve thumb bar */
@media (max-width: 768px) {
    .pano-viewer {
        height: 320px;
        border-radius: 12px;
        min-height: 320px;
    }

    .pano-thumbs {
        margin-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .pano-thumb {
        width: 64px;
        height: 40px;
    }
}

.pano-start-btn {
    width: 100%;
}

/* Pannellum canvas fix */
.pano-viewer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* ============================================
   MODERN 360° VIRTUAL TOUR
   ============================================ */

/* Hero Section */
.virtual-tour-header {
    position: relative;
}

.tour-icon {
    display: inline-block;
}

.icon-360 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A7D44 0%, #2E6035 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(58, 125, 68, 0.3);
    animation: rotate360 20s linear infinite;
    position: relative;
}

.icon-360::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(58, 125, 68, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Main Viewer Container */
.virtual-tour-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
    background: #1a1a1a;
}

.modern-pano-viewer {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Enhanced Loading Overlay */
.pano-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner-360 {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(58, 125, 68, 0.2);
    border-top: 4px solid #3A7D44;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner-360::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(58, 125, 68, 0.1);
    border-top: 3px solid #2E6035;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.6s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3A7D44;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(58, 125, 68, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar-360 {
    height: 100%;
    background: linear-gradient(90deg, #3A7D44, #2E6035);
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Viewer Controls */
.pano-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
}

.control-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(58, 125, 68, 0.8);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.control-btn:hover {
    background: #3A7D44;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(58, 125, 68, 0.4);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Modern Thumbnails */
.pano-thumbnails-container {
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.thumbnails-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.thumbnails-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3A7D44;
    margin: 0;
}

.thumbnails-nav {
    display: flex;
    gap: 0.5rem;
}

.thumb-nav-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #3A7D44;
    background: white;
    color: #3A7D44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-nav-btn:hover {
    background: #3A7D44;
    color: white;
    transform: scale(1.1);
}

.modern-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.modern-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modern-thumbnails::-webkit-scrollbar-track {
    background: rgba(58, 125, 68, 0.1);
    border-radius: 3px;
}

.modern-thumbnails::-webkit-scrollbar-thumb {
    background: #3A7D44;
    border-radius: 3px;
}

.pano-thumb-wrapper {
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.pano-thumb-wrapper.active {
    transform: scale(1.05);
}

.modern-thumb {
    border: none;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: 200px;
    height: 120px;
    position: relative;
}

.modern-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(58, 125, 68, 0.3);
}

.thumb-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-thumb:hover .thumb-image img {
    transform: scale(1.1);
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 125, 68, 0.8) 0%, rgba(46, 96, 53, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-thumb:hover .thumb-overlay {
    opacity: 1;
}

.thumb-icon {
    color: white;
    font-size: 2rem;
    animation: rotate360 10s linear infinite;
}

.thumb-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 1rem 0.75rem 0.75rem;
    color: white;
}

.thumb-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.thumb-number {
    display: inline-block;
    background: #3A7D44;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.pano-thumb-wrapper.active .modern-thumb {
    border: 3px solid #3A7D44;
    box-shadow: 0 8px 32px rgba(58, 125, 68, 0.4);
}

/* Info Grid */
.virtual-tour-info {
    margin-top: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(58, 125, 68, 0.2);
    border-color: #3A7D44;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A7D44 0%, #2E6035 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.info-content h4 {
    color: #3A7D44;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .icon-360 {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modern-pano-viewer {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .pano-controls {
        top: 10px;
        right: 10px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .modern-thumb {
        width: 150px;
        height: 90px;
    }
    
    .thumbnails-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

/* Pannellum canvas fix */
.pano-viewer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Loading spinner fix */
#panoViewerLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
