/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --navy: #1e3c72;
    --green: #00b894;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #2d3436;
    --medium-gray: #636e72;
    --border-color: #e1e8ed;
    
    --header-height: 80px;
    --shadow-lg: 0 8px 32px rgba(30, 60, 114, 0.12);
    --container-width: 1200px;
}

/* DARK TEMA RENKLERİ */
[data-theme="dark"] {
    --navy: #1a2f5a;
    --green: #00d4a3;
    --light-bg: #1e1e2e;
    --white: #0d1117;
    --dark-text: #e0e0e0;
    --medium-gray: #a0a0a0;
    --border-color: #404050;
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* =========================================
   2. HEADER & NAVİGASYON
   ========================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    height: 100%;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--navy);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--light-bg);
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle {
    color: var(--green);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-text);
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--green); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--navy);
    padding-left: 1.8rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--navy);
    background: none;
    border: none;
    padding: 8px;
}

[data-theme="dark"] .hamburger {
    color: var(--dark-text);
}

/* =========================================
   3-6. DİĞER BÖLÜMLER
   ========================================= */
.hero { position: relative; min-height: 100vh; padding-top: var(--header-height); display: flex; align-items: center; background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%); overflow: hidden; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0f172a 0%, #1a2f5a 100%); }
.topo-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.04; background-image: repeating-linear-gradient(0deg, transparent, transparent 35px, var(--navy) 35px, var(--navy) 36px), repeating-linear-gradient(90deg, transparent, transparent 35px, var(--navy) 35px, var(--navy) 36px); pointer-events: none; }
.hero-content { max-width: var(--container-width); margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 1.5rem; }
.motto-box { background-color: var(--navy); color: var(--white); padding: 20px 25px; border-radius: 8px 0 8px 0; margin-bottom: 2rem; position: relative; box-shadow: 0 10px 20px rgba(30, 60, 114, 0.2); border-left: 5px solid var(--green); }
.motto-box p { font-style: italic; font-size: 1.1rem; line-height: 1.6; margin-bottom: 10px; font-weight: 500; }
.motto-author { display: block; text-align: right; font-weight: 700; color: var(--green); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.quote-icon { font-size: 1.5rem; color: rgba(255, 255, 255, 0.2); position: absolute; top: 10px; right: 15px; }
.hero-text .subtitle { font-size: 1.1rem; color: var(--medium-gray); margin-bottom: 2.5rem; max-width: 600px; }
.highlight { color: var(--green); font-weight: 700; position: relative; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { padding: 1rem 2rem; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3); }
.btn-primary:hover { transform: translateY(-3px); background: #2a5298; box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4); }
[data-theme="dark"] .btn-primary:hover { background: #00d4a3; color: #0d1117; }
.btn-secondary { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
[data-theme="dark"] .btn-secondary:hover { background: var(--green); color: #0d1117; border-color: var(--green); }
.portrait-frame { width: 100%; max-width: 400px; aspect-ratio: 1/1; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--navy)); padding: 6px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; margin: 0 auto; }
.portrait-placeholder { width: 100%; height: 100%; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.portrait-placeholder img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.featured-works { padding: 6rem 2rem; max-width: var(--container-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; color: var(--navy); font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.card { background: var(--white); border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem 2rem; transition: 0.3s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-10px); border-color: var(--green); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-category { color: var(--green); font-weight: 800; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 1rem; }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--navy); }
.card-link { color: var(--navy); font-weight: 700; font-size: 0.9rem; margin-top: 1rem; display: block; }
.contact { background: var(--navy); color: var(--white); padding: 5rem 2rem; text-align: center; }
.contact-desc { max-width: 600px; margin: 1rem auto; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.social-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.3s; }
.social-icon:hover { background: var(--green); transform: translateY(-5px) rotate(360deg); }
footer { background: #152a4f; color: rgba(255,255,255,0.6); padding: 2rem; text-align: center; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); }
@media (max-width: 968px) {
    .hamburger { display: block; z-index: 1001; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--white); flex-direction: column; justify-content: center; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.4s ease-in-out; z-index: 1000; }
    .nav-menu.active { right: 0; }
    .dropdown-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; padding-left: 1rem; display: none; }
    .dropdown:hover .dropdown-menu { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
    .hero-image { order: -1; margin-bottom: 2rem; }
    .portrait-frame { max-width: 280px; }
    .hero-text .subtitle { margin-left: auto; margin-right: auto; }
    .cta-buttons { justify-content: center; }
}

/* =========================================
   7. HAKKINDA SAYFASI
   ========================================= */
.about-hero { padding: 120px 0 60px 0; background: var(--white); min-height: 60vh; display: flex; align-items: center; }
.about-hero .hero-content { display: flex; align-items: center; justify-content: space-between; gap: 50px; max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.about-text { flex: 1; }
.about-image { flex: 1; display: flex; justify-content: center; }
.about-image img { max-width: 400px; border-radius: 20px; box-shadow: 20px 20px 0px var(--light-bg); }
.badge { background: var(--light-bg); color: var(--navy); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 15px; }
[data-theme="dark"] .badge {
    background: rgba(0, 212, 163, 0.15);
    color: var(--green);
}
.motto-box-small { border-left: 3px solid var(--green); padding-left: 15px; margin-top: 20px; font-style: italic; color: var(--medium-gray); }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.bio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.bio-card { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid var(--border-color); transition: 0.3s; }
.bio-card:hover { transform: translateY(-5px); border-color: var(--green); }
.bio-icon { font-size: 2.5rem; color: var(--green); margin-bottom: 20px; }
.bio-card h3 { color: var(--navy); margin-bottom: 15px; font-size: 1.5rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.skill-item { background: var(--white); padding: 30px; border-radius: 12px; border-bottom: 4px solid var(--navy); }
.skill-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.skill-header i { font-size: 1.8rem; color: var(--navy); }
.skill-header h4 { font-size: 1.1rem; font-weight: 700; color: var(--dark-text); }

/* =========================================
   8. EĞİTSEL İÇERİKLER SAYFASI (Düzeltildi)
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--navy), #152a4f);
    padding: 120px 0 60px 0;
    text-align: center;
    color: var(--white);
}
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #0f172a, #1a2f5a);
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; opacity: 0.8; font-weight: 300; }
.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}
.features-list { margin-top: 30px; display: grid; gap: 20px; }
.feature-item {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
[data-theme="dark"] .feature-item {
    background: var(--light-bg);
}
.feature-item i { font-size: 2rem; color: var(--navy); }
[data-theme="dark"] .feature-item i {
    color: var(--green);
}
.feature-item h4 { margin-bottom: 5px; color: var(--navy); }
[data-theme="dark"] .feature-item h4 {
    color: var(--dark-text);
}

/* Pedagoji Kutusu HİZALAMA DÜZELTMESİ (v3.4) */
.pedagogy-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.pedagogy-box h3 {
    color: var(--navy);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.pedagogy-box ul { list-style: none; padding-left: 0; }
.pedagogy-box li { 
    margin-bottom: 15px; 
    display: flex; 
    align-items: flex-start; /* İkon yukarıda sabit kalır */
    gap: 12px; 
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0; /* Hafif çizgi ile ayrım */
}
.pedagogy-box li:last-child { border-bottom: none; }
.pedagogy-box li i { 
    color: var(--green); 
    font-size: 1.1rem;
    margin-top: 5px; /* İkonu ilk satırla hizala */
    flex-shrink: 0; /* İkonun sıkışmasını engelle */
}
.pedagogy-box li div {
    font-size: 0.95rem;
    color: var(--dark-text);
}
.pedagogy-box li strong {
    color: var(--navy);
    font-weight: 700;
}

/* Modül Kartları */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.module-card { background: transparent; border-radius: 20px; overflow: hidden; transition: 0.3s; }
.module-card:hover { transform: translateY(-5px); }
.module-img { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.15); aspect-ratio: 1/1; }
.module-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.module-card:hover .module-img img { transform: scale(1.1); }
.module-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 60, 114, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.module-card:hover .module-overlay { opacity: 1; }
.btn-module { background: var(--white); color: var(--navy); padding: 10px 25px; border-radius: 30px; font-weight: 700; transform: translateY(20px); transition: 0.3s; }
.module-card:hover .btn-module { transform: translateY(0); }
.module-info { text-align: center; padding-top: 15px; }
.module-info h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.module-tag { font-size: 0.85rem; color: var(--medium-gray); font-weight: 500; }

/* Detay Sayfası Stilleri */
.module-detail { padding-top: 120px; padding-bottom: 80px; }
.iframe-container { width: 100%; height: 600px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); background: #000; margin-bottom: 40px; }
.iframe-container iframe { width: 100%; height: 100%; border: none; }
.module-desc-box { background: var(--white); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); }
.award-box { margin-bottom: 20px; background: #fff3cd; color: #856404; padding: 15px; border-radius: 8px; border-left: 5px solid #ffc107; font-weight: 600; }
.award-box a { text-decoration: underline; }
@media (max-width: 968px) { .intro-grid { grid-template-columns: 1fr; } }
/* =========================================
   9. YENİLİKÇİ SINIF SAYFASI STİLLERİ
   ========================================= */

.project-details {
    background: var(--white);
}

.project-row {
    padding: 20px 0;
}

.project-content h3 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.project-label {
    display: inline-block;
    background: #e3f2fd;
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.project-label i {
    color: var(--green);
    margin-right: 5px;
}

.project-steps {
    list-style: none;
    margin-top: 20px;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--navy);
}

.project-steps li {
    margin-bottom: 15px;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.project-steps li::before {
    content: "•";
    color: var(--green);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.project-steps li strong {
    color: var(--navy);
}

.project-divider {
    border: 0;
    height: 1px;
    background: #e1e8ed;
    margin: 40px 0;
}
/* =========================================
   10. PROJE DETAY SAYFASI (DÜZELTİLDİ - v3.7)
   ========================================= */

.project-header-box {
    text-align: center;
    margin-bottom: 40px;
}
.project-header-box h1 {
    color: var(--navy);
    font-size: 2.2rem;
    margin: 10px 0;
}

/* Tinkercad Görsel Efekti (REVİZE EDİLDİ) */
.tinkercad-link-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Linkin kendisini kapsayıcı yapıyoruz */
.tinkercad-link-container a {
    display: block;          /* Linki blok yap */
    position: relative;      /* Overlay buna göre hizalansın */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.tinkercad-link-container img {
    width: 100%;
    display: block;          /* Satır boşluğunu sil */
    transition: 0.5s;
    position: relative;      /* Z-index çalışsın diye */
    z-index: 1;              /* Resim 1. katta */
}

.tinkercad-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 184, 148, 0.9); /* Yeşil Overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 10;             /* [ÖNEMLİ] Perdeyi 10. kata (en üste) çıkardık! */
}

.tinkercad-overlay i { font-size: 3rem; margin-bottom: 10px; }

/* Hover Efektleri */
.tinkercad-link-container a:hover .tinkercad-overlay { opacity: 1; }
.tinkercad-link-container a:hover img { transform: scale(1.05); }

/* Resim Altı Açıklama */
.img-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 600;
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

/* Görev Metni */
.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--navy);
}
[data-theme="dark"] .mission-text {
    background: rgba(0, 212, 163, 0.1);
    border-left-color: var(--green);
}

/* Adım Kartları */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.step-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
}
.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.step-card h4 {
    margin-top: 15px;
    color: var(--navy);
    margin-bottom: 10px;
}

/* Değerlendirme Grid */
.evaluation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}
.eval-box {
    padding: 25px;
    border-radius: 12px;
}
.eval-box.critical { background: #fff3cd; color: #856404; }
.eval-box.criteria { background: #d4edda; color: #155724; }
.eval-box h4 { margin-bottom: 15px; font-size: 1.1rem; }
.eval-box ul { list-style: none; }
.eval-box ul li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }

/* Alıntı Alt */
.quote-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}
.quote-footer p { font-size: 1.3rem; font-style: italic; color: var(--navy); font-weight: 600; }
.quote-footer span { display: block; margin-top: 10px; color: var(--green); font-weight: 700; }

@media (max-width: 768px) {
    .evaluation-grid { grid-template-columns: 1fr; }
}
/* =========================================
   11. GÖMÜLÜ RAPOR (IFRAME) STİLLERİ
   ========================================= */

.embed-container {
    position: relative;
    width: 98%;
    height: 0;
    /* Yüksekliği artırdık. Kareye yakın bir oran (100%) verdik ki sığsın */
    padding-bottom: 80%; 
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid var(--border-color);
    background: #fff;
}


/* =========================================
   11. GÖMÜLÜ RAPOR (IFRAME) DÜZELTMESİ (v3.15)
   ========================================= */

/* Standart Kutu (Looker Studio vb. için) */
.embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Kare form */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid var(--border-color);
    background: #fff;
    margin-bottom: 20px; /* Altındaki metinle arayı açar */
}

/* =========================================
   11. GÖMÜLÜ RAPOR (IFRAME) DÜZELTMESİ (v3.18 - Final)
   ========================================= */

/* Standart Kutu (Dikey Raporlar İçin) */
.embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Kare form */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid var(--border-color);
    background: #fff;
    margin-bottom: 20px;
}

/* YATAY HARİTALAR İÇİN ÖZEL AYAR (Yükseltildi) */
.embed-container.landscape {
    padding-bottom: 0 !important; /* Yüzdeyi iptal et */
    height: 75vh;                 /* Ekran yüksekliğinin %75'ini kapla */
    min-height: 800px;            /* [ÖNEMLİ] Yüksekliği 800px yaptık, scrollbar çıkmayacak */
}

.embed-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Resim Altı Açıklama */
.img-caption {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: var(--navy);
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    display: block;
}

.module-desc-box {
    margin-top: 20px;
}
/* =========================================
   12. İLETİŞİM BÖLÜMÜ (Contact Section)
   ========================================= */

.contact-section {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.quote-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

/* Çift Sütun Izgara */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

/* Sol Sütun: Manifesto */
.contact-manifesto h3 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-manifesto p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.contact-cta-box {
    background: #fff;
    border-left: 4px solid var(--orange);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Sağ Sütun: Hizmetler */
.contact-details h3 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.services-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.services-list li i {
    color: var(--orange);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px;
}

.services-list li strong {
    display: block;
    color: #333;
    margin-bottom: 3px;
}

.services-list li span {
    font-size: 0.9rem;
    color: #666;
}

/* E-posta Kartları */
.email-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.email-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: transform 0.2s ease;
    min-width: 200px;
}

.email-card:hover {
    transform: translateY(-3px);
}

.email-card.hotmail {
    background: #0078d4; /* Outlook Mavisi */
}

.email-card.gmail {
    background: #ea4335; /* Google Kırmızısı */
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .contact-grid-layout {
        grid-template-columns: 1fr; /* Mobilde alt alta */
        gap: 30px;
    }
}
/* =========================================
   13. FOOTER & ATATÜRK KÖŞESİ (DÜZELTİLDİ)
   ========================================= */
footer {
    background-color: var(--navy); /* --navy-blue DEĞİL, --navy */
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 5px solid #f77f00; /* Turuncu rengi manuel yazdım, garanti olsun */
}

.footer-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
}

/* Atatürk Resmi */
.ataturk-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Söz Kısmı */
.footer-quote {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    max-width: 600px;
    line-height: 1.5;
}

.footer-quote span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
    color: #f77f00; /* Turuncu */
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p {
    margin-top: 30px;
    opacity: 0.6;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .footer-quote {
        text-align: center;
    }
}
/* =========================================
   14. ROBOTİK VE KODLAMA KARTLARI
   ========================================= */
.robotics-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1); /* Resim hafif yakınlaşır */
}

