@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');

/* ==========================================================================
   1. TEMEL AYARLAR
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #050505; 
    color: #ccc; 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; 
    position: relative;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

:root { --blue: #00a8ff; --dark: #0b0c10; --card-bg: #111; --neon-green: #0f0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar { position: fixed; top: 0; width: 100%; height: 80px; z-index: 1000; background: rgba(5,5,5,0.95); border-bottom: 1px solid #222; backdrop-filter: blur(10px); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo { color: #fff; font-size: 1.8rem; letter-spacing: 2px; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; } 
.nav-links li { display: inline-block; }
.nav-links a { color: #fff; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--blue); }
.nav-btn { background: var(--blue); color: #000 !important; padding: 10px 20px; border-radius: 4px; font-weight: bold; }
.nav-btn:hover { background: #fff; box-shadow: 0 0 15px var(--blue); }
.menu-toggle { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   3. HERO BÖLÜMÜ (ANA EKRAN) - ZOOM DÜZELTMELİ
   ========================================================================== */
.hero-3d { 
    width: 100%;
    position: relative; 
    background-image: url('hero-bg.jpg'); 
    background-size: cover; 
    background-position: center bottom !important; /* Tekerlekler görünsün */
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 0 !important;
    
    /* VARSAYILAN YÜKSEKLİK (Mobil ve Tablet İçin) */
    height: 100vh !important;
    min-height: 100vh !important;
}

.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%); 
    z-index: 1; pointer-events: none; 
}

.hero-content {
    position: relative !important; 
    z-index: 2; 
    text-align: center; 
    width: 100%;
    top: auto !important; left: auto !important; transform: none !important;
    padding: 0 20px;
}

