/* ==========================================
   AGROFINE - Professional Design v3
   Font: Manrope only
   Colors: Turquoise (#14A19A) & White
   ========================================== */

:root {
    --color-primary: #14A19A;
    --color-primary-light: #e8f7f6;
    --color-primary-dark: #0d7a75;
    --color-accent: #14A19A;
    --color-accent-hover: #0d7a75;
    --color-accent-2: #424949;
    --gradient-accent: linear-gradient(135deg, #14A19A 0%, #424949 100%);
    --color-dark: #1a2b3c;
    --color-navy: #2c3e50;
    --color-text: #5a6a7a;
    --color-text-light: #8899aa;
    --color-text-muted: #a0afc0;
    --color-bg: #ffffff;
    --color-bg-light: #f4f8fb;
    --color-bg-warm: #f8f9fa;
    --color-border: #e8eef3;
    /* Hero slider overlay: soft dual gradient for legibility without heavy panels */
    --hero-overlay:
        radial-gradient(140% 95% at 18% 70%, rgba(6,12,20,0.55) 0%, rgba(6,12,20,0.14) 58%, rgba(6,12,20,0.02) 100%),
        linear-gradient(180deg, rgba(6,12,20,0.32) 0%, rgba(6,12,20,0.18) 45%, rgba(6,12,20,0.04) 100%);
    --font: 'Manrope', sans-serif;
    --header-height: 80px;
    --header-height-shrink: 64px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll at viewport level */
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: clip;   /* Use clip instead of hidden - doesn't create BFC, won't affect vertical scroll */
    overflow-y: auto;   /* Explicitly allow vertical scroll */
    line-height: 1.7;
    font-size: 15px;
}

body.menu-open {
    overflow-y: hidden; /* Only block vertical scroll when menu is open */
}
body.modal-open{
    overflow:hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   HEADER
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    transition: height 0.3s ease;
}

.main-header.scrolled .header-inner {
    height: var(--header-height-shrink);
}

/* ── Dual logo: clip-path sweep reveal ── */
.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 36px;
    width: auto;
    display: block;
    will-change: clip-path, opacity;
}
/* White logo: fully visible */
.logo .logo-white {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    transition: clip-path 0.45s cubic-bezier(0.77,0,0.18,1),
                opacity 0.2s ease 0.3s;
}
/* Dark logo: clipped from right, sitting on top */
.logo .logo-dark {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    pointer-events: none;
    transition: clip-path 0.45s cubic-bezier(0.77,0,0.18,1);
}
/* On scroll: white sweeps OUT to the right */
.main-header.scrolled .logo .logo-white {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
}
/* On scroll: dark sweeps IN from left to right */
.main-header.scrolled .logo .logo-dark {
    clip-path: inset(0 0% 0 0);
    pointer-events: auto;
}
.main-header.scrolled .logo img {
    height: 30px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-item.active .nav-link {
    color: var(--color-primary);
    background: rgba(20, 161, 154, 0.08);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.main-header.scrolled .nav-link {
    color: var(--color-navy);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(20, 161, 154, 0.08);
}

.mobile-nav-head {
    display: none;
}

.nav-link svg {
    opacity: 0.5;
    transition: transform 0.2s;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.main-header.scrolled .header-phone {
    color: var(--color-navy);
}

.header-phone:hover {
    color: var(--color-primary);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-contact:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 161, 154, 0.3);
}

/* Lang selector styles moved to bottom of file */
/* Mobile lang selector - hidden on desktop by default */
.mobile-lang-selector { display: none; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: opacity 0.2s;
}
.menu-open .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

.main-header.scrolled .hamburger-line {
    background: var(--color-navy);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 80px;
    padding-top: var(--header-height);
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    transform: translateY(-10px);
    position: relative;
    z-index: 3;
}

.hero-title-area {
    flex: 1;
    max-width: 520px;
    margin-left: 20px;
    padding: 8px 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-family: var(--font);
    font-size: 52px;
    font-weight: 600;
    font-style: normal;
    color: rgba(244, 245, 247, 0.98);
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
}

.title-line.accent {
    color: var(--color-primary);
}

.title-line.gradient {
    background: linear-gradient(90deg, #0f2135, #14A19A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(20, 161, 154, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.hero-info-area {
    width: 100%;
    max-width: 460px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
    color: rgba(255,255,255,0.94);
}

.hero-info-area p,
.hero-info-area .hero-description {
    color: rgba(255,255,255,0.96);
    text-shadow: 0 2px 12px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
}

/* Slider Progress Bar */
.slider-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    animation: progress 5s linear infinite;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.hero-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 28px;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-discover:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 161, 154, 0.35);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
}

.section-title .text-accent {
    color: var(--color-primary);
}

.section-header.centered {
    text-align: center;
    margin-bottom: 50px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background: var(--color-bg);
}
.about-page .about-section {
    padding-top: 52px;
}

.about-page .page-header {
    min-height: 400px;
    padding: 140px 0 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--color-text);
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.feature-icon .icon {
    width: 20px;
    height: 20px;
}

.feature-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--color-primary);
    color: #fff;
    padding: 28px 36px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(20, 161, 154, 0.3);
}

.experience-badge strong {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge span {
    font-size: 13px;
    opacity: 0.9;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: 100px 0 160px;
    background: var(--color-bg-light);
    position: relative;
}

.services-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 24px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.tab-btn:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-navy);
    background: rgba(20, 161, 154, 0.03);
}

.tab-btn.active {
    color: var(--color-navy);
}

.tab-btn.active::before {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-image {
    height: 210px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbfd;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-body {
    padding: 20px;
    text-align: center;
}

.service-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 14px;
}

.service-divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: 0 auto 14px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--color-primary);
}

.service-link svg {
    transition: transform 0.2s;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   PROJECTS SECTION - Stacking Cards
   ========================================== */
.projects-section {
    padding: 120px 0 60px;
    background: #fff;
    position: relative;
}

/* Transition gradient from services section */
.projects-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-bg-light) 0%, #fff 100%);
    pointer-events: none;
}

.projects-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Stacking cards - later cards stack ON TOP of earlier cards */
.project-card {
    position: sticky;
    top: 120px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    border: 1px solid var(--color-border);
}

/* Z-index: later cards have HIGHER z-index to stack ON TOP */
.project-card[data-index="1"] {
    z-index: 1;
}

.project-card[data-index="2"] {
    z-index: 2;
}

.project-card[data-index="3"] {
    z-index: 3;
    margin-bottom: 40px;
}

.project-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.project-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.project-number {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
    margin-bottom: 24px;
}

.project-meta {
    flex: 1;
}

.meta-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    color: var(--color-navy);
    font-weight: 500;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-details:hover {
    background-position: 100% 0;
    box-shadow: 0 4px 16px rgba(20, 161, 154, 0.35);
}

.project-image {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

/* ==========================================
   WHY US SECTION
   ========================================== */
.why-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.why-content p {
    color: var(--color-text);
    margin-top: 16px;
}

.why-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.stat-card:hover {
    background: #fff;
    border-color: var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.stat-card strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: #ffffff;
    padding: 70px 0 0;
    border-top: 3px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 50px;
}

.footer-brand img {
    height: 36px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.footer-col li svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.footer-col a {
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    margin-top: 50px;
    padding: 22px 0;
    background: #ffffff;
    border-top: 1px solid rgba(14,161,154,0.12);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
    .title-line {
        font-size: 52px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr 360px;
        gap: 60px;
    }
    
    .about-grid {
        gap: 50px;
    }

    .why-grid {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0; right: -105%;
        width: 100%; max-width: 320px;
        height: 100vh;
        background: #fff;
        display: flex; flex-direction: column;
        padding: 0;
        transition: right 0.36s cubic-bezier(0.4,0,0.2,1);
        z-index: 1001;
        box-shadow: -6px 0 32px rgba(0,0,0,0.12);
        overflow-y: auto; overflow-x: hidden;
    }
    .main-nav.active { right: 0; }

    /* Drawer header */
    .mobile-nav-head {
        position: sticky; top: 0; z-index: 2;
        display: flex; align-items: center; justify-content: space-between;
        padding: 20px 20px 18px;
        background: #fff;
        border-bottom: 1px solid #edf2f7;
        flex-shrink: 0;
    }
    .mobile-nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
    .mobile-nav-logo img { height: 32px; width: auto; display: block; }
    .mobile-nav-close {
        width: 34px; height: 34px;
        border: 1.5px solid #e2e8f0;
        border-radius: 9px;
        background: #f7f9fc;
        color: #64748b;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        transition: all 0.18s;
    }
    .mobile-nav-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

    /* Nav links */
    .nav-menu {
        flex-direction: column; gap: 1px;
        width: 100%; padding: 14px 14px 0;
        flex-shrink: 0;
    }
    .nav-item { width: 100%; }
    .nav-item .nav-link {
        display: flex; align-items: center;
        padding: 13px 14px;
        width: 100%; border-radius: 12px;
        background: transparent; border: none;
        color: #1a2533; font-size: 15px; font-weight: 600;
        letter-spacing: -0.1px;
        transition: background 0.15s, color 0.15s, padding-left 0.15s;
        position: relative;
    }
    .nav-item .nav-link::after {
        content: '';
        position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        width: 3px; height: 0;
        background: var(--color-primary); border-radius: 0 3px 3px 0;
        transition: height 0.2s;
    }
    .nav-item .nav-link:hover { background: #f0faf9; color: var(--color-primary); padding-left: 20px; }
    .nav-item .nav-link:hover::after { height: 55%; }
    .nav-item.active .nav-link { background: rgba(20,161,154,0.08); color: var(--color-primary); font-weight: 700; }
    .nav-item.active .nav-link::after { height: 55%; }

    /* Staggered slide-in animation for nav items */
    .main-nav .nav-item {
        opacity: 0;
        transform: translateX(18px);
        transition: opacity 0.28s ease, transform 0.28s ease;
    }
    .main-nav.active .nav-item { opacity: 1; transform: translateX(0); }
    .main-nav.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
    .main-nav.active .nav-item:nth-child(2) { transition-delay: 0.10s; }
    .main-nav.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
    .main-nav.active .nav-item:nth-child(4) { transition-delay: 0.20s; }
    .main-nav.active .nav-item:nth-child(5) { transition-delay: 0.25s; }

    /* Footer fade-in */
    .main-nav .nav-drawer-footer {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease 0.28s, transform 0.3s ease 0.28s;
    }
    .main-nav.active .nav-drawer-footer { opacity: 1; transform: translateY(0); }

    .header-phone,
    .btn-contact {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        transform: translateY(0);
    }

    .title-line {
        font-size: 44px;
    }

.hero-info-area {
    max-width: 460px;
    padding: 14px 0 0;
    color: rgba(255,255,255,0.96);
}

.hero-info-area p,
.hero-info-area .hero-description {
    color: rgba(255,255,255,0.96);
}

.hero-description,
.hero-subtitle {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.hero-buttons a {
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 350px;
    }

    .experience-badge {
        bottom: -20px;
        left: 20px;
        padding: 20px 28px;
    }

    .experience-badge strong {
        font-size: 32px;
    }

    .services-tabs {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .tab-btn:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .tab-btn::before {
        width: 3px;
        height: 100%;
        left: 0;
        top: 0;
        transform: scaleY(0);
    }

    .tab-btn.active::before {
        transform: scaleY(1);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .project-card-inner {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 220px;
        order: -1;
    }

    .projects-section::before {
        top: -60px;
        height: 60px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-title-area {
        margin-left: 0;
    }

    .title-line.gradient {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-inner {
        padding: 0 20px;
    }

    .title-line {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-section,
    .services-section,
    .projects-section,
    .why-section {
        padding: 70px 0;
    }

    .projects-wrapper {
        padding: 0 24px;
    }

    .project-info {
        padding: 24px;
    }

    .project-title {
        font-size: 20px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-card strong {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .btn-contact {
        display: none;
    }

    .title-line {
        font-size: 30px;
    }

    .about-features {
        flex-direction: column;
        gap: 16px;
    }

    .why-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.hero-title-area {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-info-area {
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* ==========================================
   MEGA MENU STYLES
   ========================================== */

/* Nav item with mega menu */
.nav-item.has-mega {
    position: static;
}

.nav-item.has-mega > .nav-link svg {
    transition: transform 0.3s ease;
}

.nav-item.has-mega:hover > .nav-link svg {
    transform: rotate(180deg);
}

/* Mega Menu Container */
/* ==========================================
   MEGA MENU - MODERN TAB DESIGN
   ========================================== */
/* ==========================================
   MEGA MENU - VERTICAL SIDEBAR + ENHANCED CARDS
   ========================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 960px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    box-shadow:
        0 20px 50px rgba(15, 118, 110, 0.10),
        0 8px 24px rgba(0, 0, 0, 0.07);
}

.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-item.has-mega.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-item.has-mega .nav-link svg {
    transition: transform 0.2s ease;
}

.nav-item.has-mega.open .nav-link svg {
    transform: rotate(180deg);
}

.mega-menu-inner {
    display: flex;
    flex-direction: row;
    min-height: 280px;
}

/* Sidebar nav */
.mega-sidebar {
    width: 290px;
    min-width: 290px;
    background: linear-gradient(135deg, #f8fbfa 0%, #f0f7f5 100%);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid rgba(20,161,154,0.10);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mega-sidebar::-webkit-scrollbar {
    display: none;
}

.mega-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #5f6b7a;
    font-size: 13.5px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
    max-width: none;
    text-align: left;
    border-radius: 8px;
    background: transparent;
    border: 1.5px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mega-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.mega-category svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

.mega-category:hover {
    color: #0f766e;
    background: rgba(20, 161, 154, 0.06);
}

.mega-category:hover::before {
    opacity: 0.4;
    transform: scaleY(0.6);
}

.mega-category.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d8a84 100%);
    box-shadow: 0 6px 20px rgba(20, 161, 154, 0.3);
}

.mega-category.active::before {
    opacity: 0;
}

.mega-category.active svg {
    opacity: 1;
    transform: translateX(0);
}

.mega-category:focus-visible {
    background: #e1f3ef;
    color: #0f766e;
}

/* Content Area */
.mega-content {
    flex: 1;
    padding: 24px 28px;
    background: #ffffff;
    min-height: auto;
    display: flex;
    align-items: flex-start;
}

.mega-content-panel {
    display: none;
    width: 100%;
    animation: megaPanelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-content-panel.active {
    display: block;
}

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

/* Kurumsal Menu - Info Card Style */
.mega-info-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.mega-info-image {
    width: 280px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.mega-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mega-info-card:hover .mega-info-image img {
    transform: scale(1.05);
}

.mega-info-text {
    flex: 1;
    padding-top: 8px;
}

.mega-info-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.mega-info-text p {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 18px;
}

.mega-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--color-primary-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mega-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.mega-link svg {
    transition: transform 0.2s ease;
}

.mega-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   PAGE HEADERS (About, Products, Contact)
   ========================================== */
/* ==========================================
   PAGE HEADER - REFINED CORPORATE
   ========================================== */
.page-header {
    position: relative;
    min-height: 440px;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, rgba(15,33,53,0.92) 0%, rgba(20,161,154,0.7) 100%), var(--page-hero-bg, url('assets/slider-5.png')) center/cover no-repeat;
    color: #fff;
    margin-top: -20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Pages without stats box: extra bottom padding to match height of stat-pages */
.page-header:not(:has(.page-header-stats)) {
    padding-bottom: 160px;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    opacity: 0.25;
    pointer-events: none;
}

.page-header-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 3;
}

.page-header .container,
.page-header-content {
    position: relative;
    z-index: 4;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}
.breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { color: rgba(255,255,255,0.4); }
.breadcrumb span { color: var(--color-primary); font-weight: 600; }

.page-header h1 {
    font-size: 44px;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.15;
}

.page-header p {
    max-width: 580px;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Page Header Stats */
.page-header-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px 8px;
}
.ph-stat {
    padding: 0 24px;
    text-align: center;
}
.ph-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.ph-stat span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
    white-space: nowrap;
}
.ph-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ==========================================
   PRODUCTS PAGE - CORPORATE REFINED
   ========================================== */
.products-main {
    padding: 40px 0 120px;
    background: #ffffff;
    min-height: 60vh;
}

.products-layout.split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- Category Rail / Sidebar ---- */
.category-rail {
    position: sticky;
    top: calc(var(--header-height-shrink) + 20px);
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

.category-rail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.category-rail-header svg { color: var(--color-primary); }

.products-category-bar { display: none; }

.category-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    overflow: visible;
    align-items: stretch;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
}

.category-tab .cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    transition: all 0.22s ease;
}

.category-tab span {
    flex: 1;
    min-width: 0;
    text-align: left;
    line-height: 1.3;
}

.category-tab.sub-tab {
    display: none;
    padding-left: 36px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    color: var(--color-text-light);
}

.category-tab.sub-tab::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(20, 161, 154, 0.3);
    transform: translateY(-50%);
    transition: all 0.22s ease;
}

.category-tabs.sub-visible .sub-tab {
    display: flex;
}

.category-tab:hover {
    color: var(--color-primary);
    background: rgba(20, 161, 154, 0.05);
}
.category-tab:hover .cat-icon {
    background: rgba(20, 161, 154, 0.15);
}

.category-tab.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(20, 161, 154, 0.3);
    font-weight: 700;
}
.category-tab.active .cat-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.category-tab.sub-tab.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.category-tab.sub-tab.active::before {
    background: #fff;
}
.category-tab.sub-tab:hover::before {
    background: var(--color-primary);
}

/* ---- Products Content Area ---- */
.products-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Content Header with title & count */
.products-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.pch-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.pch-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid/List View Toggle */
.view-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
}
.view-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--color-border);
}
.view-toggle-btn.active {
    background: var(--color-primary);
    color: #fff;
}
.view-toggle-btn:hover:not(.active) {
    background: rgba(20,161,154,0.06);
    color: var(--color-primary);
}

/* Category Count Badge */
.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(20,161,154,0.1);
    color: var(--color-primary);
    font-size: 10.5px;
    font-weight: 700;
    margin-left: 6px;
    flex-shrink: 0;
    transition: all 0.22s ease;
}
.category-tab.active .cat-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.pch-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.3px;
}
.pch-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(20,161,154,0.08);
    padding: 4px 12px;
    border-radius: 20px;
}
.pch-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
}
.pch-back:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(20,161,154,0.04);
}

/* ---- Products Grid ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* ---- LIST VIEW ---- */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 10px;
}
.products-grid.list-view .product-item {
    border-radius: 12px;
}
.products-grid.list-view .product-item::before {
    display: none;
}
.products-grid.list-view .product-item a {
    flex-direction: row;
    align-items: center;
    padding: 12px 20px 12px 12px;
    gap: 18px;
    height: auto;
}
.products-grid.list-view .product-image {
    width: 80px;
    height: 68px;
    min-width: 80px;
    margin-bottom: 0;
    border-radius: 8px;
    flex-shrink: 0;
}
.products-grid.list-view .product-image img {
    max-width: 75%;
    max-height: 75%;
}
.products-grid.list-view .product-name {
    text-align: left;
    font-size: 14.5px;
    margin-top: 0;
}
.products-grid.list-view .product-info {
    justify-content: flex-start;
    margin-top: 0;
}
.products-grid.list-view .product-image-overlay {
    display: none;
}
.products-grid.list-view .product-item:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 161, 154, 0.25);
    box-shadow: 0 2px 8px rgba(20, 161, 154, 0.06), 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* ---- Product Cards - Polished Corporate ---- */
