/* ==========================================================================
   SAĞLAMLAR VİNÇ - CUSTOM THEME OVERRIDES
   ========================================================================== */

/* 
   TABLE OF CONTENTS
   -----------------
   1.  Global Variables & Resets
   2.  Typography (Clamp & Responsive)
   3.  Layout & Z-Index Hierarchy
   4.  Header & Mobile Navigation
   5.  Hero Section (Core Layouts)
   6.  Components (Cards, Buttons, Forms)
   7.  Dark Mode Specifics
   8.  Footer & Responsive Utilities
   9.  Accessibility & Animations
   10. Critical Visibility Fixes (User Reported)
*/

/* ==========================================================================
   1. GLOBAL VARIABLES & RESETS
   ========================================================================== */
:root {
    /* Core Layout Variables */
    --header-height: 80px;
    --z-header: 1000;
    --z-overlay: 1001;
    --z-sidebar: 1002;
    --z-loader: 9999;

    /* Missing RGB definitions for gradients */
    --primary-rgb: 30, 33, 36;
    --secondary-rgb: 30, 58, 95;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    /* Prevent layout shift when scrollbar appears/disappears */
    width: 100%;
}

/* Container Safety */
.container,
.footer-container,
.nav,
section>div {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. TYPOGRAPHY (CLAMP & RESPONSIVE)
   ========================================================================== */
h1,
.hero-title,
.hero h1,
.page-title {
    font-size: clamp(1.8rem, 4vw + 1rem, 3.5rem) !important;
    line-height: 1.25;
    word-wrap: break-word;
    hyphens: auto;
}

h2,
.section-title,
.section-header h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.2rem, 2vw + 0.25rem, 1.8rem);
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
}

.breadcrumb-item.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* ==========================================================================
   3. LAYOUT & Z-INDEX HIERARCHY
   ========================================================================== */
