/* ============================================
   PRINCE HTML ACADEMY — STYLESHEET
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --accent: #ec4899;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #22c55e;
    --card-bg: rgba(15, 23, 42, 0.8);
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}
/* Animated Background Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -150px; left: -150px;
}

.orb-2 {
    width: 400px; height: 400px;
    background: var(--accent);
    bottom: -100px; right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px; height: 350px;
    background: var(--secondary);
    top: 40%; left: 60%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--dark);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 4px; left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 550px;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: var(--light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}
/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Setup Cards */
.setup-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}

.setup-card h3 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
    font-size: 1.15rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.step-num {
    min-width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

.step strong {
    color: var(--light);
}

code {
    background: rgba(99, 102, 241, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--primary);
}

a { color: var(--primary); }
/* Code Boxes */
.code-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin: 1.2rem 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.code-lang {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.copy-btn {
    background: var(--glass);
    border: 1px solid #30363d;
    color: var(--gray);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.code-box pre {
    padding: 1.2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #e6edf3;
    overflow-x: auto;
}
/* Module Cards */
.module {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.module:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.module-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.module-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.module-info p {
    color: var(--gray);
    font-size: 0.85rem;
}

.toggle-icon {
    margin-left: auto;
    color: var(--gray);
    transition: transform 0.3s;
}

.module.active .toggle-icon {
    transform: rotate(180deg);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.module.active .module-content {
    max-height: 5000px;
}
/* Lesson Content */
.lesson {
    padding: 0 1.5rem 1.5rem;
}

.lesson h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.7rem;
}

.lesson p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.explain-list {
    margin-left: 1.5rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.explain-list li {
    margin-bottom: 0.4rem;
}

/* Tag Explanations */
.tag-explain {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1rem 0;
}

.tag-explain h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.explain-row {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.explain-row:last-child {
    border-bottom: none;
}

.explain-row code {
    min-width: 140px;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.2);
}

.explain-row span {
    color: var(--gray);
    font-size: 0.9rem;
}
/* Practice Box */
.practice-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.03));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 1.2rem;
}

.practice-box h5 {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.practice-box p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Cheat Sheet */
.cheat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.cheat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
}

.cheat-card h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cheat-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.cheat-item:last-child {
    border-bottom: none;
}

.cheat-item code {
    min-width: 130px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.cheat-item span {
    color: var(--gray);
    font-size: 0.85rem;
}
/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.95rem;
}

.heart {
    color: var(--accent);
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .explain-row {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .explain-row code {
        min-width: auto;
    }
    
    .cheat-grid {
        grid-template-columns: 1fr;
    }
}
