/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #0b1519;
    --text-main: #f1f7f9;
    --text-muted: #94a9b2;
    --primary-cyan: #06b6d4;
    --primary-emerald: #10b981;
    --glass-bg: rgba(15, 32, 39, 0.45);
    --glass-border: rgba(6, 182, 212, 0.15);
    --glass-glow: rgba(16, 185, 129, 0.1);
    --nav-glass: rgba(11, 21, 25, 0.75);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Lights */
.glow-bg-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.glow-bg-2 {
    position: absolute;
    top: 40%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Reusable Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 12px 40px 0 rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}


input {
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-full {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
}

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-emerald));
    color: #0b1519;
    padding: 10px 20px;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 10px 20px;
}

.btn-secondary:hover {
    color: var(--primary-cyan);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    backdrop-filter: blur(4px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    color: var(--primary-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-cyan);
}

.nav-auth {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--text-main);
    font-size: 24px;
}

/* Hero Section */
.hero {
    padding: 160px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.hero-visual {
    flex: 0.8;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--primary-cyan);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Terminal glass card */
.main-card {
    padding: 0;
    overflow: hidden;
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.card-title {
    margin-left: 10px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.card-body {
    padding: 25px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    background: rgba(5, 10, 12, 0.4);
}

/* Syntax Highlighting */
.keyword { color: #f43f5e; }
.function { color: #06b6d4; }
.string { color: #10b981; }
.tags { color: #38bdf8; }
.attr { color: #fbbf24; }

/* Courses Section */
.courses-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-emerald);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}

.course-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-right: 60px;
    color: #fff;
}

.course-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 15px;
}

.price {
    font-weight: 700;
    color: var(--primary-cyan);
    font-size: 18px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero p {
        margin: 0 auto 35px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .nav-links, .nav-auth {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 36px;
    }
}
