﻿/* ══════════════════════════════════════════════
   GALLARDO GROUP — index2.css
   Mobile-first responsive fixes
   ══════════════════════════════════════════════ */

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: #000;
    /* Navbar yüksekliği kadar negatif margin — masaüstü */
    margin-top: -100px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    will-change: opacity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: white;
    /* Navbar yüksekliği (100px) + istenen padding */
    padding: 2rem 2rem 2rem 2rem;
    padding-top: calc(100px + 2.5rem);
    z-index: 2;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text-content {
    max-width: 650px;
    background: rgba(11, 50, 109, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.75rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-label {
    display: inline-block;
    padding: .45rem 1.2rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    animation: fadeInDown .8s ease-out both;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    animation: fadeInLeft 1s ease-out both;
    color: white;
    /* Uzun başlıklar için overflow kontrolü */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .hero-title span {
        color: white;
        display: block;
    }

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    opacity: .92;
    animation: fadeInLeft 1.2s ease-out both;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease-out both;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 2.25rem;
    background: #0b326d;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 50px;
    transition: all .3s ease;
    border: 2px solid #0b326d;
    white-space: nowrap;
}

    .hero-btn-primary:hover {
        background: #14417d;
        border-color: #14417d;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(11,50,109,.45);
    }

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 2.25rem;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 50px;
    transition: all .3s ease;
    border: 2px solid rgba(255,255,255,.85);
    white-space: nowrap;
}

    .hero-btn-secondary:hover {
        background: white;
        color: #0b326d;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255,255,255,.3);
    }

.hero-nav {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .65rem;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s ease;
    border: none;
}

    .hero-dot.active {
        width: 28px;
        border-radius: 5px;
        background: white;
    }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── PROJECTS SECTION ─────────────────────────────────────── */
.projects-section {
    padding: 6rem 2rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    padding: .45rem 1.2rem;
    background: rgba(11,50,109,.08);
    color: #0b326d;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .65rem;
}

.section-description {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(0,0,0,.07);
    contain: layout style;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,.12);
    }

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 5;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    background: #f0f0f0;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: .45rem .9rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: #0b326d;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.project-body {
    padding: 1.75rem 2rem;
}

.project-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .4rem;
}

.project-location {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #6c757d;
    font-size: .88rem;
    margin-bottom: .9rem;
}

.project-description {
    color: #495057;
    line-height: 1.62;
    margin-bottom: 1.4rem;
    font-size: .93rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #0b326d;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: gap .3s ease;
}

    .project-link:hover {
        gap: .7rem;
    }


/* ── TESTIMONIALS SECTION ────────────────────────────────── */
.testimonials-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0b326d 0%, #06203a 100%);
    position: relative;
    overflow: hidden;
}

    .testimonials-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.08)"/></svg>');
        opacity: .3;
        pointer-events: none;
    }

    .testimonials-section .section-label {
        background: rgba(255,255,255,.15);
        color: white;
    }

    .testimonials-section .section-title {
        color: white;
    }

    .testimonials-section .section-description {
        color: rgba(255,255,255,.88);
    }

.testimonials-carousel {
    max-width: 860px;
    margin: 3.5rem auto 0;
    position: relative;
}

/* Dinamik yükseklik — içerik kadar büyür */
.testimonial-slider {
    position: relative;
    /* Sabit height YOK — auto ile içerik belirler */
    min-height: 320px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(60px) scale(.96);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    will-change: transform, opacity;
    /* visibility hidden ile boş alan kapla */
    visibility: hidden;
}

    .testimonial-slide.active {
        opacity: 1;
        transform: translateX(0) scale(1);
        pointer-events: auto;
        z-index: 2;
        position: relative; /* aktif slide layout'a katılır → otomatik yükseklik */
        visibility: visible;
    }

    .testimonial-slide.prev {
        opacity: 0;
        transform: translateX(-60px) scale(.96);
        visibility: hidden;
    }

.testimonial-card-new {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 2.75rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.2);
}

.quote-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.4rem;
    opacity: .14;
}

    .quote-icon svg {
        width: 100%;
        height: 100%;
        fill: #0b326d;
    }

.testimonial-text-new {
    color: #2c3e50;
    font-size: 1.15rem;
    line-height: 1.82;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    margin-bottom: 2.25rem;
    text-align: center;
    /* Metin kesilme yok — tam görünür */
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
}

