* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.enter-btn {
    margin-top: 50px;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 5px;
    animation: btnPulse 1.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: var(--color-accent);
    color: var(--color-black);
    box-shadow: 0 0 40px var(--color-accent);
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 10px var(--color-accent); }
    50% { box-shadow: 0 0 30px var(--color-accent), 0 0 60px var(--color-accent); }
}

.loading-text {
    display: flex;
    gap: 8px;
}

.loading-char {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent);
    animation: charPulse 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes charPulse {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(0.8) translateY(10px);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.15) translateY(-10px);
        text-shadow: 0 0 60px var(--color-accent), 0 0 100px var(--color-accent);
    }
}

@media (max-width: 768px) {
    .loading-char {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
}

:root {
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-gray: #1a1a1a;
    --color-gray-light: #2a2a2a;
    --color-white: #ffffff;
    --color-accent: #00f0ff;
    --font-sans: 'Montserrat', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    background-color: var(--color-black);
    color: var(--color-white);
}

.main-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Menu Toggle */
.menu-toggle {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-toggle:hover span:nth-child(1),
.menu-toggle:hover span:nth-child(3) {
    width: 40px;
}

.menu-toggle span {
    height: 2px;
    background: linear-gradient(90deg, var(--color-white), var(--color-accent));
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: block;
}

.menu-toggle span:nth-child(1) {
    width: 40px;
    margin-bottom: 12px;
}

.menu-toggle span:nth-child(2) {
    width: 25px;
    margin-bottom: 12px;
}

.menu-toggle span:nth-child(3) {
    width: 35px;
}

.menu-toggle.active span:nth-child(1) {
    width: 40px;
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    width: 40px;
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.overlay-link {
    font-family: var(--font-display);
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s ease;
    letter-spacing: 2px;
}

.overlay-menu.active .overlay-link {
    opacity: 1;
    transform: translateY(0);
}

.overlay-menu.active .overlay-link:nth-child(1) { transition-delay: 0.1s; }
.overlay-menu.active .overlay-link:nth-child(2) { transition-delay: 0.15s; }
.overlay-menu.active .overlay-link:nth-child(3) { transition-delay: 0.2s; }
.overlay-menu.active .overlay-link:nth-child(4) { transition-delay: 0.25s; }
.overlay-menu.active .overlay-link:nth-child(5) { transition-delay: 0.3s; }
.overlay-menu.active .overlay-link:nth-child(6) { transition-delay: 0.35s; }
.overlay-menu.active .overlay-link:nth-child(7) { transition-delay: 0.4s; }
.overlay-menu.active .overlay-link:nth-child(8) { transition-delay: 0.45s; }
.overlay-menu.active .overlay-link:nth-child(9) { transition-delay: 0.5s; }
.overlay-menu.active .overlay-link:nth-child(10) { transition-delay: 0.55s; }

.overlay-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent);
}

.menu-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    z-index: 1001;
    pointer-events: auto;
}

.menu-close:hover {
    color: var(--color-accent);
    text-shadow: 0 0 20px var(--color-accent);
    transform: rotate(90deg);
}

/* Hero Section */
.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}

.hero-section.active {
    opacity: 1;
    visibility: visible;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    height: 250px;
    filter: brightness(0) invert(1);
}

.rotating-text {
    margin-bottom: 60px;
}

.static-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.2s both;
}

.rotating-wrapper {
    height: clamp(3rem, 8vw, 6rem);
    overflow: hidden;
    position: relative;
}

.rotating-item {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: 3px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.rotating-item.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.music-toggle {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.music-toggle .music-text {
    display: none;
}

.music-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.tiny-admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tiny-admin-btn:hover {
    color: var(--color-accent);
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Sections */
.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--color-black);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(100%);
}

.content-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.title-line {
    width: 80px;
    height: 2px;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.about-image img {
    width: 25%;
    border-radius: 10px;
    filter: grayscale(30%);
    transition: filter 0.4s ease;
}

.about-image img:hover {
    filter: grayscale(0%);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.team-member {
    background: var(--color-gray);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
}

.team-member:hover {
    border-color: var(--color-accent);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.15);
}

.team-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black);
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 3px solid var(--color-accent);
}

.team-icon {
    width: 120px;
    height: 120px;
    margin: 40px auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-white);
    font-weight: 800;
    text-transform: uppercase;
}

