:root {
    /* Premium Dark Theme Color Palette */
    --bg-color: #0b1120;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-color: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.3);
    
    /* Background blobs */
    --blob-1: #0ea5e9; /* Light blue accent */
    --blob-2: #3b82f6; /* Deeper blue */
    --blob-3: #10b981; /* Subtle emerald touch */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Gradient & Blob Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111827 0%, var(--bg-color) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 25s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-2);
    animation-delay: -5s;
    animation-duration: 20s;
}

.blob-3 {
    top: 40%;
    left: -20%;
    width: 40vw;
    height: 40vw;
    background: var(--blob-3);
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5%, 5%) scale(1.1) rotate(5deg); }
    66% { transform: translate(-5%, 10%) scale(0.9) rotate(-5deg); }
    100% { transform: translate(10%, -5%) scale(1.05) rotate(0deg); }
}

/* Layout */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-placeholder {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--accent-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo-placeholder:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.2), inset 0 0 0 1px rgba(255,255,255,0.1);
    color: #38bdf8;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Glassmorphism Content Card */
.content-card {
    background: var(--card-bg);
    border-radius: 32px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for the card */
.content-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Term Sections */
.term-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    transition: transform 0.3s ease;
}

.term-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.term-section:hover .number {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.term-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.term-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.9;
    padding-left: 52px; /* Align with text, skipping number */
    transition: color 0.3s ease, opacity 0.3s ease;
}

.term-section:hover p {
    color: #e2e8f0;
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 1.2s ease-out 0.4s both;
}

/* Animations */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */

/* Tablet & Smaller Laptops */
@media (max-width: 860px) {
    .container {
        padding: 40px 24px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .content-card {
        padding: 40px 32px;
        border-radius: 28px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .container {
        padding: 24px 16px;
    }

    .header {
        margin-bottom: 32px;
    }
    
    .logo-placeholder {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .logo-placeholder svg {
        width: 32px;
        height: 32px;
    }
    
    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
    
    .content-card {
        padding: 32px 20px;
        border-radius: 24px;
    }
    
    .term-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
    
    .section-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 10px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .term-section h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .term-section p {
        font-size: 1rem;
        padding-left: 0; /* Removing padding on very small screens for better text flow */
        margin-top: 8px;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .content-card {
        padding: 24px 16px;
    }
}