/* Overlay Fix */
.mobile-nav-overlay {
    z-index: var(--z-overlay) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Body Lock */
body.mobile-nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* ==========================================================================
   4. HEADER & MOBILE NAVIGATION
   ========================================================================== */
.mobile-nav {
    /* GPU Acceleration for smooth slide */
    left: 0 !important;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s ease,
        visibility 0.35s;
    will-change: transform;
    visibility: hidden;
    z-index: var(--z-sidebar) !important;

    /* Double Scrollbar Fix */
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   5. HERO SECTION (CORE LAYOUTS)
   ========================================================================== */
.page-hero,
.services-hero,
.contact-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: var(--header-height);
}

/* Specific Fix for About Page Hero - Standardized Height */
.about-hero {
    position: relative;
    height: 85vh !important;
    min-height: 600px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 120px !important;
    /* Extra padding for header clearance */
}

/* Fix for Index Page Hero (.corporate-hero) - Same as about page */
.corporate-hero {
    padding-top: 120px !important;
}

/* Desktop only: index.php has hero-actions buttons which make content taller
   causing flex centering to push badge too close to header.
   Use flex-start + padding to match about.php visual position. */
@media (min-width: 769px) {
    .corporate-hero:has(.hero-actions) {
        align-items: flex-start !important;
        padding-top: 100px !important;
        min-height: 600px !important;
        height: 90vh !important;
    }

    /* Smaller title so it wraps less → more horizontal, less vertical space */
    .corporate-hero:has(.hero-actions) .hero-title {
        font-size: clamp(2rem, 4vw, 3.2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 15px !important;
    }

    /* Tighter subtitle */
    .corporate-hero:has(.hero-actions) .hero-subtitle {
        font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
        margin-bottom: 25px !important;
        line-height: 1.5 !important;
    }

    /* Push actions away from absolute scroll indicator */
    .corporate-hero .hero-actions {
        margin-bottom: 1rem !important;
    }

    /* Space between stats and scroll indicator on desktop */
    .corporate-hero .hero-stats {
        margin-bottom: 70px !important;
    }

    /* Scroll indicator position on desktop */
    .corporate-hero .hero-scroll-indicator {
        bottom: 25px !important;
    }
}

/* Mobile: push scroll indicator further down */
@media (max-width: 768px) {
    .corporate-hero .hero-scroll-indicator {
        bottom: 15px !important;
    }

    .corporate-hero .hero-stats {
        margin-bottom: 60px !important;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Stronger Gradient for Readability */
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.65) 100%) !important;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

/* Hero Typography Force White */
.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-content span:not(.hero-badge) {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-badge i {
    color: var(--secondary-color) !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.hero-content .text-gradient {
    /* Fixed: Changed start color from dark blue to white for visibility on dark bg */
    background: linear-gradient(135deg, #ffffff 0%, #f0c14b 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
    text-shadow: none;
    font-weight: 800;
}

/* Ensure stats aren't right at the bottom */
.hero-content {
    padding-bottom: 4rem !important;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {

    .page-hero,
    .services-hero,
    .about-hero {
        height: auto;
        min-height: 500px;
        padding: 6rem 1rem 4rem;
        align-items: flex-end;
        /* Push content down slightly */
    }

    /* Contact hero - less padding on mobile (50px higher) */
    .contact-hero {
        height: auto;
        min-height: 500px;
        padding: 0.5rem 1rem 1rem;
        align-items: flex-start;
    }

    .contact-hero .hero-container {
        margin-top: -50px;
        padding-bottom: 0;
    }

    .contact-hero .hero-content {
        margin-top: -100px;
        padding-bottom: 0;
    }

    /* Reduce spacing after subtitle */
    .contact-hero .hero-subtitle {
        margin-bottom: 0.5rem !important;
    }

    /* Reduce spacing in hero-stats and move up */
    .contact-hero .hero-stats {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        gap: 1rem !important;
        padding: 0 !important;
    }

    /* Ensure scroll indicator is visible on mobile */
    .contact-hero .hero-scroll-indicator {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ==========================================================================
   6. COMPONENTS (CARDS, BUTTONS, FORMS)
   ========================================================================== */
/* Equal Height Cards Flexbox */
.service-card,
.service-card-modern,
.blog-card,
.feature-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.service-card-body,
.blog-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.service-description,
.blog-excerpt {
    flex-grow: 1;
}

.service-card-footer,
.blog-footer {
    margin-top: auto !important;
    flex-shrink: 0;
}

/* Forms & Inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15) !important;
    outline: none;
}

/* Autocomplete Fixes (Dark/Light) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    transition: background-color 600000s 0s, color 600000s 0s;
}

[data-theme="dark"] input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-color) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--input-background) inset !important;
}

/* ==========================================================================
   7. DARK MODE SPECIFICS
   ========================================================================== */
[data-theme="dark"] .service-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .contact-form-container,
[data-theme="dark"] .feature-card {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: #1f2328;
    /* Ensure partial bg doesn't show through */
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea {
    border-color: rgba(255, 255, 255, 0.12);
    background-color: #2d3139;
    color: #e8eaed;
}

/* ==========================================================================
   8. FOOTER & RESPONSIVE UTILITIES
   ========================================================================== */
/* Tablet (2 Columns) */
@media (min-width: 577px) and (max-width: 992px) {
    .footer-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        align-items: start;
    }
}

/* Mobile (1 Column) */
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem !important;
    }

    .footer-links ul,
    .social-icons,
    .footer-logo {
        justify-content: center;
    }

    /* Service Grid Mobile */
    .service-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   9. ACCESSIBILITY & ANIMATIONS
   ========================================================================== */
/* Focus States */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   10. CRITICAL VISIBILITY FIXES (USER REPORTED)
   ========================================================================== */

/* Fix: "Hemen Ara" Button Visibility in Sticky Header */
/* Ensures button keeps its Blue background and White text even when header is sticky/white */
.header.sticky .phone-button,
[data-theme="light"] .header.sticky .phone-button {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(30, 58, 95, 0.3) !important;
}

.header.sticky .phone-button:hover {
    background-color: #1a304f !important;
    /* Slightly darker on hover */
    color: #ffffff !important;
}

/* Fix: "PROFESYONEL" Badge Visibility */
/* Ensures high contrast for the badge regardless of theme */
.service-tag,
.service-card .service-tag,
.service-card.modern .service-tag {
    /* Use a solid background for readability */
    background: rgba(30, 58, 95, 0.1) !important;
    /* Secondary color faint bg */
    border: 1px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Dark Mode Adjustment for Badge */
[data-theme="dark"] .service-tag {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Fix: General "Btn-Cta" Visibility */
.btn-cta,
.btn-primary {
    color: white !important;
}

/* ==========================================================================
   13. RESTORED STYLES - ABOUT PAGE
   ========================================================================== */
.about-intro-section {
    padding: 6rem 2rem;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.about-intro-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 167, 56, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.intro-wrapper {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 4rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100% !important;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(233, 167, 56, 0.12);
    color: var(--secondary-color) !important;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800 !important;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border: 1px solid rgba(233, 167, 56, 0.3);
}

[data-theme="light"] .section-badge {
    color: #000000 !important;
    /* Sarı zemin üstü siyah yazı */
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #f0c14b);
    border-radius: 2px;
}

.intro-text {
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.intro-text p {
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.intro-text p.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--heading-color);
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--card-background);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), #f0c14b);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: rgba(233, 167, 56, 0.3);
}

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), #f0c14b);
    color: white;
    border-radius: 14px;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(233, 167, 56, 0.4);
}

.feature-content h4 {
    margin: 0 0 0.3rem;
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.feature-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.intro-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 25px 50px var(--shadow-color);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--secondary-color);
    border-radius: 24px;
    opacity: 0.3;
    z-index: -1;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .main-image {
    transform: scale(1.02);
}

.experience-card {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--secondary-color), #2c5282);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 40px rgba(233, 167, 56, 0.4);
    animation: floatCard 4s ease-in-out infinite;
    border: 4px solid var(--card-background);
    z-index: 10;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.3rem;
    opacity: 0.9;
}

.mission-vision-section {
    padding: 6rem 2rem;
    background: var(--card-background);
    position: relative;
}

.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23e9a738" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%23e9a738" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    pointer-events: none;
}

.mv-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mv-card {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.mv-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color);
    border-color: rgba(233, 167, 56, 0.3);
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), #f0c14b);
}

.mv-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(233, 167, 56, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mv-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 167, 56, 0.15), rgba(233, 167, 56, 0.05));
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(233, 167, 56, 0.2);
}

