/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --primary-color: #ef4444; /* Kırmızı */
    --background-color: #f1f5f9; /* Açık gri */
    --card-bg-color: #ffffff; /* Beyaz */
    --text-color: #1f2937; /* Koyu gri */
    --text-light-color: #6b7280; /* Orta gri */
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f23;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
}

/* =========================================
   2. YENİ ARKA PLAN: YATAY RADYO/SİNYAL DALGALARI (PÜRÜZSÜZ DÖNGÜ)
   ========================================= */
.background-animation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh; /* Ekranın alt %40'ını kaplar */
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Ortak Dalga Ayarları */
.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    /* Püf Nokta: Görseli yatayda 2 katına çıkarıyoruz */
    width: 200%;
    height: 100%;
    /* Görseli yatayda tekrar ettiriyoruz */
    background-repeat: repeat-x;
    background-position: 0 bottom;
    /* Görselin kendi boyutu, toplam genişliğin yarısı kadar */
    background-size: 50% 100%;
    /* GPU hızlandırması için */
    will-change: transform;
}

/* --- KATMAN 1: EN ARKA (Yavaş, Koyu Kırmızı/Mor) --- */
.wave-back {
    /* SVG: Başlangıç (M0,100) ve Bitiş (L800,100) yükseklikleri eşitlendi. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0,100 C160,180 320,20 480,100 C640,180 720,20 800,100 L800,200 L0,200 Z' fill='rgba(127, 29, 29, 0.3)'/%3E%3C/svg%3E");
    height: 85%;
    /* 30 saniyede bir tam tur (Çok yavaş) */
    animation: move-wave-horizontal 30s linear infinite;
    opacity: 0.6;
}

/* --- KATMAN 2: ORTA (Orta Hız, Ana Kırmızı) --- */
.wave-middle {
    /* SVG: Başlangıç (M0,90) ve Bitiş (800,90) yükseklikleri eşitlendi. Pürüzsüzleştirildi. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C200,30 400,150 600,90 C700,60 750,120 800,90 L800,200 L0,200 Z' fill='rgba(220, 38, 38, 0.4)'/%3E%3C/svg%3E");
    height: 70%;
    /* 20 saniyede bir tam tur (Orta hız), TERS yöne */
    animation: move-wave-horizontal 20s linear infinite reverse;
    opacity: 0.7;
}

/* --- KATMAN 3: EN ÖN (Hızlı, Parlak Kırmızı/Turuncu) --- */
.wave-front {
    /* SVG: Başlangıç (M0,60) ve Bitiş (800,60) yükseklikleri eşitlendi. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 300,0 450,60 C600,120 700,0 800,60 L800,200 L0,200 Z' fill='rgba(239, 68, 68, 0.5)'/%3E%3C/svg%3E");
    height: 50%;
    /* 10 saniyede bir tam tur (Hızlı) */
    animation: move-wave-horizontal 10s linear infinite;
}

/* Yatay Kayma Animasyonu (Sonsuz Döngü) */
@keyframes move-wave-horizontal {
    0% {
        /* Başlangıç noktası */
        transform: translateX(0);
    }
    100% {
        /* Tam olarak görselin bir kopyası kadar sola kaydır */
        /* Genişlik %200 olduğu için, %50'si görselin kendisine eşittir */
        transform: translateX(-50%);
    }
}

/* =========================================
   3. ANA SAYFA (PROFİL) STİLLERİ
   ========================================= */
.container {
    position: relative;
    z-index: 10;
    padding: 2rem;
    padding-top: 100px;
    max-width: 900px; /* BURAYI DEĞİŞTİRDİK: 620px -> 850px */
    width: 100%;
    box-sizing: border-box;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
}

.profile-image {
    width: 166px;
    height: 166px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0; /* Alt boşluğu biraz artırdık */
}

/* İletişim Rozeti (Mail) */
.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f8fafc;
    color: var(--text-light-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Link Butonları Grid Yapısı */
.links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
}

.link-button:hover::before {
    left: 100%;
}

/* Geniş Buton (Eğitim Linki İçin) */
.full-width-btn {
    grid-column: 1 / -1;
    height: auto;
    white-space: normal;
    line-height: 1.5;
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 50px; /* Sosyal medyadan biraz ayıralım */
}

