/* Home Page Specific Styles */

/* ==========================================================================
   Hero Section (Premium Swiper Slider)
   ========================================================================== */
.hero-slider {
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background-color: var(--color-navy-dark);
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    /* Avoid CLS by keeping explicit bounding box */
    min-height: 700px;
}

.hero-slide__bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Subtle parallax zoom effect on active slide */
.swiper-slide-active .hero-slide__bg-media {
    transform: scale(1.04);
}

.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-navy-overlay) 0%, rgba(13, 20, 69, 0.4) 60%, transparent 100%);
    z-index: 2;
}

.hero-slide__content-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.hero__content {
    color: var(--color-white);
    max-width: 750px;
    padding-left: 4vw;
}

.hero__title {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.3s;
}

.hero__desc {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-5);
    max-width: 580px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.5s;
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.7s;
}

/* Activate content transitions only on active slide */
.swiper-slide-active .hero__title,
.swiper-slide-active .hero__desc,
.swiper-slide-active .hero__actions {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Swiper Controls (Apple-style Premium Feel) */
.swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.2) !important;
    height: 4px !important;
    top: auto !important;
    bottom: 0 !important;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--color-primary-red) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-white) !important;
    opacity: 0.5;
    transition: all var(--transition-fast);
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next i,
.swiper-button-prev i {
    font-size: 24px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* --- Hero Responsive (Mobile-First Fix) --- */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }
    .hero__desc {
        font-size: 1.1rem;
    }
    .hero__content {
        padding-left: 3vw;
        padding-right: 3vw;
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 100svh;
    }
    .hero-slide {
        min-height: 100svh;
    }
    .hero__title {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
    }
    .hero__desc {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero__content {
        padding-left: 5vw;
        padding-right: 5vw;
        max-width: 100%;
    }
    .hero__actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .hero__desc {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Reference Logos - Infinite Marquee
   ========================================================================== */
.logos-marquee {
    overflow: hidden;
    padding: var(--space-8) 0;
    background-color: var(--color-bg-cool-gray);
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-navy-dark);
    opacity: 0.25;
    transition: color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    cursor: default;
}

.marquee-logo:hover {
    color: var(--color-primary-red);
    opacity: 1;
    transform: scale(1.05);
}

/* --- Logo görsel kartları --- */
.marquee-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 160px;
    height: 70px;
    padding: 8px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    opacity: 0.75;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.marquee-logo-wrapper:hover {
    opacity: 1;
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.marquee-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    object-position: center;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Projects Gallery - Architectural / Editorial Approach (Avant-Garde)
   ========================================================================== */
.projects-accordion-section {
    background-color: var(--color-navy-dark);
    padding: var(--space-8) 0;
    color: var(--color-white);
}

.projects-accordion-section .section-title {
    color: var(--color-white);
}

.projects-accordion-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.accordion-gallery.architectural {
    display: flex;
    height: 600px;
    width: 100%;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.arch-slide {
    position: relative;
    flex: 1;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--color-navy-dark);
}

.arch-slide:last-child {
    border-right: none;
}

.arch-slide:hover {
    flex: 3.5;
}

.arch-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: opacity 0.8s ease, transform 10s linear, filter 0.8s ease;
    transform: scale(1);
    z-index: 1;
}

.arch-slide:hover .arch-slide__bg {
    opacity: 0.8;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.arch-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 20, 69, 0.95) 0%, transparent 60%);
    z-index: 2;
    transition: background 0.8s ease;
}

.arch-slide:hover .arch-slide__overlay {
    background: linear-gradient(0deg, rgba(13, 20, 69, 0.85) 0%, rgba(13, 20, 69, 0.2) 100%);
}

/* --- Collapsed State (Dikey Metin) --- */
.arch-slide__collapsed {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.arch-slide:hover .arch-slide__collapsed {
    opacity: 0;
    pointer-events: none;
}

.arch-slide__number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-primary-red);
}

.arch-slide__vert {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-white);
    white-space: nowrap;
}

/* --- Expanded State --- */
.arch-slide__expanded {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-5);
    right: var(--space-5);
    z-index: 4;
    display: flex;
    flex-direction: column;
    transform: translateX(-40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 300px;
}

.arch-slide:hover .arch-slide__expanded {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}

.arch-slide__number-large {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-red);
    margin-bottom: var(--space-2);
    letter-spacing: 2px;
}

.arch-slide__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.arch-slide__desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 80%;
    margin-bottom: var(--space-4);
}

.arch-slide__link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.arch-slide__link:hover {
    color: var(--color-primary-red);
}

/* ==========================================================================
   Responsive Logic for Architectural Gallery
   ========================================================================== */
