/* ============================================
   GLOBAL CSS - Ozturk Avukatlik
   Premium Law Firm Website
   ============================================ */

/* ========== CSS RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all elements */
*,
*::before,
*::after {
    max-width: 100%;
}

:root {
    /* Base Color Palette */
    --color-black: #1a1a1a;
    --color-black-dark: #0d0d0d;
    --color-white: #ffffff;
    --color-gold: #b08a44;         /* premium bronze */
    --color-gold-light: #d2b074;   /* soft champagne */
    --color-gold-dark: #8a6a34;    /* deep bronze */
    --color-gray: #2a2a2a;
    --color-gray-light: #3a3a3a;
    --color-gray-dark: #1f1f1f;
    --color-light-bg: #f8f5ef;     /* warm ivory */
    --color-light-secondary: #eee7da;

    /* Theme Variables - Default (Dark) */
    --bg-primary: var(--color-black);
    --bg-secondary: var(--color-black-dark);
    --bg-accent: var(--color-gray-dark);
    --text-primary: var(--color-white);
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --header-gradient: linear-gradient(135deg, var(--color-black-dark) 0%, var(--color-gray-dark) 50%, var(--color-black) 100%);
    --overlay-gradient: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
    --section-transition-height: clamp(120px, 14vw, 200px);
    --section-transition-gradient: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 10, 14, 0.2) 35%,
        rgba(12, 12, 18, 0.14) 55%,
        rgba(14, 14, 20, 0.08) 72%,
        transparent 100%
    );

    /* Typography */
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'Arial', 'Helvetica', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --max-width: 1200px;
    --header-height: 120px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(160, 168, 192, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --hero-overlay: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] {
    --bg-primary: var(--color-light-bg);
    --bg-secondary: var(--color-light-secondary);
    --bg-accent: #f2ebde;
    --text-primary: #211a12;
    --text-secondary: rgba(38, 29, 19, 0.78);
    --text-muted: rgba(68, 51, 29, 0.55);
    --header-gradient: linear-gradient(135deg, #efe6d7 0%, #f7f2e8 52%, #fcf8f1 100%);

    --section-transition-gradient: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(235, 235, 243, 0.22) 35%,
        rgba(237, 237, 245, 0.15) 56%,
        rgba(241, 241, 248, 0.08) 74%,
        transparent 100%
    );

    /* Light Theme Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(126, 93, 39, 0.18);
    --glass-shadow: 0 10px 30px 0 rgba(92, 67, 31, 0.1);
    --hero-overlay: rgba(248, 245, 239, 0.22);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color, color;
}

main {
    background-color: var(--bg-primary);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, background-color;
}

/* Smooth transitions for Barba.js containers */
[data-barba="container"] {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Light mode specific optimizations - smoother transitions */
[data-theme="light"] body,
[data-theme="light"] main,
[data-theme="light"] [data-barba="container"] {
    transition: background-color 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Section transitions for smoother page loads */
.section {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    transition: letter-spacing 0.4s ease, color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    letter-spacing: 2px;
    color: var(--color-gold-light);
    text-shadow: 0 0 15px rgba(160, 168, 192, 0.35);
    transform: translateY(-2px);
    cursor: pointer;
}

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

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    transition: color 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

p:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    display: inline-block;
    cursor: pointer;
}

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

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--header-height);
    background-color: var(--bg-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color, border-color;
}

/* Light mode navbar transitions */
[data-theme="light"] .navbar {
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    height: 90px;
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
}

.navbar-logo,
.footer-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 0 rgba(160, 168, 192, 0));
}

.navbar-logo:hover,
.footer-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(160, 168, 192, 0.5)) brightness(1.15);
    cursor: pointer;
}

.navbar.scrolled .navbar-logo {
    height: 65px;
}

/* Logo theme switching — img.logo-* specificity (0,1,1) beats single-class rules in style.css */
img.logo-light { display: none; }

