﻿.hero {
    height: 75vh;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    color: white;
    /* CLS önleme: yüksekliği sabit tut */
    contain: layout;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Her slide: img'yi kapla */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Gradient overlay — pseudo element üzerinden */
}

    .hero-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(rgba(20, 20, 35, 0.7), rgba(188, 24, 24, 0.7));
        z-index: 1;
    }

    .hero-slide.active {
        opacity: 1;
    }

/* <img> — tüm slide'ı kaplar, aspect-ratio ile CLS önlenir */
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* decoding ve loading attribute'lar ASPX'te set ediliyor */
}

.hero-content-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-content {
    max-width: 750px;
    padding: 1.5rem 2rem;
    text-align: center;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Dokunma hedefi büyüt (erişilebilirlik) */
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    padding: 5px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

    .carousel-dot::after {
        content: '';
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: 2px solid white;
        transition: all 0.3s ease;
        display: block;
    }

    .carousel-dot.active::after {
        background: white;
        transform: scale(1.2);
    }

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #bc1818, #141423);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(188, 24, 24, 0.3);
        color: white;
        text-decoration: none;
    }

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .cta-button:hover::before {
        left: 100%;
    }

/* Floating elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 5;
    /* pointer-events kapalı — LCP'yi engellemesin */
    pointer-events: none;
}

    .floating-element:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        top: 60%;
        right: 10%;
        animation-delay: 2s;
    }

    .floating-element:nth-child(3) {
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: #141423;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(45deg, #bc1818, #141423);
            border-radius: 2px;
        }

    .section-title p {
        color: rgba(20, 20, 35, 0.65);
        font-size: 1.05rem;
        margin-top: 1rem;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(20, 20, 35, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(45deg, #bc1818, #141423);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(20, 20, 35, 0.15);
    }

        .service-card:hover::before {
            transform: translateX(0);
        }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #bc1818, #141423);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    color: #141423;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: rgba(20, 20, 35, 0.7);
    line-height: 1.6;
}

/* ================================================================
   FEATURED PRODUCTS SECTION
   ================================================================ */
.featured-products {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.products-grid-wide {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.product-card-wide {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(20, 20, 35, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    position: relative;
}

    .product-card-wide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(188, 24, 24, 0.02), rgba(20, 20, 35, 0.02));
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
        z-index: 1;
    }

    .product-card-wide:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 60px rgba(20, 20, 35, 0.15);
        text-decoration: none;
        color: inherit;
    }

        .product-card-wide:hover::before {
            opacity: 1;
        }

.product-media-wide {
    width: 55%;
    min-width: 500px;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* CLS önleme */
    aspect-ratio: 4/3;
}

    .product-media-wide::after {
        content: '';
        position: absolute;
        top: 0;
        right: -1px;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, rgba(188, 24, 24, 0.3) 0%, rgba(188, 24, 24, 0.6) 50%, rgba(188, 24, 24, 0.3) 100%);
        z-index: 2;
    }

    .product-media-wide .product-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: relative;
        z-index: 1;
    }

    .product-media-wide .product-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3rem;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    }

.product-card-wide:hover .product-media-wide .product-image {
    transform: scale(1.08);
}

.product-media-wide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card-wide:hover .product-media-wide::before {
    opacity: 1;
}

.product-card-content-wide {
    width: 45%;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

    .product-card-content-wide h3 {
        color: #141423;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        transition: color 0.3s ease;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

.product-card-wide:hover .product-card-content-wide h3 {
    color: #bc1818;
}

.product-card-content-wide .product-description-full {
    color: rgba(20, 20, 35, 0.75);
    line-height: 1.75;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: left;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 1rem;
}

    .product-card-content-wide .product-description-full::-webkit-scrollbar {
        width: 6px;
    }

    .product-card-content-wide .product-description-full::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 10px;
    }

    .product-card-content-wide .product-description-full::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #bc1818, #141423);
        border-radius: 10px;
    }

        .product-card-content-wide .product-description-full::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #d11a1a, #1a1a2e);
        }

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #bc1818;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    padding: 1rem 1.5rem;
    background: rgba(188, 24, 24, 0.05);
    border-radius: 12px;
    width: fit-content;
}

    .product-link i {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1rem;
    }

.product-card-wide:hover .product-link {
    background: rgba(188, 24, 24, 0.1);
    transform: translateX(4px);
}

    .product-card-wide:hover .product-link i {
        transform: translateX(8px);
    }

/* =============================================
   CONTACT CTA SECTION — fotoğraf + iletişim
   ============================================= */
.contact-cta-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0;
}

.contact-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Lazy load — ekran dışında */
}

.contact-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.78) 0%, rgba(188, 24, 24, 0.65) 100%);
    z-index: 1;
}

.contact-cta-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-cta-content {
    max-width: 680px;
    margin: 0 auto;
}

    .contact-cta-content h2 {
        color: #fff;
        font-size: 2.6rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .contact-cta-content p {
        color: rgba(255,255,255,0.9);
        font-size: 1.15rem;
        margin-bottom: 2.25rem;
        line-height: 1.7;
    }

.cta-button-light {
    background: #fff !important;
    color: #bc1818 !important;
    border: 2px solid #fff;
}

    .cta-button-light:hover {
        background: transparent !important;
        color: #fff !important;
        border-color: #fff;
        box-shadow: 0 10px 30px rgba(255,255,255,0.2) !important;
    }

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 1200px) {
    .product-media-wide {
        min-width: 450px;
    }

    .product-card-content-wide {
        padding: 2.5rem 3rem;
    }

        .product-card-content-wide h3 {
            font-size: 1.8rem;
        }
}