.card-image .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 48, 73, 0.4); /* Lacivert transparan perde */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .card-image .overlay {
    opacity: 1;
}

.card-image .overlay i {
    font-size: 3rem;
    color: #fff;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--navy-blue);
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    background: #f0f0f0;
    color: #555;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================================
   15. ÜST DUYURU BANI (BANNER)
   ========================================= */
#global-banner {
    display: none; /* İçerik yoksa gizli dursun */
}

#global-banner:not(:empty) {
    display: block; /* İçerik gelince görünsün */
}

.announcement-bar {
    background: linear-gradient(90deg, #c0392b, #e74c3c); /* Türk Bayrağı Kırmızısı */
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001; /* Menünün üstünde kalsın */
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center;
}

.announcement-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite; /* İkon hafifçe yanıp sönsün */
}

.announcement-text a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.close-banner {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto; /* En sağa iter */
}

.close-banner:hover {
    color: white;
}

/* İkon Animasyonu */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .close-banner {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .announcement-text {
        padding-right: 25px; /* Çarpı işareti yazının üstüne gelmesin */
        font-size: 0.8rem;
    }
}
/* =========================================
   ROBOTİK SAYFASI İÇİN ÖZEL AYAR (DÜZELTİLDİ - İDEAL BOYUT)
   ========================================= */