.product-item {
    display: block;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    opacity: 0;
    transform: translateY(12px);
    animation: productFadeIn 0.4s ease forwards;
}
.product-item:nth-child(1) { animation-delay: 0s; }
.product-item:nth-child(2) { animation-delay: 0.05s; }
.product-item:nth-child(3) { animation-delay: 0.1s; }
.product-item:nth-child(4) { animation-delay: 0.15s; }
.product-item:nth-child(5) { animation-delay: 0.2s; }
.product-item:nth-child(6) { animation-delay: 0.25s; }
.product-item:nth-child(7) { animation-delay: 0.3s; }
.product-item:nth-child(8) { animation-delay: 0.35s; }
.product-item:nth-child(9) { animation-delay: 0.4s; }

@keyframes productFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #0d7a75 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.product-item:hover {
    border-color: rgba(20, 161, 154, 0.3);
    box-shadow:
        0 4px 12px rgba(20, 161, 154, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-item:hover::before {
    transform: scaleX(1);
}

.product-item a {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    padding: 24px 20px 20px;
    height: 100%;
}

.product-image {
    height: 180px;
    background: linear-gradient(180deg, #f8fafb 0%, #f0f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    border-radius: 10px;
}

/* Hover Overlay */
.product-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,161,154,0.0) 0%, rgba(20,161,154,0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 10px;
    z-index: 3;
    pointer-events: none;
}
.product-item:hover .product-image-overlay {
    opacity: 1;
}
.overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #fff;
    color: var(--color-primary);
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 8px;
    border: none;
    letter-spacing: 0.3px;
    transform: translateY(8px);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: auto;
}
.product-item:hover .overlay-btn {
    transform: translateY(0);
}
.overlay-btn svg {
    transition: transform 0.2s ease;
}
.overlay-btn:hover svg {
    transform: translateX(2px);
}

.product-image img {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-item:hover .product-image img {
    transform: scale(1.06);
}

/* Product Info area */
.product-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.product-name {
    padding: 0;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--color-navy);
    text-align: center;
    line-height: 1.35;
    transition: color 0.25s ease;
    margin-top: auto;
}

.product-item:hover .product-name {
    color: var(--color-primary);
}

/* Arrow for sub-category cards */
.product-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(20, 161, 154, 0.08);
    color: var(--color-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.product-item:hover .product-arrow {
    background: var(--color-primary);
    color: #fff;
    transform: translateX(2px);
}

.product-tag {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

/* Legacy styles - keeping for compatibility */
.products-sidebar { display: none; }

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(20,161,154,0.35);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: #0d8a84;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(20,161,154,0.45);
}
.scroll-top-btn:active {
    transform: translateY(0);
}

/* ==========================================
   STICKY MOBILE FILTER BAR
   ========================================== */
.mobile-filter-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 950;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.mobile-filter-bar.visible {
    transform: translateY(0);
}
.mfb-inner {
    padding: 10px 16px;
}
.mfb-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-light);
    color: var(--color-navy);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
}
.mfb-btn svg:first-child {
    color: var(--color-primary);
    flex-shrink: 0;
}
.mfb-btn span {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mfb-btn svg:last-child {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.25s ease;
}
.mobile-filter-bar.dropdown-open .mfb-btn svg:last-child {
    transform: rotate(180deg);
}
.mfb-btn:active {
    background: rgba(20,161,154,0.06);
    border-color: var(--color-primary);
}

/* Dropdown */
.mfb-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 16px;
    background: #fff;
}
.mobile-filter-bar.dropdown-open .mfb-dropdown {
    max-height: 420px;
    padding: 0 16px 14px;
    overflow-y: auto;
}
.mfb-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}
.mfb-dropdown-item:hover,
.mfb-dropdown-item:active {
    background: rgba(20,161,154,0.06);
    color: var(--color-primary);
}
.mfb-dropdown-item.active {
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
}
.mfb-dropdown-item .mfb-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: rgba(20,161,154,0.1);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 10px;
}
.mfb-dropdown-item.active .mfb-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

@media (max-width: 991px) {
    .mobile-filter-bar { display: block; }
    .scroll-top-btn { bottom: 80px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 575px) {
    .scroll-top-btn { bottom: 76px; right: 14px; width: 40px; height: 40px; }
}

/* Shared cards & grids */
.card,
.info-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.info-card h4 {
    margin-bottom: 8px;
    color: var(--color-navy);
}

.info-card p {
    color: var(--color-text);
    font-size: 14px;
}

.icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

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

.page-body {
    padding: 60px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.contact-info li {
    margin-bottom: 10px;
    color: var(--color-text);
}

.contact-map {
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.contact-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: var(--color-navy);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(20,161,154,0.2);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile & tablet adjustments */
@media (max-width: 991px) {
    .products-layout.split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .category-rail {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-item a { padding: 20px 16px 16px; }
    .product-image { height: 160px; margin-bottom: 14px; }
    .product-name { font-size: 13.5px; }

    .page-header-stats { flex-wrap: wrap; justify-content: center; gap: 0; }
    .ph-stat { padding: 0 16px; }
    .ph-stat strong { font-size: 22px; }

    .products-content-header { flex-wrap: wrap; gap: 12px; }
    .pch-title { font-size: 18px; }
    .pch-right { order: -1; width: 100%; justify-content: flex-end; }
    .products-grid.list-view .product-image { width: 70px; height: 56px; min-width: 70px; }
    .products-grid.list-view .product-item a { padding: 10px 14px 10px 10px; gap: 14px; }
    .products-grid.list-view .product-name { font-size: 13px; }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-category-bar {
        margin-bottom: 20px;
        padding: 14px 18px;
    }

    .category-tab {
        flex: 0 0 auto;
        min-width: 130px;
        padding: 9px 14px;
        font-size: 12px;
        text-align: left;
    }

    .product-item a { padding: 18px 14px 14px; }
    .product-image { height: 140px; }

    .page-header {
        padding: 140px 0 60px;
        min-height: 400px;
    }
    .page-header:not(:has(.page-header-stats)) {
        padding-bottom: 140px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .products-page .page-header {
        padding: 120px 0 50px;
    }

    .products-page .page-header p {
        font-size: 14px;
    }

    .page-header-stats {
        flex-direction: row;
        padding: 12px 4px;
        border-radius: 10px;
    }
    .ph-stat { padding: 0 12px; }
    .ph-stat strong { font-size: 18px; }
    .ph-stat span { font-size: 11px; }

    /* Kurumsal (KVKK/Kalite/Kariyer) mobilde kenarlardan nefes alsın */
    #kvkk.container,
    #kalite.container,
    #kariyer.container {
        padding-left: 30px;
        padding-right: 30px;
    }

    #kvkk .info-card,
    #kalite .info-card,
    #kariyer .info-card {
        padding: 18px 16px;
    }

    /* Medya sayfasi mobilde kenarlardan nefes alsin */
    .media-page main.container.section-padding {
        padding-left: 30px;
        padding-right: 30px;
    }

    .media-page .info-card {
        padding: 18px 16px;
    }
}

@media (max-width: 575px) {
    #kvkk.container,
    #kalite.container,
    #kariyer.container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .media-page main.container.section-padding {
        padding-left: 22px;
        padding-right: 22px;
    }

    .category-tab {
        min-width: 110px;
        padding: 8px 14px;
    }

    .product-item a {
        padding: 16px 12px 12px;
    }

    .product-image {
        height: 110px;
    }

    .page-header-deco { height: 30px; }
    .breadcrumb { font-size: 12px; }
}

/* Products Grid - Enhanced Mega Menu Cards */
/* ==========================================
   MEGA MENU - ENHANCED PRODUCT CARDS
   ========================================== */

.mega-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Product Card - Enhanced */
.mega-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 16px 18px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 161, 154, 0.03) 0%, transparent 100%);
    border: 1.5px solid rgba(20, 161, 154, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: megaCardIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 0.06s);
}

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

