:root {
    --primary-color: #ff6b35;
    --secondary-color: #4B79A1;
    --accent-color: #2d5a88;
    --text-color: #333;
    --light-text: #fff;
    --background: #f5f5f5;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

.space {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: linear-gradient(135deg, #1c2331 0%, #0a1219 100%);
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(1px 1px at 50% 50%, white, rgba(0,0,0,0));
    background-size: 50px 50px;
    animation: twinkle-stars 1s infinite;
    pointer-events: none;
}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text);
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login {
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.login:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

.register {
    background: var(--primary-color);
    color: var(--light-text);
}

.register:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.content {
    position: relative;
    z-index: 1;
    padding: 6rem 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    color: var(--light-text);
    margin: 4rem auto;
    max-width: 800px;
    /* padding: 2rem; */
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}




.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 20px;
    padding-left: 30px;
}

@media (max-width: 600px) {
    .subjects-grid {
        padding-left: 0px;
    }
  }


.subjects-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(75, 121, 161, 0.3), rgba(255, 107, 53, 0.3));
    z-index: -1;
    animation: animatedBackground 10s linear infinite;
    transform-origin: top left;
    pointer-events: none;
}

.subject-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 1rem;
    text-align: center;
    color: var(--light-text);
    transition: transform 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    height: 100px;
    width: 100px;
}

.subject-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.subject-card p {
    margin: 0;
}

.subject-card:hover {
    transform: translateY(-5px);
}

.cta-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.cta-message {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-message p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.start-test-btn, .whatsapp-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.start-test-btn {
    background: var(--primary-color);
    color: var(--light-text);
}

.whatsapp-btn {
    background: #25D366;
    color: var(--light-text);
    text-decoration: none;
}

.start-test-btn:hover, .whatsapp-btn:hover {
    transform: scale(1.05);
}

.planet-container {
    position: fixed;
    bottom: -100px;
    right: -100px;
    transform: scale(1);
    opacity: 0.7;
    pointer-events: none;
}

.planet-container2 {
    position: fixed;
    top: 10%;
    left: 10%;
    transform: scale(0.3);
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

.planet-container3 {
    position: fixed;
    top: 20%;
    right: 5%;
    transform: scale(0.4);
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

.planet {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.earth {
    background: linear-gradient(45deg, #4B79A1, #283E51),
                linear-gradient(-45deg, #1a4f63 50%, #164154 50%);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5),
                0 0 50px rgba(75, 121, 161, 0.3);
}

.mars {
    background: linear-gradient(45deg, #C04000, #A93226);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5),
                0 0 50px rgba(192, 64, 0, 0.3);
}

.jupiter {
    background: linear-gradient(45deg, #D2691E, #A0522D);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5),
                0 0 50px rgba(210, 105, 30, 0.3);
}

.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(255,255,255,0.3)' d='M85,50c0,19.33-15.67,35-35,35S15,69.33,15,50s15.67-35,35-35S85,30.67,85,50z'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    animation: cloudMove 10s linear infinite;
}

.orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-rotate 10s linear infinite;
}

.moon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #c6c6c6;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset -10px 0 15px rgba(0,0,0,0.3);
}

.test-list {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--light-text);
    text-align: center;
}

.test-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.test-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.test-item:hover {
    background: rgba(255, 255, 255, 0.15);
    scale: 105%;
    cursor: pointer;
}

.back-button {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: var(--secondary-color);
    color: var(--light-text);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: scale(1.05);
}

.course-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--light-text);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.course-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(75, 121, 161, 0.3), rgba(255, 107, 53, 0.3));
    z-index: -1;
    animation: animatedBackground 10s linear infinite;
    transform-origin: top left;
    pointer-events: none;
}

.course-info h2 {
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.course-info:hover h2 {
    color: var(--primary-color);
}

.course-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.course-info:hover p {
    border-color: var(--accent-color);
    color: rgba(255, 255, 255, 0.9);
}

.course-info ul {
    list-style-type: disc;
    padding-left: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.course-info:hover ul {
    opacity: 1;
    transform: scale(1.02);
}

.course-info li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2em;
}

.course-info li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.ranking-table {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.ranking-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(75, 121, 161, 0.3), rgba(255, 107, 53, 0.3));
    z-index: -1;
    animation: animatedBackground 10s linear infinite;
    transform-origin: top left;
    pointer-events: none;
}

.ranking-table h2 {
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.ranking-table:hover h2 {
    color: var(--primary-color);
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ranking-table th, .ranking-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.ranking-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: bold;
}

.ranking-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal {
    background: rgba(28, 35, 49, 0.95);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(75, 121, 161, 0.3);
    animation: modalFloat 3s ease-in-out infinite;
}

.modal h2 {
    color: var(--light-text);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.comet {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    opacity: 0;
    animation: comet-trajectory 5s infinite;
}

@keyframes twinkle-stars {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes modalFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes animatedBackground {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes comet-trajectory {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(500px) translateY(-200px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cloudMove {
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        flex-direction: column;
        background: rgba(28, 35, 49, 0.95);
        backdrop-filter: blur(10px);
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-message {
        padding: 1.5rem;
    }

    .planet-container {
        transform: scale(0.3);
        bottom: -150px;
        right: -150px;
    }
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
}