:root {
            --primary-cyan: #00D9FF;
            --primary-dark: #0A1E3D;
            --primary-blue: #1a4d7a;
            --accent-orange: #FF6B35;
            --accent-coral: #FF8C61;
            --success-green: #10B981;
            --warning-yellow: #F59E0B;
            --neutral-100: #F8FAFC;
            --neutral-200: #E2E8F0;
            --neutral-300: #CBD5E1;
            --neutral-700: #334155;
            --neutral-800: #1E293B;
            --neutral-900: #0F172A;
            --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #0A78BE 100%);
            --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
            --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body { 
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.7;
            color: var(--neutral-800);
            background: var(--neutral-100);
            overflow-x: hidden;
        }
        
        html { scroll-behavior: smooth; }
        
        /* Header */
        header { 
            background: url('images/banner.webp') center center / cover no-repeat;
            background-color: var(--primary-dark);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            position: sticky; 
            top: 0; 
            z-index: 1000;
            backdrop-filter: blur(10px);
        }
        header::before { 
            content: ''; 
            position: absolute; 
            top: 0; left: 0; right: 0; bottom: 0; 
            background: linear-gradient(135deg, rgba(10, 30, 61, 0.7) 0%, rgba(10, 120, 190, 0.6) 100%);
            z-index: -1; 
        }
        .header-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; }
        .logo-container { display: flex; align-items: center; gap: 1rem; }
        .logo-container img { height: 60px; width: auto; transition: transform 0.3s; }
        .logo-container img:hover { transform: scale(1.05); }
        .company-name { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
        
        /* Navigation */
        nav { display: flex; gap: 2rem; }
        .nav-item { position: relative; }
        .nav-link { 
            color: rgba(255,255,255,0.95);
            text-decoration: none; 
            padding: 0.5rem 1rem; 
            display: block; 
            font-weight: 500;
            transition: all 0.3s;
            border-radius: 6px;
        }
        .nav-link:hover { 
            background: rgba(255,255,255,0.1);
            color: var(--primary-cyan);
        }
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 250px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            border-radius: 8px;
            border: 1px solid var(--neutral-200);
            z-index: 1000;
        }
        .nav-item:hover .dropdown-menu { 
            opacity: 1; 
            visibility: visible; 
            transform: translateY(0); 
        }
        .dropdown-menu::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 0;
            right: 0;
            height: 10px;
        }
        .dropdown-menu a {
            color: var(--neutral-800);
            padding: 0.75rem 1.5rem;
            display: block;
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: 1px solid var(--neutral-200);
            font-size: 0.95rem;
        }
        .dropdown-menu a:last-child { border-bottom: none; }
        .dropdown-menu a:hover {
            background: var(--gradient-primary);
            color: white;
            padding-left: 2rem;
        }
        
        /* Mobile Menu */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }
        
        /* Breadcrumb */
        .breadcrumb-container { 
            background: white;
            padding: 1rem 0; 
            border-bottom: 1px solid var(--neutral-200);
            position: sticky;
            top: var(--header-h, 82px);
            z-index: 999;
        }
        .breadcrumb-wrapper { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 0 2rem; 
        }
        .breadcrumb { 
            display: flex; 
            align-items: center; 
            list-style: none; 
            padding: 0; 
            margin: 0; 
            flex-wrap: wrap;
        }
        .breadcrumb li { 
            display: flex; 
            align-items: center; 
        }
        .breadcrumb a { 
            color: var(--primary-cyan); 
            text-decoration: none; 
            transition: all 0.3s; 
            font-weight: 500; 
            font-size: 0.95rem;
        }
        .breadcrumb a:hover { 
            color: var(--accent-orange); 
        }
        .breadcrumb span { 
            color: var(--neutral-700); 
            margin: 0 0.5rem; 
        }
        .breadcrumb strong { 
            color: var(--neutral-700); 
            font-weight: 600; 
            font-size: 0.95rem;
        }
        
        /* Page Header */
        .page-header {
            background: var(--gradient-primary);
            color: white;
            padding: 4rem 2rem;
            text-align: center;
        }
        .page-header h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1rem;
            font-family: 'Poppins', sans-serif;
        }
        .page-header p {
            font-size: 1.25rem;
            opacity: 0.95;
        }
        
        /* Content Container */
        .content-container {
            max-width: 1200px;
            margin: 4rem auto;
            padding: 0 2rem;
        }
        
        /* About Section */
        .about-section {
            background: white;
            padding: 3rem;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            margin-bottom: 3rem;
            position: relative;
            overflow: hidden;
        }
        .about-section::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 300px;
            background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(26, 77, 122, 0.08) 100%);
            border-radius: 50%;
            transform: translate(30%, -30%);
            z-index: 0;
        }
        .about-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 250px;
            height: 250px;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 140, 97, 0.08) 100%);
            border-radius: 50%;
            transform: translate(-30%, 30%);
            z-index: 0;
        }
        .about-section > * {
            position: relative;
            z-index: 1;
        }
        .about-section.featured {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
            border: 2px solid var(--primary-cyan);
            border-left: 8px solid var(--primary-cyan);
            box-shadow: 0 8px 30px rgba(0, 217, 255, 0.1);
        }
        .about-section.featured::before {
            background: radial-gradient(
                circle at top right,
                rgba(0, 217, 255, 0.08) 0%,
                transparent 50%
            );
            width: 100%;
            height: 100%;
            transform: none;
            border-radius: 0;
        }
        .about-section h2 {
            color: var(--primary-dark);
            font-size: 2rem;
            margin-bottom: 1.5rem;
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
        }
        .about-section p {
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
            color: var(--neutral-700);
        }
        
        /* Timeline */
        .timeline-background {
            background-image: url('images/akcam.webp');
            background-size: contain;
            background-position: bottom right;
            background-repeat: no-repeat;
            background-color: #e8eef5;
            position: relative;
        }
        .timeline-background > * {
            position: relative;
            z-index: 1;
        }
        .timeline-item {
            display: flex;
            gap: 2rem;
            margin-bottom: 2rem;
            padding-left: 1rem;
            border-left: 3px solid var(--primary-cyan);
            padding: 1rem;
        }
        .timeline-year {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            min-width: 80px;
            font-family: 'Poppins', sans-serif;
            background: rgba(255, 255, 255, 0.9);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            text-align: center;
        }
        .timeline-content p {
            margin-bottom: 0.75rem;
            line-height: 1.7;
            color: var(--neutral-900);
            text-shadow: 
                1px 1px 3px rgba(255, 255, 255, 1),
                -1px -1px 3px rgba(255, 255, 255, 1),
                1px -1px 3px rgba(255, 255, 255, 1),
                -1px 1px 3px rgba(255, 255, 255, 1);
        }
        .timeline-content strong {
            font-weight: 700;
        }
        
        /* Services Grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        .service-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border-top: 4px solid var(--primary-cyan);
        }
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }
        .service-card h3 {
            color: var(--primary-dark);
            font-size: 1.3rem;
            margin-bottom: 1rem;
            font-family: 'Poppins', sans-serif;
        }
        .service-card ul {
            list-style: none;
            padding: 0;
        }
        .service-card li {
            padding: 0.5rem 0;
            padding-left: 1.5rem;
            position: relative;
        }
        .service-card li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--primary-cyan);
            font-weight: 700;
        }
        .service-card a {
            color: var(--primary-cyan);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }
        .service-card a:hover {
            color: var(--accent-orange);
        }
        
        /* Products Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        .product-card {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border-top: 4px solid var(--accent-orange);
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }
        .product-card h3 {
            color: var(--primary-dark);
            font-size: 1.3rem;
            margin-bottom: 1rem;
            font-family: 'Poppins', sans-serif;
        }
        .product-card a {
            color: var(--accent-orange);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }
        .product-card a:hover {
            color: var(--primary-cyan);
        }
        
        /* Archive Link */
        .archive-link {
            background: linear-gradient(135deg, #f3e7ff 0%, #e9d5ff 100%);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            margin: 3rem 0;
        }
        .archive-link a {
            color: #7c3aed;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }
        .archive-link a:hover {
            color: #6d28d9;
            gap: 1rem;
        }
        
        /* Values Section */
        .values-section {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            padding: 3rem;
            border-radius: 16px;
            margin: 3rem 0;
        }
        .values-section h2 {
            text-align: center;
            color: var(--primary-dark);
            font-size: 2rem;
            margin-bottom: 2rem;
            font-family: 'Poppins', sans-serif;
        }
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        .value-item {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }
        .value-item .icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        .value-item h3 {
            color: var(--primary-dark);
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            font-family: 'Poppins', sans-serif;
        }
        .value-item p {
            color: var(--neutral-700);
            line-height: 1.6;
        }
        
        /* Footer */
        footer {
            background: var(--primary-dark);
            color: white;
            padding: 2rem;
            text-align: center;
            margin-top: 4rem;
        }
        footer a {
            color: var(--primary-cyan);
            text-decoration: none;
            transition: color 0.3s;
        }
        footer a:hover {
            color: var(--accent-orange);
        }
        
        /* Back to Top */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s;
            z-index: 998;
        }
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        .back-to-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 12px 35px rgba(0, 217, 255, 0.5);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .mobile-toggle { display: block; }
            nav { 
                display: none; 
                position: absolute; 
                top: 100%; 
                left: 0; 
                right: 0; 
                background: var(--primary-dark); 
                flex-direction: column; 
                gap: 0; 
                padding: 1rem 0;
                box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            }
            nav.active { display: flex; }
            .nav-item { width: 100%; }
            .nav-link {
                color: white;
                padding: 1rem 1.5rem;
            }
            .dropdown-menu { 
                position: static; 
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none; 
                background: rgba(255,255,255,0.05);
                margin-top: 0;
                border-radius: 0;
                border: none;
                display: none;
            }
            .nav-item.active .dropdown-menu {
                display: block;
            }
            .dropdown-menu a {
                color: rgba(255, 255, 255, 0.9);
                padding: 0.75rem 3rem;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }
            .dropdown-menu a:hover {
                background: rgba(0, 217, 255, 0.2);
                color: var(--primary-cyan);
            }
            .page-header h1 { font-size: 2rem; }
            .about-section { padding: 2rem; }
            .timeline-item { flex-direction: column; gap: 0.5rem; }
            .services-grid, .products-grid { grid-template-columns: 1fr; }
            .back-to-top { bottom: 15px; left: 15px; width: 45px; height: 45px; }
        }