/* Subtle corner accent */
.mega-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(20, 161, 154, 0.12) 0%, transparent 70%);
    border-radius: 14px 0 20px 0;
    transition: all 0.4s ease;
}

/* Bottom shine line */
.mega-product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-product-card:hover {
    background: linear-gradient(135deg, rgba(20, 161, 154, 0.06) 0%, rgba(20, 161, 154, 0.02) 100%);
    border-color: rgba(20, 161, 154, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 161, 154, 0.1);
}

.mega-product-card:hover::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 161, 154, 0.04) 0%, transparent 60%);
    border-radius: 14px;
}

.mega-product-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Card number indicator */
.mega-card-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 161, 154, 0.1) 0%, rgba(20, 161, 154, 0.04) 100%);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.35s ease;
}

.mega-product-card:hover .mega-card-num {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d8a84 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 161, 154, 0.25);
    transform: scale(1.05);
}

/* Icon - keep for backwards compat */
.mega-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 161, 154, 0.1) 0%, rgba(20, 161, 154, 0.04) 100%);
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-product-card:hover .mega-card-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d7a75 100%);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(20, 161, 154, 0.3);
}

/* Text Area */
.mega-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

/* Title */
.mega-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex: 1;
    line-height: 1.3;
}

.mega-product-card:hover .mega-card-title {
    color: var(--color-primary);
}

/* Description */
.mega-card-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.4;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-product-card:hover .mega-card-desc {
    color: var(--color-text);
}

/* Arrow */
.mega-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    color: var(--color-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-card-arrow svg {
    transition: transform 0.3s ease;
}

.mega-product-card:hover .mega-card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(20, 161, 154, 0.08);
}

/* Mega Footer */
.mega-footer {
    padding: 12px 24px 16px;
    display: flex;
    justify-content: flex-end;
}

.mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(20, 161, 154, 0.06);
}

.mega-footer-link:hover {
    background: rgba(20, 161, 154, 0.12);
    transform: translateX(3px);
}

.mega-footer-link svg {
    transition: transform 0.3s ease;
}

.mega-footer-link:hover svg {
    transform: translateX(3px);
}

.mega-category:focus-visible,
.mega-product-card:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* Scrolled header mega menu adjustments */
.main-header.scrolled .mega-menu {
    top: var(--header-height-shrink);
}

@media (max-width: 1200px) {
    .hero-layout {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
    .mega-menu {
        width: 860px;
        max-width: calc(100vw - 32px);
    }
    .mega-menu-inner {
        max-width: 860px;
    }
    .mega-sidebar {
        width: 230px;
        min-width: 230px;
    }
    .mega-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        transform: translateY(0);
    }
    .mega-menu {
        width: 720px;
        max-width: calc(100vw - 28px);
    }
    .mega-menu-inner {
        max-width: 720px;
    }
    .mega-sidebar {
        width: 210px;
        min-width: 210px;
        padding: 16px 10px;
    }
    .mega-category {
        font-size: 12.5px;
        padding: 10px 14px;
    }
    .mega-products-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .mega-product-card {
        padding: 14px 16px;
    }
    .mega-card-num {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
    }
    .mega-card-desc {
        display: none;
    }
}

/* Mobile Mega Menu - Hidden on mobile */
@media (max-width: 991px) {
    .mega-menu {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: translateY(8px);
        border-radius: 0 0 16px 16px;
        position: fixed;
        top: var(--header-height-shrink);
    }
    .nav-item.has-mega.open .mega-menu {
        transform: translateY(0);
    }
    .nav-item.has-mega:hover .mega-menu {
        transform: translateY(0);
    }

    .mega-menu-inner {
        flex-direction: column;
        min-height: unset;
    }

    .mega-sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 16px 8px;
        gap: 6px;
        border-right: none;
        border-bottom: 1px solid rgba(20, 161, 154, 0.1);
        background: linear-gradient(135deg, #f8fbfa 0%, #f0f7f5 100%);
    }

    .mega-category {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex: 1 0 auto;
        min-width: 0;
    }

    .mega-content {
        padding: 14px 16px;
        min-height: auto;
    }

    .mega-info-card {
        flex-direction: column;
    }

    .mega-info-image {
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 575px) {
    .mega-products-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mega-product-card {
        padding: 12px 14px;
    }

    .mega-card-title {
        font-size: 13px;
    }

    .mega-card-num {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 11px;
        border-radius: 8px;
    }
}


/* Footer class alias for consistency */
.footer-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:40px;}
@media(max-width:991px){.footer-inner{grid-template-columns:1fr 1fr;gap:24px;}}
@media(max-width:576px){.footer-inner{grid-template-columns:1fr;}}


/* Mobile: mega menu uzunluğu kontrol */
@media (max-width: 991px){
  .nav-item.has-mega .mega-menu{
    display:none !important;
  }
  .nav-item.has-mega > .nav-link svg{
    display:none;
  }
}


/* ═══════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE & RESPONSIVE FIXES v2
   ═══════════════════════════════════════════════════════ */

/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(20, 161, 154, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(20, 161, 154, 0.45);
}
.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Language Selector --- */
.lang-selector {
    display: inline-flex;
    position: relative;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
}
.lang-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
}
.lang-selector.open .lang-btn svg {
    transform: rotate(180deg);
}
.lang-btn:hover {
    border-color: var(--color-primary);
    color: #fff;
}
.main-header.scrolled .lang-btn {
    border-color: var(--color-border);
    color: var(--color-navy);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1100;
    overflow: hidden;
}
.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s ease;
    text-align: left;
}
.lang-option:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.lang-option.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.lang-option .lang-flag {
    font-size: 16px;
    line-height: 1;
}

/* Hide old lang-indicator */
.lang-indicator { display: none !important; }

/* Hide Google Translate default UI */
.goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none !important; }
.skiptranslate { display: none !important; }
.goog-te-gadget { display: none !important; }

/* --- Mobile Category Pill Bar --- */
.products-category-bar {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 0 0 12px;
    margin-bottom: 16px;
    scrollbar-width: none;
    white-space: nowrap;
}
.products-category-bar::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border: 1.5px solid #d0dbe6;
    border-radius: 24px;
    background: #fff;
    color: var(--color-navy);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.cat-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.cat-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* --- Page header deco for products page (match bg-light) --- */
.products-page .page-header-deco {
    background: #fff;
}

