﻿/* ═══════════════════════════════════════════════════════════════════════════
   🏢 OBIAL PROFESSIONAL MEGAMENU CSS
   World's Leading Steel Silo Manufacturer - Enterprise Navigation System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   📐 CSS VARIABLES - Corporate Design System
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Brand Colors */
    --OBIAL-primary: #0f5c8c;
    --OBIAL-primary-dark: #0a4a73;
    --OBIAL-primary-light: #1a7ab8;
    --OBIAL-secondary: #f7941d;
    --OBIAL-secondary-dark: #e07d0a;
    --OBIAL-accent: #00a651;

    /* Neutral Colors */
    --OBIAL-dark: #1a1a2e;
    --OBIAL-gray-900: #212529;
    --OBIAL-gray-800: #343a40;
    --OBIAL-gray-700: #495057;
    --OBIAL-gray-600: #6c757d;
    --OBIAL-gray-500: #adb5bd;
    --OBIAL-gray-400: #ced4da;
    --OBIAL-gray-300: #dee2e6;
    --OBIAL-gray-200: #e9ecef;
    --OBIAL-gray-100: #f8f9fa;
    --OBIAL-white: #ffffff;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --header-height: 110px;
    --header-height-scrolled: 64px;
    --topbar-height: 36px;
    --navbar-height: 70px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔝 TOP BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-topbar {
    background: linear-gradient(135deg, var(--OBIAL-dark) 0%, #16213e 100%);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1001;
}

.OBIAL-topbar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.OBIAL-topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.topbar-contact:hover {
    color: var(--OBIAL-secondary);
}

.topbar-contact i {
    font-size: 12px;
    color: var(--OBIAL-secondary);
}

.topbar-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.topbar-location i {
    color: var(--OBIAL-accent);
}

/* 🌍 Global Operations Badge */
.topbar-global {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--OBIAL-secondary);
    font-size: 13px;
    font-weight: 600;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.topbar-global i {
    color: var(--OBIAL-secondary);
    animation: pulse-globe 2s ease-in-out infinite;
}

@keyframes pulse-globe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.OBIAL-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 12px;
    transition: var(--transition-fast);
}

.topbar-social a:hover {
    background: var(--OBIAL-secondary);
    color: white;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🌐 LANGUAGE SELECTOR - Hover ile açılır
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-lang-selector {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-trigger:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.lang-trigger .lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lang-trigger i {
    font-size: 10px;
    margin-left: 4px;
    transition: var(--transition-fast);
}

/* Hover'da ok yukarı döner */
.OBIAL-lang-selector:hover .lang-trigger i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    /* Buzlu cam efekti */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    overflow: hidden;
}

/* HOVER ile açılma - tıklama gerekmez */
.OBIAL-lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tıklama ile de açılabilir (mobile için) */
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--OBIAL-gray-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--OBIAL-gray-100);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(135deg, var(--OBIAL-primary) 0%, var(--OBIAL-primary-dark) 100%);
    color: white;
}

.lang-option.active {
    background: var(--OBIAL-gray-100);
    color: var(--OBIAL-primary);
    font-weight: 600;
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 12px;
    color: var(--OBIAL-accent);
}

.lang-option img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lang-option.active {
    background: var(--OBIAL-primary);
    color: white;
}

.lang-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎯 MAIN NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: var(--transition-normal);
}

.OBIAL-header.scrolled {
    box-shadow: var(--shadow-md);
}

.OBIAL-header.scrolled .OBIAL-topbar {
    height: 0;
    overflow: hidden;
    border-bottom: none;
}

.OBIAL-navbar {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--OBIAL-gray-200);
}

.OBIAL-navbar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🏷️ LOGO
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.OBIAL-logo .logo-img {
    height: 42px;
    width: auto;
    transition: var(--transition-normal);
}

.OBIAL-header.scrolled .OBIAL-logo .logo-img {
    height: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--OBIAL-primary);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--OBIAL-gray-600);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 MOBILE TOGGLE
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.OBIAL-mobile-toggle:hover {
    background: var(--OBIAL-gray-100);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--OBIAL-gray-800);
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition-normal);
}

.OBIAL-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.OBIAL-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.OBIAL-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎯 MAIN NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.OBIAL-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    color: var(--OBIAL-gray-800);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--OBIAL-primary);
    background: var(--OBIAL-gray-100);
}

