/* Genel Sıfırlama */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    width: 100%;
    height: 330vh; 
    background-color: #000;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.no-scroll { overflow-y: hidden !important; }

/* Navbar Tasarımı */
.navbar {
    width: 100%; height: 80px; display: flex; justify-content: space-between;
    align-items: center; padding: 0 50px; background: rgba(0,0,0,0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed; top: 0; z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
        
    /* Opsiyonel: Gelecekte gelecek butonla yan yana gelmesi için */
    display: flex;
    align-items: center;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #888; text-decoration: none; font-weight: 500; transition: 0.3s; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;}
.nav-links a:hover { color: #00d4ff; }

/* Video ve Canvas Alanı */
.hero-area {
    position: relative;
    width: 100%;
    height: 300vh; 
    background: #000;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#myVideo, #roverCanvas, #roverVideo {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}

#myVideo { z-index: 1; }
#roverCanvas { z-index: 2; opacity: 0; pointer-events: none; }
#roverVideo { z-index: 3; opacity: 0; pointer-events: none; }

/* Buton Konteynırı */
.side-btn-container {
    position: fixed;
    left: 50px; top: 0; width: 300px; height: 100vh;
    z-index: 100; pointer-events: none;
}

.action-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 20px 45px;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    width: fit-content;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.2s ease, top 0.1s linear;
}

#playBtn { top: 50%; transform: translateY(-50%); }
#knowledgeBtn { top: 130%; transform: translateY(-50%); opacity: 0; }

.action-btn:hover { background: #00d4ff; color: #000; box-shadow: 0 0 30px #00d4ff; }
.btn-disabled { pointer-events: none !important; border-color: rgba(0, 212, 255, 0.2) !important; color: rgba(0, 212, 255, 0.2) !important; cursor: default; }

/* İletişim Bölümü */
#connect {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    
    /* Center yerine flex-start yapıyoruz */
    justify-content: flex-start; 
    align-items: center;
    
    border-top: 2px solid #00d4ff;
    
    /* Yüksekliği sabit tutuyoruz */
    min-height: 250px; 
    
    /* Üst boşluğu (Padding-top) kesin olarak belirliyoruz (Örn: 40px) */
    padding: 40px 0 30px 0; 
    
    box-shadow: 0 -15px 40px rgba(0, 212, 255, 0.15);
}

#connect h2 {
    margin-top: 0; /* H2'nin kendi default marginini sıfırla */
    margin-bottom: 25px;
    /* Diğer font ayarların aynı kalsın... */
}

#connect h2 { color: #fff; font-size: 1.6rem; margin-bottom: 25px; letter-spacing: 5px; text-transform: uppercase; }
.contact-links {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.contact-links a {
    text-decoration: none; color: #00d4ff; font-size: 0.95rem;
    padding: 10px 22px; border: 1px solid #00d4ff; transition: 0.4s;
    text-transform: uppercase;
}
.contact-links a:hover { background: #00d4ff; color: #000; box-shadow: 0 0 15px #00d4ff; }

/* Knowledge Paneli Ana Yapısı */
/* Knowledge Paneli Güncel CSS */
.glass-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    /* Başlangıçta çok küçük ve hafif aşağıda başlasın (ekranın içinden gelme hissi) */
    transform: translate(-50%, -40%) scale(0.7); 
    width: 70%;
    max-width: 800px;
    padding: 50px;
    background: rgba(0, 20, 30, 0.4); /* Biraz daha koyu ama şeffaf mavi tonu */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px; /* Daha endüstriyel, keskin köşeler rover ekranına yakışır */
    z-index: 2000;
    color: white;
    opacity: 0;
    pointer-events: none; /* Kapalıyken tıklanmasın */
    
    /* Yavaş ve akıcı geçiş: 1.2 saniye sürecek şekilde ayarlandı */
    transition: 
        opacity 1s ease-out, 
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-panel.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Ekran parlaması efekti (opsiyonel) */
.glass-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* İçerik Düzeni */
.panel-content h2 {
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 8px;
}

.fill {
    height: 100%;
    background: #000000;
    box-shadow: 0 0 15px #ffffff;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: #fff; }
.copyright-text {
    color: rgba(255, 255, 255, 0.7); /* Silikliği azalttık, daha görünür yaptık */
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: -20px; /* Üstteki linklerle mesafe */
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.1); /* Çok hafif bir çizgi ekledik */
    width: 80%; /* Çizginin genişliği */
    text-align: center; /* Metni kendi içinde ortalar */
    text-transform: uppercase;
}

#roverCanvas {
    image-rendering: -webkit-optimize-contrast; /* Daha keskin render */
    will-change: transform, opacity; /* Tarayıcıya önceden hazırlık yapması gerektiğini söyler */
}