/* Global image and container resets */
.container {
    overflow: visible;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── TABLET: max-width 991px ── */
@media (max-width: 991px) {
    /* Language selector on mobile */
    .lang-selector {
        display: none;
    }
    
    /* Mobile language in drawer */
    .mobile-lang-selector { display: flex; }
    .mobile-lang-btn { display: none; }

    /* Drawer footer */
    .nav-drawer-footer {
        margin-top: auto; padding: 16px 14px 28px;
        border-top: 1px solid #edf2f7;
        flex-shrink: 0;
    }
    .nav-drawer-section-label {
        font-size: 9.5px; font-weight: 800; color: #94a3b8;
        text-transform: uppercase; letter-spacing: 0.9px;
        margin-bottom: 9px; padding-left: 2px;
    }
    .nav-drawer-lang {
        display: flex; gap: 7px; margin-bottom: 12px;
    }
    .nav-drawer-lang-btn {
        flex: 1; padding: 11px 4px 10px;
        border: 1.5px solid #e2e8f0; border-radius: 12px;
        background: #f8fafc; color: #1a2533;
        font: 600 12px/1.3 var(--font); cursor: pointer;
        text-align: center; transition: all 0.18s;
        display: flex; flex-direction: column;
        align-items: center; gap: 4px;
    }
    .ndl-flag { font-size: 20px; line-height: 1; }
    .nav-drawer-lang-btn.active {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: #fff;
        box-shadow: 0 2px 8px rgba(20,161,154,0.25);
    }
    .nav-drawer-lang-btn:hover:not(.active) {
        border-color: #a7d9d6; color: var(--color-primary); background: #f0faf9;
    }
    .nav-drawer-contact { display: flex; gap: 8px; }
    .ndc-link {
        flex: 1; display: flex; align-items: center;
        justify-content: center; gap: 6px; padding: 11px 8px;
        border-radius: 12px; font: 600 12.5px/1 var(--font);
        text-decoration: none; transition: all 0.18s;
        border: 1.5px solid #e2e8f0; background: #f8fafc; color: #1a2533;
        white-space: nowrap; overflow: hidden;
    }
    .ndc-link:hover { border-color: var(--color-primary); color: var(--color-primary); background: #f0faf9; }
    .ndc-wa { background: #f0fdf6; border-color: #bbf7d0; color: #166534; }
    .ndc-wa:hover { background: #dcfce7; border-color: #4ade80; }

    /* Hero section mobile fix */
    /* === HERO MOBILE === */
    .hero-section {
        min-height: 100vh;
        align-items: flex-end !important;
        padding-top: 0 !important;
        padding-bottom: 60px !important;
    }
    
    .hero-bg img {
        object-position: 70% center !important;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(13,28,45,0.82) 0%, rgba(13,28,45,0.55) 100%) !important;
    }
    
    .hero-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        transform: none !important;
        width: 100% !important;
    }
    
    .hero-title-area {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: unset !important;
    }
    
    .title-line {
        font-size: 36px !important;
        letter-spacing: -0.5px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-info-area {
        width: 100% !important;
        max-width: 100% !important;
        flex: unset !important;
    }
    
    .hero-description {
        font-size: 14px !important;
    }
    
    .slider-progress {
        display: none !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-hp, .btn-hs {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    
    /* Products mobile */
    .products-category-bar {
        display: flex;
    }
    
    .category-rail {
        display: none !important;
    }
    
    .products-layout.split {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .products-content {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
    }
    
    .product-item {
        min-width: 0 !important;
        overflow: hidden;
    }
    
    .product-item a {
        padding: 16px 12px 14px !important;
    }
    
    .product-image {
        height: 130px !important;
    }
    
    .product-name {
        font-size: 12.5px !important;
        word-break: break-word;
    }

    /* Page header */
    .page-header {
        padding: 120px 0 60px !important;
    }
    
    .page-header h1 {
        font-size: 30px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    /* Services section mobile */
    .services-section {
        padding: 60px 0 80px !important;
    }
    
    .services-tabs {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100% !important;
    }
    
    .service-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
    }
    
    .service-card .service-image {
        width: 140px !important;
        min-width: 140px !important;
        height: auto !important;
        min-height: 120px;
        border-radius: 12px 0 0 12px !important;
    }
    
    .service-card .service-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left !important;
        padding: 16px !important;
    }
    
    .service-card .service-body h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .service-card .service-divider {
        margin: 0 0 8px 0;
    }
    
    /* About grid */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Stats */
    .page-header-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Scroll top on mobile */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
    
    /* Mobile filter bar */
    .mobile-filter-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        border-top: 1px solid #e5eaf0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }
    
    .products-page {
        padding-bottom: 70px;
    }
}

/* ── MOBILE: max-width 768px ── */
@media (max-width: 768px) {
    .container {
        padding: 0 18px !important;
    }
    
    .hero-section {
        min-height: 75vh;
    }
    
    .title-line {
        font-size: 28px !important;
    }
    
    .page-header {
        padding: 100px 0 50px !important;
    }
    
    .page-header h1 {
        font-size: 26px !important;
    }
    
    .page-header-deco {
        height: 35px;
    }
    
    .section-padding {
        padding: 48px 0 !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr !important;
    }
    
    /* Products */
    .products-grid {
        gap: 10px !important;
    }
    
    .product-image {
        height: 110px !important;
    }
    
    /* Service cards horizontal on mobile */
    .service-card .service-image {
        width: 110px !important;
        min-width: 110px !important;
        min-height: 100px;
    }
    
    /* Milestone/timeline */
    .milestone-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ── SMALL MOBILE: max-width 575px ── */
@media (max-width: 575px) {
    .container {
        padding: 0 14px !important;
    }
    
    .hero-section {
        min-height: 70vh;
        padding-bottom: 30px;
    }
    
    .title-line {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }
    
    .scroll-indicator {
        width: 40px;
        height: 40px;
    }
    
    .page-header {
        padding: 90px 0 40px !important;
    }
    
    .page-header h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    
    .page-header p {
        font-size: 13px !important;
    }
    
    .page-header-deco {
        height: 25px;
    }
    
    .breadcrumb {
        font-size: 11px !important;
        gap: 5px !important;
    }
    
    .section-padding {
        padding: 36px 0 !important;
    }
    
    .section-title {
        font-size: 20px !important;
    }
    
    /* Category pills */
    .cat-pill {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    
    .product-item a {
        padding: 12px 10px 10px !important;
    }
    
    .product-image {
        height: 90px !important;
    }
    
    .product-name {
        font-size: 11.5px !important;
    }
    
    /* Services */
    .service-card {
        flex-direction: column !important;
    }
    
    .service-card .service-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 160px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .service-card .service-body {
        text-align: center !important;
    }
    
    /* Stats */
    .page-header-stats {
        flex-direction: row !important;
        padding: 10px 4px !important;
        border-radius: 10px;
    }
    
    .ph-stat {
        padding: 0 10px !important;
    }
    
    .ph-stat strong {
        font-size: 18px !important;
    }
    
    .ph-stat span {
        font-size: 9px !important;
    }
    
    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Scroll top btn */
    .scroll-top-btn {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
    
    .scroll-top-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ── ULTRA SMALL: max-width 400px ── */
@media (max-width: 400px) {
    .title-line {
        font-size: 21px !important;
    }
    
    .page-header h1 {
        font-size: 20px !important;
    }
    
    .header-inner {
        padding: 0 12px !important;
    }
    
    .products-grid {
        gap: 6px !important;
    }
    
    .product-image {
        height: 80px !important;
    }
    
    .product-name {
        font-size: 11px !important;
    }
}

/* ── Print optimization ── */
@media print {
    .main-header, .scroll-top-btn, .mobile-filter-bar, .lang-selector { display: none !important; }
}


/* ════════════════════════════════════════════════════════════
   AGROFINE HOMEPAGE — TAM YENİDEN YAZIM
   Düzeltmeler: Why2 koyu, footer koyu metin, tüm responsive
   ════════════════════════════════════════════════════════════ */

/* ─── HERO ────────────────────────────────────────────────── */
.hero-overlay{
    background:
        radial-gradient(130% 90% at 20% 75%, rgba(6,12,20,0.72) 0%, rgba(6,12,20,0.30) 50%, rgba(6,12,20,0.10) 100%),
        linear-gradient(105deg, rgba(6,12,20,0.60) 0%, rgba(6,12,20,0.45) 40%, rgba(6,12,20,0.30) 100%) !important;
}
.hero-subtitle{display:block;font-size:15px;font-weight:500;color:rgba(255,255,255,.65);letter-spacing:.2px;margin-top:10px;}
.hero-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px;}
.btn-hp,.btn-hs{display:inline-flex;align-items:center;gap:8px;border-radius:7px;font-size:14px;font-weight:600;font-family:var(--font);text-decoration:none;transition:all .25s;}
.btn-hp{padding:13px 26px;background:var(--color-primary);color:#fff;}
.btn-hp:hover{background:var(--color-primary-dark);transform:translateY(-2px);box-shadow:0 8px 24px rgba(20,161,154,.3);}
.btn-hs{padding:12px 26px;background:rgba(255,255,255,.08);color:#fff;border:1.5px solid rgba(255,255,255,.35);backdrop-filter:blur(6px);}
.btn-hs:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.65);transform:translateY(-2px);}

/* ─── METRİK BARI ─────────────────────────────────────────── */
.metrics-bar{
    background:#ffffff;
    border-top:none;
    border-bottom:2px solid var(--color-border);
    position:relative;
    box-shadow:0 4px 24px rgba(0,0,0,0.06);
}
.metrics-bar-inner{max-width:900px;margin:0 auto;padding:0 40px;display:grid;grid-template-columns:repeat(3,1fr);}
.mbar-item{display:flex;align-items:center;gap:16px;padding:26px 20px;border-right:1px solid var(--color-border);transition:background .2s;}
.mbar-item:last-child{border-right:none;}
.mbar-item:hover{background:rgba(255,255,255,.02);}
.mbar-icon{width:44px;height:44px;min-width:44px;border-radius:10px;background:rgba(20,161,154,.12);color:var(--color-primary);display:flex;align-items:center;justify-content:center;color:var(--color-primary);flex-shrink:0;}
.mbar-text strong{display:block;font-size:22px;font-weight:800;color:var(--color-dark);line-height:1.1;letter-spacing:-.4px;}
.mbar-text span{display:block;font-size:12px;color:var(--color-text);font-weight:400;margin-top:3px;line-height:1.3;}

/* ─── HAKKIMIZDA ──────────────────────────────────────────── */
/* about styles already in main CSS - just ensure mobile padding */
.about-section{padding:90px 0;}

/* ─── EKOSİSTEM ───────────────────────────────────────────── */
.eco-section{padding:90px 0;background:#ffffff;}
.eco-sub{font-size:15px;color:var(--color-text);max-width:540px;margin:12px auto 0;line-height:1.7;text-align:center;}
.eco-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border:1px solid var(--color-border);border-radius:12px;overflow:hidden;margin-top:50px;background:var(--color-border);}
.eco-card{background:#fff;padding:32px 20px 28px;display:flex;flex-direction:column;gap:10px;transition:background .22s;border-right:1px solid var(--color-border);}
.eco-card:last-child{border-right:none;}
.eco-card:hover{background:#fafcff;}
.eco-card:hover .eco-clink{color:var(--color-primary);gap:9px;}
.eco-ord{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--color-text-muted);text-transform:uppercase;}
.eco-ico{width:46px;height:46px;border-radius:10px;background:var(--color-primary-light);display:flex;align-items:center;justify-content:center;color:var(--color-primary);margin:4px 0 2px;}
.eco-ttl{font-size:14px;font-weight:700;color:var(--color-dark);line-height:1.35;letter-spacing:-.15px;}
.eco-dsc{font-size:12.5px;color:var(--color-text);line-height:1.6;flex:1;}
.eco-clink{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--color-text-muted);text-decoration:none;letter-spacing:.2px;margin-top:6px;transition:color .2s,gap .2s;}

/* ─── ÜRETİM ──────────────────────────────────────────────── */
.prod-section{padding:90px 0;background:var(--color-bg-warm);}
.prod-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;}
.prod-content .section-label{display:block;margin-bottom:10px;}
.prod-content .section-title{margin-bottom:22px;}
.prod-content p{color:var(--color-text);line-height:1.8;font-size:14.5px;margin-bottom:14px;}
.prod-feats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px;}
.prod-feat{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;border-radius:8px;border:1px solid var(--color-border);}
.prod-feat-ico{width:32px;height:32px;min-width:32px;border-radius:7px;background:var(--color-primary-light);display:flex;align-items:center;justify-content:center;color:var(--color-primary);}
.prod-feat span{font-size:13px;font-weight:600;color:var(--color-dark);line-height:1.3;}
.prod-visual{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:4/3;box-shadow:0 20px 50px rgba(0,0,0,.10);}
.prod-visual img{width:100%;height:100%;object-fit:cover;display:block;}
.prod-caption{position:absolute;bottom:0;left:0;right:0;padding:22px 22px;background:linear-gradient(0deg,rgba(15,33,53,.88) 0%,transparent 100%);}
.prod-caption strong{display:block;font-size:10.5px;font-weight:700;letter-spacing:1.2px;color:var(--color-primary);text-transform:uppercase;margin-bottom:4px;}
.prod-caption p{font-size:13px;color:rgba(255,255,255,.65);margin:0;line-height:1.5;}

/* ─── REFERANSLAR ─────────────────────────────────────────── */
.ref-section{padding:90px 0;background:#fff;}
.ref-sub{font-size:15px;color:var(--color-text);max-width:560px;margin:12px auto 0;line-height:1.7;text-align:center;}
.ref-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:48px;}
.ref-card{border:1px solid var(--color-border);border-radius:12px;overflow:hidden;background:#fff;transition:box-shadow .25s,transform .25s;text-decoration:none;display:flex;flex-direction:column;cursor:pointer;text-align:left;appearance:none;-webkit-appearance:none;padding:0;width:100%;}
.ref-card:hover{box-shadow:0 12px 36px rgba(0,0,0,.08);transform:translateY(-3px);}
.ref-img{width:100%;aspect-ratio:16/9;overflow:hidden;position:relative;}
.ref-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s;}
.ref-card:hover .ref-img img{transform:scale(1.04);}
.ref-badge{position:absolute;top:12px;left:12px;padding:4px 11px;background:var(--color-primary);color:#fff;font-size:10px;font-weight:700;letter-spacing:.8px;border-radius:4px;text-transform:uppercase;font-family:var(--font);}
.ref-body{padding:22px 24px 24px;flex:1;display:flex;flex-direction:column;gap:8px;}
.ref-body h3{font-size:16px;font-weight:700;color:var(--color-dark);letter-spacing:-.2px;line-height:1.3;}
.ref-meta{display:flex;gap:20px;margin:2px 0;}
.ref-meta-item{display:flex;flex-direction:column;gap:2px;}
.ref-meta-lbl{font-size:9.5px;font-weight:700;letter-spacing:1px;color:var(--color-text-muted);text-transform:uppercase;}
.ref-meta-val{font-size:12.5px;font-weight:500;color:var(--color-text);}
.ref-scope{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--color-primary);padding:8px 0;border-top:1px solid var(--color-border);margin-top:auto;}
.ref-lnk{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--color-dark);margin-top:4px;transition:color .2s,gap .2s;}
.ref-card:hover .ref-lnk{color:var(--color-primary);gap:10px;}
.ref-card:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px;}
.ref-cta{display:flex;justify-content:center;margin-top:40px;}
.btn-outline{display:inline-flex;align-items:center;gap:8px;padding:12px 30px;border:1.5px solid var(--color-primary);color:var(--color-primary);border-radius:7px;font-size:14px;font-weight:600;font-family:var(--font);text-decoration:none;transition:background .22s,color .22s;}
.btn-outline:hover{background:var(--color-primary);color:#fff;}

/* Ref modal */
.ref-modal-backdrop{position:fixed;inset:0;background:rgba(12,22,34,0.55);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px;}
.ref-modal-backdrop.active{opacity:1;visibility:visible;}
.ref-modal{background:#fff;border-radius:16px;overflow:hidden;max-width:960px;width:100%;box-shadow:0 24px 70px rgba(0,0,0,.22);transform:translateY(20px) scale(.97);transition:transform .25s ease;}
.ref-modal-backdrop.active .ref-modal{transform:translateY(0) scale(1);}
.ref-modal-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:none;border-radius:50%;background:rgba(255,255,255,0.9);color:#0f2135;font-size:22px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);}
.ref-modal{position:relative;display:grid;grid-template-columns:1.1fr 0.9fr;}
.ref-modal-img{background:#000;min-height:260px;}
.ref-modal-img img{width:100%;height:100%;object-fit:cover;display:block;}
.ref-modal-body{padding:24px 24px 26px;display:flex;flex-direction:column;gap:10px;}
.ref-modal-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(20,161,154,0.12);color:var(--color-primary);font-weight:700;font-size:11px;border-radius:999px;text-transform:uppercase;letter-spacing:.8px;width:max-content;}
.ref-modal-title{font-size:22px;color:var(--color-dark);line-height:1.25;margin:4px 0;}
.ref-modal-meta{font-size:14px;color:var(--color-text);font-weight:600;}
.ref-modal-scope{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--color-primary);margin-top:auto;padding-top:10px;border-top:1px solid var(--color-border);}
@media(max-width:900px){
  .ref-modal{grid-template-columns:1fr;}
  .ref-modal-img{height:240px;}
}
@media(max-width:575px){
  .ref-modal{border-radius:12px;}
  .ref-modal-title{font-size:19px;}
}

/* ─── DÜNYA HARİTASI ──────────────────────────────────────── */
.world-section{padding:80px 0 36px;background:var(--color-bg-light);overflow:hidden;position:relative;}
.world-section .section-label,.world-section .section-title,
.world-section .section-title{color:var(--color-dark)!important;}
.world-sub{text-align:center;font-size:14.5px;color:var(--color-text);max-width:520px;margin:0 auto 40px;line-height:1.7;}
.world-map-wrap{position:relative;max-width:920px;margin:0 auto;background:rgba(255,255,255,.01);border-radius:10px;padding:5px;border:1px solid rgba(20,161,154,.1);}
.map-svg{width:100%;height:auto;display:block;border-radius:7px;}
.map-ocean{fill:#0a1724;}
.map-land{fill:rgba(20,161,154,.2);stroke:rgba(20,161,154,.5);stroke-width:.5;stroke-linejoin:round;stroke-linecap:round;}
.map-land-hl{fill:rgba(20,161,154,.36);stroke:rgba(20,161,154,.75);stroke-width:.7;}
.map-grat{stroke:rgba(255,255,255,.035);stroke-width:.35;fill:none;}
.map-equator{stroke:rgba(20,161,154,.15);stroke-width:.6;fill:none;stroke-dasharray:3,4;}
@keyframes map-pulse{0%{r:4;opacity:.8;}60%{r:13;opacity:.15;}100%{r:16;opacity:0;}}
.map-dot-pulse{fill:none;stroke:rgba(20,161,154,.65);stroke-width:1.1;animation:map-pulse 2.8s ease-out infinite;}
.map-dot-glow{fill:rgba(20,161,154,.10);}
.map-dot-ring{fill:none;stroke:rgba(20,161,154,.4);stroke-width:1;}
.map-dot-core{fill:#14A19A;stroke:#fff;stroke-width:1.2;filter:drop-shadow(0 0 3px rgba(20,161,154,.5));}
.map-dot-label{font-family:'Manrope',sans-serif;font-size:7.5px;font-weight:700;fill:rgba(255,255,255,.68);pointer-events:none;letter-spacing:.2px;}
.world-note{text-align:center;margin-top:6px;font-size:13.5px;color:var(--color-text);}
.world-note strong{color:var(--color-primary);font-weight:700;}
.world-tags{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:16px auto 0;max-width:760px;}
.wtag{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;background:rgba(20,161,154,.09);border:1px solid rgba(20,161,154,.2);border-radius:20px;font-size:11.5px;font-weight:500;color:var(--color-text);font-family:var(--font);cursor:pointer;transition:all .18s ease;}
.wtag::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--color-primary);flex-shrink:0;}

/* ─── NEDEN AGROFINE (KOYU TEMA) ──────────────────────────── */
/* Dünya haritası ve Final CTA ile tutarlı koyu band */
.why2-section{
    padding:52px 0;
    background:var(--color-bg-light);
    position:relative;
    z-index:2;
}
.why2-sub{font-size:14.5px;color:var(--color-text);max-width:580px;margin:12px auto 0;line-height:1.75;text-align:center;}
.why2-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:1px;
    background:var(--color-border);
    border:1px solid var(--color-border);
    border-radius:12px;
    overflow:hidden;
    margin-top:52px;
}
.why2-card{
    background:#fff;
    padding:28px 22px 24px;
    display:flex;
    flex-direction:column;
    gap:12px;
    transition:background .22s,box-shadow .22s;
    position:relative;
}
.why2-card::before{
    content:'';
    position:absolute;top:0;left:0;right:0;height:2px;
    background:transparent;
    transition:background .25s;
}
.why2-card:hover{background:var(--color-bg);}
.why2-card:hover::before{background:var(--color-primary);}
.why2-ico{
    width:46px;height:46px;border-radius:12px;
    background:var(--color-primary-light);
    display:flex;align-items:center;justify-content:center;
    color:var(--color-primary);
}
.why2-num{font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--color-text-muted);text-transform:uppercase;}
.why2-ttl{font-size:14px;font-weight:700;color:var(--color-dark);line-height:1.35;letter-spacing:-.1px;}
.why2-dsc{font-size:13px;color:var(--color-text);line-height:1.65;flex:1;}

/* ─── FINAL CTA ───────────────────────────────────────────── */
.final-cta{
    padding:88px 0;
    background:linear-gradient(135deg, #0f3344 0%, #0a2535 40%, #082030 100%);
    position:relative;overflow:hidden;
}
.final-cta::before{
    content:'';position:absolute;top:-120px;right:-120px;
    width:480px;height:480px;border-radius:50%;
    background:radial-gradient(circle,rgba(20,161,154,.08) 0%,transparent 70%);
    pointer-events:none;
}
.final-cta::after{
    content:'';position:absolute;bottom:-80px;left:-80px;
    width:320px;height:320px;border-radius:50%;
    background:radial-gradient(circle,rgba(20,161,154,.05) 0%,transparent 70%);
    pointer-events:none;
}
.final-cta-inner{position:relative;z-index:1;text-align:center;max-width:680px;margin:0 auto;}
.final-cta-label{
    display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:2.2px;
    color:var(--color-primary);text-transform:uppercase;margin-bottom:18px;
    padding:5px 15px;background:rgba(20,161,154,.1);
    border:1px solid rgba(20,161,154,.22);border-radius:20px;
}
.final-cta-title{font-size:38px;font-weight:800;color:#fff;line-height:1.15;letter-spacing:-.8px;margin-bottom:16px;}
.final-cta-sub{font-size:14.5px;color:rgba(255,255,255,.68);line-height:1.75;max-width:520px;margin:0 auto 36px;}
.final-cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:28px;}
.btn-cta-primary{
    display:inline-flex;align-items:center;gap:8px;
    padding:14px 32px;background:var(--color-primary);color:#fff;
    border-radius:8px;font-size:14.5px;font-weight:700;font-family:var(--font);
    text-decoration:none;letter-spacing:.2px;
    transition:background .25s,transform .2s,box-shadow .2s;
}
.btn-cta-primary:hover{background:var(--color-primary-dark);transform:translateY(-2px);box-shadow:0 10px 28px rgba(20,161,154,.28);}
.btn-cta-secondary{
    display:inline-flex;align-items:center;gap:8px;
    padding:13px 30px;background:transparent;color:rgba(255,255,255,.8);
    border:1.5px solid rgba(255,255,255,.22);border-radius:8px;
    font-size:14.5px;font-weight:600;font-family:var(--font);
    text-decoration:none;letter-spacing:.2px;
    transition:background .25s,border-color .25s,transform .2s;
}
.btn-cta-secondary:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.45);transform:translateY(-2px);}
.final-cta-contact{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;}
.cta-contact-item{
    display:flex;align-items:center;gap:7px;
    color:rgba(255,255,255,.38);font-size:13px;font-weight:500;
    text-decoration:none;transition:color .2s;
}
.cta-contact-item:hover{color:rgba(255,255,255,.65);}
.cta-contact-item svg{color:var(--color-primary);flex-shrink:0;}
.cta-divider{width:1px;height:16px;background:rgba(255,255,255,.1);}

/* ─── FOOTER DARK THEME ───────────────────────────────────── */
/* background already fixed in main block above */
.footer-brand-tagline{margin:8px 0 0 !important;}
.footer-brand-tagline strong{display:block;font-size:14px;font-weight:800;color:var(--color-dark);margin-bottom:2px;}
.footer-brand-tagline span{display:block;font-size:11px;font-weight:600;color:var(--color-primary);letter-spacing:1.5px;text-transform:uppercase;margin-top:2px;}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TÜM BREAKPOINT'LER TEMİZLENMİŞ & DÜZENLENMIŞ
   ══════════════════════════════════════════════════════════════ */

/* ─── 1200px: Büyük tablet / küçük laptop ─────────────────── */
@media(max-width:1200px){
    .eco-grid{grid-template-columns:repeat(3,1fr);}
    .eco-card:last-child{border-right:1px solid var(--color-border);}
    .eco-card:nth-child(3n){border-right:none;}
    .why2-grid{grid-template-columns:repeat(3,1fr);}
}

/* ─── 991px: Tablet ───────────────────────────────────────── */
@media(max-width:991px){

    /* Sections */
    .eco-section,.prod-section,.ref-section,
    .world-section,.why2-section,.final-cta,.about-section{padding:64px 0;}

    /* Metrics: 2×2 grid */
    .metrics-bar-inner{
        grid-template-columns:repeat(2,1fr);
        padding:0 20px;
    }
    .mbar-item{
        border-right:none !important;
        border-bottom:1px solid rgba(255,255,255,.05);
        padding:20px 16px;
    }
    .mbar-item:nth-child(odd){border-right:1px solid rgba(255,255,255,.05) !important;}
    .mbar-item:nth-child(3),.mbar-item:nth-child(4){border-bottom:none !important;}

    /* Ecosystem: 2 kolonlu, kartlar satır düzenine geçmiyor, grid kalıyor */
    .eco-grid{grid-template-columns:repeat(2,1fr);}
    .eco-card{border-right:none;border-bottom:1px solid var(--color-border);}
    .eco-card:last-child{border-bottom:none;}

    /* Production: tek kolon */
    .prod-grid{grid-template-columns:1fr;gap:36px;}
    .prod-visual{max-width:100%;aspect-ratio:16/9;}

    /* References: 1 kolon */
    .ref-grid{grid-template-columns:1fr;}

    /* Why2: 3 kolon kalır */
    .why2-grid{grid-template-columns:repeat(3,1fr);}

    /* Final CTA */
    .final-cta-title{font-size:30px;}
}

/* ─── 768px: Büyük telefon ────────────────────────────────── */
@media(max-width:768px){

    /* Container kenar boşluğu */
    .container{padding:0 18px !important;}

    /* Section padding */
    .eco-section,.prod-section,.ref-section,
    .world-section,.why2-section,.final-cta,.about-section{padding:52px 0;}

    /* Section başlıkları */
    .section-title{font-size:24px !important;}
    .eco-sub,.ref-sub,.why2-sub,.world-sub{font-size:13.5px;}

    /* Hero 768px */
    .hero-content{padding-top:0 !important;padding-bottom:0 !important;}
    .title-line{font-size:30px !important;letter-spacing:-0.4px !important;white-space:normal !important;overflow:visible !important;}
    .hero-subtitle{font-size:13px !important;}
    .hero-buttons{flex-direction:column !important;align-items:stretch !important;gap:10px !important;margin-top:18px !important;}
    .btn-hp,.btn-hs{width:100% !important;max-width:100% !important;justify-content:center !important;padding:14px 20px !important;font-size:14px !important;}

    /* Metrics: 3 kolon responsive */
    .metrics-bar-inner{grid-template-columns:repeat(3,1fr) !important;max-width:100% !important;padding:0 !important;}
    .mbar-item{
        flex-direction:column !important;align-items:center !important;text-align:center !important;
        padding:18px 8px !important;gap:8px !important;
        border-right:1px solid rgba(255,255,255,0.08) !important;
        border-bottom:none !important;
    }
    .mbar-item:last-child{border-right:none !important;}
    .mbar-icon{width:34px !important;height:34px !important;min-width:34px !important;border-radius:8px !important;margin:0 auto !important;}
    .mbar-text strong{font-size:20px !important;display:block;}
    .mbar-text span{font-size:10.5px !important;}

    /* Ecosystem: yatay kart düzeni */
    .eco-grid{grid-template-columns:1fr;border-radius:10px;}
    .eco-card{
        flex-direction:row;align-items:flex-start;
        padding:18px 16px;gap:14px;
        border-right:none;border-bottom:1px solid var(--color-border);
    }
    .eco-card:last-child{border-bottom:none;}
    .eco-ico{width:40px;height:40px;min-width:40px;flex-shrink:0;border-radius:8px;margin:0;}
    .eco-card-body{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;}
    .eco-ord{display:none;}
    .eco-ttl{font-size:13.5px;}
    .eco-dsc{font-size:12px;}
    .eco-clink{margin-top:4px;}

    /* About */
    .about-grid{grid-template-columns:1fr !important;gap:28px !important;}
    .about-image{overflow:visible !important;}
    .about-image img{height:260px !important;}
    .experience-badge{bottom:-16px;left:16px;padding:18px 24px;}
    .experience-badge strong{font-size:28px;}
    .about-features{flex-direction:column;gap:12px !important;}
    .feature-item{gap:10px;}

    /* Production */
    .prod-feats{grid-template-columns:1fr 1fr;gap:8px;}
    .prod-feat{padding:10px 12px;}
    .prod-feat-ico{width:30px;height:30px;min-width:30px;}
    .prod-feat span{font-size:12px;}

    /* References */
    .ref-body{padding:16px 18px 18px;}
    .ref-body h3{font-size:15px;}
    .ref-meta{gap:16px;}

    /* World map */
    .world-map-wrap{padding:4px;}
    .map-dot-label{font-size:6.5px;}
    .world-tags{position:relative;z-index:2;gap:6px;}
    .wtag{padding:4px 10px;font-size:11px;}

    /* Why2: 2 kolon */
    .why2-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
    .why2-card{padding:22px 18px 18px;gap:10px;}
    .why2-ttl{font-size:13px;}
    .why2-dsc{font-size:12px;}

    /* Final CTA */
    .final-cta{padding:52px 0;}
    .final-cta-title{font-size:26px;letter-spacing:-.4px;}
    .final-cta-sub{font-size:13.5px;}
    .final-cta-btns{
        flex-direction:column;align-items:center;
        gap:10px;margin-bottom:24px;
    }
    .btn-cta-primary,.btn-cta-secondary{
        width:100%;max-width:300px;justify-content:center;
        padding:13px 24px;font-size:14px;
    }
    .final-cta-contact{gap:14px;}
    .cta-divider{display:none;}
    .cta-contact-item{font-size:12.5px;}

    /* Footer grid */
    .footer-grid{grid-template-columns:1fr !important;gap:32px !important;}
    .footer-col h4{margin-bottom:14px;}
    .footer-col li{margin-bottom:10px;}
}

/* ─── 576px: Küçük telefon ────────────────────────────────── */
@media(max-width:576px){
    .container{padding:0 14px !important;}

    /* Section padding */
    .eco-section,.prod-section,.ref-section,
    .world-section,.why2-section,.final-cta,.about-section{padding:44px 0;}

    .section-title{font-size:22px !important;}

    /* Hero */
    .btn-hp,.btn-hs{max-width:100%;}

    /* Eco cards: daha sıkışık */
    .eco-card{padding:15px 13px;gap:11px;}
    .eco-ico{width:36px;height:36px;min-width:36px;}

    /* Why2: tek kolon yatay */
    .why2-grid{grid-template-columns:1fr;gap:1px;background:rgba(255,255,255,.05);border-radius:10px;overflow:hidden;}
    .why2-card{
        border-radius:0;border:none;border-bottom:1px solid rgba(255,255,255,.05);
        flex-direction:row;align-items:flex-start;
        padding:18px 16px;gap:14px;
        background:rgba(255,255,255,.03);
    }
    .why2-card:last-child{border-bottom:none;}
    .why2-card::before{display:none;}
    .why2-card:hover{transform:none;background:rgba(20,161,154,.07);}
    .why2-ico{width:38px;height:38px;min-width:38px;flex-shrink:0;border-radius:8px;}
    .why2-card-body{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;}
    .why2-num{margin:0;font-size:9px;}
    .why2-ttl{font-size:13px;}
    .why2-dsc{font-size:12px;color:rgba(255,255,255,.4);}

    /* Production */
    .prod-feats{grid-template-columns:1fr;}

    /* Final CTA */
    .final-cta{padding:44px 0;}
    .final-cta-title{font-size:22px;}
    .final-cta-contact{flex-direction:column;gap:10px;}

    /* World */
    .world-section{padding:44px 0;}
    .wtag{padding:4px 8px;font-size:10.5px;}
    .map-dot-label{font-size:6px;}

    /* About */
    .about-image img{height:220px !important;}
}

/* ─── 400px: Çok küçük ────────────────────────────────────── */
@media(max-width:400px){
    .mbar-item{padding:13px 16px;}
    .mbar-text strong{font-size:17px;}
    .final-cta-title{font-size:20px;}
    .btn-cta-primary,.btn-cta-secondary{padding:12px 18px;font-size:13px;}
    .wtag{padding:3px 7px;font-size:10px;}
    .eco-card,.why2-card{padding:13px 12px;}
}

/* ─── Harita mobilde daha küçük padding ───────────────────── */
@media(max-width:480px){
    .world-map-wrap{padding:3px;border-radius:6px;}
    .world-note{font-size:12.5px;}
    .world-tags{position:relative;z-index:2;gap:5px;}
    .wtag::before{width:4px;height:4px;}
}

/* ════════════════════════════════════════════════════════
   THREE.JS GLOBE — Styles
   ════════════════════════════════════════════════════════ */



/* ─── Bölümler arası renk geçişi ─────────────────────────── */
.eco-section   { background: #fff; }
.prod-section  { background: var(--color-bg-light); }
.ref-section   { background: #fff; }
.world-section { position:relative; }



/* ═══════════════════════════════════════════════════════════════
   D3 REAL WORLD MAP
   ═══════════════════════════════════════════════════════════════ */
.world-section {
    padding: 90px 0 70px;
    background: #ffffff;
    overflow: hidden;
}
.world-section .section-title { color: var(--color-dark); }
.world-sub {
    font-size: 15px;
    color: var(--color-text);
    max-width: 600px;
    margin: 14px auto 0;
    text-align: center;
    line-height: 1.75;
}
.world-note {
    text-align: center;
    font-size: 13.5px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.world-note strong { color: var(--color-primary); font-weight: 700; }
.map-wrap { width: 100%; padding: 28px 0 10px; }
.map-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
.map-svg-wrap {
    position: relative;
    border-radius: 16px;
    border: 1.5px solid rgba(14,161,154,0.15);
    box-shadow:
        0 0 0 4px rgba(14,161,154,0.05),
        0 8px 40px rgba(0,50,80,0.11),
        0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    background: #c8dce8;
    min-height: 200px;
}
.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--color-text);
    background: #e6f3f9;
}
.world-map-svg-d3 {
    display: block;
    width: 100%;
    height: auto;
}
/* D3 paths */
.c-land {
    fill: #bcd8ce;
    stroke: rgba(80,148,130,0.4);
    stroke-width: 0.4px;
}
.c-partner {
    fill: rgba(14,161,154,0.28);
    stroke: rgba(8,110,100,0.7);
    stroke-width: 0.9px;
}
.c-base {
    fill: rgba(14,161,154,0.45);
    stroke: rgba(6,90,84,0.85);
    stroke-width: 1.2px;
}
.c-land:hover { fill: rgba(14,161,154,0.12); }
.c-partner:hover { fill: rgba(14,161,154,0.42); cursor: pointer; }
.c-base:hover { fill: rgba(14,161,154,0.58); cursor: pointer; }
.map-graticule {
    fill: none;
    stroke: rgba(14,161,154,0.08);
    stroke-width: 0.4px;
}
.map-equator {
    fill: none;
    stroke: rgba(14,161,154,0.28);
    stroke-width: 0.9px;
    stroke-dasharray: 6,8;
}
.map-borders {
    fill: none;
    stroke: rgba(80,148,130,0.35);
    stroke-width: 0.3px;
}
/* Markers */
.mk-pulse {
    fill: none;
    stroke: rgba(14,161,154,0.5);
    stroke-width: 1.2px;
    opacity: 0;
    animation: mkPulse 2.6s ease-out infinite;
}
.mk-base .mk-pulse {
    stroke: rgba(14,161,154,0.65);
    animation-duration: 2.2s;
}
@keyframes mkPulse {
    0%   { opacity: 0.8; r: 4;  stroke-width: 1.5; }
    100% { opacity: 0;   r: 22; stroke-width: 0.2; }
}
.mk:nth-child(2)  .mk-pulse { animation-delay: 0.26s; }
.mk:nth-child(3)  .mk-pulse { animation-delay: 0.52s; }
.mk:nth-child(4)  .mk-pulse { animation-delay: 0.78s; }
.mk:nth-child(5)  .mk-pulse { animation-delay: 1.04s; }
.mk:nth-child(6)  .mk-pulse { animation-delay: 1.30s; }
.mk:nth-child(7)  .mk-pulse { animation-delay: 1.56s; }
.mk:nth-child(8)  .mk-pulse { animation-delay: 1.82s; }
.mk:nth-child(9)  .mk-pulse { animation-delay: 2.08s; }
.mk:nth-child(10) .mk-pulse { animation-delay: 2.34s; }
.mk-dot { transition: filter 0.18s ease; }
.mk:hover .mk-dot,.mk:focus .mk-dot { filter: brightness(1.15) drop-shadow(0 0 5px rgba(20,161,154,0.55)); }
.mk-label {
    font-family: var(--font);
    font-size: 9.5px;
    font-weight: 700;
    fill: #12303f;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.94);
    stroke-width: 3px;
    stroke-linejoin: round;
    pointer-events: none;
}
.mk-label-base {
    font-size: 11px;
    font-weight: 800;
    fill: #0d1f28;
    stroke-width: 4px;
}
/* Tooltip */
.map-tooltip {
    position: absolute;
    background: var(--color-dark);
    color: #fff;
    padding: 9px 14px 9px 12px;
    border-radius: 8px;
    font-family: var(--font);
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    z-index: 20;
    border-left: 3px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}
.map-tooltip.visible { opacity: 1; }
.world-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 0 8px;
}
.map-tt-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.map-tt-cat {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.60);
    line-height: 1.2;
}
/* Legend */
.map-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 8px 0 18px;
}
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
}
.legend-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-base    { background: #14A19A; box-shadow: 0 0 6px rgba(20,161,154,.5); }
.legend-partner { background: #ffffff; border: 2px solid #14A19A; box-shadow: 0 0 0 1px rgba(20,161,154,.3); }
.45); }
/* Tags */
.world-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 4px;
}
.wtag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 22px;
    background: #fff;
    color: var(--color-text);
    font-family: var(--font);
    font-size: 12.5px; font-weight: 500;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wtag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(14,161,154,.22);
    border: 1.5px solid rgba(14,161,154,.5);
    flex-shrink: 0;
    transition: all .18s;
}
.wtag:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(14,161,154,.16);
}
.wtag:hover::before { background: var(--color-primary); }
.wtag.active {
    background: var(--color-primary);
    border-color: var(--color-primary-dark);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(14,161,154,.35);
}
.wtag.active::before { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.45); }
/* Mobile label for D3 map */
.mk-label-mob {
    font-family: var(--font);
    font-size: 7px;
    font-weight: 700;
    fill: #12303f;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.94);
    stroke-width: 2.5px;
    stroke-linejoin: round;
    pointer-events: none;
}
.mk-label-mob.mk-label-base {
    font-size: 8.5px;
    font-weight: 800;
}

