/* Global Styles */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
    color: #e0e0e0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background */
body {
    background: linear-gradient(45deg, #0d0d0d, #1a1a1a);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Layout */
main {
    flex: 1 0 auto;
    width: 100%;
}

section {
    margin: 0;
    padding: 80px 0;
    position: relative;
}

section>div,
section>form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 10px 10px;
    margin: 0 20px;
    width: auto;
    min-height: 60px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

header img {
    width: 140px;
    height: auto;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

header nav ul li {
    display: flex;
}

/* Typography */
h1,
h2,
h3 {
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.4);
}

a {
    text-decoration: none;
    color: #00ffff;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    white-space: nowrap;
}

a:hover {
    color: #ff00ff;
    text-shadow:
        0 0 10px rgba(255, 0, 255, 0.7),
        0 0 20px rgba(255, 0, 255, 0.4),
        0 0 30px rgba(255, 0, 255, 0.2);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.btn:hover {
    background: #ff00ff;
    color: #ffffff;
    border-color: #ff00ff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 0, 255, 0.5);
    box-shadow:
        0 0 15px rgba(255, 0, 255, 0.5),
        0 0 30px rgba(255, 0, 255, 0.3);
}

.btn.lock {
    background: transparent;
    border: 2px solid #ff0000;
    color: #ff0000;
    cursor: not-allowed;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.btn.lock:hover {
    background: transparent;
    border-color: #ff0000;
    color: #ff3333;
}

/* Sections */
#home {
    text-align: center;
    padding: 100px 20px;
}

#home h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

#categories {
    padding: 50px 20px;
    text-align: center;
}

#categories h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 30px;
}

#categories .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#categories .category-card {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#categories .category-card:hover {
    border-color: #ff00ff;
    transform: scale(1.05);
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.3),
        0 0 40px rgba(255, 0, 255, 0.1);

}

#categories .category-card h3 {
    margin-top: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}


#categories .category-card:hover h3 {
    color: #ff00ff;
    text-shadow:
        0 0 10px rgba(255, 0, 255, 0.7),
        0 0 20px rgba(255, 0, 255, 0.4),
        0 0 30px rgba(255, 0, 255, 0.2);
}

/* About Section */
#about {
    padding: 50px 20px;
    text-align: center;
}

#about h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 30px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

#contact label {
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

#contact input,
#contact textarea {
    padding: 12px;
    border: 2px solid #00ffff;
    background: rgba(13, 13, 13, 0.8);
    color: #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #ff00ff;
    outline: none;
}

#contact button {
    padding: 12px 24px;
    background: #00ffff;
    color: #000000;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact button:hover {
    background: #ff00ff;
    color: #ffffff;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    header img {
        width: 120px;
    }

    header nav ul {
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header nav ul {
        gap: 10px;
    }

    header nav ul li a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    iframe {
        width: 100%;
        height: auto;
        /* Maintain aspect ratio */
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

.scanner {
    width: 300px;
    height: 5px;
    background: #00ff9d;
    position: relative;
    animation: scan 2s ease-in-out infinite;
    box-shadow: 0 0 20px #00ff9d;
}

.loading-text {
    margin-top: 30px;
    color: #00ff9d;
    font-size: 24px;
    letter-spacing: 5px;
}

.loading-text:after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

.loading-percentage {
    margin-top: 20px;
    font-size: 48px;
    color: #00ff9d;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff9d;
    opacity: 0.8;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.popup-content {
    background: rgba(13, 13, 13, 0.95);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: glowPulse 2s infinite;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-content:hover {
    transform: scale(1);
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.close-popup {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.close-popup:hover {
    background: #ff00ff;
    border-color: #ff00ff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scan {
    0% {
        transform: translateY(-150px);
    }

    50% {
        transform: translateY(150px);
    }

    100% {
        transform: translateY(-150px);
    }
}

@keyframes loadingDots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}