.mv-card:hover .mv-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f0c14b);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(233, 167, 56, 0.4);
}

.mv-card h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.mv-content p {
    line-height: 1.8;
    opacity: 0.85;
    font-size: 1rem;
}

.values-section {
    padding: 6rem 2rem;
    background: var(--background-color);
}

.values-section .section-header {
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #f0c14b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: rgba(233, 167, 56, 0.3);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 167, 56, 0.15), rgba(233, 167, 56, 0.05));
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(233, 167, 56, 0.2);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f0c14b);
    color: white;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(233, 167, 56, 0.4);
    border-color: transparent;
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
    font-weight: 700;
}

.value-card p {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.6;
}

.timeline-section {
    padding: 6rem 2rem;
    background: var(--card-background);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
}

.timeline-date {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(233, 167, 56, 0.3);
}

.timeline-content {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    margin: 0 2rem;
    position: relative;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.timeline-content p {
    margin: 0;
    opacity: 0.8;
}

.team-section {
    padding: 6rem 2rem;
    background: var(--background-color);
}

.team-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem;
    align-items: center;
    width: 100% !important;
}

.team-text {
    margin-bottom: 2rem;
}

.team-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-stats {
    display: flex;
    gap: 2rem;
}

.team-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

[data-theme="dark"] .stat-number {
    color: #ffffff !important;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.team-image {
    position: relative;
}

.team-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.team-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(233, 167, 56, 0.3);
}

.certificates-section {
    padding: 6rem 2rem;
    background: var(--card-background);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.certificate-item {
    text-align: center;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-10px);
}

.certificate-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.certificate-item:hover img {
    filter: grayscale(0%);
}

