﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.header {
    width: 100%;
    height: 70px;
    background: #f9f8fa;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    width: 6%;
    height: 100%;
    background: #223964;
    transform: skewX(-15deg);
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 80%;
    height: 100%;
    background: #223964;
    z-index: 0;
}

.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.header-left {
    width: 30%;
    padding-left: 20px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.header-right {
    width: 70%;
    padding: 0 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Remove header-center */
.header-center {
    display: none;
}

/* Header Navigation */
.header-nav {
    width: 100%;
    z-index: 1002;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    z-index: 1003;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff5f00;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ff5f00;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
}

.social-sidebar .social-link {
    width: 45px;
    height: 45px;
    background: #ff5f00;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.social-sidebar .social-link:hover {
    background: #1e3a8a;
    transform: scale(1.1);
}

/* Remove old navbar styles */
.navbar {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fd7628;
    text-align: center;
    animation: fadeInDown 1s ease forwards;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-btn {
    background: #ff5f00;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-btn:hover {
    background: #ff5f00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Remove contact-overlay */
.contact-overlay {
    display: none;
}

/* Hero Contact Styles */
.hero-contact {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-contact .contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.hero-contact .contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.hero-contact .contact-item:hover::before {
    left: 100%;
}

.hero-contact .contact-item:hover {
    background: rgba(255,140,0,0.9);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,140,0,0.3);
    border-color: #ff5f00;
}

.hero-contact .contact-item i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hero-contact .contact-item:hover i {
    transform: rotate(360deg);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #ff5f00;
    padding-left: 25px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.nav-link.active {
    color: #ff5f00;
}

.nav-cta {
    margin-left: 15px;
    list-style: none;
}

.nav-btn {
    padding: 8px 20px;
    background: #ff5f00;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn:hover {
    background: #ff5f00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,140,0,0.3);
}

/* Dropdown Functionality Fixes */
.nav-item.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.95);
        margin-top: 10px;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.dropdown.active .dropdown-content {
        max-height: 400px;
    }
    
    .dropdown-content a {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    .header-content {
        width: 0px;
    }
    .header::before {
        left: 80%;
        width: 5%;
    }
    
    .header::after {
        left: 82%;
        width: 18%;
    }
    
    .header-left {
        width: 82%;
        padding-left: 15px;
    }
    
    .header-right {
        width: 18%;
        padding: 0 5px;
        justify-content: flex-end;
    }
    
    .hamburger {
        display: flex;
        margin-left: auto;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 2001;
        padding: 8px;
        cursor: pointer;
        /* background: rgba(0,0,0,0.3); */
        border-radius: 5px;
    }
    
    .hamburger span {
        width: 28px;
        height: 3px;
        background: white;
        margin: 4px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #1e3a8a;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        z-index: 2000;
        padding: 100px 20px 20px 20px;
        overflow-y: auto;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
        display: block;
        margin: 8px 0;
    }
    .nav-link {
        display: block;
        width: 100%;
        padding: 20px 25px;
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        color: white;
        text-decoration: none;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 10px;
        margin: 0;
        transition: all 0.3s;
        box-sizing: border-box;
    }
    /* .nav-link:hover {
        background: #ff5f00;
        color: white;
        border-color: #ff5f00;
    } */
    /* .nav-link.active {
        background: #ff5f00;
        color: white;
        border-color: #ff5f00;
    } */
    .nav-link::after {
        display: none;
    }

    /* Mobile Dropdown Styles */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        margin-top: 10px;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999999 !important;
    }

    .dropdown.active .dropdown-content {
        max-height: 300px;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        color: white;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 10px !important;
    }

    .dropdown-content a:hover {
        background: rgba(255,140,0,0.3);
        color: white;
        padding-left: 25px;
    }

    /* Mobile CTA Buttons */
    .nav-cta {
        width: 100%;
        margin: 15px 0;
        list-style: none;
    }

    .nav-btn {
        display: block;
        width: 100%;
        padding: 15px 25px;
        text-align: center;
        font-size: 16px;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-contact .contact-info {
        gap: 20px;
        flex-direction: column;
    }
    
    .hero-contact .contact-item {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    /* Mobile Social Media */
    .social-sidebar {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 20px;
        right: auto;
        top: auto;
    }
    
    .social-sidebar .social-link {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .header {
        height: 55px;
    }
    
    .header::before {
        left: 75%;
        width: 8%;
    }
    
    .header::after {
        left: 80%;
        width: 20%;
    }
    
    .header-left {
        width: 80%;
        padding-left: 10px;
    }
    
    .header-right {
        width: 20%;
        padding: 0 5px;
    }
    
    
    
    .hamburger {
        top: 12px;
        right: 12px;
        padding: 6px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        margin: 3px 0;
    }
    
    .nav-menu {
        padding: 100px 20px 20px 20px;
    }
    
    .nav-link {
        padding: 18px 20px;
        font-size: 10px;
    }
    
    .hero-btn {
        padding: 12px 25px;
        font-size: 14px;
        margin-top: 25px;
    }
    
    /* Mobile Social Media - Smaller screens */
    .social-sidebar {
        bottom: 25px;
        gap: 15px;
    }
    
    .social-sidebar .social-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .header::before {
        left: 70%;
        width: 10%;
    }
    
    .header::after {
        left: 75%;
        width: 25%;
    }
    
    .header-left {
        width: 75%;
    }
    
    .header-right {
        width: 25%;
    }
    
    .social-sidebar {
        gap: 12px;
        bottom: 20px;
    }
    
    .social-sidebar .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

    /* Extra small screens */
@media (max-width: 360px) {
    .header::before {
        left: 70%;
        width: 10%;
    }
    
    .header::after {
        left: 75%;
        width: 25%;
    }
    
    .header-left {
        width: 75%;
    }
    
    .header-right {
        width: 25%;
    }
    
    .social-sidebar {
        gap: 12px;
        bottom: 20px;
    }
    
    .social-sidebar .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}



/* Sticky header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
    }

        .header.scrolled .logo {
            height: auto;
            width: 120px;
        }

        .header.scrolled .nav-link {
            padding: 8px 16px;
        }

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .language-dropdown {
        order: -1;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .language-toggle {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 16px !important;
        justify-content: space-between;
    }

    .language-options {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 8px;
    }

    .language-option {
        color: white !important;
        padding: 12px 16px !important;
    }

        .language-option:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white !important;
        }



    .header.scrolled {
        padding: 5px 0;
    }

        .header.scrolled .logo {
            height: 35px;
            width: 105px !important;
        }
}
@media (max-width: 768px) {
    .logo img {
        width: 100px !important;
        height: auto !important;
    }
}
/* Smooth scroll for all links */
html {
    scroll-behavior: smooth;
}

/* Ensure hero section starts below header */
.hero {
    margin-top: -80px;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero {
        margin-top: -70px;
        padding-top: 70px;
    }
}


.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .language-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.current-lang {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
}

.language-options {
    min-width: 160px;
    padding: 8px 0;
    /* Fix dropdown positioning */
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    margin-top: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 16px !important;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

    .language-option:hover {
        background-color: #f8f9fa;
        color: #007bff !important;
    }

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #ddd;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
    }

        .header.scrolled .logo {
            height: 40px;
            width: 120px;
        }

        .header.scrolled .nav-link {
            padding: 8px 16px;
        }



/* Ensure dropdown doesn't get cut off */
.header-nav {
    overflow: visible;
}

.nav-menu {
    overflow: visible;
}

/* Fix for mobile */
@media (max-width: 768px) {
    .language-dropdown {
        order: -1;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .language-toggle {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 16px !important;
        justify-content: space-between;
    }

    .language-options {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .language-dropdown.active .language-options {
        display: block;
    }

    .language-dropdown:not(.active) .language-options {
        display: none;
    }

    .language-option {
        color: white !important;
        padding: 12px 16px !important;
        margin: 0;
        border-radius: 6px;
    }

        .language-option:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white !important;
        }

    

    .header.scrolled {
        padding: 5px 0;
    }

        .header.scrolled .logo {
            height: auto;
            width: 105px;
        }
}

html {
    scroll-behavior: smooth;
}

.hero {
    margin-top: -80px;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero {
        margin-top: -70px;
        padding-top: 70px;
    }
}
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        margin-top: 10px;
        border-radius: 8px;
        /* eski */
        /* max-height: 0; */
        /* overflow: hidden; */

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999999 !important;
    }

    .dropdown.active .dropdown-content {
        /* eski: 300px */
        max-height: 600px; /* daha büyük limit veriyoruz */
        overflow-y: auto; /* fazla olursa kendi içinde scroll yapsın */
    }

    .dropdown-content a {
        color: white;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100dvh - 20px); 
        background: #1e3a8a;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        z-index: 2000;
        padding: 80px 20px 40px 20px; 
        overflow-y: auto;
        overscroll-behavior: contain; /* ✅ mobilde momentum scroll’ı yumuşatır */
        -webkit-overflow-scrolling: touch; /* ✅ iOS’ta kaydırmayı doğal hale getirir */
    }

        .nav-menu.active {
            display: flex;
        }
}
