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

:root {
    /* Colors - Brand */
    --brand-primary: #FF4D00;
    /* Vibrant Orange from images */
    --brand-primary-rgb: 255, 77, 0;
    --brand-secondary: #2D2D2D;

    /* Light Mode Tokens */
    --bg-main: #FFFFFF;
    --bg-main-rgb: 255, 255, 255;
    --bg-secondary: #F8F9FA;
    --bg-secondary-rgb: 248, 249, 250;
    --bg-surface: #FFFFFF;
    --bg-surface-rgb: 255, 255, 255;
    --text-main: #1A1A1A;
    --text-muted: #6C757D;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-scrolled: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-main: #0F0F0F;
    --bg-main-rgb: 15, 15, 15;
    --bg-secondary: #1A1A1A;
    --bg-secondary-rgb: 26, 26, 26;
    --bg-surface: #1E1E1E;
    --bg-surface-rgb: 30, 30, 30;
    --text-main: #F8F9FA;
    --text-muted: #ADB5BD;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-bg-scrolled: rgba(15, 15, 15, 0.98);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(var(--brand-primary-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(var(--brand-primary-rgb), 0.5);
    filter: brightness(1.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout - Header */
/* Layout - Header (Stable Sticky Header) */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10000;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] header {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.logo img {
    height: 80px;
    /* Optimal stable height */
    width: auto;
    display: block;
}

/* Cleanup for scrolled state - keeping it simple */
header.scrolled {
    background-color: var(--bg-main);
}

[data-theme="dark"] .logo img {
    filter: brightness(1.1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.05));
}

.logo:hover img {
    transform: scale(1.04) translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.footer-logo {
    height: 125px;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Theme Toggle */
#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--brand-primary);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    nav {
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }

    .nav-links,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* Mobile Menu Overlay Redesign */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    display: none;
    /* Masaüstünde tamamen gizle */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    display: block;
    /* Sadece aktifken göster */
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: var(--bg-main);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-close {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-close:hover {
    background: var(--brand-primary);
    color: white;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem;
    border-radius: 14px;
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.mobile-link:hover {
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
    padding-left: 1.5rem;
}

.mobile-menu-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.mobile-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.mobile-socials a {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    color: var(--text-main);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-socials a:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-5px);
}

/* RTL Support for Grid */
[dir="rtl"] nav {
    direction: rtl;
}

/* Modern Language Switcher Dropdown (Elite 2026 Edition) */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.2rem;
    background: rgba(var(--bg-secondary-rgb), 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--border-color-rgb), 0.5);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.lang-current:hover {
    border-color: var(--brand-primary);
    background: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--brand-primary-rgb), 0.1);
}

.lang-list {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(var(--bg-surface-rgb), 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--border-color-rgb), 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 0.7rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.lang-dropdown:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    width: 4px;
    height: 60%;
    background: var(--brand-primary);
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
}

.lang-item:hover {
    background: rgba(var(--brand-primary-rgb), 0.08);
    color: var(--brand-primary);
    padding-left: 1.5rem;
}

.lang-item:hover::before {
    transform: translateY(-50%) translateX(0);
}

.lang-item.active {
    background: linear-gradient(135deg, var(--brand-primary), #FF8000);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
}

.lang-item.active::before {
    display: none;
}

.lang-flag {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.service-card i {
    width: 60px;
    height: 60px;
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    background: var(--brand-primary);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

.section-tag {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

/* ── Reveal Animations (Global 2026 Edition) ── */
.reveal-node {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal-node.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay support */
.revealed[style*="delay"] {
    transition-delay: var(--delay);
}

/* Mobile Language Switcher (Luxury 2026 Refinement) */
.mobile-lang-section {
    padding: 1.5rem 1rem;
    margin: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

.mobile-lang-title {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.5;
}

.mobile-lang-switcher {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mobile-lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.mobile-lang-item.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    box-shadow: 0 12px 30px rgba(255, 77, 0, 0.35);
    transform: translateY(-3px) scale(1.02);
}

.mobile-lang-item .lang-flag {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mobile-lang-item .lang-code {
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.mobile-lang-item.active .lang-code {
    opacity: 1;
}

.mobile-lang-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 77, 0, 0.5);
    transform: translateY(-4px);
}

@media (max-width: 380px) {
    .mobile-lang-switcher {
        grid-template-columns: repeat(3, 1fr);
    }
}