/* =========================================
   1. ROOT & GENEL AYARLAR
   ========================================= */
:root {
    /* --- Marka Renkleri --- */
    --primary-color: #0b2341;
    /* Koyu Lacivert */
    --primary-light: #163a66;
    /* Açık Lacivert */
    --accent-color: #ff4d4d;
    /* Roket Kırmızısı (Vurgu) */
    --accent-hover: #e63e3e;
    /* Koyu Kırmızı (Hover) */

    /* --- Metin Renkleri --- */
    --text-color: #0d2c4f;
    /* Ana Metin */
    --secondary-color: #5b6f82;
    /* İkincil Metin (Gri/Mavi) */
    --muted-color: #94a3b8;
    /* Pasif Metin */

    /* --- Arka Planlar --- */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    /* Çok açık gri/mavi */
    --bg-gradient-start: #f4f9fd;
    --bg-gradient-end: #ffffff;

    /* --- Fontlar --- */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* --- Gölgeler & Radius --- */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow: 0 12px 35px -10px rgba(11, 35, 65, 0.08);
    --shadow-hover: 0 20px 45px -12px rgba(11, 35, 65, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-white);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Temel Yapılar --- */
.container,
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. BUTONLAR
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 77, 77, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: rgba(11, 35, 65, 0.15);
}

.btn-secondary:hover {
    background: rgba(11, 35, 65, 0.04);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.btn.full-width {
    width: 100%;
}

/* =========================================
   3. NAVBAR (NAVİGASYON)
   ========================================= */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobil Menü Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-toggle.active .hamburger:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    padding: 24px;
}

.mobile-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--accent-color);
}

.mobile-buttons {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================
   4. PAGE HEADER (BAŞLIK ALANI)
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(11, 35, 65, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Yüzen Harfler Efekti */
#floating-letters {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-letter {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.05;
    user-select: none;
    font-weight: 900;
    animation: floatUp 25s linear infinite;
}

@keyframes floatUp {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.05;
    }

    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* =========================================
   5. CONTACT SECTION (İLETİŞİM)
   ========================================= */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

/* Grid Düzeni - GÜNCELLENDİ */
.contact-layout {
    display: grid;
    /* Sol sütun daha dar (0.7), sağ sütun (Form) daha geniş (1.3) */
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: flex-start;
}

/* Sol Taraf: İletişim Bilgileri */
.section-head .eyebrow {
    color: var(--accent-color);
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.section-head h1,
.section-head h2 {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 16px;
    margin-top: 0;
}

.section-head p {
    color: var(--secondary-color);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 35, 65, 0.06);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 77, 77, 0.2);
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 35, 65, 0.04);
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.contact-item:hover .contact-icon {
    background: var(--accent-color);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 77, 77, 0.25);
}

.contact-details h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 500;
}

.contact-details .meta {
    display: block;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.contact-details a {
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Sağ Taraf: İletişim Formu */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 35, 65, 0.06);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-header p {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Form Elemanları */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(11, 35, 65, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-color);
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

.form-submit .btn svg {
    margin-left: 8px;
    width: 18px;
    height: 18px;
}

/* Başarı Mesajı Kutusu */
.success-message-box {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-message-box h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 12px;
}

.success-message-box p {
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Hata ve Uyarılar */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error-message {
    color: #e63e3e;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 600;
}

/* Form Helper Classes */
.phone-field-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-field-wrapper input {
    flex-grow: 1;
}

.captcha-group {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.captcha-group .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
}

/* =========================================
   6. RESPONSIVE (MEDYA SORGULARI)
   ========================================= */

@media (max-width: 992px) {

    .nav-menu,
    .nav-buttons {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* GÜNCELLENDİ: Form Mobilde En Üste Çıkar */
    .contact-form-wrapper {
        order: -1;
        margin-bottom: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .logo-img {
        height: 50px;
    }

    .mobile-menu {
        top: 70px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .contact-section {
        padding: 60px 0 80px;
    }

    .contact-form-wrapper {
        padding: 30px 24px;
    }

    .contact-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 65px;
        padding: 0 15px;
    }

    .logo-img {
        height: 45px;
    }

    .mobile-menu {
        top: 65px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .captcha-group .g-recaptcha {
        transform: scale(0.75);
    }

    .page-title {
        font-size: 2rem;
    }
}