/* Patch: remove breadcrumb separator line */
.breadcrumb-container{border-bottom:none !important;}

@media (max-width: 768px){
  .nav-item.active > .dropdown-menu{
    display:block !important;
    opacity:1 !important;
    visibility:visible !important;
    transform: translateY(0) !important;
    pointer-events:auto !important;
  }
}


/* --- NAV CONSISTENCY (patched) --- */
#mainNav { align-items: center; }


/* === MOBILE NAV PATCH v10 (safe) ===
   - Targets only #mainNav (avoids affecting other <nav> elements)
   - Uses 100dvh to behave better on mobile browsers with dynamic address bars
   - Keeps menu open/close logic intact (JS toggles .active)
   - Removes mobile dropdown borders without killing usability; adds subtle focus/active highlight
*/
#mainNav{ --header-h: 82px; }

@media (max-width: 768px){
  /* Mobile dropdown: no white borders/frames */
  #mainNav .dropdown-menu{
    border: none !important;
    box-shadow: none !important;
  }
  #mainNav .dropdown-menu a{
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
  }
  #mainNav .dropdown-menu a:active,
  #mainNav .dropdown-menu a:focus,
  #mainNav .dropdown-menu a:focus-visible{
    outline: none !important;
    box-shadow: none !important;
    background: rgba(255,255,255,0.10);
  }

  /* Mobile menu panel height/scroll: fill viewport safely when open */
  #mainNav.active{
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

