@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #EAB308;
    --primary-glow: rgba(234, 179, 8, 0.4);
    --secondary: #3B82F6;
    --accent: #F472B6;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* Background Effects */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    animation: move-blobs 25s infinite alternate;
}

.blob-1 { top: -200px; left: -200px; }
.blob-2 { bottom: -200px; right: -200px; background: radial-gradient(circle, var(--secondary) 0%, transparent 70%); animation-duration: 30s; }

@keyframes move-blobs {
    from { transform: translate(0, 0) scale(1.0); }
    to { transform: translate(150px, 100px) scale(1.2); }
}

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

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
    filter: saturate(1.5);
}

/* Section Common */
section {
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    right: 20%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    border-radius: 2px;
}

/* Cards & Content Blocks */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.formula-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    display: block;
    text-align: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Hierarchy Table */
.hierarchy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 2rem;
}

.hierarchy-table tr {
    transition: var(--transition);
}

.hierarchy-table td {
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hierarchy-table td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 16px 0 0 16px;
    font-weight: 800;
    color: var(--primary);
    width: 30%;
}

.hierarchy-table td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 16px 16px 0;
}

.hierarchy-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

/* Exercise Section */
.exercise-container {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: center;
}

.option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.option-btn.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
    color: #10B981;
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
    filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .options-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
    .card { padding: 2rem; }
}

footer {
    padding: 6rem 5%;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.3));
}