@media (max-width: 992px) {
    .accordion-gallery.architectural {
        flex-direction: column;
        height: 700px;
    }

    .arch-slide {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .arch-slide:last-child {
        border-bottom: none;
    }

    .arch-slide__collapsed {
        flex-direction: row;
        padding: 0 var(--space-4);
    }

    .arch-slide__vert {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 2px;
    }

    .arch-slide__expanded {
        bottom: var(--space-3);
        left: var(--space-3);
        right: var(--space-3);
    }

    .arch-slide__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .accordion-gallery.architectural {
        height: auto;
        display: block;
        border: none;
    }

    .arch-slide {
        height: 300px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: var(--space-2);
        display: block;
    }

    .arch-slide__bg {
        filter: grayscale(0%);
        opacity: 0.6;
    }

    .arch-slide__collapsed {
        display: none;
    }

    .arch-slide__expanded {
        opacity: 1;
        visibility: visible;
        transform: none;
        bottom: var(--space-3);
        left: var(--space-3);
    }

    .arch-slide__title {
        font-size: 2rem;
        margin-bottom: var(--space-1);
    }

    .arch-slide__desc {
        max-width: 100%;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Premium Contact CTA (Architectural Layout)
   ========================================================================== */
.architectural-contact {
    background-color: var(--color-white);
    padding: var(--space-8) 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Editorial Oversized Watermark */
.architectural-contact::before {
    content: "Vizyon Pro";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -5px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(6, 9, 31, 0.12);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-6);
    align-items: stretch;
}

/* Left: Map Component */
.contact-map-wrapper {
    position: relative;
    background-color: var(--color-bg-cool-gray);
    min-height: 500px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-map {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
}

.map-overlay-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: var(--space-4) var(--space-5);
    min-width: 320px;
}

.panel-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary-red);
    display: block;
    margin-bottom: var(--space-2);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--space-2);
    letter-spacing: -0.5px;
    color: var(--color-white);
}

.panel-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.panel-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-primary-red);
    padding-bottom: 2px;
    text-transform: lowercase;
}

.panel-link:hover {
    color: var(--color-primary-red);
}

/* Right: Form Component */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: var(--space-4);
}

.contact-form-wrapper .section-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--color-navy-dark);
}

.editorial-form {
    margin-top: var(--space-5);
}

.editorial-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.editorial-form .form-group {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
}

.static-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(13, 20, 69, 0.7);
    margin-bottom: 8px;
}

.raw-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 0 12px 0;
    font-size: 1.1rem;
    color: var(--color-navy-dark);
    font-family: inherit;
    border-radius: 0;
    transition: border-color var(--transition-fast);
}

.raw-input:focus {
    outline: none;
    border-color: var(--color-primary-red);
}

.raw-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

textarea.raw-input {
    resize: none;
}

.sharp-btn {
    border-radius: 0;
    margin-top: var(--space-2);
    padding: 16px 40px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sharp-btn i {
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 400px;
        order: 2;
    }

    .contact-form-wrapper {
        padding-left: 0;
        order: 1;
    }

    .contact-form-wrapper .section-title {
        font-size: 2.5rem;
    }

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

/* ==========================================================================
   Human-Grade Editorial Datasheet (Stats Section) — Home Page
   ========================================================================== */
.stats-datasheet {
    position: relative;
    overflow: hidden;
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-datasheet__bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(55%) contrast(1.05) saturate(0.9);
}

.stats-datasheet__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(13, 20, 69, 0.92) 0%, rgba(13, 20, 69, 0.58) 55%, rgba(13, 20, 69, 0.92) 100%);
}

.stats-datasheet__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.12;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    filter: brightness(0.5);
}

.stats-datasheet__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 0;
}

.stats-datasheet__intro {
    padding-right: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-intro-title {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-3);
    color: var(--color-white);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.stats-intro-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.stats-datasheet__item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-datasheet__val {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--space-2);
}

.stats-datasheet__num {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--color-primary-red);
}

.stats-datasheet__unit {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary-red);
    margin-left: 4px;
}

.stats-datasheet__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.stats-datasheet__item:hover .stats-datasheet__num {
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

@media (max-width: 1024px) {
    .stats-datasheet__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-datasheet__intro {
        grid-column: span 2;
        padding-right: 0;
        margin-bottom: var(--space-5);
        padding-bottom: var(--space-5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stats-datasheet__item:nth-child(2) {
        border-left: none;
    }
}

@media (max-width: 576px) {
    .stats-datasheet__grid {
        grid-template-columns: 1fr;
    }

    .stats-datasheet__intro {
        grid-column: span 1;
    }

    .stats-datasheet__item {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: var(--space-4) 0;
    }

    .stats-datasheet__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