/* Map container responsive */
@media(max-width:991px) {
    .map-container { padding: 0 16px; }
    .map-legend { gap: 16px; }
    .world-sub { font-size: 14px; }
    .world-section { padding: 70px 0 50px; }
}
@media(max-width:768px) {
    .map-container { padding: 0 12px; }
    .map-legend { gap: 12px; font-size: 12.5px; }
    .world-sub { font-size: 13px; }
    .world-section { padding: 60px 0 44px; }
    .map-wrap { padding: 28px 0 12px; }
}
@media(max-width:480px) {
    .world-tags { gap: 6px; }
    .wtag { padding: 6px 12px; font-size: 11.5px; }
    .map-container { padding: 0 8px; }
    .map-legend { flex-direction: column; align-items: center; gap: 8px; }
    .world-section { padding: 48px 0 36px; }
}
@media(max-width:360px) {
    .wtag { padding: 5px 10px; font-size: 11px; }
}


@media(max-width:480px) {
    .marker-label { display: none; }
    .world-tags { gap: 6px; }
    .wtag { padding: 6px 12px; font-size: 12px; }
}


/* ==========================================
   GOOGLE TRANSLATE - Prevent layout disruption
   ========================================== */
/* Stop Google Translate from pushing page down */
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame { display: none !important; height: 0 !important; }
.goog-te-gadget { display: none !important; }
#google_translate_element { display: none !important; }
.skiptranslate { display: none !important; }

