/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-transform: capitalize; /* Tüm kelimelerin baş harfi büyük */
}

body {
    background-color: #000;
    color: #0f0; /* Hacker Green */
    overflow: hidden; /* Prevent scrolling initially */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #111;
    border: 2px solid #0f0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    text-align: center;
    max-width: 90%;
    width: 400px;
    animation: fadeIn 0.5s;
}

.modal h2 {
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.btn-modal {
    padding: 10px 30px;
    background: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

.btn-modal:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 15px #0f0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Video Background */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
    display: none; /* Initially hidden until connected */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: -1;
    display: none; /* Initially hidden */
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.terminal-loader .text {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.loader-bar {
    width: 300px;
    height: 20px;
    border: 2px solid #0f0;
    padding: 2px;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #0f0;
    transition: width 0.1s;
    box-shadow: 0 0 10px #0f0;
}

.log-output {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #0f0;
    height: 100px;
    width: 300px;
    text-align: left;
    overflow: hidden;
    opacity: 0.8;
}

/* Main Content */
.hidden {
    display: none !important;
}

#main-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    backdrop-filter: blur(5px); /* Glassmorphism light */
}

/* Glitch Effect */
.glitch {
    font-size: 3rem;
    font-weight: 700;
    text-transform: none; /* Otomatik büyük harf yapma, HTML'dekini kullan */
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
    margin-bottom: 30px;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00; }
    15% { text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff, 0.025em 0.04em 0 #fffc00; }
    16% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff, -0.05em -0.05em 0 #fffc00; }
    49% { text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff, -0.05em -0.05em 0 #fffc00; }
    50% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff, 0 -0.04em 0 #fffc00; }
    99% { text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff, 0 -0.04em 0 #fffc00; }
    100% { text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff, -0.04em -0.025em 0 #fffc00; }
}

/* IP Info Section */
.ip-info {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #0f0;
    padding: 20px;
    margin-bottom: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    text-align: left; /* Metinleri sola hizala */
}

.ip-info p {
    margin: 10px 0;
    font-size: 1.1rem;
    text-transform: capitalize; /* Baş harfleri büyük */
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 5px 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(255, 0, 0, 0.1);
    text-transform: capitalize;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: row; /* Yan yana */
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 80px; /* Footer çakışmasını önlemek için arttırıldı */
    flex-wrap: wrap; /* Mobilde taşarsa alta geçsin */
    width: 100%; /* Tam genişlik */
    max-width: 800px;
}

.btn {
    flex: 1; /* Hepsi eşit genişlikte */
    min-width: 140px; /* Flex item taşmasını önler */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: capitalize; /* Sadece baş harf büyük */
    white-space: nowrap; /* Metin kaymasın */
    backdrop-filter: blur(3px);
}

.btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--primary-color);
    font-size: 0.8rem;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Mobilde footer görünürlüğü için */
@media (max-width: 600px) {
    .buttons {
        gap: 10px;
        margin-bottom: 100px; /* Mobilde daha fazla boşluk */
    }
    
    .btn {
        padding: 10px 5px; /* Mobilde biraz daha dar padding */
        font-size: 0.9rem;
    }

    footer {
        padding: 10px;
        background: #000; /* Mobilde tamamen siyah arka plan okuma kolaylığı için */
    }
}

/* CRT Scanline Effect */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 9999;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0, 255, 0, 0.2) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

/* System Status Bar */
.system-status {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: #0f0;
    z-index: 100;
}

.status-item {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 10px #0f0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}


.btn i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.btn:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 20px #0f0;
    transform: scale(1.02);
}

.btn::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: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.telegram:hover {
    border-color: #0088cc;
    background: #0088cc;
    color: white;
    box-shadow: 0 0 20px #0088cc;
}

.instagram:hover {
    border-color: #e4405f;
    background: #e4405f;
    color: white;
    box-shadow: 0 0 20px #e4405f;
}

.email:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: black;
    box-shadow: 0 0 20px #ffffff;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #0f0;
    font-size: 0.8rem;
    color: #0f0;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links span {
    cursor: pointer;
    transition: color 0.3s;
}

.footer-links span:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .glitch {
        font-size: 2rem;
    }
    
    .ip-info {
        width: 95%;
    }
    
    .buttons {
        width: 90%;
    }
}