.nav-link .nav-arrow {
    font-size: 10px;
    transition: var(--transition-fast);
}

.nav-item.has-megamenu:hover .nav-arrow,
.nav-item.has-megamenu.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-item.has-megamenu:hover .nav-link,
.nav-item.has-megamenu.active .nav-link {
    color: var(--OBIAL-primary);
    background: var(--OBIAL-gray-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎪 MEGAMENU - FULL WIDTH CENTERED
   ═══════════════════════════════════════════════════════════════════════════ */

/* Megamenu Backdrop */
.nav-item.has-megamenu::before {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    /* Buzlu arka plan overlay */
    background: rgba(26, 26, 46, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    pointer-events: none;
}

.OBIAL-header.scrolled .nav-item.has-megamenu::before {
    top: var(--header-height-scrolled);
}

.nav-item.has-megamenu:hover::before,
.nav-item.has-megamenu.active::before {
    opacity: 1;
    visibility: visible;
}

.megamenu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-10px);
    /* Buzlu cam (Glassmorphism) efekti - çok şeffaf, arka plan görünsün */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
    border-top: 3px solid var(--OBIAL-secondary);
}

/* Scrolled durumunda megamenu pozisyonu */
.OBIAL-header.scrolled .megamenu {
    top: var(--header-height-scrolled);
}

.nav-item.has-megamenu:hover .megamenu,
.nav-item.has-megamenu.active .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.megamenu-content {
    display: flex;
    min-height: 280px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📋 MEGAMENU SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.megamenu-sidebar {
    width: 280px;
    /* Sidebar için buzlu cam efekti - mavi tonlarda, daha şeffaf */
    background: linear-gradient(135deg, rgba(15, 92, 140, 0.82) 0%, rgba(10, 74, 115, 0.88) 100%);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    padding: 32px 28px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.megamenu-category-info {
    color: white;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon i {
    font-size: 24px;
    color: white;
}

.megamenu-category-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.megamenu-category-info p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.2);
}

.category-link:hover {
    background: white;
    color: var(--OBIAL-primary);
}

.category-link i {
    font-size: 12px;
    transition: var(--transition-fast);
}

.category-link:hover i {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📝 MEGAMENU MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
.megamenu-main {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 32px;
    width: 100%;
}

.megamenu-column {
    display: contents;
}

.megamenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--OBIAL-gray-800);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Okunabilirlik için hafif arka plan */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Hover efekti - sol kenar çizgisi */
.megamenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--OBIAL-secondary) 0%, var(--OBIAL-primary) 100%);
    border-radius: 0 2px 2px 0;
    transition: height 0.25s ease;
}

.megamenu-link:hover::before {
    height: 70%;
}

.megamenu-link:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--OBIAL-primary);
    border-color: rgba(15, 92, 140, 0.3);
    transform: translateX(6px);
    padding-left: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.megamenu-link i {
    font-size: 10px;
    color: var(--OBIAL-secondary);
    transition: all 0.25s ease;
    width: 14px;
}

.megamenu-link:hover i {
    color: var(--OBIAL-primary);
    transform: scale(1.2);
}

/* Link span için subtle underline */
.megamenu-link span {
    position: relative;
}

.megamenu-link span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--OBIAL-secondary);
    transition: width 0.3s ease;
}

.megamenu-link:hover span::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📞 CONTACT MEGAMENU - Full Width Like Others
   ═══════════════════════════════════════════════════════════════════════════ */
.megamenu-contact .megamenu-content {
    min-height: 280px;
}

.megamenu-contact .megamenu-sidebar {
    width: 280px;
}

.megamenu-contact .megamenu-main {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    flex: 1;
}

.contact-card {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--OBIAL-gray-200);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:last-child {
    border-right: none;
}

.contact-card:hover {
    background: var(--OBIAL-gray-50);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--OBIAL-primary) 0%, var(--OBIAL-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.contact-icon i {
    font-size: 22px;
    color: white;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--OBIAL-gray-900);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 13px;
    color: var(--OBIAL-gray-600);
    margin-bottom: 12px;
}

.contact-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--OBIAL-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--OBIAL-secondary);
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--OBIAL-gray-50);
    border-top: 1px solid var(--OBIAL-gray-200);
}