/* ==========================================
   SCROLL REVEAL - CSS FALLBACK
   Ensures content is always visible even if JS fails
   or IntersectionObserver doesn't trigger
   ========================================== */
/* Sections must always have visible backgrounds */
.eco-section, .prod-section, .ref-section,
.world-section, .why2-section, .final-cta,
.about-section, .hero-section {
    visibility: visible !important;
}

/* Section headers fallback - show them if JS hasn't run yet */
.section-header:not([style*="opacity"]) {
    opacity: 1;
    transform: none;
}

/* Eco cards - ensure they're visible */
.eco-card:not([style*="opacity: 0"]) {
    opacity: 1;
}

/* Why2 cards */
.why2-card:not([style*="opacity: 0"]) {
    opacity: 1;
}

/* Ref cards */
.ref-card:not([style*="opacity: 0"]) {
    opacity: 1;
}

/* ==========================================
   SKIP NAVIGATION
   ========================================== */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-nav:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ==========================================
   COOKIE BANNER (KVKK)
   ========================================== */

/* ==========================================
   FAQ SECTION
   ========================================== */
/* ==========================================
   CERTIFICATE BADGES
   ========================================== */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--color-primary-light);
    border: 1.5px solid rgba(20,161,154,0.25);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary-dark);
    white-space: nowrap;
}
.cert-badge svg { width: 13px; height: 13px; flex-shrink: 0; }




/* ============================================================
   CONTACT PAGE
   ============================================================ */

.ct-body {
    padding: 60px 0 100px;
    background: #ffffff;
}

.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: stretch;
}
.ct-left  { display: flex; flex-direction: column; }
.ct-right { display: flex; flex-direction: column; }