.certificate-item h4 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.certificate-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-cta-section {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.9;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {

    .intro-wrapper,
    .team-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mv-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-date {
        left: 30px;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        justify-content: center;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .experience-card {
        position: relative;
        width: 100%;
        height: auto;
        padding: 1.5rem;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
        border-radius: 16px;
        flex-direction: row;
        gap: 1rem;
    }

    .exp-number {
        font-size: 2.2rem;
    }

    .exp-text {
        font-size: 0.9rem;
        text-align: left;
    }

    .image-wrapper {
        overflow: visible;
    }

    .image-wrapper::before {
        display: none;
    }
}

/* ==========================================================================
   14. RESTORED STYLES - CONTACT PAGE
   ========================================================================== */
.contact-cards-section {
    padding: 4rem 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--secondary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #f0c14b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.contact-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #2c5282;
}

.card-text {
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.6;
}

.contact-main {
    padding: 6rem 2rem;
    background: var(--background-color);
}

.contact-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4rem;
    align-items: flex-start;
    width: 100% !important;
}

.contact-form-wrapper {
    background: var(--card-background);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.8;
}

.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-background);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(233, 167, 56, 0.1);
    outline: none;
}

.form-input:valid {
    border-color: #10b981;
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-error.show {
    opacity: 1;
    transform: translateY(0);
}

.char-count {
    position: absolute;
    bottom: -1.5rem;
    right: 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 167, 56, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.success-message {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-message h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.success-message p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* ================================
   CONTACT PAGE — MAP CARD (mc-*)
   ================================ */

.map-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    background: var(--card-background);
    display: flex;
    flex-direction: column;
}

/* Üst Banner */
.mc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: #0f1f3d;
    position: relative;
    overflow: hidden;
}

.mc-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.mc-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    z-index: 1;
}

.mc-pin-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.5);
    animation: mcPinPulse 2s ease infinite;
}