.btn-contact-primary,
.btn-contact-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-contact-primary {
    background: var(--OBIAL-primary);
    color: white;
}

.btn-contact-primary:hover {
    background: var(--OBIAL-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-contact-secondary {
    background: white;
    color: var(--OBIAL-gray-700);
    border: 1px solid var(--OBIAL-gray-300);
}

.btn-contact-secondary:hover {
    background: var(--OBIAL-gray-100);
    border-color: var(--OBIAL-gray-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔍 NAVIGATION ACTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 10px;
}

.nav-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--OBIAL-gray-700);
    font-size: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-search-btn:hover {
    background: var(--OBIAL-gray-100);
    color: var(--OBIAL-primary);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--OBIAL-secondary) 0%, var(--OBIAL-secondary-dark) 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.4);
    color: white;
}

.nav-cta-btn i {
    font-size: 12px;
    transition: var(--transition-fast);
}

.nav-cta-btn:hover i {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔍 SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 24px;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    gap: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    font-size: 18px;
    font-family: var(--font-primary);
    color: var(--OBIAL-gray-900);
    background: transparent;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--OBIAL-gray-500);
}

.search-submit {
    padding: 20px 28px;
    background: var(--OBIAL-primary);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit:hover {
    background: var(--OBIAL-primary-dark);
}

.search-suggestions {
    margin-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.search-suggestions span {
    margin-right: 12px;
}

.search-suggestions a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--radius-md);
    margin: 4px;
    transition: var(--transition-fast);
}

