*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #327833; /* Ana Renk 1 - Yeşil */
    color: #f1f1f2; /* Detay Rengi - Açık Gri/Beyaz */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

header {
    background: #2a652b; /* Ana Renk 1'in koyu tonu */
    padding: 40px 0 20px; /* Üst 40px, alt 20px padding */
    text-align: center;
    border-bottom: 3px solid #ffb300; /* Ana Renk 2 - Sarı/Turuncu */
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.8em;
    color: #f1f1f2; /* Detay Rengi */
}

header h2 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    color: #ffb300; /* Ana Renk 2 - Sarı/Turuncu */
    font-weight: 500;
}

header p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    color: #e0e0e0; /* Detay Renginin biraz koyusu veya f1f1f2 */
}

main {
    padding: 40px 0;
}

.investment-grid {
    display: flex; /* Grid'den Flexbox'a geçiş */
    flex-wrap: wrap; /* Elemanların alt satıra kaymasını sağla */
    justify-content: center; /* Kartları yatayda ortala */
    gap: 20px;
    padding: 20px 0;
}

.investment-card {
    flex: 1 1 300px; /* Kartların büyümesine izin vererek satırı doldurmasını sağla */
    background-color: #3a3a3a; /* Koyu Gri - Logo okunurluğu için */
    border-radius: 10px;
    padding: 25px 25px 70px 25px; /* Üst, Sağ/Sol, Alt */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    color: #f1f1f2; /* Kart içindeki genel metin rengi - Açık */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Parlama efekti için konumlandırma bağlamı */
    overflow: hidden; /* Parlama efektinin kart dışına taşmasını engelle */
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.investment-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.investment-card:hover::before {
    left: 120%;
}

.investment-card .card-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.investment-card p {
    font-size: 1em;
    color: #f1f1f2; /* Açık metin rengi */
    margin: 5px 0;
}

.investment-card h3 {
    font-size: 1.3em;
    color: #ffb300; /* Marka Sarısı */
    margin: 10px 0 15px 0; /* Alt boşluğu artırdık */
    font-weight: 700;
}

.play-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-image: url('images/play-button.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.investment-card:hover .play-icon {
    transform: translateX(-50%) scale(1.1);
}

/* Mobil cihazlar için özel ayarlar */
@media only screen and (max-width: 767px) {
    .investment-card h3 {
        margin-bottom: 75px; /* Mobil cihazlarda daha fazla boşluk */
    }
    
    .play-icon {
        bottom: 25px; /* Mobil cihazlarda daha yukarıda */
        width: 40px; /* Mobil cihazlarda biraz daha küçük */
        height: 40px;
    }
}

footer {
    background-color: #2a652b; /* Ana Renk 1'in koyu tonu (Footer) */
    color: #f1f1f2; /* Detay Rengi (Footer metni) */
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #4a8c4b; /* Ana Renk 1'in biraz açığı */
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

footer a {
    color: #ffb300; /* Ana Renk 2 - Sarı/Turuncu */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Yarı saydam siyah arka plan */
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #2a652b; /* Ana Yeşil Renk */
    margin: auto;
    padding: 20px;
    border: 1px solid #4a8c4b; /* Yeşil tonu kenarlık */
    border-radius: 10px; /* Köşeleri yuvarla */
    width: 90%;
    max-width: 800px; /* Maksimum genişlik */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

.close-button {
    color: #888; /* Modal kapatma butonu */
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #327833; /* Ana Renk 1 - Yeşil (Modal kapatma hover) */
    text-decoration: none;
    cursor: pointer;
}

#youtubeVideo {
    width: 100%;
    aspect-ratio: 16 / 9; /* Videonun en boy oranını koru */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    header h2 {
        font-size: 1.5em;
    }
    .investment-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    header h2 {
        font-size: 1.3em;
    }
    header p {
        font-size: 0.9em;
    }
    .investment-card {
        padding: 15px;
    }
     .investment-card h3 {
        font-size: 1.1em;
    }
}
