/* style.css - Ali Dayı Yurdu - Final Mobil Uyumlu Sürüm */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;600;700&display=swap');

/* --- RENK PALETİ --- */
:root {
    --ana-renk: #304269; /* Lacivert */
    --vurgu-renk: #B48C41; /* Altın */
    --kirmizi-renk: #C1272D; /* Kırmızı */
    --arka-plan-gri: #F5F7FA;
    --beyaz: #ffffff;
    --metin-koyu: #1e293b;
    --metin-acik: #64748b;
}

/* --- TEMEL STİLLER --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--metin-koyu);
    background-color: var(--beyaz);
    font-size: 16px;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
section { padding: 80px 0; position: relative; }
.bg-gray { background-color: var(--arka-plan-gri); }
.bg-white { background-color: var(--beyaz); }

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--ana-renk);
    font-weight: 700;
    line-height: 1.3;
}
p { color: var(--metin-acik); margin-bottom: 15px; }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* --- DESENLİ MAVİ ARKA PLAN (CSS İLE GARANTİ YÖNTEM) --- */
.blue-pattern-bg {
    background-color: var(--ana-renk);
    /* CSS ile oluşturulan noktalı desen */
    background-image: radial-gradient(rgba(180, 140, 65, 0.15) 2px, transparent 2px), radial-gradient(rgba(180, 140, 65, 0.15) 2px, transparent 2px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    color: var(--beyaz);
    padding: 100px 0;
    text-align: center;
}
.blue-pattern-bg h1, 
.blue-pattern-bg h2,
.blue-pattern-bg h3 { 
    color: var(--beyaz) !important; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
.blue-pattern-bg p { color: rgba(255,255,255,0.9) !important; font-size: 1.2rem; }

/* --- HEADER --- */
header {
    background: var(--beyaz);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo img { height: 65px; width: auto; }
.nav-links { list-style: none; display: flex; margin: 0; padding: 0;}
.nav-links li { margin-left: 30px; }
.nav-links a {
    color: var(--ana-renk);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--vurgu-renk); }
#menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: var(--ana-renk); cursor: pointer; }

/* --- HERO SLIDER --- */
#hero-slider { position: relative; width: 100%; height: 85vh; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; filter: brightness(0.8); } 
.hero-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px; z-index: 10;
}
.hero-content h1 { 
    color: var(--beyaz); font-size: 3.5rem; margin-bottom: 10px; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.9);
}
.hero-content .hero-slogan { 
    font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--kirmizi-renk); 
    font-weight: 900; margin-bottom: 20px; text-shadow: 2px 2px 0 #fff; 
    background: rgba(255,255,255,0.95); padding: 5px 25px; border-radius: 5px;
    display: inline-block; transform: skew(-10deg);
}
.hero-content p { 
    color: #fff; font-size: 1.2rem; max-width: 800px; 
    text-shadow: 0 2px 5px rgba(0,0,0,1); font-weight: 600;
}

/* --- SAYAÇ --- */
.stats-bar {
    display: flex; gap: 40px; margin: 40px 0; padding: 25px 50px;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px); border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.stat { text-align: center; }