@media (max-width: 1024px) {
    .product-card-wide {
        flex-direction: column;
    }

    .product-media-wide {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 16 / 9;
        min-height: unset;
    }

        .product-media-wide::after {
            top: unset;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, rgba(188, 24, 24, 0.3) 0%, rgba(188, 24, 24, 0.6) 50%, rgba(188, 24, 24, 0.3) 100%);
        }

    .product-card-content-wide {
        width: 100%;
        padding: 2.5rem 2rem;
    }

        .product-card-content-wide h3 {
            font-size: 1.7rem;
        }

        .product-card-content-wide .product-description-full {
            font-size: 1rem;
            max-height: 200px;
        }

    .products-grid-wide {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 65vh;
        min-height: 380px;
    }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .contact-cta-section {
        min-height: 380px;
        padding: 4rem 1.5rem;
    }

    .contact-cta-content h2 {
        font-size: 2rem;
    }

    .contact-cta-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .featured-products {
        padding: 3rem 0;
    }

    .products-grid-wide {
        gap: 2rem;
    }

    .product-media-wide {
        aspect-ratio: 16 / 9;
    }

        .product-media-wide .product-image {
            padding: 2rem;
        }

    .product-card-content-wide {
        padding: 2rem 1.5rem;
    }

        .product-card-content-wide h3 {
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
        }

        .product-card-content-wide .product-description-full {
            font-size: 0.95rem;
            line-height: 1.65;
            margin-bottom: 1.5rem;
            max-height: 180px;
        }

    .product-link {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 340px;
    }

        .hero h1 {
            font-size: 1.7rem;
        }

        .hero p {
            font-size: 0.95rem;
        }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .featured-products {
        padding: 2.5rem 0;
    }

    .products-grid-wide {
        gap: 1.75rem;
    }

    .product-media-wide {
        aspect-ratio: 16 / 9;
    }

        .product-media-wide .product-image {
            padding: 1.5rem;
        }

    .product-card-content-wide {
        padding: 1.5rem 1.25rem;
    }

        .product-card-content-wide h3 {
            font-size: 1.35rem;
            letter-spacing: -0.3px;
        }

        .product-card-content-wide .product-description-full {
            font-size: 0.9rem;
            line-height: 1.6;
            max-height: 160px;
        }

    .product-link {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .contact-cta-section {
        min-height: 340px;
        padding: 3rem 1.25rem;
    }

    .contact-cta-content h2 {
        font-size: 1.7rem;
    }
}

/* =============================================
   MASTRON SOCIAL – INFINITE SCROLL CAROUSEL
   ============================================= */
.mastron-social-section {
    padding: 6rem 2rem;
    background: #f4f6f9;
    position: relative;
    overflow: hidden;
}

    .mastron-social-section::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(188,24,24,0.05) 0%, transparent 70%);
        pointer-events: none;
    }

.section-header-social {
    text-align: center;
    margin-bottom: 3rem;
}

.social-section-label {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(188, 24, 24, 0.08);
    color: #bc1818;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.social-section-description {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.ms-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ms-title-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #bc1818);
    border-radius: 2px;
}

    .ms-title-line.right {
        background: linear-gradient(90deg, #bc1818, transparent);
    }

.ms-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #141423;
    letter-spacing: -0.5px;
    margin: 0;
}

    .ms-section-title span {
        color: #bc1818;
    }

.ms-belt-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    -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%);
    min-height: 360px;
}

    .ms-belt-outer:hover .ms-belt {
        animation-play-state: paused;
    }

.ms-belt {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: max-content;
    gap: 1.5rem;
    padding: 1rem 0;
    animation: msScroll var(--ms-duration, 40s) linear infinite;
    will-change: transform;
}

@keyframes msScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--ms-shift, -50%));
    }
}

.ms-card {
    flex: 0 0 328px;
    width: 328px;
    min-width: 328px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(20,20,35,0.09);
    border: 1px solid rgba(20,20,35,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    contain: layout style;
}

    .ms-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 40px rgba(188,24,24,0.14);
    }

    .ms-card .instagram-media {
        margin: 0 !important;
        min-width: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

@media (max-width: 768px) {
    .mastron-social-section {
        padding: 4rem 0;
        overflow: hidden;
    }

        .mastron-social-section .section-header-social {
            padding: 0 1.25rem;
        }

    .ms-section-title {
        font-size: 2rem;
    }

    .ms-belt-outer {
        min-height: 300px;
        -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%);
    }

    .ms-belt {
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .ms-card {
        flex: 0 0 270px;
        width: 270px;
        min-width: 270px;
        min-height: 300px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .mastron-social-section {
        padding: 3.5rem 0;
    }

        .mastron-social-section .section-header-social {
            padding: 0 1rem;
        }

    .ms-section-title {
        font-size: 1.75rem;
    }

    .ms-belt {
        flex-wrap: nowrap;
        gap: 0.85rem;
    }

    .ms-card {
        flex: 0 0 250px;
        width: 250px;
        min-width: 250px;
        min-height: 280px;
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .ms-belt {
        flex-wrap: nowrap;
    }

    .ms-card {
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
    }
}