/* =========================================
   4. EĞİTİM SAYFASI (DETAY) STİLLERİ
   ========================================= */
.page-container {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.content-card {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    margin-top: 1rem;
}

/* Geri Dön Butonu */
.back-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.back-button:hover {
    background: white;
    color: var(--primary-color);
}

.mini-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 2rem 0;
}

/* İlan Başlıkları */
.ilan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ilan-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-cloud span {
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.location-badge {
    background: #fffbeb;
    color: #b45309;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid #fcd34d;
}

.highlight-text {
    font-style: italic;
    color: var(--text-light-color);
}

/* Kazanım Kutusu */
.value-prop-box {
    background: linear-gradient(135deg, var(--primary-color), #dc2626);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.value-prop-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.value-prop-box p {
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Müfredat Kartları */
.section-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.module-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-header {
    font-weight: 800;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-hours {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-card ul li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.9rem;
    color: var(--text-light-color);
}

.module-card ul li:last-child {
    border-bottom: none;
}

/* Ekstra Yetenekler */
.extra-skills-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.extra-skills-box h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list span {
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    color: var(--text-color);
}

/* Notlar */
.notes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.note-box {
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.note-box h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.note-box ul {
    padding-left: 1.2rem;
    margin: 0;
}

.note-box.regular {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.note-box.important {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer Çağrı */
.footer-cta {
    text-align: center;
    font-weight: 700;
    color: var(--text-color);
    padding: 1rem;
    background: #fff;
    border-top: 2px dashed #e2e8f0;
    margin-top: 1rem;
}

/* =========================================
   5. RESPONSIVE (MOBİL UYUMLULUK)
   ========================================= */

/* Tablet ve Altı */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-top: 2rem;
        max-width: 90%;
    }
    
    .profile-card {
        padding: 1.5rem 1rem;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .user-name {
        font-size: 1.25rem;
    }
    
    .link-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .wave {
        width: 300%;
        height: 300%;
    }

    /* Eğitim Sayfası Tablet */
    .content-card {
        padding: 1.5rem;
    }
    .page-container {
        padding: 1rem;
    }
    .ilan-title {
        font-size: 1.5rem;
    }
}

/* Telefonlar */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        padding-top: 1.5rem;
        max-width: 95%;
    }
    
    .profile-card {
        padding: 1.25rem 0.75rem;
        border-radius: 1rem;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .user-name {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .links-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.75rem;
    }
    
    .link-button {
        font-size: 0.85rem;
        padding: 0.75rem 0.25rem;
    }

    .contact-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Eğitim Sayfası Mobil */
    .notes-container {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .ilan-title {
        font-size: 1.4rem;
    }
}

/* Yatay Telefon Ekranları */
@media (orientation: landscape) and (max-height: 600px) {
    .container {
        padding-top: 1rem;
    }
    .profile-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }
    .user-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    .links-container {
        gap: 0.5rem;
    }
    .link-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .profile-card {
        padding: 1rem 0.75rem;
    }
}











.education-area {
    grid-column: 1 / -1; /* Izgarada boydan boya kapla */
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

/* Etiketlerin duruşu */
.topics-cloud {
    display: flex;
    flex-wrap: wrap; /* Sığmayınca alt satıra geç */
    justify-content: center; /* Ortala */
    gap: 0.6rem; /* Aralarındaki boşluk */
}

/* Etiketlerin (Kutucukların) Tasarımı */
.topics-cloud span {
    background-color: #ffffff;
    border: 1px solid #cbd5e1; /* İnce gri çerçeve */
    color: #475569; /* Koyu gri yazı */
    padding: 0.5rem 1rem;
    border-radius: 2rem; /* Tam oval kenarlar (Hap gibi) */
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Çok hafif gölge */
    cursor: default; /* Üzerine gelince imleç değişmesin (sadece bilgi) */
}

/* Kırmızı Yönlendirme Butonu */
.education-cta {
    width: 100%;
    /* Diğer .link-button özelliklerini zaten alıyor */
    /* Sadece ekstra dikkat çekmesi için animasyon ekleyebiliriz */
}

.education-cta:hover {
    background-color: #dc2626; /* Biraz daha koyu kırmızı */
    transform: translateY(-2px);
}

/* Mobilde etiketler çok yer kaplamasın */
@media (max-width: 480px) {
    .topics-cloud {
        gap: 0.4rem;
    }
    .topics-cloud span {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}



/* Not kutularındaki maddelerin arasını aç */
.note-box ul li {
    margin-bottom: 7px; 
}

/* En son maddenin altına boşluk koyma (daha düzenli dursun) */
.note-box ul li:last-child {
    margin-bottom: 0;
}












/* --- GİRİŞİMLER & PROJELER BÖLÜMÜ --- */

.projects-area {
    grid-column: 1 / -1;
    margin-bottom: 60px;
    margin-top: 0.5rem;
}

.section-label {
    font-size: 0.9rem;
    color: var(--text-light-color);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    opacity: 0.8;
}

.projects-grid {
    display: flex;           /* Grid yerine Flex kullanıyoruz */
    justify-content: center; /* İçindekileri tam ortala */
    flex-wrap: wrap;         /* Sığmazsa alt satıra geç */
    gap: 2rem;               /* Aralarını biraz açtık (1rem -> 2rem), daha ferah durur */
    margin-top: 0.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Kutuları kaldırıp sadece logoyu bırakıyoruz */
.project-icon {
    width: 70px; /* Boyutu logoya göre hafif ayarladık */
    height: 70px;
    object-fit: contain;
    border-radius: 8px; /* Çok hafif köşe yumuşatma kalsın */
    /* background, border, shadow ve padding'i SİLDİK/SIFIRLADIK */
    background-color: transparent; 
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

/* Hover efektini de sadeleştirelim (Sadece hafif büyüsün) */
.project-card:hover .project-icon {
    transform: scale(1.1); /* Üzerine gelince logo biraz büyüsün */
    box-shadow: none; /* Gölge gelmesin */
}

.project-name {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Kitap kapağı dik olduğu için ona özel ayar (Opsiyonel) */
.book-cover {
    object-fit: cover; /* Kitap kapağı tüm alanı kaplasın */
    padding: 0;
}

/* Mobilde 4 tane yan yana çok sıkışırsa 2x2 yapalım */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr); /* Mobilde de 4'lü sığabilir, logolar küçülür */
        gap: 0.5rem;
    }

    .project-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .project-name {
        font-size: 0.7rem;
    }
}


/* Sosyal Medya İkonlarının sağına boşluk ver */
.link-button svg {
    margin-right: 5px; /* İkon ile yazı arasına 8px mesafe koyar */
}

/* Proje altı mikro açıklamalar */
.project-desc {
    font-size: 0.7rem;      /* Çok küçük font */
    color: var(--text-light-color); /* Silik gri renk */
    margin-top: 3px;        /* İsimle arasına minik boşluk */
    font-weight: 500;
    text-align: center;
    max-width: 100px;       /* Çok uzarsa alt satıra geçsin */
    line-height: 1.2;
}






/* --- ALT BİLGİ (FOOTER) --- */

.footer-info {
    margin-top: 2.5rem; /* Üsttekilerden biraz uzaklaşsın */
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9; /* Çok hafif bir ayırma çizgisi */
    text-align: center;
    width: 100%;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-light-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.footer-mail {
    font-size: 0.9rem;
    color: var(--primary-color); /* Kırmızı olsun ki dikkat çeksin */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.footer-mail:hover {
    opacity: 1;
    text-decoration: underline; /* Üzerine gelince altını çizsin */
}









/* =========================================
   MOBİL DÜZELTME: PROJELER (2x2 DÜZENİ) - FINAL
   ========================================= */
@media (max-width: 600px) {
    .projects-grid {
        /* KRİTİK DÜZELTME: Flex yapısını Grid'e çeviriyoruz */
        display: grid; 
        
        /* 2 Sütunlu Yapı (2 Yan Yana) */
        grid-template-columns: repeat(2, 1fr) !important;
        
        /* Boşluk Ayarları */
        gap: 1rem;      /* Yan boşluklar */
        row-gap: 2rem;  /* Alt alta boşluklar */
        
        width: 100%;    /* Ekrana tam yayıl */
        justify-content: center;
        margin-top: 1rem;
    }

    /* Kartların her biri kendi hücresinde tam ortalansın */
    .project-card {
        width: 100%; 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    /* İkonlar mobilde çok ufak kalmasın */
    .project-icon {
        width: 60px;
        height: 60px;
    }
}