:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --background-color: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.nav-links i {
    font-size: 1.1rem;
}

.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(180deg);
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    z-index: 1;
}

.animated-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFloat 3s ease-in-out infinite;
}

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: #e5e7eb;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

.simulation-section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.simulation-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.orbit-viewport {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    min-height: 600px;
}

.controls-panel {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.parameter-group {
    margin-bottom: 2rem;
}

.parameter-group h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.glass-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.ai-analysis {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recommendations {
    color: #e5e7eb;
    font-size: 0.9rem;
}

.primary-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: #e5e7eb;
}

/* Orbit Types Styles */
.orbit-types {
    margin: 10px 0;
    padding: 15px;
}

.orbit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.orbit-item {
    cursor: pointer;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.orbit-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.orbit-item.active-orbit {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
}

.orbit-item:nth-child(2).active-orbit {
    background: rgba(0, 0, 255, 0.2);
    border: 2px solid #0000ff;
}

.orbit-item i {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.orbit-item h4 {
    margin: 8px 0;
    color: var(--text-color);
    font-size: 1em;
}

.orbit-item p {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.article-content p {
    margin: 0 0 1rem 0;
    color: #ccc;
    line-height: 1.6;
}

.article-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.read-more {
    color: #4a9eff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-content {
    padding: 1.5rem;
}

.video-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.video-content p {
    margin: 0 0 1rem 0;
    color: #ccc;
    line-height: 1.6;
}

.duration {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.resource-link i {
    font-size: 1.5rem;
    color: #4a9eff;
}

/* Learning Section Styles */
.learn-section {
    padding: 4rem 2rem;
}

.learning-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.articles-section,
.videos-section {
    padding: 2rem;
}

.articles-grid,
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.article-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.article-content p {
    margin: 0 0 1rem 0;
    color: #ccc;
    line-height: 1.6;
}

.source {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--accent-color);
}

.video-content {
    padding: 1.5rem;
}

.video-content h4 {
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.video-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80%;
    margin: 5% auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

#youtube-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-thumbnail {
        height: 200px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .articles-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 160px;
    }

    .video-thumbnail {
        height: 160px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero-content {
        padding: 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .feature-card {
        margin: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin: 20px 0;
    }

    .menu-toggle {
        display: block;
    }

    .simulation-container {
        grid-template-columns: 1fr;
    }

    .animated-title {
        font-size: 2.5rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Learn Page Styles */
.learn-page {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.learn-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.learn-page .section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.learn-page .section-header p {
    color: #e5e7eb;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.learn-page .learning-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.learn-page .glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.learn-page h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-page h2 i {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .learn-page {
        padding: 1rem;
    }

    .learn-page .section-header h1 {
        font-size: 2rem;
    }

    .learn-page .section-header p {
        font-size: 1rem;
    }

    .learn-page .glass-container {
        padding: 1.5rem;
    }
}
