/* 
   Home/Index.cshtml - Ana Sayfa CSS
   Kırmızı & Siyah Tema | Modern & Dinamik
*/

/*===========================================
  HERO SLIDER
===========================================*/
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 70vh;
    min-height: 500px;
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Video Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
    padding: 0 50px;
}

    .carousel-caption.text-center {
        text-align: center;
    }

    .carousel-caption.text-end {
        text-align: right;
    }

.caption-content {
    animation: fadeInUp 0.8s ease-out;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-caption .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 0, 0, 0.8);
    border-radius: 50%;
    opacity: 0.9;
    transition: var(--transition);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
        background: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: 2px solid var(--white);
        transition: var(--transition);
    }

        .carousel-indicators button.active {
            background: var(--primary-color);
            width: 40px;
            border-radius: 6px;
        }

/* Fallback Hero Banner */
.hero-banner {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/*===========================================
  FEATURES SECTION
===========================================*/
.features-section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient-red);
            border-radius: 2px;
        }

    .section-header .lead {
        font-size: 1.125rem;
        max-width: 700px;
        margin: 1.5rem auto 0;
    }

/* Feature Item */
.feature-item {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

    .feature-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

.feature-icon {
    width: 90px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.1) 0%, rgba(220, 0, 0, 0.05) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--gradient-red);
    transform: scale(1.1) rotate(5deg);
}

    .feature-item:hover .feature-icon i {
        color: var(--white) !important;
    }

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/*===========================================
  PRODUCTS SECTION
===========================================*/
.products-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f8f8 0%, #ffffff 100%);
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

.category-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

    .category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.category-card:hover .category-image img {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

    .category-overlay h3 {
        color: var(--white);
        margin: 0;
        font-weight: 700;
        font-size: 1.5rem;
    }

.category-body {
    padding: 1.5rem;
}

    .category-body p {
        color: var(--text-light);
        margin-bottom: 1rem;
    }

/*===========================================
  REFERENCES SECTION
===========================================*/
.references-section {
    padding: 5rem 0;
    background: var(--white);
}

.references-slider-wrapper {
    position: relative;
    padding: 0 70px;
}

.references-slider-container {
    overflow: hidden;
}

.references-slider {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    transition: transform 0.5s ease;
}

/* Reference Slide */
.reference-slide {
    flex: 0 0 auto;
    width: 240px;
}

/* Reference Card */
.reference-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 3rem 2rem;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .reference-card:hover {
        border-color: var(--primary-color);
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(220, 0, 0, 0.2);
    }

/* Reference Logo */
.reference-logo {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.8);
    opacity: 0.65;
    transition: all 0.4s ease;
}

.reference-card:hover .reference-logo {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.08);
}

/* Reference Link */
.reference-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Reference Name (fallback when no logo) */
.reference-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
}

    .reference-name a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .reference-name a:hover {
            color: var(--primary-color);
        }

/* Slider Dots Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .slider-dot:hover {
        background: #a0a0a0;
        transform: scale(1.2);
    }

    .slider-dot.active {
        background: var(--primary-color);
        width: 32px;
        border-radius: 6px;
    }

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 0, 0, 0.3);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/*===========================================
  CTA SECTION
===========================================*/
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-red);
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

    .cta-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .cta-content p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        opacity: 0.95;
    }

    .cta-content .btn-light {
        background: var(--white);
        color: var(--primary-color);
        font-weight: 600;
        padding: 1rem 2.5rem;
        border-radius: 50px;
        border: 2px solid var(--white);
    }

        .cta-content .btn-light:hover {
            background: transparent;
            color: var(--white);
            transform: translateY(-3px);
        }

    .cta-content .btn-outline-light {
        border: 2px solid var(--white);
        color: var(--white);
        font-weight: 600;
        padding: 1rem 2.5rem;
        border-radius: 50px;
    }

        .cta-content .btn-outline-light:hover {
            background: var(--white);
            color: var(--primary-color);
            transform: translateY(-3px);
        }

/*===========================================
  GALLERY SECTION
===========================================*/
.gallery-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(220, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/*===========================================
  RESPONSIVE
===========================================*/
@media (max-width: 991.98px) {
    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption .lead {
        font-size: 1.25rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .references-slider-wrapper {
        padding: 0 50px;
    }

    .feature-item {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 50vh;
        min-height: 350px;
    }

    .carousel-caption {
        padding: 0 20px;
    }

        .carousel-caption h1 {
            font-size: 2rem;
        }

        .carousel-caption .lead {
            font-size: 1rem;
        }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

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

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .references-slider-wrapper {
        padding: 0 30px;
    }

    .slider-nav-btn {
        width: 35px;
        height: 35px;
    }

    .category-image {
        height: 200px;
    }

    .gallery-item {
        height: 250px;
    }
}

/*===========================================
  ANIMATIONS
===========================================*/
@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);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/*===========================================
  UTILITIES
===========================================*/
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

.section-padding-lg {
    padding: 7rem 0;
}
