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

:root {
    --primary: #c62828;
    /* Slightly deeper red for a more premium look */
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary: #2c3e50;
    /* Dark blue-gray for contrast */
    --black: #111111;
    --black-dark: #000000;
    --black-light: #1f1f1f;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #f9fafb;
    --gray-lighter: #f3f4f6;
    --gray-dark: #4b5563;
    --text-color: #374151;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--white);
    font-size: 15px;
    /* Slightly smaller base font */
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.header-top {
    background: var(--black-light);
    color: var(--white);
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-contact {
    display: flex;
    gap: 1.5rem;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.header-contact a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    color: var(--white);
    transition: color 0.3s;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--primary-light);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

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

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--black-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding-top: 120px;
    position: relative;
    height: 85vh;
    /* Yeni nesil tarayıcılar için dinamik yükseklik */
    height: 85dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    /* Arka planın taşmasını önler */
}

/* Arka plan katmanı */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Mevcut gradient ve görselinizi buraya taşıyoruz */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        url('assets/images/gallery/1.jpeg');

    background-size: cover;
    background-position: center;

    /* Safari Fix: Burası kritik */
    position: fixed;
    z-index: -1;

    /* Titremeyi önleyen optimizasyonlar */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary-light);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 2rem 0;
    max-width: 900px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(198, 40, 40, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(198, 40, 40, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sections General */
section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--black);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-header .underline {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
#hakkimizda {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: 700;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid var(--primary);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: var(--white);
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-box p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--gray-dark);
}

/* Services Section */
#hizmetler {
    background: var(--gray-lighter);
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--primary);
}

.service-icon {
    padding: 2rem 2rem 1rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.service-content {
    padding: 0 2rem 2rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--black);
    font-weight: 700;
}

.service-content p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    min-height: 400px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Dışarı taşmaları engeller */
    width: 100%;
}

.parallax-section--gallery2 {
    background-image: url('assets/images/gallery/2.jpeg');
}

/* Arka planı bu sanal katman yönetecek */
.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Görsel Bilgileri */
    /* background-image: url('resim-yolunuz.jpg'); */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* Safari Fix: Burası en kritik nokta */
    /* Fixed yerine absolute + z-index kullanıyoruz */
    position: fixed;

    z-index: -1;
    /* İçeriğin arkasında kalması için */

    /* Safari Performans Optimizasyonu */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding-top: 60px;
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.parallax-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Gallery & References */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.references-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.reference-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 200px;
    /* Fixed width for smaller logos */
    height: 140px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    background: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
    border-radius: 4px;
}

/* Fleet Section */
#filo {
    background: var(--white);
}

.fleet-highlight {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.2);
}

.fleet-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fleet-highlight p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--black-light);
    color: #d1d5db;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;
    line-height: 1.7;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .header-top {
        display: none;
        /* Simplify header on mobile */
    }

    nav {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        border-top: 1px solid var(--gray-light);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        color: var(--black);
    }

    .hero {
        height: 60vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-features {
        gap: 1rem;
    }

    .feature-box {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .fleet-text-content {
        padding: 1rem !important;
    }

    .parallax-content h1 {
        font-size: 3rem !important;
    }

    .hero-tags {
        gap: 0.5rem;
        margin: 1.5rem 0;
        margin-bottom: 2.5rem;

    }

    .hero-tag {
        padding: .3rem 0.5rem;
        font-size: .75rem;
        font-weight: 500;
    }

    .hero-content {
        padding-top: 6rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .hero {
        height: auto !important;
        padding-top: 2rem;
        /* padding-top: 2rem; */
        /* padding-bottom: 2rem; */
    }

    section {
        padding: 3rem 0;
    }

    .references-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .reference-item {
        width: 100%;
    }

    .parallax-section {
        min-height: 300px;
    }

    .container {
        padding: 0rem 1rem;
    }


}

/* Contact Section */
#iletisim {
    background: var(--gray-lighter);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
    height: fit-content;
}

.contact-info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--black);
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.2);
}

.contact-details h4 {
    color: var(--black);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

/* Responsive for Contact */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-box,
    .contact-form {
        padding: 1.5rem;
    }
}

.fleet-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.fleet-image-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fleet-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fleet-image-item:hover img {
    transform: scale(1.05);
}

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

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.float-btn {
    flex: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.float-btn i {
    font-size: 1.4rem;
}

.float-btn:hover {
    color: #fff;
}

.float-btn.whatsapp {
    background-color: #25d366;
}

.float-btn.whatsapp:hover {
    background-color: #128c7e;
}

.float-btn.phone {
    background-color: #0d6efd;
}

.float-btn.phone:hover {
    background-color: #0b5ed7;
}

/* Add padding to body so buttons don't cover content */
body {
    padding-bottom: 60px;
}

@media (min-width: 769px) {
    .floating-contacts {
        bottom: 2rem;
        right: 2rem;
        left: auto;
        width: auto;
        flex-direction: row;
        gap: 1rem;
        box-shadow: none;
    }

    .float-btn {
        width: auto;
        height: 50px;
        padding: 0 1.5rem;
        border-radius: 50px;
        /* Pill shape on desktop */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .float-btn:hover {
        transform: translateY(-2px);
    }

    body {
        padding-bottom: 0;
    }
}