/* Gazioğlu Otomotiv - Özel CSS Stilleri */

/* ===== GENEL AYARLAR ===== */
:root {
    --primary-red: #DC2626;
    --primary-red-dark: #B91C1C;
    --primary-red-light: #FEE2E2;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: #111827;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.55) 0%, rgba(31, 41, 55, 0.45) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== BUTONLAR ===== */
.btn-primary-custom {
    background: var(--primary-red);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary-custom:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--gray-800);
    transform: translateY(-2px);
}

/* ===== WHATSAPP BUTONU ===== */
.whatsapp-float {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* ===== PHONE FLOAT BUTTON & MENU ===== */
.phone-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse-phone 2s infinite;
}

.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.5);
}

.phone-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Phone Menu Popup */
.phone-menu {
    position: fixed;
    bottom: 2rem;
    right: 6.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 260px;
    overflow: hidden;
    transform: scale(0.9) translateX(10px);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phone-menu.active {
    transform: scale(1) translateX(0);
    opacity: 1;
    visibility: visible;
}

.phone-menu-header {
    background: #DC2626;
    color: white;
    padding: 0.875rem 1rem;
    font-weight: 700;
    text-align: center;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.phone-menu-items {
    padding: 0.5rem 0;
}

.phone-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #1F2937;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
}

.phone-menu-item:last-child {
    border-bottom: none;
}

.phone-menu-item:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.phone-menu-item svg {
    width: 18px;
    height: 18px;
    color: #DC2626;
    flex-shrink: 0;
}

/* ===== ARAÇ KARTLARI ===== */
.vehicle-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vehicle-card .image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.vehicle-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .image-container img {
    transform: scale(1.08);
}

.vehicle-card .badge-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-red);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-card .card-content {
    padding: 1.5rem;
}

.vehicle-card .vehicle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.vehicle-card .vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.vehicle-card .spec-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.vehicle-card .spec-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-red);
}

/* ===== VİNÇ KARTLARI ===== */
.crane-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.crane-card .swiper {
    aspect-ratio: 16/10;
}

.crane-card .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crane-card .crane-content {
    padding: 2rem;
}

.crane-card .crane-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.crane-card .crane-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.crane-card .crane-spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.crane-card .crane-spec svg {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
}

/* ===== SECTION BAŞLIKLARI ===== */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-800);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== ÖZELLİK KARTLARI ===== */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background: var(--primary-red);
}

.feature-card .icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper svg {
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== VİNÇ TANITIM SECTION ===== */
.crane-showcase {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    position: relative;
    overflow: hidden;
}

.crane-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: var(--primary-red);
    opacity: 0.1;
    transform: rotate(15deg);
}

/* ===== FİLTRE BUTONLARI ===== */
.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--gray-100);
    color: var(--gray-800);
    border: none;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-red) !important;
}

.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== İLETİŞİM FORMU ===== */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-light);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== SAYFA HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    padding: 9.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--primary-red);
    opacity: 0.1;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* ===== SWIPER ÖZEL STİLLER ===== */
.swiper-pagination-bullet {
    background: var(--gray-500);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-red);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== HAMBURGER MENÜ ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBİL MENÜ ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-red);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: transparent;
    border-radius: 0;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: white;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

#modalImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    #imageModal {
        z-index: 11000 !important;
    }

    .featured-modal-content {
        background: #ffffff;
        border-radius: 1.5rem;
        max-width: 1200px;
        width: 92%;
        max-height: 85vh;
        overflow-y: auto;
        padding: 2.5rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        position: relative;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        display: block;
        /* Overrides display: flex */
    }

    .modal-overlay.active .featured-modal-content {
        transform: scale(1);
    }

    .featured-modal-content .modal-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 50;
        color: #1f2937;
        transition: all 0.2s ease;
    }

    .featured-modal-content .modal-close:hover {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(1.05);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1280px) {
        .hamburger {
            display: flex;
        }

        .nav-desktop {
            display: none;
        }

        .crane-card .crane-specs {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .hero-section {
            min-height: 80vh;
        }

        .vehicle-card .card-content {
            padding: 1rem;
        }

        .crane-card .crane-content {
            padding: 1.5rem;
        }

        .feature-card {
            padding: 1.5rem;
        }

        .whatsapp-float {
            width: 50px;
            height: 50px;
            bottom: 5.5rem;
            right: 1.5rem;
        }

        .whatsapp-float svg {
            width: 26px;
            height: 26px;
        }

        .phone-float {
            width: 50px;
            height: 50px;
            bottom: 1.5rem;
            right: 1.5rem;
        }

        .phone-float svg {
            width: 24px;
            height: 24px;
        }

        .phone-menu {
            bottom: 1.5rem;
            right: 5.25rem;
            width: 220px;
        }
    }

    @media (max-width: 480px) {

        .btn-primary-custom,
        .btn-outline-custom {
            padding: 0.75rem 1.5rem;
            font-size: 0.875rem;
        }

        .section-title {
            font-size: 1.5rem;
        }
    }

    /* ===== ANIMASYONLAR ===== */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .animate-fade-in-up {
        animation: fadeInUp 0.6s ease forwards;
    }

    .animate-fade-in-left {
        animation: fadeInLeft 0.6s ease forwards;
    }

    .animate-fade-in-right {
        animation: fadeInRight 0.6s ease forwards;
    }

    /* Animasyon gecikmeli sınıflar */
    .delay-100 {
        animation-delay: 0.1s;
    }

    .delay-200 {
        animation-delay: 0.2s;
    }

    .delay-300 {
        animation-delay: 0.3s;
    }

    .delay-400 {
        animation-delay: 0.4s;
    }

    .delay-500 {
        animation-delay: 0.5s;
    }

    /* ===== LAZY LOAD ===== */
    .lazy-load {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .lazy-load.loaded {
        opacity: 1;
    }

    /* ===== SCROLL INDICATOR ===== */
    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        animation: bounce 2s infinite;
        z-index: 10;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        40% {
            transform: translateX(-50%) translateY(-15px);
        }

        60% {
            transform: translateX(-50%) translateY(-7px);
        }
    }

    /* ===== LOADING ===== */
    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid var(--gray-200);
        border-top-color: var(--primary-red);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
}