.team-role {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--color-gray);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.product-item:hover {
    transform: scale(1.03);
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info p {
    color: rgba(255, 255, 255, 0.7);
}

/* Portal Section */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.portal-card {
    position: relative;
    background: var(--color-gray);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border: 2px solid transparent;
    text-align: center;
}

.portal-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.15);
}

.portal-number {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1;
}

.portal-card-inner {
    padding-top: 20px;
}

.portal-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
}

.portal-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portal-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

/* Clients Section */
.client-logo {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    opacity: 1;
    transition: all 0.4s ease;
    padding: 15px;
    background: rgba(30, 60, 120, 0.6);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.client-logo:hover {
    transform: scale(1.05);
    background: rgba(40, 80, 150, 0.7);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.5);
}

#partners .section-inner {
    max-width: 100%;
    padding: 80px 80px;
}

.partners-showcase {
    text-align: center;
}

.partner-logo {
    max-width: 90%;
    width: 90%;
    opacity: 1;
    transition: all 0.4s ease;
    padding: 30px;
    background: rgba(30, 60, 120, 0.6);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
    object-fit: contain;
}

.partner-logo:hover {
    transform: scale(1.02);
    background: rgba(40, 80, 150, 0.7);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.5);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.timeline-item:nth-child(even) {
    transform: translateX(30px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-black);
    font-family: var(--font-display);
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.timeline-content {
    background: var(--color-gray);
    padding: 30px;
    border-radius: 15px;
    width: 45%;
    margin-left: auto;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.timeline-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: var(--color-gray);
    border-radius: 10px;
}

.info-icon {
    font-size: 2rem;
}

.info-text h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.info-text p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray);
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.social-link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--color-gray);
    padding: 40px;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--color-gray-light);
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

.contact-form button {
    width: 100%;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--color-accent), #0080ff);
    border: none;
    border-radius: 5px;
    color: var(--color-black);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.contact-form button:hover {
    box-shadow: 0 0 30px var(--color-accent);
    transform: translateY(-2px);
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.animate-on-scroll.visible,
.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .about-content,
    .portal-showcase,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline:before {
        left: 30px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 70px);
        margin-left: 60px;
        margin-right: 0;
    }

    .timeline-year {
        left: 30px;
        transform: none;
    }

    .menu-toggle,
    .menu-close {
        top: 20px;
        right: 20px;
    }

    .music-toggle {
        bottom: 20px;
        left: 20px;
    }
}

/* Menu Guide Animation */
.menu-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

.comet-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%) rotate(-35deg);
    animation: cometMove 3s ease-in-out infinite;
}

.comet-head {
    width: 12px;
    height: 12px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 30px #0080ff;
    position: absolute;
    top: 50%;
    left: 100%; /* Put head at front of tail */
    transform: translate(-50%, -50%);
}

.comet-tail {
    position: absolute;
    top: 50%;
    right: 100%; /* Tail goes backward */
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.4), rgba(0, 240, 255, 0.8), transparent);
    transform: translateY(-50%);
    animation: tailPulse 0.5s ease-in-out infinite alternate;
    filter: blur(1px);
}

@keyframes cometMove {
    0% {
        top: 50%;
        left: 50%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        top: 45px;
        left: calc(100% - 80px);
        opacity: 1;
    }
}

@keyframes tailPulse {
    0% {
        width: 120px;
        opacity: 0.7;
    }
    100% {
        width: 180px;
        opacity: 1;
    }
}

/* Tiny Admin Button */
.tiny-admin-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: 100;
}

.tiny-admin-btn:hover {
    opacity: 1;
    background: rgba(0, 240, 255, 0.1);
}

/* Mobile Styles for Menu Guide */
@media (max-width: 768px) {
    .comet-container {
        transform: translate(-50%, -50%) rotate(-40deg);
    }

    @keyframes cometMove {
        0% {
            top: 50%;
            left: 50%;
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        100% {
            top: 35px;
            left: calc(100% - 70px);
            opacity: 1;
        }
    }

    .comet-head {
        width: 10px;
        height: 10px;
    }

    .comet-tail {
        height: 3px;
    }
}

/* =====================
   GAME SECTION
   ===================== */
.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
    background: #000;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 500px;
    background: transparent;
}

.game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.game-info-bar strong {
    color: #fff;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-overlay-content {
    text-align: center;
    padding: 40px;
}

.game-overlay-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.game-overlay-content p {
    color: rgba(255,255,255,0.75);
    line-height: 2;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.game-controls-hint {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    font-family: var(--font-display);
}

@media (max-width: 768px) {
    #game-canvas {
        height: 400px;
    }
    .game-controls-hint {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