@keyframes mcPinPulse {
    0%,100%  { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.mc-banner-left strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.mc-banner-left span {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 0.74rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.mc-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #fff;
    color: #0f1f3d !important;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.mc-route-btn:hover {
    background: #e8edf5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.mc-route-btn i { color: #ef4444; font-size: 0.9rem; }

/* Harita Alanı */
.mc-map-wrap {
    position: relative;
    flex: 1;
}

.mc-map {
    height: 460px;
    width: 100%;
    display: block;
}

/* Float Panel — glassmorphism */
.mc-float {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 1000;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 12px 14px 10px;
    min-width: 240px;
    max-width: 290px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.14),
        0 2px 8px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="dark"] .mc-float {
    background: rgba(10,20,40,0.9);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.mc-float-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

[data-theme="dark"] .mc-float-top { border-bottom-color: rgba(255,255,255,0.08); }

.mc-float-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0f1f3d, #1e3a5f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(15,31,61,0.35);
}

.mc-float-icon i { color: white; font-size: 15px; }

.mc-float-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f1f3d;
    line-height: 1.3;
}

[data-theme="dark"] .mc-float-info strong { color: #f1f5f9; }

.mc-float-info span {
    font-size: 0.74rem;
    color: #64748b;
}

[data-theme="dark"] .mc-float-info span { color: #94a3b8; }

.mc-float-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mc-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.mc-gmaps {
    background: #1a73e8;
    color: white !important;
}

.mc-gmaps:hover {
    background: #1558b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
}

/* Marker */
.mc-marker {
    position: relative;
    width: 52px;
    height: 64px;
}

.mc-marker-pin {
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, #1a73e8, #0f1f3d);
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 6px 20px rgba(26,115,232,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.mc-marker-pin i {
    color: white;
    font-size: 16px;
    transform: rotate(45deg);
}

.mc-marker-pulse {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26,115,232,0.25);
    animation: mcPulse 2.2s ease-out infinite;
    z-index: 1;
}

.mc-pulse2 { animation-delay: 1.1s; }

@keyframes mcPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Popup */
.mc-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.mc-leaflet-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 270px !important;
}

.mc-leaflet-popup .leaflet-popup-tip {
    background: #0f1f3d !important;
}

.mc-popup-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px 12px;
    background: linear-gradient(135deg, #0f1f3d, #1e3a5f);
}

.mc-popup-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mc-popup-icon i { color: #fff; font-size: 14px; }

.mc-popup-head b {
    display: block;
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.mc-popup-head small {
    color: rgba(255,255,255,0.65);
    font-size: 0.73rem;
}

.mc-popup-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mc-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
}

.mc-popup-gmaps {
    background: #f0f6ff;
    color: #1a73e8 !important;
    border-right: 1px solid #e2e8f0;
}

.mc-popup-gmaps:hover {
    background: #1a73e8;
    color: white !important;
}

/* Alt Şerit */
.mc-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.2rem;
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-color);
}

.mc-strip > i {
    color: #ef4444;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.mc-strip > span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mc-strip-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    color: var(--secondary-color) !important;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mc-strip-open:hover {
    background: var(--secondary-color);
    color: white !important;
    border-color: var(--secondary-color);
}

.quick-contact {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: white;
}

.quick-contact-content h2 {
    margin-bottom: 0.5rem;
}

.quick-contact-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulseWhite 2s infinite;
}

.emergency-btn:hover {
    transform: scale(1.05);
    animation: none;
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .map-card {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* ── MAP CARD MOBILE ── */
    .map-card {
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }

    /* Banner: dikey düzen */
    .mc-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.1rem;
    }

    .mc-banner-left {
        width: 100%;
    }

    .mc-banner-left span {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .mc-route-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    /* Harita yüksekliği */
    .mc-map {
        height: 300px;
    }

    /* Float panel: haritanın altında tam genişlik */
    .mc-map-wrap {
        display: flex;
        flex-direction: column;
    }

    .mc-float {
        position: static !important;
        max-width: unset;
        min-width: unset;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border-color);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--card-background) !important;
        box-shadow: none;
        padding: 12px 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    [data-theme="dark"] .mc-float {
        background: rgba(10,20,40,0.95) !important;
    }

    .mc-float-top {
        flex: 1;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .mc-float-btns {
        flex-shrink: 0;
        display: flex;
        gap: 6px;
    }

    .mc-nav-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
        border-radius: 10px;
    }

    /* Alt şerit */
    .mc-strip {
        flex-wrap: nowrap;
        padding: 0.65rem 1rem;
    }

    .mc-strip > span {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mc-strip-open {
        flex-shrink: 0;
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .contact-cards-section {
        margin-top: -60px;
    }

    /* Map */
    .mc-map {
        height: 260px;
    }

    /* Float panel: dikey düzen mobilin altında */
    .mc-float {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .mc-float-top {
        width: 100%;
    }

    .mc-float-btns {
        width: 100%;
    }

    .mc-nav-btn {
        flex: 1;
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    /* Banner */
    .mc-pin-dot {
        display: none;
    }

    .mc-banner-left strong {
        font-size: 0.85rem;
    }

    .mc-banner-left span {
        font-size: 0.7rem;
    }

    /* Strip: iki satıra al */
    .mc-strip {
        flex-wrap: wrap;
        gap: 4px;
        padding: 0.6rem 0.9rem;
    }

    .mc-strip > span {
        width: calc(100% - 28px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mc-strip-open {
        width: 100%;
        justify-content: center;
        padding: 7px 10px;
    }
}

.custom-marker {
    background: var(--secondary-color);
    border-radius: 50% 50% 50% 0;
    width: 40px;
    height: 40px;
    position: relative;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-marker::after {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   15. BUTTON COLOR FIXES
   ========================================================================== */
.btn-primary,
.btn-submit,
.cta-button,
.submit-btn,
button[type="submit"],
.phone-fixed-button,
.whatsapp-button,
[class*="btn-"][class*="primary"] {
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-submit:hover,
.cta-button:hover,
.submit-btn:hover,
button[type="submit"]:hover,
.phone-fixed-button:hover,
.whatsapp-button:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   16. DARK MODE VISIBILITY FIXES
   ========================================================================== */
[data-theme="dark"] a:not(.btn):not(.btn-primary):not(.btn-submit):not(.cta-button):not(.nav-links a):not(.footer-links a):not(.emergency-btn):not(.mc-route-btn):not(.mc-nav-btn):not(.mc-gmaps):not(.mc-strip-open):not(.mc-popup-btn):not(.leaflet-control-zoom a):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
[data-theme="dark"] p a,
[data-theme="dark"] .service-card h3 a,
[data-theme="dark"] .feature-card h3 a,
[data-theme="dark"] [style*="color: #1e3a5f"],
[data-theme="dark"] [style*="var(--secondary-color)"],
[data-theme="dark"] [style*="var(--corp-primary)"],
[data-theme="dark"] .text-secondary {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Leaflet Zoom Controls */
.leaflet-control-zoom {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom a {
    background: #ffffff !important;
    color: #1e2124 !important;
    border-color: #e2e8f0 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.leaflet-control-zoom a:hover {
    background: #0f1f3d !important;
    color: #ffffff !important;
    border-color: #0f1f3d !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .leaflet-control-zoom {
    border: 1px solid #30363d !important;
    background: #1f2328 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .leaflet-control-zoom a {
    background: #1f2328 !important;
    color: #ffffff !important;
    border-color: #30363d !important;
    text-decoration: none !important;
}

[data-theme="dark"] .leaflet-control-zoom a:hover {
    background: #1e3a5f !important;
    color: #ffffff !important;
    border-color: #1e3a5f !important;
}

[data-theme="dark"] .leaflet-control-zoom-in {
    border-bottom: 1px solid #30363d !important;
}

/* Emergency button & map buttons: keep explicit colors in dark mode */
[data-theme="dark"] .emergency-btn {
    background: white !important;
    color: #1e2124 !important;
    text-decoration: none !important;
}
[data-theme="dark"] .emergency-btn i,
[data-theme="dark"] .emergency-btn span {
    color: #1e2124 !important;
}
[data-theme="dark"] .mc-route-btn {
    color: #0f1f3d !important;
    text-decoration: none !important;
}
[data-theme="dark"] .mc-gmaps {
    color: #ffffff !important;
    text-decoration: none !important;
}
[data-theme="dark"] .mc-strip-open {
    color: var(--accent-color, #ffc107) !important;
    text-decoration: none !important;
}
[data-theme="dark"] .mc-popup-btn {
    color: #1e2124 !important;
    text-decoration: none !important;
}

/* ==========================================================================
   18. LOGO BACKGROUND FIXES
   ========================================================================== */
.logo,
.logo-glow,
.logo-glow::before,
.logo-glow::after,
.logo-text,
.brand-name,
.brand-tagline,
.mobile-nav-logo {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

.mobile-nav-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   17. SERVICES INTRO SECTION FIXES
   ========================================================================== */
[data-theme="dark"] .services-intro-section strong,
[data-theme="dark"] .services-intro-section b,
[data-theme="dark"] .services-intro-section .text-primary,
[data-theme="dark"] .services-intro-section [style*="color: #1e3a5f"],
[data-theme="dark"] .services-intro-section [style*="var(--secondary-color)"] {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   19. MOBILE AESTHETICS OPTIMIZATION (100% PRIORITY)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- General Layout & Spacing --- */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    section,
    .section,
    .contact-main,
    .about-section {
        padding: 3rem 0 !important;
    }

    /* --- Typography --- */
    h1,
    .hero-title {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }

    h2,
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
    }

    p,
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* --- Header & Navigation --- */
    .header {
        padding: 0.8rem 0 !important;
        height: auto !important;
        min-height: 60px;
    }

    .logo img,
    .logo-glow img,
    .mobile-nav-logo img {
        height: 40px !important;
        width: 40px !important;
        max-height: 40px !important;
    }

    .logo-text {
        font-size: 1.1rem !important;
    }

    .brand-tagline {
        font-size: 0.65rem !important;
    }

    .mobile-menu {
        font-size: 1.6rem !important;
        padding: 0.5rem;
    }

    /* --- Hero Section --- */
    .hero-content {
        text-align: center !important;
        padding-top: 6rem !important;
        padding-bottom: 2rem !important;
        width: 100% !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .btn,
    .btn-primary,
    .btn-cta,
    .cta-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    /* --- Cards & Grids --- */
    .services-wrapper,
    .features-grid,
    .contact-cards,
    .special-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .service-card,
    .feature-card,
    .contact-card,
    .special-card {
        margin-bottom: 1rem !important;
        padding: 1.5rem !important;
    }

    /* --- Forms --- */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .contact-wrapper {
        gap: 2.5rem !important;
    }

    /* --- Footer --- */
    .footer-content {
        text-align: center !important;
    }

    .footer-links {
        align-items: center !important;
    }

    /* --- Adjustments for Specific Elements --- */
    .page-loader {
        /* Ensure loader covers everything on mobile too */
        z-index: 10000 !important;
    }
}

/* ==========================================================================
   20. WHATSAPP BUTTON POSITION FIX
   ========================================================================== */
.whatsapp-button,
.floating-whatsapp {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    z-index: 9999 !important;
}

*/

/* ==========================================================================
   21. FLOATING ACTION BUTTON (FAB) MENU
   ========================================================================== */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
}

.fab-main-btn {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.fab-container.active .fab-main-btn {
    transform: rotate(45deg);
    background: #ef4444;
    /* Kırmızı renk kapatma için */
}

.fab-icon-close {
    display: none;
}

.fab-options {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
}

.fab-option:hover {
    transform: scale(1.1);
}

/* Colors */
.fab-option.whatsapp {
    background: #25D366;
}

.fab-option.phone {
    background: #3b82f6;
}

.fab-option.mail {
    background: #ea4335;
}

.fab-option.location {
    background: #facc15;
}

/* Tooltip Labels (Optional - can be enabled if needed) */
.fab-option::before {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.fab-option:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ===== DARK THEME: ABOUT & FAQ VISIBILITY FIXES ===== */
[data-theme="dark"] .about-text,
[data-theme="dark"] .about-text p {
    opacity: 1 !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .about-title {
    color: #ffffff !important;
}

[data-theme="dark"] .feature-item p {
    opacity: 0.95 !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .feature-item h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .feature-item {
    background: var(--card-background) !important;
    border-color: rgba(233, 167, 56, 0.2) !important;
}

/* FAQ dark mode visibility */
[data-theme="dark"] .faq-item {
    background: var(--card-background) !important;
    border: 1px solid rgba(233, 167, 56, 0.2) !important;
}

[data-theme="dark"] .faq-question h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .faq-answer p {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .faq-item.active .faq-question {
    border-bottom-color: rgba(233, 167, 56, 0.3) !important;
}

/* Section titles & subtitles dark mode */
[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

/* Section badge dark mode - gold text */
[data-theme="dark"] .section-badge {
    color: #e9a738 !important;
    background: rgba(233, 167, 56, 0.15) !important;
}

/* About header badge override */
[data-theme="dark"] .about-header .section-badge {
    color: #e9a738 !important;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON - Ayrı buton (FAB'den bağımsız)
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed !important;
    bottom: 120px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        #3b82f6 0deg,
        #3b82f6 calc(var(--scroll-progress, 0) * 360deg),
        transparent calc(var(--scroll-progress, 0) * 360deg)
    );
    border-radius: 50%;
    z-index: -1;
    transition: all 0.1s linear;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.scroll-to-top-btn i {
    position: relative;
    z-index: 1;
}

/* FAB açık olduğunda scroll-top butonu gizlenir */
.scroll-to-top-btn.fab-active-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.8) !important;
    pointer-events: none;
}

/* FAB Preview Bubble - Küçük floating icon badge */
.fab-preview-bubble {
    position: absolute;
    bottom: 47px;
    right: 13px;
    width: 35px;
    height: 35px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000003;
    opacity: 1;
    visibility: visible;
    animation: bubbleBounce 1s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-preview-bubble i {
    color: white;
    font-size: 16px;
    animation: iconRotate 0.6s ease-in-out;
}

.fab-preview-bubble.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.3);
}

.fab-container.active .fab-preview-bubble {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.3);
}

@keyframes bubbleBounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

@keyframes iconRotate {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* At footer state - no position change, buttons stay fixed */
.fab-container.at-footer {
    bottom: 30px;
    /* Konum değişmez, butonlar footer içeriğinin üstünde sabit kalır */
}

.scroll-to-top-btn.at-footer {
    bottom: 120px;
    /* Konum değişmez, butonlar footer içeriğinin üstünde sabit kalır */
}

/* Mobile adjustments for scroll-to-top button */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 110px !important;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
        z-index: 999999 !important;
    }

    .fab-container {
        bottom: 20px !important;
        right: 15px;
        z-index: 1000000 !important;
        display: flex !important;
    }

    .fab-main {
        z-index: 1000001 !important;
    }

    /* Preview bubble mobile adjustment */
    .fab-preview-bubble {
        bottom: 45px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .fab-preview-bubble i {
        font-size: 14px;
    }

    /* At footer state - mobile - no position change */
    .fab-container.at-footer {
        bottom: 20px !important;
    }

    .scroll-to-top-btn.at-footer {
        bottom: 110px !important;
    }
}