/* ==========================================================================
   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 - Reduced Height */
.about-hero {
    position: relative;
    height: 60vh !important;
    min-height: 500px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 120px !important;
    /* Extra padding for header clearance */
}

.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,
    .contact-hero {
        height: auto;
        min-height: 500px;
        padding: 6rem 1rem 4rem;
        align-items: flex-end;
        /* Push content down slightly */
    }
}

/* ==========================================================================
   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: #ffffff !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);
}

.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;
}

.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;
}

.map-wrapper {
    background: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.map-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.map-header h3 {
    margin: 0;
    color: var(--heading-color);
}

.map-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #2c5282;
}

.modern-map {
    height: 450px;
    width: 100%;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.modern-map:hover {
    filter: grayscale(0%);
}

.map-info {
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.info-item i {
    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;
    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-wrapper {
        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;
    }
}

@media (max-width: 480px) {
    .contact-cards-section {
        margin-top: -60px;
    }

    .modern-map {
        height: 300px;
    }

    .map-info {
        flex-direction: column;
        gap: 1rem;
    }
}

.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),
[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;
}

/* ==========================================================================
   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;
    }
}