/* Color Palette Variables */
:root {
  --color-dark: #0B0C11;
  --color-gray-light: #8390A4;
  --color-gray-dark: #3C4858;
  --color-blue-dark: #123456;
  --color-blue-light: #2BB2FC;
  --color-green-dark: #21563C;
  --color-green-pale: #E7FAF0;
  --color-green-bright: #13CE66;
  --color-orange: #FF9800;
  --color-red-dark: #661D1D;
  --color-red: #FF4949;
  --color-red-pale: #FFEDED;
  --color-white: #FFFFFF;
  --color-gray-very-light: #EEEEEE;
}

/* Header - OPC Router Style Design */
.header {
    background: var(--color-white);
    border-bottom: 1px solid #E5E7EB;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    margin-right: 3rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.logo:hover {
    transform: scale(1.02);
}

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

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 0;
    align-items: center;
}

.main-nav li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.main-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    color: var(--color-gray-dark);
    text-decoration: none;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    gap: 0.5rem;
}

.main-nav li a:hover {
    color: var(--color-green-bright);
}

.main-nav li a.active {
    color: var(--color-green-bright);
    font-weight: 600;
}

.main-nav li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--color-green-bright);
}

/* Dropdown arrows */
.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 220px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #F3F4F6;
    display: block;
    width: 100%;
    list-style: none;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* Add a small gap between dropdown and trigger */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-white);
    z-index: 1001;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-gray-dark);
    text-decoration: none;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.005em;
    transition: all 0.3s ease;
    border-radius: 0;
    height: auto;
    min-height: auto;
    white-space: nowrap;
    line-height: 1.4;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li a:hover {
    background: var(--color-green-bright);
    color: var(--color-white);
    transform: none;
}

.dropdown-menu li a.active {
    background: var(--color-orange);
    color: var(--color-white);
}