.stat-number { 
    color: var(--vurgu-renk); font-size: 2.8rem; font-weight: 900; line-height: 1; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.stat-label { 
    color: #fff; font-size: 0.95rem; margin-top: 5px; 
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

.cta-button {
    background: var(--vurgu-renk); color: var(--beyaz); padding: 15px 40px;
    border-radius: 50px; font-weight: 700; font-family: 'Montserrat', sans-serif;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); font-size: 1.1rem; border: 2px solid transparent;
}
.cta-button:hover { 
    background: transparent; border-color: var(--vurgu-renk); color: var(--vurgu-renk); 
    background-color: rgba(0,0,0,0.6);
}

/* --- BAŞLIKLAR --- */
.section-header { margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }
.section-header .subtitle {
    color: var(--vurgu-renk); font-weight: 800; font-size: 1rem; letter-spacing: 2px;
    text-transform: uppercase; display: block; margin-bottom: 10px;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

/* --- WHATSAPP --- */
.floating-whatsapp {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    background-color: #25d366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease;
}
.floating-whatsapp:hover { transform: scale(1.1); background-color: #128c7e; }

/* --- KARTLAR --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.modern-card {
    background: var(--beyaz); padding: 30px; border-radius: 16px; text-align: left;
    border: 1px solid #eee; transition: all 0.3s ease; position: relative; overflow: hidden; height: 100%;
}
/* Kompakt Kart Stili */
.modern-card.compact { padding: 20px; }
.modern-card.compact .card-icon { font-size: 2rem; margin-bottom: 15px; }
.modern-card.compact h3 { font-size: 1.1rem; margin-bottom: 8px; }
.modern-card.compact p { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.4; }
.modern-card.compact .time-badge { font-size: 0.75rem; padding: 3px 8px; margin-top: 5px; }

.modern-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--ana-renk); }
.card-icon { font-size: 2.5rem; color: var(--ana-renk); margin-bottom: 20px; }
.modern-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.modern-card .time-badge {
    display: inline-block; background: #e2e8f0; color: var(--ana-renk);
    padding: 4px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: 700; margin-top: 10px; margin-right: 5px;
}

/* --- HİZMETLER --- */
.features-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.features-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; margin-bottom: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 15px; }
.f-icon { 
    width: 50px; height: 50px; background: rgba(180, 140, 65, 0.1); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--vurgu-renk); font-size: 1.2rem; flex-shrink: 0;
}
.f-content h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--ana-renk); }
.text-link { color: var(--ana-renk); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem;}

/* --- ALANLAR & ÜNİVERSİTELER --- */
.spaces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.space-card { background: var(--beyaz); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.space-card img { width: 100%; height: 300px; object-fit: cover; transition: 0.5s; }
.space-card:hover img { transform: scale(1.05); }
.space-info { padding: 25px; text-align: center; }
.university-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.uni-card {
    background: var(--beyaz); border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
    transition: 0.3s; display: flex; flex-direction: column;
}
.uni-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.uni-img-wrap { height: 180px; overflow: hidden; border-bottom: 1px solid #eee; }
.uni-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.uni-card:hover .uni-img-wrap img { transform: scale(1.1); }
.uni-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;}
.uni-card-content h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--metin-koyu); }
.uni-meta { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--metin-acik); }
.uni-meta span i { color: var(--vurgu-renk); width: 20px; text-align: center; }

/* --- FOTO GALERİ --- */
.photo-gallery-container { overflow: hidden; width: 100%; padding: 20px 0; position: relative; }
.photo-track { display: flex; gap: 20px; width: calc(350px * 12); animation: photoScroll 40s linear infinite; }
.photo-card { width: 350px; height: 250px; border-radius: 15px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.1); position: relative; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-card:hover img { transform: scale(1.1); }
.photo-caption {
    position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(48, 66, 105, 0.8);
    color: #fff; padding: 10px; text-align: center; font-weight: 600; font-size: 0.9rem;
}
@keyframes photoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-350px * 6 - 120px)); } }

/* --- YORUMLAR --- */
.testimonial-slider-container { overflow: hidden; position: relative; width: 100%; padding: 20px 0; }
.testimonial-track { display: flex; gap: 30px; width: calc(400px * 6); animation: scroll 25s linear infinite; }
.testimonial-card {
    background: var(--beyaz); width: 400px; padding: 40px; border-radius: 20px; flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; position: relative;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-400px * 3 - 90px)); } }
.stars { color: #FFC107; font-size: 1.2rem; margin-bottom: 15px; }
.student-name { font-weight: 700; color: var(--ana-renk); margin-top: 15px; display: block; font-size: 0.9rem;}

/* --- ALT CTA --- */
#cta-full { padding: 100px 0; }
.cta-button-white {
    background: var(--beyaz); color: var(--ana-renk); padding: 18px 50px;
    border-radius: 50px; font-weight: 800; font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.3); display: inline-block;
}
.cta-button-white:hover { background: var(--vurgu-renk); color: var(--beyaz); transform: scale(1.05);}

