/* Nivra Group - Ana Stil Dosyası */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo arkaplan rengi (#2C3A7A) - site paletine ana ton */
    --logo-bg: #2C3A7A;
    --logo-blue-dark: #2C3A7A;
    --logo-blue-mid: #3E4F8F;
    --logo-blue-light: #5B6FAD;
    --logo-cyan: #5BA3E0;
    --logo-sky: #89C4F4;
    --deep-navy: #1B2644;
    --royal-blue: #2C3A7A;
    --accent-blue: #4A8FD9;
    --light-accent: #7AAFE8;
    --silver: #D4DCE8;
    --pearl: #F5F7FA;
    --white: #FFFFFF;
    --charcoal: #2C3548;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--logo-bg) 25%, var(--royal-blue) 50%, var(--logo-bg) 75%, var(--deep-navy) 100%);
    color: var(--charcoal);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 20%, rgba(44, 58, 122, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(62, 79, 143, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(91, 163, 224, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: breathe 20s ease-in-out infinite;
    z-index: 0;
}

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

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(44, 58, 122, 0.04) 50%, transparent 70%);
    animation: shimmer 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(27, 38, 68, 0.98) 0%, rgba(44, 58, 122, 0.96) 30%, rgba(62, 79, 143, 0.94) 70%, rgba(44, 58, 122, 0.96) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid rgba(91, 122, 200, 0.25);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(107, 155, 216, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(107, 155, 216, 0.4) 20%, rgba(91, 163, 224, 0.6) 40%, rgba(137, 196, 244, 0.5) 50%, rgba(91, 163, 224, 0.6) 60%, rgba(107, 155, 216, 0.4) 80%, transparent 100%);
    box-shadow: 0 0 20px rgba(107, 155, 216, 0.4);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(107, 155, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(74, 143, 217, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo - Üst alan full-width, kurumsal estetik */
.logo-container {
    width: 100%;
    min-height: 160px;
    padding: 40px 24px 36px;
    border-bottom: 1px solid rgba(91, 122, 200, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(44, 58, 122, 0.5));
}

.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-fallback-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--logo-sky) 40%, var(--logo-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.logo-fallback-subtitle {
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--logo-sky);
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.95;
}

/* Dil seçici - animasyonsuz, klasik, kurumsal bayraklar */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(91, 122, 200, 0.25);
}
.lang-flag {
    text-decoration: none;
    padding: 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: none;
}
.lang-flag img {
    width: 40px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;
    display: block;
    filter: none;
}
.lang-flag.active {
    background: rgba(91, 122, 200, 0.25);
}

.nav-menu {
    flex: 1;
    padding: 24px 0 32px;
    overflow-y: auto;
}

.nav-menu::-webkit-scrollbar { width: 4px; }
.nav-menu::-webkit-scrollbar-track { background: rgba(107, 155, 216, 0.05); }
.nav-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--logo-blue-light), var(--logo-cyan));
    border-radius: 10px;
}

.nav-item {
    padding: 16px 28px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s, background 0.2s;
    border-left: 2px solid transparent;
    font-weight: 400;
    position: relative;
    margin: 2px 12px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--logo-blue-light) 20%, var(--logo-cyan) 50%, var(--logo-sky) 80%, transparent);
    opacity: 0;
    transition: all 0.5s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: var(--logo-cyan);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(107, 155, 216, 0.15) 0%, rgba(91, 163, 224, 0.08) 50%, transparent 100%);
    color: rgba(255, 255, 255, 0.95);
    padding-left: 38px;
}

.nav-item:hover::before, .nav-item.active::before { opacity: 1; }
.nav-item:hover::after { width: 6px; height: 6px; opacity: 0.8; }

.nav-item.active {
    background: linear-gradient(90deg, rgba(107, 155, 216, 0.25) 0%, rgba(91, 163, 224, 0.12) 40%, rgba(74, 143, 217, 0.05) 70%, transparent 100%);
    color: #FFFFFF;
    font-weight: 500;
    padding-left: 38px;
}

.nav-item.active::after {
    width: 7px;
    height: 7px;
    opacity: 1;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

.content-stage {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.section-content {
    max-width: 1000px;
    width: 100%;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--logo-sky) 30%, var(--logo-cyan) 60%, var(--logo-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    line-height: 1.2;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 600;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--logo-sky) 50%, var(--logo-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--logo-blue-light), var(--logo-cyan), var(--logo-sky), transparent);
    border-radius: 2px;
}

h3 { font-size: 16px; font-weight: 600; letter-spacing: 1px; color: var(--logo-cyan); margin-bottom: 15px; text-transform: uppercase; }
p { font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, 0.85); margin-bottom: 20px; font-weight: 300; }
.subtitle { font-size: 20px; color: var(--logo-sky); font-weight: 300; letter-spacing: 1px; }

.home-hero { text-align: center; position: relative; }
.hero-title { font-size: 76px; margin-bottom: 20px; position: relative; z-index: 1; }
.hero-subtitle {
    font-size: 22px;
    background: linear-gradient(90deg, var(--logo-blue-light), var(--logo-cyan), var(--logo-sky), var(--logo-cyan), var(--logo-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    margin-bottom: 50px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 500;
    animation: gradientSlide 5s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description { max-width: 700px; margin: 0 auto; font-size: 17px; line-height: 1.9; }
.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--logo-blue-light), var(--logo-cyan), var(--logo-sky), var(--logo-cyan), var(--logo-blue-light), transparent);
    margin: 40px auto;
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.6; width: 100px; }
    50% { opacity: 1; width: 140px; }
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.detail-card {
    background: linear-gradient(135deg, rgba(107, 155, 216, 0.08) 0%, rgba(74, 143, 217, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 155, 216, 0.2);
    border-radius: 16px;
    padding: 38px 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.detail-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(137, 196, 244, 0.4);
}

.detail-card h4 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--logo-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.detail-card p { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin: 0; line-height: 1.75; }

.contact-form { max-width: 600px; }
.form-group { margin-bottom: 30px; }

.form-group-captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-group-captcha label { margin-bottom: 0; }
.captcha-question { font-weight: 600; color: var(--logo-sky); }
.captcha-input { width: 60px; padding: 8px 10px; font-size: 14px; text-align: center; }
label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--logo-sky); margin-bottom: 10px; font-weight: 500; }

input, textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid rgba(107, 155, 216, 0.3);
    background: transparent;
    font-size: 16px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--logo-cyan);
}

input::placeholder, textarea::placeholder { color: rgba(107, 155, 216, 0.4); }
textarea { resize: none; min-height: 120px; }

button {
    background: linear-gradient(135deg, var(--logo-blue-dark) 0%, var(--logo-blue-mid) 30%, var(--logo-cyan) 100%);
    color: var(--white);
    border: 1px solid rgba(107, 155, 216, 0.3);
    padding: 18px 50px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
}

button:hover { transform: translateY(-4px); border-color: var(--logo-sky); }

/* Mobil üst bar - sadece mobilde görünür */
.mobile-header {
    display: none;
}

.hamburger {
    display: none;
    /* Base: mobilde mobile-header içinde konumlanır, bu stil sadece fallback */
    position: relative;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 2000;
    background: rgba(44, 58, 122, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    box-shadow: none;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 260px; }
    .content-stage { margin-left: 260px; width: calc(100% - 260px); }
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    .hero-title { font-size: 56px; }
    .section { padding: 60px 40px; }
}

/* ========== MOBILE FIX - Kritik Düzeltmeler ========== */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        scrollbar-gutter: stable;
    }

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

    .container {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
    }

    /* Mobil üst bar: fixed, logo sol, hamburger sağ üst */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 88px;
        padding: 0 20px;
        z-index: 2000;
        background: rgba(44, 58, 122, 0.88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(91, 122, 200, 0.25);
    }

    .mobile-header-logo {
        display: flex;
        align-items: center;
        align-self: center;
        flex: 1;
        min-height: 0;
        line-height: 0;
    }

    .mobile-header-logo img {
        max-height: 52px;
        width: auto;
        vertical-align: middle;
        display: block;
    }

    .mobile-logo-text {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        font-weight: 600;
        color: #fff;
    }

    .mobile-header .hamburger {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 52px;
        min-width: 52px;
        height: 52px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        visibility: visible;
        opacity: 1;
        z-index: 2010;
    }

    .mobile-header .hamburger span {
        display: block !important;
        width: 28px;
        height: 3px;
        min-height: 3px;
        background: #FFFFFF !important;
        border: none;
        border-radius: 999px;
        visibility: visible;
        opacity: 1;
    }

    .mobile-header .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(9px, 9px); }
    .mobile-header .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .mobile-header .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(9px, -9px); }

    /* Menü açıkken: X sidebar sağ kenarında, dikey ortalı */
    body.mobile-menu-open .mobile-header .hamburger {
        left: 268px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    body.mobile-menu-open .mobile-header-logo {
        visibility: hidden;
    }

    .content-stage {
        margin-left: 0;
        left: 0;
        width: 100%;
        max-width: 100vw;
        padding: 88px 0 0;
        box-sizing: border-box;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        max-width: 320px;
    }

    .sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: 12px 0 48px rgba(0, 0, 0, 0.5);
        z-index: 2100 !important; /* Menü açıkken header'ın üstünde */
    }

    .sidebar .logo-container {
        z-index: 2001;
        min-height: 120px;
        padding: 28px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar .logo-image {
        max-width: 100%;
        width: 100%;
        max-height: 100%;
        min-height: 64px;
        object-fit: contain;
        object-position: center;
    }

    .sidebar .logo-fallback {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar .logo-fallback-text {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .nav-menu {
        background: linear-gradient(180deg, rgba(54, 70, 130, 0.94) 0%, rgba(62, 79, 143, 0.92) 5%, rgba(72, 92, 160, 0.94) 100%);
        transition: background 0.3s ease;
    }

    .logo-image, .logo-fallback { z-index: 2002; }

    .section {
        top: 88px;
        left: 0;
        right: 0;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .section-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .hero-title { font-size: 42px; }
    h2 { font-size: 32px; }
    .detail-grid { grid-template-columns: 1fr; }
    .hero-subtitle { font-size: 16px; }
}

@media (max-width: 480px) {
    .logo-image { max-height: 90px; }
    .logo-fallback-text { font-size: 20px; }
    .hero-title { font-size: 36px; }
    h2 { font-size: 28px; }
    .section { padding: 30px 15px; }
}

/* Başarı mesajı toast - tasarıma uyumlu */
.success-toast {
    position: fixed;
    inset: 0;
    background: rgba(27, 38, 68, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-toast.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.success-toast-inner {
    background: linear-gradient(180deg, rgba(44, 58, 122, 0.98) 0%, rgba(62, 79, 143, 0.96) 100%);
    border: 1px solid rgba(91, 122, 200, 0.4);
    border-radius: 12px;
    padding: 32px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.success-toast-en,
.success-toast-it {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-toast-it {
    margin-bottom: 24px;
    color: var(--logo-sky);
}

.success-toast-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--logo-sky);
    color: var(--logo-sky);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.success-toast-btn:hover {
    background: var(--logo-sky);
    color: var(--deep-navy);
}