/* Left: single card */
.ct-info-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Green header */
.ct-info-header {
    background: linear-gradient(135deg, #14A19A 0%, #0b7c77 100%);
    padding: 30px 28px 26px;
    color: #fff;
    flex-shrink: 0;
}
.ct-info-header h2 {
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.3px; margin: 0 0 7px;
}
.ct-info-header p {
    font-size: 13.5px; opacity: 0.82; margin: 0; line-height: 1.55;
}

/* Contact items */
.ct-info-list {
    list-style: none; margin: 0; padding: 0; flex-shrink: 0;
}
.ct-info-list li {
    display: flex; align-items: center; gap: 16px;
    padding: 15px 28px;
    border-bottom: 1px solid #f0f2f5;
}
.ct-info-list li:last-child { border-bottom: none; }
.ct-info-icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 11px;
    background: rgba(20,161,154,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #14A19A;
}
.ct-info-label {
    display: block; font-size: 10.5px; font-weight: 700;
    color: #9aa5b4; text-transform: uppercase; letter-spacing: 0.65px; margin-bottom: 3px;
}
.ct-info-value {
    display: block; font-size: 14px; font-weight: 600;
    color: #1a2533; text-decoration: none; line-height: 1.4;
    transition: color 0.15s;
}
.ct-info-value:hover { color: #14A19A; }

/* Company info section */
.ct-companies {
    padding: 20px 28px 24px;
    border-top: 1px solid #f0f2f5;
    flex-shrink: 0;
}
.ct-companies-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 800; color: #14A19A;
    text-transform: uppercase; letter-spacing: 0.7px;
    margin-bottom: 16px;
}
.ct-company {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
}
.ct-company:first-of-type { padding-top: 0; }
.ct-company--last { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.ct-company-name {
    font-size: 12.5px; font-weight: 700; color: #1a2533;
    line-height: 1.5; margin-bottom: 7px;
}
.ct-company-row {
    font-size: 12px; color: #6b7a8d; line-height: 1.7;
}
.ct-company-row strong { color: #505d6e; font-weight: 600; }
.ct-company-row a { color: #14A19A; text-decoration: none; }
.ct-company-row a:hover { text-decoration: underline; }

/* Map */
.ct-map {
    flex: 1; min-height: 200px;
    overflow: hidden;
    border-top: 1px solid #f0f2f5;
    line-height: 0;
}
.ct-map iframe {
    display: block; width: 100%; height: 100%;
    min-height: 200px; border: 0;
}

/* Right: Form card */
.ct-form-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 36px 36px 40px;
    display: flex;
    flex-direction: column;
}
.ct-form-card h2 {
    font-size: 22px; font-weight: 800; color: #1a2533;
    letter-spacing: -0.4px; margin: 0 0 7px;
}
.ct-form-desc {
    font-size: 13.5px; color: #6b7a8d; line-height: 1.6; margin: 0 0 26px;
}
.ct-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label {
    font-size: 11px; font-weight: 700; color: #1a2533;
    text-transform: uppercase; letter-spacing: 0.6px;
}
.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%; padding: 11px 15px;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font: 14px/1.5 var(--font); color: #1a2533;
    background: #f9fafc; outline: none; box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    border-color: #14A19A; background: #fff;
    box-shadow: 0 0 0 3px rgba(20,161,154,0.1);
}
.ct-field textarea { resize: vertical; min-height: 120px; }
.ct-field select {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.ct-consent {
    grid-column: 1 / -1;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12.5px; color: #6b7a8d; line-height: 1.55;
}
.ct-consent input[type="checkbox"] {
    width: 15px; height: 15px; min-width: 15px;
    margin-top: 2px; accent-color: #14A19A;
}
.ct-consent a { color: #14A19A; }
.ct-submit {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #14A19A 0%, #0b7c77 100%);
    color: #fff; font: 600 14.5px/1 var(--font);
    border: none; border-radius: 12px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(20,161,154,0.3);
    transition: transform 0.18s, box-shadow 0.18s;
    margin-top: 4px;
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,161,154,0.38); }

/* WhatsApp bar */
.ct-wa-bar {
    margin-top: auto; padding-top: 20px;
}
.ct-wa-inner {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 16px 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c3e 100%);
    border-radius: 14px; text-decoration: none; color: #fff;
    transition: opacity 0.18s;
}
.ct-wa-inner:hover { opacity: 0.92; }
.ct-wa-inner svg { flex-shrink: 0; }
.ct-wa-text { flex: 1; }
.ct-wa-text strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.ct-wa-text span { display: block; font-size: 12px; opacity: 0.85; }
.ct-wa-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 9px; font-size: 13px; font-weight: 700;
    color: #fff; white-space: nowrap; transition: background 0.15s;
}
.ct-wa-inner:hover .ct-wa-btn { background: rgba(255,255,255,0.3); }

#cfResult { border-radius: 9px; font-size: 14px; font-weight: 600; }

/* Responsive */
@media (max-width: 1020px) {
    .ct-grid { grid-template-columns: 1fr 1.1fr; gap: 20px; }
}
@media (max-width: 820px) {
    .ct-grid { grid-template-columns: 1fr; align-items: start; }
    .ct-map iframe { height: 240px; min-height: 240px; }
}
@media (max-width: 560px) {
    .ct-body { padding: 36px 0 72px; }
    .ct-info-header { padding: 24px 20px 20px; }
    .ct-info-list li { padding: 13px 20px; }
    .ct-companies { padding: 16px 20px; }
    .ct-form-card { padding: 22px 18px 26px; }
    .ct-form-grid { grid-template-columns: 1fr; }
    .ct-field--full, .ct-consent, .ct-submit { grid-column: auto; }
    .ct-map iframe { height: 200px; min-height: 200px; }
    .ct-wa-inner { flex-wrap: wrap; }
}
/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(13, 28, 45, 0.98);
    backdrop-filter: blur(16px);
    border-top: 2px solid rgba(20,161,154,0.4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-icon { font-size: 26px; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { display: block; font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.cookie-text p { font-size: 12.5px; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.5; }
.cookie-text a { color: var(--color-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.cookie-btn-accept {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    background: var(--color-primary);
    color: #fff; font: 700 13px/1 var(--font);
    border: none; border-radius: 8px; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 14px rgba(20,161,154,0.4);
    white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.cookie-btn-accept:hover { background: #0d8a84; }
.cookie-btn-reject {
    display: inline-flex; align-items: center;
    padding: 10px 16px;
    background: transparent; color: rgba(255,255,255,0.5);
    font: 600 12.5px/1 var(--font);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 8px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.cookie-btn-reject:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }

/* ============================================================
   CONTACT PAGE — BASE STYLES
   ============================================================ */
.contact-page-body {
    padding: 60px 0 100px;
    background: #fff;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: start;
}
.contact-info-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contact-info-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a75 100%);
    padding: 32px 32px 28px;
    color: #fff;
}
.contact-info-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.contact-info-header p { font-size: 14px; opacity: 0.82; line-height: 1.6; margin: 0; }
.contact-info-body { padding: 28px 32px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-icon {
    width: 42px; height: 42px; min-width: 42px;
    background: rgba(20,161,154,0.08);
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
}
.contact-info-detail strong {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 4px;
}
.contact-info-detail a, .contact-info-detail span {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--color-navy); text-decoration: none; line-height: 1.55; transition: color 0.2s;
}
.contact-info-detail a:hover { color: var(--color-primary); }
.contact-map-wrap {
    margin: 0 32px 28px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); border: 1px solid var(--color-border); flex: 1;
}
.contact-map-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-form-card {
    background: #fff; border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.05);
    padding: 36px 36px 40px;
    display: flex; flex-direction: column;
}
.contact-form-card h2 { font-size: 22px; font-weight: 800; color: var(--color-navy); letter-spacing: -0.3px; margin-bottom: 6px; }
.contact-form-card > p { font-size: 14px; color: var(--color-text-light); margin-bottom: 28px; line-height: 1.6; }
.cf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field.cf-full { grid-column: 1 / -1; }
.cf-field label { font-size: 11.5px; font-weight: 700; color: var(--color-navy); text-transform: uppercase; letter-spacing: 0.6px; }
.cf-field input, .cf-field select, .cf-field textarea {
    width: 100%; padding: 11px 15px; border: 1.5px solid var(--color-border);
    border-radius: 10px; font: 14px/1.5 var(--font); color: var(--color-navy);
    background: #fafbfc; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none; box-sizing: border-box;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
    border-color: var(--color-primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(20,161,154,0.1);
}
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer;
}
.cf-consent {
    grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px;
    font-size: 12.5px; color: var(--color-text-light); line-height: 1.5;
}
.cf-consent input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; accent-color: var(--color-primary); margin-top: 2px; }
.cf-consent a { color: var(--color-primary); }
.cf-submit {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a75 100%);
    color: #fff; font: 600 14.5px/1 var(--font); border: none; border-radius: 12px;
    cursor: pointer; transition: all 0.22s; box-shadow: 0 4px 16px rgba(20,161,154,0.28);
    margin-top: 6px; -webkit-tap-highlight-color: transparent;
}
.cf-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,161,154,0.38); }
.contact-whatsapp-bar {
    background: linear-gradient(135deg, #1db954 0%, #158a3e 100%);
    border-radius: 12px; padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 24px; flex-wrap: wrap;
}
.contact-wa-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.contact-wa-text span { font-size: 12.5px; color: rgba(255,255,255,0.8); }
.contact-wa-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px;
    background: rgba(255,255,255,0.2); border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 9px; color: #fff; font-size: 13.5px; font-weight: 700;
    text-decoration: none; transition: all 0.2s; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.contact-wa-btn:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   REFERENCES PAGE — BASE STYLES
   ============================================================ */
.refs-section { padding: 72px 0 100px; background: #fff; }
.refs-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a75 100%);
    border-radius: 18px; overflow: hidden;
}
.refs-stat-item {
    text-align: center; padding: 32px 20px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.refs-stat-item:last-child { border-right: none; }
.refs-stat-item strong { display: block; font-size: 38px; font-weight: 900; color: #fff; letter-spacing: -1.5px; line-height: 1; margin-bottom: 6px; }
.refs-stat-item span { font-size: 13px; color: rgba(255,255,255,0.72); font-weight: 600; }

/* Filter Hub */
.refs-filters { display: none; }

/* ── Filter Hub ─────────────────────────────────────── */
.refs-filter-hub {
    background: #fff;
    border: 1.5px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.rfh-row {
    display: flex;
    align-items: stretch;
    min-height: 52px;
}
.rfh-divider {
    height: 1px;
    background: #e8edf2;
}
.rfh-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 800;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    background: #f7f9fc;
    border-right: 1.5px solid #e8edf2;
    white-space: nowrap;
    position: relative;
}
.rfh-label svg { color: var(--color-primary); flex-shrink: 0; }

/* Scrollable pills container */
.rfh-pills {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    overflow-x: auto;
    flex: 1;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #dde3ea transparent;
    -webkit-overflow-scrolling: touch;
    /* Fade out on right edge */
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}
.rfh-pills::-webkit-scrollbar {
    height: 3px;
}
.rfh-pills::-webkit-scrollbar-track { background: transparent; }
.rfh-pills::-webkit-scrollbar-thumb {
    background: #dde3ea;
    border-radius: 99px;
}

/* System pills */
.rfh-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 15px;
    border: 1.5px solid #dde3ea;
    border-radius: 50px;
    background: transparent;
    color: #4a5568;
    font: 600 12.5px/1 var(--font);
    cursor: pointer;
    transition: all 0.16s;
    -webkit-tap-highlight-color: transparent;
}
.rfh-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(20,161,154,0.06);
}
.rfh-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(20,161,154,0.28);
}

/* Country pills */
.rfh-country {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1.5px solid #dde3ea;
    border-radius: 50px;
    background: transparent;
    color: #4a5568;
    font: 600 12px/1 var(--font);
    cursor: pointer;
    transition: all 0.16s;
    -webkit-tap-highlight-color: transparent;
}
.rfh-country:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
    background: rgba(15,33,53,0.05);
}
.rfh-country.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15,33,53,0.18);
}

/* Mobile: stack label above pills */
@media (max-width: 600px) {
    .rfh-row { flex-direction: column; min-height: auto; }
    .rfh-label {
        width: 100%; min-width: 0; border-right: none;
        border-bottom: 1px solid #e8edf2;
        padding: 10px 14px; background: #f7f9fc;
    }
    .rfh-pills { padding: 10px 14px; }
}

/* Hide old filter classes */
.refs-filter-row, .refs-filter-divider, .refs-filter-label,
.refs-filter-scroll, .refs-filter-group, .refs-filter-group-label,
.refs-filter-pills, .refs-filter-sep { display: none !important; }
.refs-filter-btn, .refs-country-btn { display: none !important; }

/* ── References Grid & Cards ──────────────────────────── */
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }

.ref-full-card {
    background: #fff; border-radius: 14px; border: 1px solid var(--color-border);
    overflow: hidden; transition: all 0.28s cubic-bezier(0.22,1,0.36,1);
}
.ref-full-card:hover { border-color: rgba(20,161,154,0.2); box-shadow: 0 8px 28px rgba(20,161,154,0.09), 0 2px 8px rgba(0,0,0,0.05); transform: translateY(-3px); }
.ref-full-card-img { position: relative; height: 190px; overflow: hidden; background: #eef2f5; }
.ref-full-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.45s ease; }
.ref-full-card:hover .ref-full-card-img img { transform: scale(1.04); }
.ref-full-card-region {
    position: absolute; top: 12px; left: 12px;
    background: rgba(13,28,45,0.75); backdrop-filter: blur(6px);
    color: #fff; font-size: 11.5px; font-weight: 700;
    padding: 4px 11px; border-radius: 20px; letter-spacing: 0.3px;
    display: flex; align-items: center; gap: 5px;
}
.ref-full-card-body { padding: 20px 22px 22px; }
.ref-full-card-body h3 { font-size: 15.5px; font-weight: 800; color: var(--color-navy); line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.2px; }
.ref-full-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ref-meta-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: rgba(20,161,154,0.08); color: var(--color-primary); border-radius: 5px; font-size: 11.5px; font-weight: 700; }
.ref-full-scope { display: flex; align-items: flex-start; gap: 7px; padding: 10px 12px; background: #f7f9fb; border-radius: 9px; font-size: 12.5px; color: var(--color-text); font-weight: 500; line-height: 1.5; }
.ref-full-scope svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.ref-full-lnk {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 14px; font-size: 13px; font-weight: 700;
    color: var(--color-navy); text-decoration: none;
    transition: gap 0.18s, color 0.18s;
}
.ref-full-card:hover .ref-full-lnk { gap: 9px; color: var(--color-primary); }
.refs-no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--color-text-muted); font-size: 15px; }