[data-theme="light"] img.logo-dark  { display: none; }
[data-theme="light"] img.logo-light { display: block; }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

/* Hide navbar menu and show toggle on screens smaller than 1200px */
@media (max-width: 1199px) {
    .navbar-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background-color: var(--bg-secondary);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(160, 168, 192, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        box-sizing: border-box;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-toggle {
        display: flex !important;
        z-index: 1001;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        min-width: 36px;
        position: relative;
        order: 3; /* Put it after nav-actions */
        background: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px;
    }

    .navbar-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .navbar-toggle span {
        width: 20px;
        height: 2px;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .navbar-item {
        width: 100%;
        text-align: center;
    }

    .navbar-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 44px; /* Touch-friendly */
    }

    .navbar-link:last-child {
        border-bottom: none;
    }
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar.scrolled .navbar-link {
    font-size: 0.95rem;
}

.navbar-link:hover {
    color: var(--color-gold);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-normal);
}

.navbar-link:hover::after {
    width: 80%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-shrink: 0;
    min-width: 40px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1001;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
    display: block;
    flex-shrink: 0;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 0.9rem 1.7rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 55%, var(--color-gold-dark) 100%);
    color: #21160a;
    border-color: rgba(92, 67, 31, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #dcc08b 0%, #ba934d 55%, #8d6c36 100%);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(124, 91, 41, 0.32);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--color-black);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

/* Light mode btn-secondary - make it visible on light backgrounds */
[data-theme="light"] .btn-secondary {
    color: #4b3a1f;
    border: 1px solid rgba(75, 58, 31, 0.65);
    background-color: rgba(176, 138, 68, 0.08);
    box-shadow: 0 8px 22px rgba(92, 67, 31, 0.12);
}

[data-theme="light"] .btn-secondary:hover {
    background-color: #4b3a1f;
    color: var(--color-white);
    border-color: #4b3a1f;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(75, 58, 31, 0.26);
}

/* Light mode hero CTA visibility: keep visible on image backgrounds */
[data-theme="light"] .hero .btn-secondary,
[data-theme="light"] .page-header .btn-secondary {
    background-color: rgba(252, 248, 241, 0.9);
    color: #3f2f17;
    border-color: rgba(75, 58, 31, 0.8);
    box-shadow: 0 10px 24px rgba(92, 67, 31, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* On hover, match the adjacent primary CTA style */
[data-theme="light"] .hero .btn-secondary:hover,
[data-theme="light"] .page-header .btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 55%, var(--color-gold-dark) 100%);
    color: #21160a;
    border-color: rgba(92, 67, 31, 0.25);
    box-shadow: 0 14px 28px rgba(124, 91, 41, 0.32);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* ========== SECTIONS ========== */
.section {
    padding: var(--spacing-xxl) var(--spacing-md);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}


.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode container transitions */
[data-theme="light"] .container {
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ========== CARDS ========== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 12px;
    /* transition'ı sadece hover efektleri için kısıtlıyoruz, GSAP (opacity/transform) ile çakışmaması için */
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
}

.card-title {
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
}

/* ========== GRID LAYOUTS ========== */
.grid {
    display: grid;
    gap: var(--spacing-md);
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========== DIVIDERS ========== */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: var(--spacing-lg) 0;
}

.divider-thick {
    height: 3px;
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-xxl {
    margin-top: var(--spacing-xxl);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
/* 
   Breakpoint System:
   - Mobile: 320px - 480px
   - Tablet: 481px - 768px
   - Small Desktop: 769px - 1024px
   - Desktop: 1025px - 1440px
   - Large Desktop: 1441px - 1920px
   - TV/Large Screens: 1921px+
*/

/* ========== TV & LARGE SCREENS (1921px+) ========== */
@media (min-width: 1921px) {
    :root {
        --max-width: 1600px;
        --header-height: 140px;
        font-size: 18px;
    }

    .container {
        max-width: var(--max-width);
    }

    .navbar-logo {
        height: 110px;
    }

    .navbar.scrolled .navbar-logo {
        height: 80px;
    }

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3.5rem;
    }

    .section {
        padding: var(--spacing-xxl) var(--spacing-xl);
    }
}

/* ========== LARGE DESKTOP (1441px - 1920px) ========== */
@media (min-width: 1441px) and (max-width: 1920px) {
    :root {
        --max-width: 1400px;
    }
}

/* ========== DESKTOP (1025px - 1440px) ========== */
@media (min-width: 1025px) and (max-width: 1440px) {
    :root {
        --max-width: 1200px;
    }

    .navbar-menu {
        gap: var(--spacing-xs);
    }

    .navbar-link {
        font-size: 0.9rem;
        padding: var(--spacing-xs);
        letter-spacing: 0.5px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== SMALL DESKTOP & TABLET LANDSCAPE (769px - 1199px) ========== */
@media (min-width: 769px) and (max-width: 1199px) {
    :root {
        --header-height: 100px;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    /* Navbar menu is hidden, using mobile menu instead - already handled by @media (max-width: 1199px) */
}

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-logo {
        height: 80px;
    }

    .navbar.scrolled .navbar-logo {
        height: 70px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-content {
        max-width: 700px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ========== TABLET PORTRAIT (481px - 768px) ========== */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --header-height: 75px;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3.5rem;
        font-size: 15px;
    }

    .navbar {
        padding: 0 var(--spacing-sm);
        max-width: 100vw;
        overflow: visible;
    }

    .navbar-brand {
        flex-shrink: 0;
        max-width: 110px;
    }

    .navbar-logo {
        height: 65px;
    }

    .navbar.scrolled .navbar-logo {
        height: 55px;
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.25rem;
        margin-left: auto;
        flex-shrink: 0;
        max-width: 120px;
        min-width: 0;
        order: 2; /* Put it before navbar-toggle */
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-switcher {
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        z-index: 99999 !important;
        position: absolute !important;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        padding: 5px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .language-toggle {
        padding: 0.28rem 0.4rem;
        font-size: 0.68rem;
        min-width: 42px;
        max-width: 48px;
        flex-shrink: 0;
    }

    .language-toggle .current-lang {
        font-size: 0.68rem;
    }

    .lang-chevron {
        width: 9px;
        height: 9px;
    }

    .navbar-toggle {
        display: flex !important;
        order: 3;
        margin-left: 0.25rem;
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 7px;
    }

    .navbar-toggle span {
        width: 17px;
        height: 2px;
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly */
    }

    .section-title::after {
        width: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 100px;
        right: 20px;
    }
}

/* ========== MOBILE (320px - 480px) ========== */
@media (max-width: 480px) {
    :root {
        --header-height: 65px;
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
        font-size: 14px;
    }

    html {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .navbar {
        padding: 0 var(--spacing-xs);
        height: var(--header-height);
        max-width: 100vw;
        overflow: visible;
        box-sizing: border-box;
    }

    .navbar.scrolled {
        padding: 0 var(--spacing-xs);
    }

    .navbar.scrolled {
        height: 60px;
    }

    .navbar-brand {
        font-size: 1rem;
        flex-shrink: 0;
        max-width: 90px;
        min-width: 0;
    }

    .navbar-logo {
        height: 50px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }

    .navbar.scrolled .navbar-logo {
        height: 45px;
    }

    .navbar-menu {
        padding: var(--spacing-md) var(--spacing-sm);
        top: var(--header-height);
    }

    .navbar-link {
        font-size: 0.9rem;
        padding: var(--spacing-sm);
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.2rem;
        margin-left: auto;
        flex-shrink: 0;
        max-width: 100px;
        min-width: 0;
        order: 2;
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-switcher {
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        z-index: 99999 !important;
        position: absolute !important;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }

    .language-toggle {
        padding: 0.22rem 0.32rem;
        font-size: 0.63rem;
        min-width: 36px;
        max-width: 42px;
    }

    .language-toggle .current-lang {
        font-size: 0.63rem;
    }

    .lang-chevron {
        width: 8px;
        height: 8px;
    }

    .navbar-toggle {
        display: flex !important;
        order: 3;
        margin-left: 0.2rem;
        width: 32px;
        height: 32px;
        min-width: 32px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 7px;
    }

    .navbar-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-toggle span {
        width: 16px;
        height: 2px;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
        margin-left: 0;
        flex-shrink: 0;
        padding: 5px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .language-toggle {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
        min-width: 40px;
        max-width: 46px;
    }

    .language-toggle .current-lang {
        font-size: 0.65rem;
    }

    .lang-chevron {
        width: 9px;
        height: 9px;
    }

    .language-toggle {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 45px;
        max-width: 55px;
        flex-shrink: 0;
    }

    .current-lang {
        font-size: 0.7rem;
    }

    .lang-chevron {
        width: 10px;
        height: 10px;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        min-width: 130px;
        right: 0;
        z-index: 99999 !important;
        position: absolute !important;
    }

    .language-switcher {
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .nav-actions {
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    /* Particles-js'i mobil ekranlarda navbar bölgesinde tamamen gizle */

    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.3;
    }

    h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
        line-height: 1.3;
    }

    h4 {
        font-size: clamp(1.1rem, 5vw, 1.25rem);
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero {
        min-height: 70vh;
        padding-top: var(--header-height);
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: var(--spacing-md);
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
        min-height: 48px; /* Touch-friendly */
    }

    .page-header {
        min-height: 300px;
        padding-top: var(--header-height);
    }

    .page-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .page-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly */
        min-width: 120px;
    }

    .card {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .card-title {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: var(--spacing-md);
    }

    .section-title::after {
        width: 50px;
        height: 2px;
    }

    .footer {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
    }

    .footer-logo {
        height: 80px;
        margin-bottom: var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-section {
        margin-bottom: var(--spacing-md);
    }

    .footer-subtitle {
        font-size: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: var(--spacing-xs) 0;
        display: block;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 15px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator p {
        font-size: 0.7rem;
    }

    .mouse {
        width: 20px;
        height: 32px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .vision-mission-card {
        padding: var(--spacing-md);
    }

    .vision-mission-icon {
        width: 60px;
        height: 60px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .contact-card-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto var(--spacing-sm);
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 15px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }

    .faq-layout {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }

    .faq-sticky {
        position: static;
    }

    .contact-form-card {
        padding: var(--spacing-md);
    }

    .form-title {
        font-size: 1.5rem;
    }

    .premium-form input,
    .premium-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 0;
    }

    .premium-form label {
        font-size: 0.9rem;
    }

    .map-section {
        height: 300px;
    }
}

/* ========== VERY SMALL MOBILE (320px - 360px) ========== */
@media (max-width: 360px) {
    :root {
        font-size: 13px;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .navbar {
        padding: 0 0.3rem;
        max-width: 100vw;
        overflow: hidden;
    }

    .navbar-brand {
        max-width: 85px;
    }

    .navbar-logo {
        height: 48px;
        max-width: 85px;
    }

    .navbar.scrolled .navbar-logo {
        height: 42px;
    }

    .nav-actions {
        gap: 0.15rem;
        max-width: 95px;
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-switcher {
        z-index: 99999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        z-index: 99999 !important;
        position: absolute !important;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }

    .language-toggle {
        padding: 0.2rem 0.3rem;
        font-size: 0.6rem;
        min-width: 36px;
        max-width: 40px;
    }

    .language-toggle .current-lang {
        font-size: 0.6rem;
    }

    .lang-chevron {
        width: 8px;
        height: 8px;
    }

    .navbar-toggle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 6px;
    }

    .navbar-toggle span {
        width: 14px;
        height: 2px;
    }

    .language-toggle {
        padding: 0.25rem 0.4rem;
        min-width: 40px;
        max-width: 50px;
        font-size: 0.65rem;
    }

    .current-lang {
        font-size: 0.65rem;
    }

    .section {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .container {
        padding: 0 var(--spacing-xs);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ========== LANDSCAPE ORIENTATION OPTIMIZATIONS ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: var(--header-height);
    }

    .page-header {
        min-height: 100vh;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn,
    .navbar-link,
    .language-toggle,
    .theme-toggle,
    .whatsapp-button,
    .back-to-top,
    .contact-card,
    .card {
        -webkit-tap-highlight-color: rgba(160, 168, 192, 0.2);
        tap-highlight-color: rgba(160, 168, 192, 0.2);
    }

    .btn:hover,
    .card:hover {
        transform: none; /* Disable hover transforms on touch */
    }

    .navbar-link:hover::after {
        width: 0; /* Disable hover effects */
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .whatsapp-button,
    .back-to-top,
    .scroll-progress,
    .scroll-indicator,
    .preloader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gold);
    transition: all 0.3s ease;
    margin-left: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(160, 168, 192, 0.3);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide one icon based on theme */
[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* If no attribute set, assume dark is default for initial hide */
html:not([data-theme]) .theme-toggle .moon-icon {
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
}

/* ========== WHATSAPP BUTTON ========== */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    text-decoration: none;
    animation: whatsappFloat 3s ease-in-out infinite, whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    background-color: #20BA5A;
    animation: whatsappFloat 3s ease-in-out infinite, whatsappPulse 1.5s ease-in-out infinite;
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
    fill: var(--color-white);
    animation: whatsappIcon 2s ease-in-out infinite;
}

@keyframes whatsappFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }

    @keyframes whatsappFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }
}

/* ========== NAV ACTIONS ========== */
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
    gap: 0.5rem;
    position: relative;
    z-index: 10001;
    isolation: isolate;
    /* Push to right if needed, though structure handles it */
}

@media (max-width: 768px) {
    .nav-actions {
        margin-right: var(--spacing-sm);
        gap: 0.4rem;
        z-index: 10001;
        isolation: isolate;
    }
}

/* ========== ACTIVE LINK ========== */
.navbar-link.active {
    color: var(--color-gold);
}

.navbar-link.active::after {
    width: 80%;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    z-index: 10001;
    /* Above preloader and navbar */
    box-shadow: 0 0 8px rgba(160, 168, 192, 0.4);
    transition: width 0.1s ease-out;
}

/* ========== LANGUAGE SWITCHER ========== */
.language-switcher {
    position: relative;
    margin-left: var(--spacing-sm);
    z-index: 10001;
    isolation: isolate;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 60px;
    justify-content: space-between;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.language-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 1);
}

.language-toggle.active .lang-chevron {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.lang-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    stroke: currentColor;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.375rem;
    margin: 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10001;
    overflow: hidden;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 5px;
    margin: 0.125rem 0;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 1);
    transform: translateX(2px);
}

.language-option.active {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 1);
}

.language-option.active .lang-code {
    font-weight: 700;
}

.lang-code {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    min-width: 32px;
}

.lang-name {
    font-weight: 400;
    font-size: 0.8125rem;
    opacity: 0.75;
    margin-left: auto;
}

/* Light Mode Styles */
[data-theme="light"] .language-toggle {
    background: rgba(176, 138, 68, 0.09);
    border: 1px solid rgba(108, 80, 40, 0.24);
    color: rgba(43, 31, 18, 0.9);
}

[data-theme="light"] .language-toggle:hover {
    background: rgba(176, 138, 68, 0.14);
    border-color: rgba(108, 80, 40, 0.34);
    color: rgba(33, 24, 13, 1);
    box-shadow: 0 6px 18px rgba(92, 67, 31, 0.15);
}

[data-theme="light"] .language-toggle.active {
    background: rgba(176, 138, 68, 0.18);
    border-color: rgba(108, 80, 40, 0.42);
    color: rgba(33, 24, 13, 1);
}

[data-theme="light"] .language-dropdown {
    background: rgba(254, 250, 244, 0.98);
    border: 1px solid rgba(108, 80, 40, 0.2);
    box-shadow: 0 12px 36px rgba(92, 67, 31, 0.18), 0 0 0 1px rgba(108, 80, 40, 0.08);
}

[data-theme="light"] .language-option {
    color: rgba(43, 31, 18, 0.8);
}

[data-theme="light"] .language-option:hover {
    background: rgba(176, 138, 68, 0.12);
    color: rgba(33, 24, 13, 1);
}

[data-theme="light"] .language-option.active {
    background: rgba(176, 138, 68, 0.18);
    color: rgba(33, 24, 13, 1);
}

[data-theme="light"] .lang-name {
    opacity: 0.65;
}

/* Mobil ekranlar için özel kurallar - daha spesifik breakpoint'lerden sonra gelmeli */
@media (max-width: 768px) {
    /* Navbar'ı en üste taşı */
    .navbar {
        z-index: 999999 !important;
        overflow: visible !important;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        z-index: 999999 !important;
        isolation: isolate;
        position: relative;
    }

    .language-toggle {
        padding: 0.4rem 0.65rem;
        font-size: 0.8125rem;
        min-width: 55px;
        position: relative;
        z-index: 999999 !important;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        min-width: 140px;
        right: 0;
        z-index: 999999 !important;
        position: fixed !important;
        top: auto !important;
        transform: translateY(0) scale(1) !important;
    }

    .language-option {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        position: relative;
        z-index: 999999 !important;
    }

    .lang-name {
        font-size: 0.75rem;
    }

    .lang-icon {
        width: 16px;
        height: 16px;
    }

    .nav-actions {
        z-index: 999999 !important;
        isolation: isolate;
        position: relative;
    }

    /* Particles-js'i mobil ekranlarda tamamen gizle */

    /* Hero section'ı da kontrol altına al */
    .hero {
        z-index: -1 !important;
        overflow: hidden;
    }
}

/* Daha spesifik breakpoint'ler - 768px'den sonra gelmeli ki öncelikli olsun */
@media (max-width: 480px) {
    .navbar {
        z-index: 999999 !important;
        overflow: visible !important;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        min-width: 130px;
        right: 0;
        z-index: 999999 !important;
        position: fixed !important;
        top: auto !important;
        transform: translateY(0) scale(1) !important;
    }

    .language-switcher {
        z-index: 999999 !important;
    }

    .nav-actions {
        z-index: 999999 !important;
    }

    /* Particles-js'i mobil ekranlarda tamamen gizle */
}

@media (max-width: 360px) {
    .navbar {
        z-index: 999999 !important;
        overflow: visible !important;
    }

    .language-switcher.active .language-dropdown,
    .language-dropdown {
        z-index: 999999 !important;
        position: fixed !important;
        top: auto !important;
        transform: translateY(0) scale(1) !important;
    }

    .language-switcher {
        z-index: 999999 !important;
    }

    .nav-actions {
        z-index: 999999 !important;
    }

    /* Particles-js'i mobil ekranlarda tamamen gizle */
}

/* Daha spesifik breakpoint'ler - 768px'den sonra gelmeli ki öncelikli olsun */
@media (max-width: 480px) {
    .language-switcher.active .language-dropdown,
    .language-dropdown {
        min-width: 130px;
        right: 0;
        z-index: 99999 !important;
        position: absolute !important;
    }
}

@media (max-width: 360px) {
    .language-switcher.active .language-dropdown,
    .language-dropdown {
        z-index: 99999 !important;
        position: absolute !important;
    }
}