.search-suggestions a:hover {
    background: var(--OBIAL-secondary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔼 BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: var(--OBIAL-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--OBIAL-primary-dark);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📄 MAIN CONTENT SPACING
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-main-content {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
}

.OBIAL-header.scrolled + .OBIAL-main-content,
body.menu-open .OBIAL-main-content {
    padding-top: var(--header-height-scrolled);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Large screens */
@media (max-width: 1200px) {
    .megamenu {
        min-width: 600px;
    }

    .megamenu-sidebar {
        width: 240px;
        padding: 24px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .OBIAL-topbar {
        display: none;
    }

    :root {
        --header-height: 70px;
        --header-height-scrolled: 70px;
    }

    .OBIAL-mobile-toggle {
        display: flex;
    }

    .OBIAL-main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 24px;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        overflow-y: auto;
    }

    .OBIAL-main-nav.active {
        transform: translateX(0);
    }

    .OBIAL-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--OBIAL-gray-200);
    }

    .nav-link {
        padding: 16px 0;
        justify-content: space-between;
        font-size: 16px;
    }

    .megamenu {
        position: static;
        min-width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-item.has-megamenu.active .megamenu {
        display: block;
    }

    .megamenu-content {
        flex-direction: column;
    }

    .megamenu-sidebar {
        width: 100%;
        padding: 20px;
    }

    .megamenu-main {
        padding: 20px;
    }

    .megamenu-grid {
        flex-direction: column;
        gap: 8px;
    }

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

    .contact-card {
        border-right: none;
        border-bottom: 1px solid var(--OBIAL-gray-200);
    }

    .contact-actions {
        flex-direction: column;
    }

    .nav-cta-btn {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .OBIAL-navbar-container {
        padding: 0 16px;
    }

    .logo-text {
        display: none;
    }

    .OBIAL-logo .logo-img {
        height: 40px;
    }

    .search-overlay-content {
        padding: 16px;
    }

    .search-input {
        padding: 16px;
        font-size: 16px;
    }

    .search-submit {
        padding: 16px 20px;
    }

    .search-close {
        top: 16px;
        right: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎨 ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.megamenu-link {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.nav-item.has-megamenu:hover .megamenu-link:nth-child(1) { animation-delay: 0.05s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(2) { animation-delay: 0.1s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(3) { animation-delay: 0.15s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(4) { animation-delay: 0.2s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(5) { animation-delay: 0.25s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(6) { animation-delay: 0.3s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(7) { animation-delay: 0.35s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(8) { animation-delay: 0.4s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(9) { animation-delay: 0.45s; }
.nav-item.has-megamenu:hover .megamenu-link:nth-child(10) { animation-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════════════════════
   🖼️ FEATURED IMAGE PREVIEW - Sayfa Üzerine Gelince Görsel
   ═══════════════════════════════════════════════════════════════════════════ */
.megamenu-preview {
    width: 320px;
    flex-shrink: 0;
    /* Preview için buzlu cam efekti - çok şeffaf */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(248, 249, 250, 0.4) 100%);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.megamenu-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(15, 92, 140, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 148, 29, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.preview-image-container {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: white;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.preview-image.active {
    opacity: 1;
}

.preview-image:hover {
    transform: scale(1.05);
}

.preview-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--OBIAL-primary) 0%, var(--OBIAL-primary-dark) 100%);
    color: white;
    transition: opacity 0.3s ease;
}

.preview-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.preview-placeholder span {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
}

.preview-title {
    margin-top: 16px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.preview-title h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--OBIAL-gray-800);
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.preview-title p {
    font-size: 12px;
    color: var(--OBIAL-gray-600);
    margin: 0;
}

/* Link hover'da underline efekti */
.megamenu-link.has-preview {
    position: relative;
}

.megamenu-link.has-preview::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--OBIAL-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.megamenu-link.has-preview:hover::after {
    transform: scaleX(1);
}

/* Aktif link stili */
.megamenu-link.preview-active {
    background: var(--OBIAL-gray-100);
    color: var(--OBIAL-primary);
    border-color: var(--OBIAL-secondary);
    border-left: 3px solid var(--OBIAL-secondary);
}

.megamenu-link.preview-active i {
    color: var(--OBIAL-secondary);
}

/* Megamenu-main'i güncellenmiş flex yapısı */
.megamenu-content.has-preview .megamenu-main {
    flex: 1;
    min-width: 0;
}

/* Responsive - Tablet'te preview gizle */
@media (max-width: 1200px) {
    .megamenu-preview {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎬 PREVIEW ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.megamenu-preview {
    animation: slideInRight 0.4s ease forwards;
    animation-delay: 0.15s;
    opacity: 0;
}

.nav-item.has-megamenu:hover .megamenu-preview {
    opacity: 1;
}

.preview-image.active {
    animation: fadeInScale 0.35s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🌙 DARK MODE SUPPORT (Optional)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ═══════════════════════════════════════════════════════════════════════════
   🦶 OBIAL PROFESSIONAL FOOTER
   Dünya lideri çelik silo üreticisine yakışır kurumsal footer tasarımı
   ═══════════════════════════════════════════════════════════════════════════ */
.OBIAL-footer {
    background: linear-gradient(180deg, #0a3d5c 0%, #062a40 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Footer arka plan deseni */
.OBIAL-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(247, 148, 29, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 92, 140, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Main Content */
.footer-main {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

/* Footer Grid - 5 kolonlu yapı */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📍 FOOTER COMPANY INFO (Sol kolon - Şirket bilgileri)
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-company {
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition-fast);
}

.footer-logo a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(247, 148, 29, 0.5));
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* İletişim Bilgileri */
.footer-contact-info {
    margin-bottom: 24px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
    color: var(--OBIAL-secondary);
    font-size: 14px;
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-item a:hover {
    color: var(--OBIAL-secondary);
}

/* Sosyal Medya */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--OBIAL-secondary);
    border-color: var(--OBIAL-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📂 FOOTER COLUMNS (Dinamik kategori kolonları)
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-column {
    padding: 0 10px;
}

.footer-column-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--OBIAL-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column-title i {
    color: var(--OBIAL-secondary);
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 6px 0;
}

.footer-link i {
    font-size: 10px;
    color: var(--OBIAL-secondary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   📜 FOOTER BOTTOM BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-link:hover {
    color: var(--OBIAL-secondary);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 FOOTER RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.2fr repeat(4, 1fr);
        gap: 30px;
    }

    .footer-main {
        padding: 50px 30px 30px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .footer-company {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-contact-item {
        margin-bottom: 0;
    }

    .footer-social {
        justify-content: center;
    }
}

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

    .footer-main {
        padding: 40px 20px 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        text-align: center;
        padding: 0;
    }

    .footer-column-title {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        justify-content: center;
    }

    .footer-link:hover {
        transform: translateX(0);
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-link:focus,
.megamenu-link:focus,
.btn-contact-primary:focus,
.btn-contact-secondary:focus {
    outline: 2px solid var(--OBIAL-secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