.client-info-new {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.75rem;
    border-top: 2px solid rgba(11,50,109,.1);
}

.client-avatar-new {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b326d, #14417d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(11,50,109,.3);
}

.client-details {
    flex: 1;
    text-align: left;
}

.client-name-new {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
    margin-bottom: .2rem;
}

.rating-new {
    color: #ffc107;
    font-size: .95rem;
    letter-spacing: 2px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.3);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .testimonial-nav-btn:hover {
        background: white;
        color: #0b326d;
        transform: scale(1.1);
    }

.testimonial-dots {
    display: flex;
    gap: .65rem;
}

.testimonial-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: all .3s ease;
}

    .testimonial-dot.active {
        width: 32px;
        border-radius: 6px;
        background: white;
    }


/* ── GALLARDO TIMES ─────────────────────────────────────── */
.gallardo-times-section {
    padding: 6rem 2rem;
    background: #f4f6f9;
    position: relative;
    overflow: hidden;
}

    .gallardo-times-section::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(11,50,109,.06) 0%, transparent 70%);
        pointer-events: none;
    }

    .gallardo-times-section .section-label {
        background: rgba(11,50,109,.08);
        color: #0b326d;
    }

.gt-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

.gt-title-line {
    flex: 1;
    max-width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0b326d);
    border-radius: 2px;
}

    .gt-title-line.right {
        background: linear-gradient(90deg, #0b326d, transparent);
    }

.gt-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0b326d;
    letter-spacing: -.5px;
    margin: 0;
}

    .gt-section-title span {
        color: #c8a84b;
    }

.gt-belt-outer {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 3rem auto 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    /* Sabit yükseklik yerine min-height — kart boyutuna göre */
    min-height: 360px;
}

    .gt-belt-outer:hover .gt-belt {
        animation-play-state: paused;
    }

.gt-belt {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: gtScroll var(--gt-duration, 40s) linear infinite;
    will-change: transform;
    padding: 1rem 0;
}

@keyframes gtScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--gt-shift, -50%));
    }
}

