@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* =========================================================================
   YIDA - YOUTHVERSE INTERNATIONAL DEVELOPMENT ASSOCIATION
   Ana Stil Dosyası (Style.css)
   ========================================================================= */

/* --- 1. CSS DEĞİŞKENLERİ (VARIABLES) --- */
:root {
    /* Renk Paleti */
    --primary-dark: #002855;
    /* Ana Koyu Lacivert */
    --bg-light: #F8F9FA;
    /* Temiz Kırık Beyaz Arka Plan */
    --accent-orange: #FF6B35;
    /* Dinamik Turuncu Vurgu */
    --accent-blue: #00B4D8;
    /* Açık Mavi Vurgu */

    /* Metin Renkleri */
    --text-dark: #333333;
    /* Genel Metin Rengi */
    --text-light: #FFFFFF;
    /* Koyu Arka Planlar İçin Metin Rengi */
    --text-muted: #6C757D;
    /* İkincil Metin Rengi */

    /* Diğer Özellikler */
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

/* --- 2. TEMEL SIFIRLAMA (CSS RESET) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Animasyonlar sırasında yatay kaymayı engeller */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- YENİ EKLENEN SAF CSS ANİMASYONLARI --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasyon uygulanacak ana öğeler */
.hero-content h1,
.hero-content p,
.hero-content .btn,
.about-image img,
.about-text,
.styled-card,
.project-card,
.contact-grid>div {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Ardışık yüklenme (Staggering) için gecikmeler */
.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .btn {
    animation-delay: 0.3s;
}

.about-image img {
    animation-delay: 0.2s;
}

.about-text {
    animation-delay: 0.4s;
}

.styled-card:nth-child(1) {
    animation-delay: 0.2s;
}

.styled-card:nth-child(2) {
    animation-delay: 0.4s;
}

.styled-card:nth-child(3) {
    animation-delay: 0.6s;
}

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-card:nth-child(2) {
    animation-delay: 0.4s;
}

.project-card:nth-child(3) {
    animation-delay: 0.6s;
}

.contact-grid>div:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-grid>div:nth-child(2) {
    animation-delay: 0.4s;
}

/* --- 3. TİPOGRAFİ (TYPOGRAPHY) --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #ffffff;
}

/* --- 4. GENEL YAPI VE DÜZEN (LAYOUT) --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    flex: 1;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}


/* --- 5. HEADER & NAVİGASYON (NAVBAR) --- */
header {
    background-color: #FFFFFF;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Çok hafif, zarif gölge */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Logo ile yazı arası boşluk */
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: var(--primary-dark);
    /* Metin rengi koyu lacivert */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-orange);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after,
.nav-links li a:not(.btn).active::after {
    width: 100%;
}

/* Hover durumunda turuncu metin efekti */
.nav-links li a:not(.btn):hover,
.nav-links li a:not(.btn).active {
    color: var(--accent-orange);
}

/* Mobil Menü Başlığı ve Kapanış İkonu */
.mobile-menu-header {
    display: none;
}

.mobile-logo-text {
    display: none;
}

/* Nav Overlay (Arka Plan Karartması) */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    /* Karanlık yarı saydam katman */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
    /* Hamburger ikonunun menünün ve overlay'in üzerinde kalmasını sağla */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-dark);
    /* Hamburger ikonunu lacivert yap */
    transition: var(--transition);
}

/* --- 6. BUTONLAR (BUTTONS) --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-align: center;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #e55b2b;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    color: white;
}

.btn-secondary {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #0099b8;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 0.7rem 1.7rem;
    /* adjust for border */
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Gönüllü Ol Butonu Özel Tasarımı */
.btn-volunteer {
    display: inline-block;
    /* Elementin padding değerlerini doğru almasını sağlar */
    background-color: #f97316;
    /* Canlı ve temiz turuncu tonu */
    color: #ffffff !important;
    /* Gerekli durumlarda ezilmemesi için */
    padding: 12px 28px !important;
    /* Daha ferah iç boşluk - zorunlu kılındı */
    border-radius: 50px;
    /* Tam yuvarlak hap şekli */
    font-size: 0.95rem;
    line-height: normal;
    /* Satır yüksekliğini normalleştirerek butonun dengesini sağlar */
    white-space: nowrap;
    /* Yazının alt satıra geçmesini önler */
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    /* Kendi renginde yumuşak parlama */
}

