:root {
    --bg-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-primary: #7000ff;
    --accent-secondary: #00c6ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --card-hover: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.globe-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    animation: float 10s ease-in-out infinite alternate;
}

.globe-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Header */
.glass-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--accent-secondary);
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--glass-bg);
    border-color: var(--accent-secondary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.accent-outline {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    font-weight: 600;
}

.accent-outline:hover {
    background: var(--accent-secondary);
    color: #000;
}

/* Sections */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px -10px rgba(0, 198, 255, 0.3);
}

.topic-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Steps Viewer */
.glass-panel {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.5s ease;
}

#step-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

#step-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.control-btn,
.primary-btn,
.secondary-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: 0.2s;
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.secondary-btn:hover {
    color: #fff;
}

.control-btn {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.primary-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

.primary-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    #step-content h2 {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--accent-primary);
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    min-height: auto;
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

#email-form input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

#email-form input:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.full-width {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

.success-msg {
    margin-top: 1rem;
    color: #00ff88;
    font-weight: 600;
    font-size: 1.2rem;
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Resource Button in Step */
.resource-btn-container {
    margin-top: 2rem;
    text-align: center;
}

.resource-btn {
    background: rgba(0, 198, 255, 0.1);
    color: var(--accent-secondary);
    border: 1px solid var(--accent-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.resource-btn:hover {
    background: var(--accent-secondary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}