/* Genel Ayarlar ve Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #222831; /* Koyu gri - Ana arka plan, footer */
    --secondary-dark: #393E46; /* Orta koyu gri - İkincil arka plan */
    --light-bg: #EEEEEE; /* Açık gri - İçerik arka planı */
    --accent-gold: #FFD369; /* Altın sarısı - Vurgu */
    --accent-blue: #00ADB5; /* Mavi-turkuaz - Ek vurgu */
    --text-light: #F0F0F0; /* Açık metin (koyu arka planlarda) */
    --text-dark: #333333; /* Koyu metin (açık arka planlarda) */
    --shadow-subtle: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; color: var(--text-light); }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* Header ve Navigasyon */
.main-header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.5rem;
}

.burger div {
    width: 2rem;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section (Ana Başlık Alanı) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/ataturk-hero.jpg') no-repeat center center/cover;
    color: var(--text-light);
    overflow: hidden; /* Animasyonlar için taşmayı gizle */
}

.hero-content {
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.timer {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.scroll-down {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-blue);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.scroll-down:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-down i {
    margin-left: 0.5rem;
}

/* Animasyonlar */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Genel İçerik Bölümleri */
.content-section {
    padding: 5rem 0;
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.light-bg {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.dark-bg {
    background-color: var(--secondary-dark);
    color: var(--text-light);
}

.dark-bg h2, .dark-bg h3 {
    color: var(--text-light);
}

.dark-bg p {
    color: rgba(240, 240, 240, 0.9);
}

/* Bölüm Açıklaması Stili */
.section-description {
    font-size: 1.15rem;
    color: rgba(240, 240, 240, 0.9); /* Dark bg için */
    max-width: 800px;
    margin: 0.5rem auto 2.5rem auto; /* Ortala ve boşluk */
    line-height: 1.8;
}

.light-bg .section-description {
    color: var(--light-text-color); /* Light bg için */
}


/* Zaman Çizelgesi */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px; /* Her madde arasına boşluk */
}

.timeline-item:last-child {
    margin-bottom: 0; /* Son maddede boşluk olmasın */
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--primary-dark);
    border: 4px solid var(--accent-gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--accent-blue);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--accent-blue);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--accent-blue);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--accent-blue) transparent transparent;
}

.right::after {
    left: -17px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--primary-dark);
    position: relative;
    border-radius: 6px;
    color: var(--text-light);
    box-shadow: var(--shadow-subtle);
}

.timeline-content h3 {
    color: var(--accent-gold);
}

/* Miras Alanı */
.miras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.miras-item {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.miras-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.miras-item i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.miras-item h3 {
    color: var(--primary-dark);
}

.miras-item p {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.mt-4 {
    margin-top: 2rem;
    font-style: italic;
    color: var(--light-text-color);
}

/* Galeri ve Video */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.gallery-item {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-subtle);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.video-section {
    margin-top: 3rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 oranında video için */
    height: 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Sözleri Carousel */
.quote-carousel {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    background-color: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    min-height: 200px; /* İçerik yüksekliği için */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quote-item {
    display: none; /* Varsayılan olarak gizli */
    text-align: center;
    animation: fadeIn 1s forwards;
}

.quote-item.active {
    display: block; /* Aktif olanı göster */
}

.quote-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.carousel-nav {
    margin-top: 2rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active, .dot:hover {
    background-color: var(--accent-gold);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.main-footer .social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--accent-gold);
}

/* Tam ekran görsel overlay */
.fullscreen-overlay {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay.active {
    display: flex; /* Açık olduğunda göster */
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Responsive Tasarım */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav-links.nav-active {
        max-height: 300px;
    }

    .nav-links li {
        margin: 1rem 0;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .nav-links.nav-active li {
        opacity: 1;
    }

    .burger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .timer {
        font-size: 2rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--accent-blue) transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    .quote-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .timer {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .miras-item {
        padding: 1.5rem;
    }
    .main-footer .social-links a {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
}