﻿
/* --- DataLega Kurumsal Değişkenler --- */
:root {
    --primary-teal: #008080;
    --dark-teal: #004d4d;
    --deep-teal: #033E3E;
    --light-teal: #e6f2f2;
    --accent-teal: #00b3b3;
}
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #008080 0%, #091000 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* height: 100vh; */
    display: flex;
    align-items: center;
}

/* Carousel Konfigürasyonu */
.hero-carousel-wrapper {
    margin-top: -0px; /* Header ile birleşim için opsiyonel */
}

#datalegaHeroCarousel {
    height: 85vh; /* Ekran yüksekliğine göre */
    max-height: 850px; /* Çok büyük ekranlar için sınır */
    min-height: 200px; /* Çok küçük ekranlar için sınır */
    background: #000;
}

.carousel-item {
    height: 85vh; /* Ekran yüksekliğine göre */
    position: relative;
}

/* Arka Plan Görselleri ve Gradyan Maske */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   
}

/* Her slide için farklı gradyan/renk */
.slide-1 {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.slide-2 {
    background: linear-gradient(135deg, var(--dark-teal) 0%, #002b2b 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.slide-3 {
    background: linear-gradient(135deg, #000666 0%, var(--dark-teal) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.slide-4 {
    background: linear-gradient(135deg, #6f0582 0%, var(--dark-teal) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
/* Arka plana çok hafif bir desen ekle */
.hero-slide-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /*background: url('/images/pattern.png');*/ /* Varsa bir pattern */
    /*opacity: 0.1;*/
    /*Grid*/
    background-image: repeating-linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0px, transparent 2px, transparent 40px), repeating-linear-gradient(0deg, rgba(102, 126, 234, 0.1) 0px, transparent 2px, transparent 40px);
    animation: dataFlow 5s linear infinite;
}
@keyframes dataFlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}
/* Caption (Yazılar) */
.carousel-caption {
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    text-align: center;
    left: 0;
    right: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

/* Butonlar */
.btn-hero {
    background-color: #ffffff;
    color: var(--primary-teal);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

    .btn-hero:hover {
        background-color: var(--primary-teal);
        font-size: larger;
        color: #fff;
        transform: translateY(-3px);
    }

/* Kontrolleri daha zarif yap */
.carousel-indicators {
    bottom: 5vh;
}
    .carousel-indicators [data-bs-target] {
        width: 40px;
        height: 5px;
        border-radius: 10px;
        background-color: rgba(255,255,255,0.5);
        transition: all 0.3s ease;
    }
    .carousel-indicators .active {
        background-color: #fff;
        width: 50px;
    }

/* Slider Resim Olmadığında Devreye Girecek Kurumsal Arka Plan */
.bg-corporate-teal {
    background: linear-gradient(135deg, #004d4d 0%, #008080 50%, #00b3b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Opsiyonel: Hafif bir doku eklemek isterseniz */
    .bg-corporate-teal::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.3;
    }


@media (max-width: 768px) {
    #datalegaHeroCarousel, .carousel-item {
        height: 80vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
@media (max-width: 1024px) {
    #datalegaHeroCarousel {
        height: 80vh;
    }
}
@media (min-width: 1600px) {
    #datalegaHeroCarousel {
        height: 90vh;
    }
    .carousel-item {
        height: 90vh; /* Ekran yüksekliğine göre */
        position: relative;
    }
}


/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 370px;
        height: 4px;
        background: #198754;
        border-radius: 2px;
    }

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    border: none;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #198754, #20c997);
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(25, 135, 84, 0.15);
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #198754, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-service {
    background: transparent;
    color: #198754;
    border: 2px solid #198754;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-service:hover {
        background: #198754;
        color: white;
        transform: translateY(-2px);
    }

/* Articles Section */
.articles-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.article-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.article-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.article-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-date {
    color: #888;
    font-size: 0.9rem;
}

.btn-article {
    background: #198754;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-article:hover {
        color: yellow;
        background: #146c43;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
    }

.btn-view-all {
    background: transparent;
    color: #198754;
    border: 2px solid #198754;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-view-all:hover {
        background: #198754;
        color: white;
        transform: translateY(-3px);
    }

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title::after{
        width: 290px;
    }
    .hero-section {
        padding: 60px 0;
    }

    .services-section,
    .articles-section {
        padding: 60px 0;
    }

    .service-card,
    .article-card {
        margin-bottom: 30px;
    }
}