.gt-card {
    flex: 0 0 300px;
    width: 300px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(11,50,109,.09);
    border: 1px solid rgba(11,50,109,.07);
    transition: transform .3s ease, box-shadow .3s ease;
    /* Instagram embed için min-height */
    min-height: 350px;
    contain: layout style;
}

    .gt-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 40px rgba(11,50,109,.16);
    }

    /* Instagram embed içini doğru hizala */
    .gt-card .instagram-media {
        min-width: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

.gt-ig-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 3px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — BÜYÜK EKRANLAR
   ══════════════════════════════════════════════ */
@media (min-width: 1920px) {
    .hero-section {
        max-height: 1000px;
    }

    .hero-title {
        font-size: 4.8rem;
    }

    .projects-grid {
        max-width: 1600px;
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-carousel {
        max-width: 1100px;
    }

    .section-title {
        font-size: 2.9rem;
    }

    .section-description {
        font-size: 1.15rem;
        max-width: 680px;
    }
}

@media (min-width: 2560px) {
    .hero-section {
        max-height: 1100px;
    }

    .hero-title {
        font-size: 5.4rem;
    }

    .projects-grid, .testimonials-carousel {
        max-width: 1800px;
    }

    .projects-grid {
        gap: 2.75rem;
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  (max 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .testimonial-card-new {
        padding: 2.25rem 2.5rem;
    }

    .testimonial-text-new {
        font-size: 1.1rem;
    }

    .gt-card {
        flex: 0 0 280px;
        width: 280px;
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — MOBİL  (max 768px)
   Navbar yüksekliği mobilde ~80px
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* --- HERO --- */
    .hero-section {
        height: 100svh; /* small viewport height — adres çubuğu hariç */
        min-height: 520px;
        max-height: 800px;
        margin-top: -80px; /* mobil navbar yüksekliğine göre */
    }

    .hero-content {
        padding: 1.5rem 1.25rem 5rem 1.25rem;
        padding-top: calc(80px + 2rem); /* navbar + boşluk */
        align-items: flex-end; /* metin kutusu biraz aşağıda durur */
    }

    .hero-text-content {
        max-width: 100%;
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
    }

    .hero-title {
        font-size: 2rem;
        -webkit-line-clamp: 4;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: .95rem;
        -webkit-line-clamp: 3;
        margin-bottom: 1.75rem;
    }

    .hero-label {
        font-size: .72rem;
        padding: .38rem .9rem;
        margin-bottom: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: .85rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: .9rem 1.75rem;
        font-size: .9rem;
    }

    .hero-nav {
        bottom: 1.75rem;
    }

    /* --- PROJECTS --- */
    .projects-section {
        padding: 4rem 1.25rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-description {
        font-size: .95rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-body {
        padding: 1.4rem 1.5rem;
    }

    /* --- TESTIMONIALS --- */
    .testimonials-section {
        padding: 4rem 1.25rem;
    }

    .testimonials-carousel {
        margin-top: 2.75rem;
    }

    .testimonial-slider {
        min-height: 280px;
    }

    .testimonial-card-new {
        padding: 1.75rem 1.5rem;
        border-radius: 18px;
    }

    .testimonial-text-new {
        font-size: 1rem;
        line-height: 1.76;
        margin-bottom: 1.75rem;
    }

    .quote-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 1rem;
    }

    .testimonial-controls {
        margin-top: 2rem;
        gap: 1rem;
    }

    .testimonial-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* --- GALLARDO TIMES --- */
    .gallardo-times-section {
        padding: 4rem 0; /* yatay padding sıfır — kart kırpılmasın */
    }

        /* section-header içini ortalı tut */
        .gallardo-times-section .section-header {
            padding: 0 1.25rem;
        }

    .gt-section-title {
        font-size: 1.85rem;
    }

    .gt-belt-outer {
        margin-top: 2.25rem;
        min-height: 300px;
        /* Mobilde maske çok dar görünmesin */
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    }

    .gt-belt {
        gap: 1rem;
        padding: .75rem 0;
    }

    .gt-card {
        flex: 0 0 252px;
        width: 252px;
        min-height: 300px;
        border-radius: 14px;
    }

    .gt-ig-placeholder {
        height: 300px;
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — KÜÇÜK MOBİL  (max 480px)
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* --- HERO --- */
    .hero-section {
        margin-top: -72px;
        min-height: 480px;
    }

    .hero-content {
        padding: 1.25rem 1rem 4.5rem 1rem;
        padding-top: calc(72px + 1.75rem);
    }

    .hero-text-content {
        padding: 1.4rem 1.25rem;
        border-radius: 14px;
    }

    .hero-title {
        font-size: 1.7rem;
        margin-bottom: .85rem;
    }

    .hero-description {
        font-size: .9rem;
        margin-bottom: 1.5rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: .82rem 1.5rem;
        font-size: .85rem;
    }

    /* --- PROJECTS --- */
    .projects-section {
        padding: 3.5rem 1rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .project-name {
        font-size: 1.2rem;
    }

    .project-body {
        padding: 1.25rem;
    }

    /* --- TESTIMONIALS --- */
    .testimonials-section {
        padding: 3.5rem 1rem;
    }

    .testimonial-card-new {
        padding: 1.4rem 1.25rem;
        border-radius: 16px;
    }

    .testimonial-text-new {
        font-size: .95rem;
        line-height: 1.72;
        margin-bottom: 1.5rem;
    }

    .client-info-new {
        flex-direction: column;
        text-align: center;
        gap: .85rem;
    }

    .client-details {
        text-align: center;
    }

    .client-avatar-new {
        width: 56px;
        height: 56px;
        font-size: 1.15rem;
    }

    .testimonial-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    /* --- GALLARDO TIMES --- */
    .gallardo-times-section {
        padding: 3.5rem 0;
    }

        .gallardo-times-section .section-header {
            padding: 0 1rem;
        }

    .gt-section-title {
        font-size: 1.6rem;
    }

    .gt-card {
        flex: 0 0 230px;
        width: 230px;
        min-height: 280px;
        border-radius: 12px;
    }

    .gt-ig-placeholder {
        height: 280px;
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — ÇOK KÜÇÜK (max 360px)
   ══════════════════════════════════════════════ */
@media (max-width: 360px) {
    .hero-section {
        margin-top: -68px;
        min-height: 440px;
    }

    .hero-content {
        padding-top: calc(68px + 1.5rem);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: .85rem;
    }

    .hero-text-content {
        padding: 1.2rem 1rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: .75rem 1.2rem;
        font-size: .82rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .gt-card {
        flex: 0 0 210px;
        width: 210px;
    }

    .testimonial-text-new {
        font-size: .88rem;
    }
}