/* --- DİĞER SAYFA STİLLERİ --- */
.page-header { padding: 100px 0 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-text { background: var(--beyaz); padding: 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.amenity-card {
    background: var(--arka-plan-gri); padding: 20px; border-radius: 10px; text-align: center;
    transition: 0.3s; border: 1px solid #eee;
}
.amenity-card:hover { transform: translateY(-5px); background: var(--beyaz); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: var(--vurgu-renk); }
.amenity-card i { font-size: 2rem; color: var(--vurgu-renk); margin-bottom: 10px; display: block; }
.amenity-card h4 { font-size: 1rem; margin: 0; color: var(--ana-renk); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-card { background: var(--beyaz); padding: 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { font-size: 1.5rem; color: var(--vurgu-renk); margin-top: 5px; }
.contact-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 20px; border-radius: 8px;
    border: 1px solid #ddd; font-family: 'Open Sans', sans-serif; font-size: 1rem;
}
.contact-form button { width: 100%; border: none; cursor: pointer; }
.map-frame { width: 100%; height: 400px; border-radius: 15px; border: 0; margin-top: 30px; }

/* --- FOOTER --- */
footer { background: #1e293b; color: #cbd5e1; padding: 60px 0 30px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand p { margin: 0; color: #fff; font-weight: 600; }
.footer-links { list-style: none; display: flex; gap: 30px; }
.footer-links a { color: #cbd5e1; transition: 0.3s; }
.footer-links a:hover { color: var(--vurgu-renk); }

/* --- MOBİL UYUMLULUK (RESPONSIVE) - DÜZELTİLMİŞ FİNAL --- */

@media (max-width: 992px) {
    .features-wrapper { grid-template-columns: 1fr; }
    .features-image { order: -1; margin-bottom: 30px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } 
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* --- HEADER MOBİL --- */
    header { padding: 10px 0; }
    .logo img { height: 45px; }
    #menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--beyaz);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 20px; z-index: 1000;
        border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 0 0 15px 0; text-align: center; }

    /* --- HERO BÖLÜMÜ (DÜZELTİLDİ) --- */
    #hero-slider { 
        position: relative;
        height: auto !important; /* Sabit yüksekliği iptal et */
        min-height: auto !important;
        background: #000;
    }
    
    /* Video arka planda kalsın ve alanı doldursun */
    .slide { 
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    }
    .slide video {
        width: 100%; height: 100%; object-fit: cover;
    }

    /* İçerik alanı: Yüksekliği belirleyen kısım burası olacak */
    .hero-content {
        position: relative; /* Mobilde absolute değil relative olsun */
        height: auto !important;
        min-height: auto !important;
        padding-top: 110px; /* Header'dan kurtarmak için yeterli boşluk */
        padding-bottom: 60px; /* Alttan makul boşluk */
        padding-left: 20px;
        padding-right: 20px;
        justify-content: flex-start;
    }

    .hero-content h1 { 
        font-size: 1.6rem; /* Başlık biraz daha küçüldü */
        margin-bottom: 10px;
        text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    }
    .hero-content .hero-slogan { 
        font-size: 1.2rem; 
        padding: 5px 15px; 
        margin-bottom: 15px;
        transform: skew(0); /* Mobilde düz dursun */
    }
    .hero-content p { 
        font-size: 0.95rem; 
        line-height: 1.4;
        margin-bottom: 20px;
        text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    }

    /* --- İSTATİSTİKLER (DAHA KOMPAKT) --- */
    .stats-bar { 
        flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; 
        padding: 15px; width: 100%; margin-bottom: 25px;
        background: rgba(0, 0, 0, 0.6); /* Biraz daha şeffaf */
    }
    .stat { 
        flex: 1 1 45%; /* İkili yan yana */
        min-width: auto;
    }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.75rem; margin-top: 2px; }

    /* CTA Buton */
    .cta-button { padding: 12px 30px; font-size: 1rem; width: 100%; max-width: 280px; }

    /* --- GENEL MOBİL AYARLARI --- */
    section { padding: 50px 0; }
    
    /* Izgaralar Tek Sütun */
    .grid-3, .grid-4, .spaces-grid, .university-grid, .footer-content { 
        grid-template-columns: 1fr; flex-direction: column; text-align: center; 
    }
    .feature-list { grid-template-columns: 1fr; }
    .about-grid { display: flex; flex-direction: column; gap: 30px; }
    
    /* Kartlar ve Yazılar */
    .modern-card.compact { padding: 20px; }
    .page-header { padding: 100px 0 50px; }
    .page-header h1 { font-size: 2.2rem; }
    #cta-full h2 { font-size: 1.8rem; }
    
    .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    /* Footer Linkleri */
    .footer-links { flex-direction: column; gap: 15px; }
}