:root {
    --primary-color: #0077b6;
    --secondary-color: #03045e;
    --accent-color: #00b4d8;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 70px;
}

/* Header specific container to allow more width */
header .container {
    max-width: 1400px;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0 auto;
    /* Center the menu */
}

.nav-links li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    white-space: nowrap;
    /* Prevent "Ana Sayfa" breakage */
    padding: 5px 0;
}

/* Animated Underline Effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-btn.desktop-only {
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    white-space: nowrap;
    /* Prevent button text wrap */
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn.desktop-only:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Services Section */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.service-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item {
    position: relative;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}


/* Features Section */
.features-section {
    background: var(--secondary-color);
    color: var(--light-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-list li i {
    width: 50px;
    height: 50px;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-list h5 {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-list a,
.contact-list p {
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #1a1b1e;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Why Us Section */
.why-us-section {
    background: var(--secondary-color);
    color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.why-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.05), rgba(3, 4, 94, 0.05));
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-buttons .btn i {
    margin-right: 8px;
}

/* Footer Enhancements */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-col ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* Active Navigation Link */
.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .nav-btn.desktop-only {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 260px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Dropdown Fix */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        max-height: 300px;
        /* Scrollable in mobile too */
        overflow-y: auto;
    }

    .dropdown-menu li a {
        padding-left: 30px;
        background: #f9f9f9;
        font-size: 0.85rem;
    }
}