.dropdown-menu li a.active::after {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input[type="text"] {
    background: var(--color-white);
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    color: var(--color-gray-dark);
    width: 200px;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.search-box input[type="text"]::placeholder {
    color: var(--color-gray-light);
    font-weight: 400;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--color-green-bright);
    box-shadow: 0 0 0 3px rgba(19, 206, 102, 0.1);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-gray-light);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-box button:hover {
    color: var(--color-green-bright);
}

/* Demo Button */
.demo-btn {
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.demo-btn:hover {
    background: #E67E00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    color: var(--color-white);
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    background: var(--color-blue-light);
    color: var(--color-white);
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 960;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle:hover {
    border-color: var(--color-blue-light);
    background: rgba(43, 178, 252, 0.05);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-blue-light);
    outline-offset: 2px;
}

.mobile-menu-toggle i {
    font-size: 18px;
    color: var(--color-gray-dark);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle .close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
}

.mobile-menu-toggle.active {
    border-color: var(--color-orange);
    background: rgba(255, 152, 0, 0.05);
}

.mobile-menu-toggle.active i {
    color: var(--color-orange);
}

.mobile-menu-toggle.active .hamburger-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
}

.mobile-menu-toggle.active .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Large Desktop Responsive */
@media (max-width: 1200px) and (min-width: 993px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .main-nav li a {
        padding: 0 1rem;
        font-size: 13px;
    }
    
    .search-box input[type="text"] {
        width: 160px;
        font-size: 13px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        padding: 0 1.5rem;
        height: 65px;
    }
    
    .main-nav {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 940;
        overflow-y: auto;
        overflow-x: hidden;
        contain: layout style;
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 0;
        padding: 0 2rem;
        list-style: none;
        will-change: auto;
    }
    
    .main-nav li {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav li a {
        padding: 1.2rem 0;
        width: 100%;
        justify-content: flex-start;
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        text-align: left;
        height: auto;
        min-height: 50px;
        border-radius: 0;
    }
    
    .main-nav li a:hover {
        background: rgba(19, 206, 102, 0.05);
        color: var(--color-green-bright);
    }
    
    .main-nav li a.active::after {
        display: none;
    }
    
    /* Mobile dropdown menus */
    .main-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(19, 206, 102, 0.05);
        border-radius: 0;
        margin: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Remove hover-based dropdown for mobile */
    .main-nav .dropdown:hover .dropdown-menu {
        max-height: 0;
        padding: 0;
    }
    
    /* Use click-based dropdown for mobile */
    .main-nav .dropdown.mobile-active .dropdown-menu {
        max-height: 300px;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(229, 231, 235, 0.5);
    }
    
    .main-nav .dropdown-menu li {
        border-bottom: 1px solid rgba(229, 231, 235, 0.3);
        margin: 0;
        width: 100%;
        display: block;
    }
    
    .main-nav .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .main-nav .dropdown-menu li a {
        padding: 14px 0 14px 40px;
        font-size: 14px;
        color: var(--color-gray-dark);
        background: transparent;
        width: 100%;
        display: block;
        box-sizing: border-box;
        min-height: auto;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
    }
    
    .main-nav .dropdown-menu li a:hover,
    .main-nav .dropdown-menu li a:focus {
        background: rgba(19, 206, 102, 0.1);
        color: var(--color-green-bright);
        transform: translateX(8px);
        padding-left: 48px;
    }
    
    /* Mobile dropdown arrow rotation */
    .main-nav .dropdown.mobile-active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Ensure dropdown containers maintain layout */
    .main-nav .dropdown {
        overflow: hidden;
        contain: layout;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 960;
    }
    
    .search-box {
        display: none;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .demo-btn {
        padding: 0.6rem 1.2rem;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .main-nav {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 1.5rem;
    }
    
    .main-nav ul {
        padding: 0 1.5rem;
    }
    
    .main-nav li a {
        padding: 1rem 0;
        font-size: 15px;
        min-height: 45px;
    }
    
    /* Adjust dropdown menu for smaller screens */
    .main-nav .dropdown-menu li a {
        padding: 10px 0 10px 35px;
        font-size: 13px;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle i {
        font-size: 16px;
    }
    
    .demo-btn {
        padding: 0.5rem 1rem;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 55px;
        padding: 0 0.75rem;
    }
    
    .main-nav {
        top: 55px;
        height: calc(100vh - 55px);
        padding-top: 1rem;
    }
    
    .main-nav ul {
        padding: 0 1rem;
    }
    
    .main-nav li a {
        padding: 0.9rem 0;
        font-size: 14px;
        min-height: 42px;
    }
    
    /* Further adjust dropdown menu for very small screens */
    .main-nav .dropdown-menu li a {
        padding: 8px 0 8px 30px;
        font-size: 12px;
    }
    
    .logo img {
        max-height: 42px;
    }
    
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }
    
    .mobile-menu-toggle i {
        font-size: 15px;
    }
    
    .demo-btn {
        padding: 0.4rem 0.8rem;
        font-size: 11px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Global spacing fix for fixed header - accounts for header height */
body {
    padding-top: 0;
    margin: 0;
}

/* Ensure main content accounts for fixed header height */
.main-content {
    margin-top: 0;
    padding-top: 70px; /* Fixed header height */
}

/* COMPREHENSIVE HERO SECTION FIXES - ALL PAGES */
.detail-hero,
.hero-section,
.contact-hero,
.quote-hero,
.kullanim-hero,
.about-hero,
.legal-hero,
.blog-post-hero,
.faq-hero {
    margin-top: 0 !important;
    padding-top: clamp(60px, 8vh, 100px) !important;
}

/* Specific adjustments for full-height hero sections */
.hero-section {
    min-height: calc(100vh - 70px) !important;
}

/* Ensure hero content has proper spacing from top */
.hero-content,
.hero-section .hero-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 950;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    body {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    /* Adjust main content padding for smaller header */
    .main-content {
        padding-top: 60px; /* Header height on tablet */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 0;
    }
    
    /* Adjust main content padding for smallest header */
    .main-content {
        padding-top: 55px; /* Header height on mobile */
    }
}


 