.btn-volunteer:hover {
    background-color: #ea580c;
    /* Üzerine gelince biraz daha koyu turuncu */
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* --- YENI BÖLÜMLER (HERO, ABOUT, PROJECTS, CTA) --- */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--primary-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 85, 0.75);
    /* Koyu lacivert yarı saydam katman */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mini Hero (About Page) */
.mini-hero {
    position: relative;
    min-height: 40vh;
    /* Yarım Boy */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/about-2.jpg') center/cover no-repeat;
    background-color: var(--primary-dark);
    margin-bottom: 4rem;
}

.mini-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.mini-hero-content h1 {
    color: var(--text-light);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Styled Cards (Mission / Vision) */
.styled-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Zarif, derin gölge */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Çok hafif sınır */
    position: relative;
    overflow: hidden;
}

.styled-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-orange);
}

.styled-card.blue-accent::before {
    background-color: var(--accent-blue);
}

/* About Teaser */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.read-more {
    color: var(--accent-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: #e55b2b;
    gap: 0.8rem;
    /* Ok sağa kayar */
}

/* Featured Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-date {
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-status.open {
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--accent-blue);
}

.badge-status.closed {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

/* Call to Action */
.cta-section {
    background-color: var(--accent-orange);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-inline: auto;
}

.cta-btn {
    background-color: var(--text-light);
    color: var(--accent-orange);
}

.cta-btn:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

/* Partner Logo Cloud Marquee */
.partners-section {
    background-color: #FFFFFF;
    padding: 5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Taşmaları gizle */
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll-partners 25s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
    /* Üzerine gelince durdur */
}

.partners-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem;
    padding-right: 4rem;
    /* İki grup arası boşluk */
}

.partner-logo {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

/* Sosyal Medya İkonları */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

/* Contact Page Socials */
.contact-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-socials a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--accent-orange);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- 8. MEDYA SORGULARI VE MOBİL UYUM (RESPONSIVE) --- */
@media (max-width: 768px) {
    .header-logo-text {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active {
        transform: translateY(-8px);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        /* Sağdan kayarak gelsin */
        top: 0;
        height: 100vh;
        width: 70vw;
        /* Ekranın %70'ini kaplasın */
        background-color: #f8f9fa;
        /* Hafif kırık beyaz arka plan */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        /* Sol tarafa derin gölge */
        gap: 0;
        flex-direction: column;
        text-align: left;
        transition: right 0.4s ease-in-out;
        padding: 0;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* Yazı sola yaslı, hamburger butonu sağda kalacak */
        height: 112px;
        /* 80px logo + (1rem padding * 2) = 112px (Header yüksekliği ile birebir eşleşir) */
        padding: 0 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .mobile-logo-text {
        display: block;
        font-weight: 700;
        color: var(--primary-dark);
        font-size: clamp(1.1rem, 5vw, 1.8rem);
        margin-bottom: 0;
        line-height: 1;
        /* Satır yüksekliğini sabitleyerek mükemmel ortalama sağlar */
    }

    .nav-links li {
        width: 100%;
        padding: 0 1.5rem;
        margin: 0.5rem 0;
    }

    .nav-links li a:not(.btn) {
        display: block;
        padding: 10px 0;
    }

    .nav-links li:last-child {
        margin-top: 1.5rem;
    }

    .nav-links li a.btn {
        margin: 1rem auto;
        width: 80%;
    }

    /* Hero Section Mobil */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* About Teaser Mobil */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    /* Resmi üste al */
}