/* 1. Grid Yapısı: Daha dengeli ve toplu dursun */
.robotics-section .projects-grid {
    display: grid;
    /* Kutular en az 350px olsun. Ekran genişse yan yana 3 tane sığsın */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* Boşlukları biraz daralttık, daha bütün dursun */
    margin-top: 30px;
}

/* 2. Kart Yapısı */
.robotics-section .project-card {
    background: #fff;
    border: 1px solid #eaeaea; /* Çerçeveyi incelttik */
    border-radius: 12px;       /* Köşeleri biraz daha keskinleştirdik */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Gölgeyi hafiflettik */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.robotics-section .project-card:hover {
    transform: translateY(-5px); /* Hafifçe yukarı kalksın */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 3. Resim Alanı: Yüksekliği düşürdük */
.robotics-section .card-image {
    height: 600px; /* [DÜZELTME] 350px'den 220px'e indi. Daha kibar. */
    width: 100%;
    position: relative;
}

.robotics-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.robotics-section .project-card:hover .card-image img {
    transform: scale(1.05); /* Çok hafif zoom */
}

/* 4. Yazı Alanı */
.robotics-section .card-content {
    padding: 25px; /* İç boşluğu azalttık */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.robotics-section .card-content h3 {
    font-size: 1.4rem; /* [DÜZELTME] Başlık puntosunu küçülttük */
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
}

.robotics-section .card-content p {
    font-size: 0.95rem; /* [DÜZELTME] Yazı puntosunu ideal boyuta çektik */
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Etiketler */
.robotics-section .tags span {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #eee;
}

/* MOBİL GÖRÜNÜM */
@media (max-width: 768px) {
    .robotics-section .projects-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    .robotics-section .card-image {
        height: 200px;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .theme-toggle {
        display: flex;
        z-index: 1001;
    }
}

/* DARK TEMA - ŞEKİL VE TEMA TOGGLE SEÇEVİ GÖRÜNTÜLERİ */
[data-theme="dark"] header {
    background: rgba(13, 17, 23, 0.95);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--white);
}

[data-theme="dark"] .card {
    background: var(--light-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .card:hover {
    border-color: var(--green);
}

[data-theme="dark"] .skill-item {
    background: var(--light-bg);
    border-bottom-color: var(--green);
}

[data-theme="dark"] .pedagogy-box {
    background: var(--light-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .pedagogy-box h3 {
    border-bottom-color: #404050;
}

[data-theme="dark"] .step-card {
    background: var(--light-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .robotics-section .project-card {
    background: var(--light-bg);
    border-color: var(--border-color);
}
/* =========================================
   DARK MODE: RENK VE KONTRAST İYİLEŞTİRMELERİ (SON DOKUNUŞ)
   ========================================= */

/* 1. Kart ve Kutu Arka Planları - Koyu modda silik kalmasınlar */
[data-theme="dark"] .bio-card,
[data-theme="dark"] .embed-container,
[data-theme="dark"] .project-details,
[data-theme="dark"] .robotics-section .project-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .eval-box {
    background-color: var(--light-bg); /* #1e1e2e - Hafif koyu gri */
    border-color: var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 2. Başlıklar ve Vurgulu Metinler (Navy yerine Açık Mavi) */
/* Koyu zeminde lacivert okunmaz, o yüzden "GitHub Mavisi" yaptık */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .hero-text h1,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .bio-card h3,
[data-theme="dark"] .project-content h3,
[data-theme="dark"] .project-header-box h1,
[data-theme="dark"] .robotics-section .card-content h3,
[data-theme="dark"] .pedagogy-box li strong,
[data-theme="dark"] .project-steps li strong,
[data-theme="dark"] .contact-manifesto h3,
[data-theme="dark"] .contact-details h3,
[data-theme="dark"] .step-card h4 {
    color: #58a6ff !important; /* !important ile zorladık ki kesin değişsin */
}

/* 3. Genel Metin Okunabilirliği */
/* Koyu modda siyah yazı kalmasın, hepsini açık gri yap */
[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span,
[data-theme="dark"] .robotics-section .card-content p,
[data-theme="dark"] .contact-manifesto p,
[data-theme="dark"] .services-list li strong,
[data-theme="dark"] .project-steps li {
    color: var(--dark-text); /* #e0e0e0 */
}

/* 4. Footer Düzeltmesi */
[data-theme="dark"] footer {
    background-color: #161b22; /* Daha koyu, solid renk */
    border-top: 1px solid var(--border-color);
}

/* 5. Linkler */
[data-theme="dark"] .card-link {
    color: #58a6ff;
}
/* =========================================
   DARK MODE: ANA SAYFA & OKUNABİLİRLİK DÜZELTMESİ
   ========================================= */

/* 1. Hero (Giriş) Bölümü Arka Planı */
/* Mavi gradyanı kaldırıp Kömür Karası yapıyoruz */
[data-theme="dark"] .hero {
    background: #0d1117 !important; /* GitHub Dark Siyahı */
    /* İstersen çok hafif bir gradyan da olabilir: */
    /* background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important; */
}

/* 2. Alıntı Kutuları (Motto Box) */
[data-theme="dark"] .motto-box {
    background-color: #161b22; /* Kutu rengini koyulaştır */
    border-left: 5px solid #58a6ff;
}
[data-theme="dark"] .motto-box p {
    color: #c9d1d9; /* İçindeki yazıyı açık gri yap */
}

/* 3. İletişim Sayfası Arka Planı */
[data-theme="dark"] .contact, 
[data-theme="dark"] .contact-section {
    background-color: #0d1117 !important; /* Laciverti ez, siyah yap */
    color: #c9d1d9;
}

/* 4. Mavi Üstüne Mavi Olan Başlıkları Kurtar */
[data-theme="dark"] .hero-text h1 {
    color: #58a6ff; /* Parlak Mavi */
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.2); /* Hafif parlama efekti */
}

[data-theme="dark"] .hero-text .subtitle {
    color: #8b949e; /* Alt başlığı gri yap ki ana başlıkla karışmasın */
}
/* =========================================
   DARK MODE: İLETİŞİM KUTUSU & UYARILAR (FIX)
   ========================================= */

/* 1. İletişim Sayfasındaki Bilgi Kutusu (O beyaz kalan yer) */
[data-theme="dark"] .contact-cta-box {
    background-color: #161b22;  /* Kart rengiyle aynı koyu gri */
    color: #c9d1d9;             /* Açık gri okunabilir yazı */
    border-left: 4px solid #58a6ff; /* Çizgisini de mavi yapalım */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Hafif gölge */
}

/* 2. Sarı Ödül/Uyarı Kutusu (Diğer sayfalarda varsa göz almasın) */
[data-theme="dark"] .award-box {
    background-color: rgba(210, 153, 34, 0.15); /* Şeffaf, koyu sarı zemin */
    color: #e3b341;       /* Göz yormayan altın sarısı yazı */
    border: 1px solid rgba(210, 153, 34, 0.4);
    border-left: 4px solid #e3b341;
}

/* Link rengini de düzeltelim (Sarı kutu içindeki) */
[data-theme="dark"] .award-box a {
    color: #fff;
}
/* =========================================
   SESLİ ASİSTAN SAYFASI ÖZEL STİLLERİ
   ========================================= */

/* 1. Kod Penceresi (Fake VS Code) */
.code-window {
    background: #1e1e1e; /* VS Code Dark */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    margin: 20px 0;
    font-family: 'Consolas', 'Monaco', monospace;
}

.code-header {
    background: #252526;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-content {
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Kod Renklendirme (Basit Syntax Highlight) */
.kw { color: #569cd6; } /* Keyword (import, def) */
.str { color: #ce9178; } /* String ("yazi") */
.fn { color: #dcdcaa; } /* Function */
.com { color: #6a9955; font-style: italic; } /* Comment */

/* 2. Sohbet Balonları (Demo İçin) */
.chat-demo-box {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
[data-theme="dark"] .chat-demo-box {
    background: #161b22;
    border-color: #30363d;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 0.9rem;
    position: relative;
}

.chat-user {
    background: #e3f2fd;
    color: var(--navy);
    margin-left: auto; /* Sağa yasla */
    border-bottom-right-radius: 2px;
}
[data-theme="dark"] .chat-user { background: #1a2f5a; color: #fff; }

.chat-bot {
    background: var(--green);
    color: white;
    margin-right: auto; /* Sola yasla */
    border-bottom-left-radius: 2px;
}