/* CTA */
.refs-cta {
    margin-top: 56px; padding: 52px 48px;
    background: linear-gradient(135deg, #0f2135 0%, #163347 100%);
    border-radius: 22px; text-align: center;
}
.refs-cta h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.4px; }
.refs-cta p { font-size: 15px; color: rgba(255,255,255,0.68); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.refs-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.refs-cta-btn-primary {
    display: inline-flex; align-items: center; gap: 7px; padding: 13px 26px;
    background: var(--color-primary); color: #fff; font: 700 14px var(--font);
    border-radius: 11px; text-decoration: none; transition: all 0.22s;
    box-shadow: 0 4px 16px rgba(20,161,154,0.32);
}
.refs-cta-btn-primary:hover { background: #0d8a84; transform: translateY(-2px); }
.refs-cta-btn-secondary {
    display: inline-flex; align-items: center; gap: 7px; padding: 13px 26px;
    background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.22);
    color: #fff; font: 600 14px var(--font); border-radius: 11px;
    text-decoration: none; transition: all 0.22s;
}
.refs-cta-btn-secondary:hover { background: rgba(255,255,255,0.18); }

/* keep old class names working too */
.refs-filter-row { display: none; }
.refs-filter-divider { display: none; }
.refs-filter-label { display: none; }
.refs-filter-scroll { display: none; }
/* ============================================================
   MOBILE NAV — LANGUAGE SELECTOR IN DRAWER
   ============================================================ */
.nav-drawer-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
.nav-drawer-lang {
    display: flex;
    gap: 8px;
    padding: 12px 0 0;
}
.nav-drawer-lang-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-navy);
    font: 600 13px var(--font);
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-drawer-lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   REFERENCES PAGE — MOBILE ENHANCEMENTS
   ============================================================ */
.references-page .refs-filter-hub {
    position: sticky;
    top: calc(var(--header-height-shrink, 72px) + 10px);
    z-index: 8;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(15,33,53,0.08);
}
.references-page .rfh-pills { gap: 10px; }
.references-page .rfh-btn,
.references-page .rfh-country { scroll-snap-align: start; }
.references-page .ref-full-card { border-radius: 16px; }
.references-page .ref-full-card-img { aspect-ratio: 16 / 10; height: auto; }
.references-page .ref-full-card-body { padding: 16px 18px 18px; }

@media (max-width: 768px) {
    .references-page .refs-section { padding: 48px 0 68px; }
    .references-page .refs-stats { margin-bottom: 26px; }
    .references-page .refs-filter-hub { margin-bottom: 18px; border: 1px solid #e3e9f0; }
    .references-page .rfh-row { gap: 0; }
    .references-page .rfh-pills { padding: 12px 14px; scroll-snap-type: x mandatory; }
    .references-page .ref-full-card-body h3 { font-size: 13.5px; }
}

@media (max-width: 540px) {
    .references-page .refs-stats { grid-template-columns: repeat(2, 1fr); }
    .references-page .rfh-label { padding: 10px 14px; }
    .references-page .ref-full-card-img { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
    .references-page .refs-section { padding-top: 44px; }
    .references-page .rfh-pills { gap: 8px; }
}

/* ============================================================
   RESPONSIVE — ALL BREAKPOINTS
   ============================================================ */

/* ── 1200px ─────────────────────────────────── */
@media (max-width: 1200px) {
    .refs-grid { grid-template-columns: repeat(2, 1fr); }
    .refs-stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .refs-stat-item { border-bottom: 1px solid rgba(255,255,255,0.12); }
    .refs-stat-item:nth-child(2n) { border-right: none; }
    .refs-stat-item:nth-child(3), .refs-stat-item:nth-child(4) { border-bottom: none; }
}

/* ── 991px (tablet) ─────────────────────────── */
@media (max-width: 991px) {
    /* Contact */
    .contact-page-body { padding: 40px 0 64px; }
    .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .contact-form-card { order: 1; }
    .contact-info-card { order: 2; }
    .contact-map-wrap iframe { height: 250px; }

    /* Refs */
    .refs-section { padding: 52px 0 72px; }
    .refs-stats { grid-template-columns: repeat(2, 1fr); }
    .refs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── 768px (mobile landscape / large mobile) ── */
@media (max-width: 768px) {
    /* Contact */
    .contact-info-header { padding: 24px 22px; }
    .contact-info-header h2 { font-size: 20px; }
    .contact-info-body { padding: 18px 22px; }
    .contact-map-wrap { margin: 0 22px 22px; }
    .contact-map-wrap iframe { height: 220px; }
    .contact-form-card { padding: 26px 20px 30px; }
    .contact-form-card h2 { font-size: 19px; }
    .cf-grid-2 { grid-template-columns: 1fr; gap: 12px; }
    .cf-field.cf-full { grid-column: 1; }
    .contact-whatsapp-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
    .contact-wa-btn { width: 100%; justify-content: center; }

    /* Refs */
    .refs-stats { border-radius: 14px; }
    .refs-stat-item { padding: 24px 14px; }
    .refs-stat-item strong { font-size: 28px; }
    .refs-stat-item span { font-size: 12px; }
    .refs-filter-label { min-width: 70px; padding: 0 12px; font-size: 10px; }
    .refs-filter-scroll { padding: 9px 12px; gap: 6px; }
    .refs-filter-hub .refs-filter-btn { padding: 6px 12px; font-size: 12px; }
    .refs-filter-hub .refs-country-btn { padding: 6px 10px; font-size: 11.5px; }
    .ref-full-card-img { height: 160px; }
    .ref-full-card-body { padding: 16px 18px 18px; }
    .ref-full-card-body h3 { font-size: 14px; }
    .refs-cta { padding: 36px 24px; border-radius: 16px; }
    .refs-cta h2 { font-size: 22px; }
    .refs-cta p { font-size: 14px; }
    .refs-cta-btns { flex-direction: column; align-items: center; }
    .refs-cta-btn-primary, .refs-cta-btn-secondary { width: 100%; max-width: 280px; justify-content: center; }

    /* INDEX — Hero */
    .hero-section {
        align-items: flex-end !important;
        padding-top: 0 !important;
        padding-bottom: 60px !important;
    }
    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }
    .hero-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        transform: none !important;
    }
    .hero-title-area { max-width: 100% !important; margin-left: 0 !important; }
    .hero-info-area { max-width: 100% !important; }
    .title-line { font-size: 32px !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; letter-spacing: -0.5px !important; }
    .hero-subtitle { font-size: 13px; }
    .scroll-indicator { display: none !important; }
    .hero-description { font-size: 14px !important; }
    .slider-progress { display: none; }
    .hero-buttons { flex-direction: column; gap: 10px; margin-top: 20px; align-items: flex-start; }
    .btn-hp, .btn-hs { width: 100%; max-width: 320px; justify-content: center; padding: 13px 20px; font-size: 14px; }

    /* INDEX — Metrics */
    .metrics-bar-inner {
        max-width: 100% !important;
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0 !important;
    }
    .mbar-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 18px 6px !important;
        gap: 8px !important;
    }
    .mbar-icon { margin: 0 auto !important; width: 34px !important; height: 34px !important; min-width: 34px !important; }
    .mbar-text { text-align: center !important; }
    .mbar-text strong { font-size: 20px !important; }
    .mbar-text span { font-size: 10.5px !important; }

    /* INDEX — Other sections */
    .eco-grid { grid-template-columns: 1fr !important; }
    .eco-card { flex-direction: row !important; align-items: flex-start !important; padding: 16px 14px !important; gap: 14px !important; border-right: none !important; border-bottom: 1px solid var(--color-border) !important; }
    .eco-card:last-child { border-bottom: none !important; }
    .eco-ico { width: 40px !important; height: 40px !important; min-width: 40px !important; flex-shrink: 0 !important; border-radius: 9px !important; margin: 0 !important; }
    .eco-ttl { font-size: 13.5px; }
    .eco-dsc { font-size: 12px; }
    .ref-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .ref-body h3 { font-size: 14px; }
    .ref-body { padding: 13px 14px 15px; }
    .why2-grid { grid-template-columns: 1fr 1fr !important; }
    .why2-card { padding: 20px 16px !important; }

    /* Cookie banner */
    .cookie-banner-inner { padding: 14px 20px; }
    .cookie-icon { display: none; }
    .cookie-actions { width: 100%; }
    .cookie-btn-accept { flex: 1; justify-content: center; }
}

/* ── 540px (standard mobile portrait) ───────── */
@media (max-width: 540px) {
    /* Contact */
    .contact-info-header { padding: 20px 18px; }
    .contact-info-body { padding: 14px 18px; }
    .contact-map-wrap { margin: 0 18px 18px; }
    .contact-map-wrap iframe { height: 190px; }
    .contact-form-card { padding: 22px 18px 26px; }
    .cf-field input, .cf-field select, .cf-field textarea { padding: 10px 13px; font-size: 14px; }

    /* Refs */
    .refs-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .refs-stats { grid-template-columns: repeat(2, 1fr); }
    .refs-stat-item { padding: 20px 12px; }
    .refs-stat-item strong { font-size: 24px; }
    .refs-filter-label { min-width: 58px; padding: 0 10px; font-size: 9.5px; }
    .ref-full-card-img { height: 180px; }

    /* INDEX */
    .title-line { font-size: 28px !important; }
    .hero-content { padding-top: 90px; padding-bottom: 32px; }
    .btn-hp, .btn-hs { max-width: 100%; }
    .hero-buttons { align-items: stretch; }
    .ref-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .why2-ttl { font-size: 13px; }
    .why2-dsc { font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ── 400px (small phones) ───────────────────── */
@media (max-width: 400px) {
    .title-line { font-size: 24px !important; }
    .hero-content { padding-top: 80px; }
    .mbar-text strong { font-size: 17px !important; }
    .mbar-icon { width: 28px !important; height: 28px !important; min-width: 28px !important; }
    .refs-filter-label { display: none; }
    .refs-filter-scroll { padding: 9px 14px; }
    .refs-cta { padding: 28px 16px; }
    .refs-cta h2 { font-size: 19px; }
    .contact-form-card h2 { font-size: 17px; }
}

/* ============================================================
   SMALL MOBILE — 480px and below
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px !important; }

    /* Hero */
    /* hero-content padding handled by hero-section */
    .title-line { font-size: 26px !important; }
    .hero-subtitle { font-size: 12.5px !important; }
    .btn-hp, .btn-hs { font-size: 14px !important; padding: 13px 18px !important; }

    /* Metrics */
    .mbar-item { padding: 14px 4px !important; }
    .mbar-icon { width: 28px !important; height: 28px !important; min-width: 28px !important; border-radius: 7px !important; }
    .mbar-text strong { font-size: 17px !important; }
    .mbar-text span { font-size: 9.5px !important; }

    /* Index ref cards */
    .ref-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

    /* Index why2 cards */
    .why2-grid { grid-template-columns: 1fr 1fr !important; }
    .why2-card { padding: 16px 12px !important; gap: 8px !important; }
    .why2-ttl { font-size: 12.5px !important; }
    .why2-dsc { display: none !important; }

    /* Final CTA */
    .final-cta-title { font-size: 22px; letter-spacing: -0.3px; }
    .btn-cta-primary, .btn-cta-secondary { max-width: 100% !important; padding: 13px 18px !important; font-size: 14px !important; }

    /* Refs */
    .refs-grid { grid-template-columns: 1fr !important; }
    .refs-stat-item strong { font-size: 24px; }
    .refs-stat-item { padding: 20px 10px; }
    .refs-filter-label { min-width: 54px; padding: 0 8px; font-size: 9px; letter-spacing: 0.3px; }
    .ref-full-card-img { height: 200px; }
    .refs-cta { padding: 30px 16px; }
    .refs-cta h2 { font-size: 20px; }
    .refs-cta p { font-size: 13.5px; }

    /* Contact */
    .contact-page-body { padding: 32px 0 56px; }
    .contact-info-header { padding: 20px 16px; }
    .contact-info-header h2 { font-size: 19px; }
    .contact-info-body { padding: 12px 16px; }
    .contact-map-wrap { margin: 0 16px 16px; }
    .contact-map-wrap iframe { height: 180px; }
    .contact-form-card { padding: 20px 16px 24px; }
    .contact-form-card h2 { font-size: 18px; }
    .cf-field input, .cf-field select, .cf-field textarea { padding: 10px 12px; }
    .contact-whatsapp-bar { padding: 14px 16px; border-radius: 10px; }

    /* Nav drawer footer */
    .nav-drawer-footer { padding-top: 12px; }
    .nav-drawer-lang-btn { font-size: 12px; padding: 9px 6px; }

    /* Cookie banner */
    .cookie-banner-inner { padding: 12px 16px; gap: 12px; }
    .cookie-btn-accept { padding: 9px 16px; font-size: 12.5px; }
    .cookie-btn-reject { padding: 9px 12px; font-size: 12px; }
}

/* ============================================================
   TINY MOBILE — 360px and below
   ============================================================ */
@media (max-width: 360px) {
    .title-line { font-size: 22px !important; letter-spacing: -0.3px !important; }
    .mbar-text strong { font-size: 15px !important; }
    .mbar-text span { font-size: 9px !important; }
    .refs-filter-label { display: none; }
    .refs-filter-scroll { padding: 8px 12px; }
    .contact-form-card { padding: 18px 14px 22px; }
}

/* Nav drawer footer - desktop'ta gizle */
@media (min-width: 992px) {
    .nav-drawer-footer {
        display: none !important;
    }
}

/* Hero min height for mobile browsers (svh = small viewport height, excludes browser chrome) */
@media (max-width: 991px) {
    .hero-section {
        min-height: 100svh; /* modern browsers */
        padding-bottom: 60px !important;
    }
}