.main-title { font-size: 4rem; color: #fff; margin-bottom: 10px; text-shadow: 0 0 30px rgba(0,168,255,0.8); }
.sub-title { font-size: 1.2rem; color: var(--blue); margin-bottom: 30px; letter-spacing: 3px; font-weight: bold; }
.btn-neon { padding: 15px 40px; border: 2px solid var(--blue); color: var(--blue); font-weight: bold; display: inline-block; background: rgba(0,0,0,0.8); cursor: pointer; border-radius: 5px; }
.btn-neon:hover { background: var(--blue); color: #000; box-shadow: 0 0 20px var(--blue); }

/* HUD Panel */
.system-panel {
    position: absolute; bottom: 40px; right: 40px; z-index: 10;
    background: rgba(0, 15, 25, 0.85); border: 2px solid var(--blue);
    border-radius: 10px; padding: 20px; width: 320px;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3); backdrop-filter: blur(5px);
}
.panel-header { display: flex; justify-content: space-between; font-size: 0.85rem; color: #888; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.live-indicator { color: var(--neon-green); font-weight: bold; animation: blink 2s infinite; }
.panel-row-bar { margin-bottom: 15px; }
.bar-info { display: flex; justify-content: space-between; color: #fff; margin-bottom: 5px; font-size: 1rem; }
.progress-bg { width: 100%; height: 6px; background: #333; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); width: 80%; box-shadow: 0 0 10px var(--blue); transition: width 0.5s; }
.panel-row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.panel-label { font-size: 1rem; color: #ddd; }
.panel-value { color: var(--blue); font-weight: bold; text-shadow: 0 0 5px var(--blue); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ==========================================================================
   4. ORTAK BİLEŞENLER
   ========================================================================== */
.dark-section { background: #050505; }
.blue-line { width: 60px; height: 5px; background: var(--blue); margin: 20px 0; }
.white-title { font-size: 3rem; color: #fff; line-height: 1; margin-bottom: 20px; }
.blue-text { color: var(--blue); }
.grey-text { color: #888; font-size: 1rem; line-height: 1.6; margin-bottom: 20px; max-width: 600px; }
.blue-tag { color: var(--blue); font-weight: bold; letter-spacing: 2px; display: block; margin-bottom: 10px; font-size: 0.9rem; }
.split-box { display: flex; align-items: center; gap: 60px; }
.split-left, .split-right { flex: 1; }
.tech-img { width: 100%; border-radius: 10px; border: 1px solid #222; }
.stats-row { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid #222; padding-top: 20px; }
.stats-row > div { display: flex; flex-direction: column; align-items: center; text-align: center;}
.stat-num { display: block; font-size: 2.5rem; font-weight: bold; color: #fff; font-family: 'Oswald', sans-serif; }
.stat-label { color: var(--blue); font-size: 0.9rem; text-transform: uppercase; }

/* Timeline */
.timeline { position: relative; max-width: 1000px; margin: 50px auto; }
.timeline::after { content: ''; position: absolute; width: 6px; background-color: var(--blue); top: 0; bottom: 0; left: 50%; margin-left: -3px; box-shadow: 0 0 15px var(--blue); border-radius: 3px; z-index: 1; }
.timeline-container { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.left-container { left: 0; } .right-container { left: 50%; }
.timeline-content { padding: 20px 30px; background: rgba(14, 14, 14, 0.9); border: 1px solid #333; border-radius: 6px; position: relative; transition: 0.3s; }
.timeline-content:hover { border-color: var(--blue); box-shadow: 0 0 20px rgba(0, 168, 255, 0.2); transform: translateY(-3px); }
.timeline-content .date { color: var(--blue); font-family: 'Orbitron'; font-weight: bold; display: block; margin-bottom: 5px; }
.timeline-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; text-transform: uppercase; }
.timeline-content p { color: #ccc; font-size: 0.95rem; }
.timeline-container::before { content: " "; height: 0; position: absolute; top: 28px; width: 0; z-index: 2; border: medium solid transparent; }
.left-container::before { right: 30px; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--blue); }
.right-container::before { left: 30px; border-width: 10px 10px 10px 0; border-color: transparent var(--blue) transparent transparent; }
.right-container::after, .left-container::after { content: ''; position: absolute; width: 16px; height: 16px; top: 32px; background-color: #000; border: 3px solid var(--blue); border-radius: 50%; z-index: 2; box-shadow: 0 0 10px var(--blue); }
.right-container::after { left: -8px; } .left-container::after { right: -8px; }

/* Takım & Liderler */
.team-layout { display: flex; gap: 50px; align-items: flex-start; }
.team-sidebar { flex: 0 0 35%; position: sticky; top: 120px; }
.click-info-text { color: var(--blue); font-size: 0.9rem; font-weight: bold; }
.leadership-horizontal-group { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.leader-card-horizontal { background: #0e0e0e; border: 1px solid #333; border-radius: 12px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; position: relative; overflow: hidden; }
.leader-card-horizontal:hover { border-color: var(--blue); box-shadow: 0 0 15px rgba(0, 168, 255, 0.15); }
.lc-left { display: flex; align-items: center; gap: 15px; }
.lc-img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--blue); overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-info h3 { font-family: 'Oswald'; font-size: 1.2rem; color: #fff; margin: 0; }
.lc-role { font-family: 'Orbitron'; font-size: 0.7rem; color: #888; font-weight: bold; display: block; margin-bottom: 2px; }
.captain-role-color { color: var(--blue); }
.lc-edu { display: block; color: #666; font-size: 0.75rem; font-family: 'Montserrat'; margin-top: 2px; font-style: italic; }
.lc-social { position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(60px); opacity: 0; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.leader-card-horizontal:hover .lc-social { opacity: 1; transform: translateY(-50%) translateX(0); }
.lc-social a { width: 30px; height: 30px; background: #222; border-radius: 50%; color: var(--blue); display: flex; justify-content: center; align-items: center; font-size: 0.9rem; transition: 0.3s; }
.lc-social a:hover { background: var(--blue); color: #000; }

.team-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.group-card { background: #0b0c10; border: 1px solid #222; border-radius: 8px; padding: 30px; position: relative; overflow: hidden; transition: 0.3s; height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; text-align: center; }
.group-card:hover { border-color: var(--blue); box-shadow: 0 0 15px rgba(0, 168, 255, 0.15); transform: translateY(-3px); }
.card-inner { text-align: center; width: 100%; }
.group-icon { font-size: 2rem; color: var(--blue); margin-bottom: 15px; display: block; }
.group-card h3 { color: #fff; font-size: 1.2rem; font-family: 'Oswald'; margin-bottom: 8px; text-transform: uppercase; }
.group-desc { color: #666; font-size: 0.85rem; line-height: 1.4; margin: 0 auto; }
.click-hint { color: var(--blue); font-size: 0.8rem; margin-top: 15px; opacity: 0; transition: 0.3s; font-weight: bold; display: block; }
.group-card:hover .click-hint { opacity: 1; }

/* Teknoloji Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.feature-card { background: rgba(20, 20, 20, 0.6); border: 1px solid #333; border-radius: 15px; padding: 40px 25px; text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.feature-card:hover { transform: translateY(-10px); border-color: var(--blue); box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2); background: rgba(20, 20, 20, 0.9); }
.card-icon { width: 70px; height: 70px; margin: 0 auto 20px auto; background: rgba(0, 168, 255, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(0, 168, 255, 0.2); transition: 0.4s; }
.feature-card i { font-size: 30px; color: var(--blue); }
.feature-card:hover .card-icon { background: var(--blue); transform: rotateY(180deg); box-shadow: 0 0 20px var(--blue); }
.feature-card:hover i { color: #000; }
.feature-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 15px; font-family: 'Orbitron'; letter-spacing: 1px; }
.feature-card p { color: #888; font-size: 0.9rem; line-height: 1.6; }

/* Popups & Modals */
.contact-popup-style { background: #000; border: 1px solid var(--blue); border-radius: 10px; box-shadow: 0 0 40px rgba(0, 168, 255, 0.3); max-width: 900px; width: 95%; padding: 30px; }
.contact-title { text-align: center; color: #fff; font-family: 'Oswald'; font-size: 2rem; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; }
.contact-body-flex { display: flex; gap: 30px; }
.contact-map { flex: 1; height: 350px; border-radius: 5px; overflow: hidden; border: 1px solid #333; }
.contact-form-wrapper { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-form-wrapper input, .contact-form-wrapper textarea { width: 100%; padding: 15px; margin-bottom: 20px; background: #111; border: 1px solid #333; border-radius: 5px; color: #fff; font-family: 'Montserrat'; font-size: 0.9rem; }
.contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 10px rgba(0, 168, 255, 0.2); }
.submit-btn { width: 100%; padding: 15px; background: var(--blue); color: #000; font-weight: 800; border: none; border-radius: 5px; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.submit-btn:hover { background: #fff; box-shadow: 0 0 20px var(--blue); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.close-modal-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s; }
.close-modal-btn:hover { color: var(--blue); }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: rgba(0,0,0,0.8); border: 1px solid var(--blue); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--blue); z-index: 1000; transition: 0.3s; }

.team-modal-content { max-width: 1000px; padding: 40px; }
.team-roster-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 20px 0; }
.modal-member-card { background: rgba(255,255,255,0.02); border: 1px solid #333; border-radius: 10px; padding: 25px 15px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; width: 220px; flex-shrink: 0; }
.modal-member-card:hover { border-color: var(--blue); background: rgba(0, 168, 255, 0.05); }
.member-img-box { width: 100px; height: 100px; margin: 0 auto 15px auto; position: relative; border-radius: 50%; overflow: hidden; border: 3px solid #333; transition: 0.3s; }
.member-img-box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) sepia(1) hue-rotate(180deg) saturate(3) brightness(0.9); transition: 0.4s; }
.modal-member-card:hover .member-img-box img { filter: none; transform: scale(1.1); }
.modal-member-card:hover .member-img-box { border-color: var(--blue); box-shadow: 0 0 20px var(--blue); }
.member-social-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 20, 40, 0.8); display: flex; justify-content: center; align-items: center; gap: 10px; opacity: 0; transition: 0.3s; z-index: 10; }
.member-img-box:hover .member-social-overlay { opacity: 1; }
.member-social-overlay a { color: #000; background: var(--blue); width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; transition: 0.2s; }
.member-social-overlay a:hover { transform: scale(1.2); background: #fff; }
.modal-member-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 5px; font-family: 'Oswald'; letter-spacing: 1px; }
.member-role { color: var(--blue); font-size: 0.85rem; font-family: 'Orbitron'; font-weight: bold; display: block; }
.member-edu { color: #888; font-size: 0.75rem; margin-top: 5px; font-family: 'Montserrat'; font-style: italic; }

/* Footer */
footer { background: #000; padding: 80px 0 30px; border-top: 1px solid #111; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; }
.footer-col-left .footer-logo { font-size: 2rem; color: var(--blue); margin-bottom: 25px; font-weight: bold; font-family: 'Oswald'; }
.footer-social-list { display: flex; flex-direction: column; gap: 15px; }
.footer-social-list a { color: #888; transition: 0.3s; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.footer-social-list a i { color: #fff; width: 20px; }
.footer-social-list a:hover { color: #fff; transform: translateX(5px); }
.footer-col-mid h4, .footer-col-right h4 { color: var(--blue); margin-bottom: 25px; font-size: 1.2rem; letter-spacing: 1px; }
.footer-col-mid p, .footer-col-mid a { color: #888; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 0.95rem; }
.footer-col-mid i { color: #fff; }
.footer-col-right ul { list-style: none; padding: 0; }
.footer-col-right a { color: #888; display: block; margin-bottom: 12px; font-size: 0.95rem; transition: 0.3s; }
.footer-col-right a:hover { color: var(--blue); padding-left: 5px; }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #111; color: #555; font-size: 0.8rem; }

/* ==========================================================================
   5. MEDYA SORGULARI (ÖZEL AYARLAR)
   ========================================================================== */

/* --- 5.1 BİLGİSAYARLAR İÇİN ZOOM VE HERO DÜZELTMESİ --- */
@media (min-width: 1024px) {
    body {
        zoom: 0.8; 
        -moz-transform: scale(0.8);
        -moz-transform-origin: top center;
        width: 100%;
    }

    /* BURASI ÇOK ÖNEMLİ: Zoom yüzünden kısalan ekranı matematiksel olarak düzeltiyoruz */
    /* 100vh / 0.8 = 125vh. Böylece Hero tekrar tam ekran oluyor */
    .hero-3d {
        height: 125vh !important;
        min-height: 125vh !important;
    }
}

/* --- 5.2 TABLET VE ORTA EKRANLAR (<900px) --- */
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 80px; left:0; width:100%; background:#000; flex-direction:column; padding:20px; border-bottom: 1px solid #222; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    
    .split-box, .contact-body-flex { flex-direction: column; gap: 30px; }
    .team-layout { flex-direction: column; }
    .team-sidebar { position: relative; top: 0; margin-bottom: 30px; width: 100%; }
    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; }
    .right-container { left: 0%; }
    .left-container::before, .right-container::before { left: 60px; border-width: 10px 10px 10px 0; border-color: transparent var(--blue) transparent transparent; }
    .right-container::after, .left-container::after { left: 23px; }
    .contact-map { height: 250px; margin-bottom: 20px; }
    .leader-card-horizontal { flex-direction: column; text-align: center; height: auto; }
    .lc-social { position: relative; opacity: 1; transform: none; right: auto; top: auto; flex-direction: row; margin-top: 10px; }
    .member-social-overlay { opacity: 1; background: rgba(0,20,40,0.6); pointer-events: auto; }
}

/* --- 5.3 MOBİL CİHAZLAR (<768px) --- */
@media (max-width: 768px) {
    
    /* Mobil Hero: Zoom olmadığı için burada 100vh yeterli */
    .hero-3d { 
        height: 100dvh !important; 
        min-height: 100dvh !important;
        background-attachment: scroll !important; 
        background-position: center center !important; 
    }
    
    .main-title { font-size: 2.2rem !important; line-height: 1.2; }
    .sub-title { font-size: 0.9rem !important; letter-spacing: 1px; }

    .team-modal-content { width: 92vw !important; margin: 5vh auto !important; padding: 25px 15px !important; box-sizing: border-box; max-height: 90vh; overflow-y: auto; }
    .modal-member-card { width: 100% !important; max-width: 260px !important; margin: 0 auto 15px auto !important; }
    .team-roster-grid { display: flex; flex-direction: column; align-items: center; width: 100%; }
    #teamModalTitle { font-size: 1.8rem !important; margin-top: 10px; }
    .close-modal-btn { top: 10px; right: 15px; z-index: 101; }

    .footer-grid { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 40px !important; }
    .footer-col-left, .footer-col-mid, .footer-col-right { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .footer-col-mid p, .footer-col-mid a, .footer-social-list a { justify-content: center !important; width: 100%; }
    .copyright { margin-top: 30px !important; }
    
    .system-panel { position: relative; bottom: auto; right: auto; top: auto; left: auto; margin: 0; width: 90%; }
}

/* --- 5.4 KÜÇÜK EKRANLAR (<600px) --- */
@media (max-width: 600px) {
    .team-grid, .features-grid { grid-template-columns: 1fr; }
    .game-frame-container { height: 70vh; }
    .game-modal-style { width: 95%; padding: 15px; border: 2px solid var(--blue); box-shadow: 0 0 60px rgba(0, 168, 255, 0.3); background: #000; position: relative; }
    .game-frame-container { width: 100%; height: 600px; border: 1px solid #333; border-radius: 8px; overflow: hidden; background: #001f3f; }
    .game-iframe-modal { width: 100%; height: 100%; border: none; display: block; }
}

/* =========================================
   SİMÜLASYON KUTUSU - DİKEY FORMAT DÜZELTMESİ
   ========================================= */

/* Sadece Bilgisayarda (Zoom açıkken) */
@media (min-width: 1024px) {
    
    /* 1. KUTUYU DARALT VE TOPARLA (Resimdeki gibi) */
    .game-modal-style {
        width: 480px !important; /* Genişliği azalttım (Dikey form için) */
        max-width: 90vw !important;
        padding: 25px !important;
        margin: auto;
        /* Çerçeve ve gölgeyi netleştir */
        border: 2px solid var(--blue) !important;
        box-shadow: 0 0 50px rgba(0, 168, 255, 0.25) !important;
    }

    /* 2. OYUN ALANINI YÜKSELT (Portrait Mode) */
    .game-frame-container {
        width: 100% !important;
        height: 650px !important; /* Boyunu uzattım, oyun rahat sığsın */
        
        /* Kenarlıkları temizle */
        border: 1px solid #222 !important;
        border-radius: 8px !important;
        overflow: hidden !important; /* Dışarı taşmayı engelle */
        background-color: #000 !important;
        margin-bottom: 0 !important;
    }

    /* 3. OYUNUN KENDİSİ (IFRAME) */
    .game-iframe-modal {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        display: block !important;
    }

    /* 4. ALTTAKİ YAZIYI ORTALA */
    .game-modal-style p {
        text-align: center !important;
        width: 100% !important;
        margin-top: 15px !important;
        font-size: 0.85rem !important;
        color: #777 !important;
        display: block !important;
    }
}
