/* Modern Dark Theme Variables - Refined for Premium Feel */
:root {
    --bg-color: #050507;
    /* Deeper, richer black/blue */
    --card-bg: rgba(22, 27, 34, 0.6);
    --text-primary: #ffffff;
    /* Pure white for high contrast */
    --text-secondary: #a0aab5;
    --accent-color: #3fb1f5;
    /* Clean cyan-blue */
    --accent-glow: 0 0 20px rgba(63, 177, 245, 0.4);
    --border-color: #30363d;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle border */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    /* Deeper shadow */
    --gradient-bg: radial-gradient(circle at 15% 50%, rgba(31, 111, 235, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(63, 177, 245, 0.08) 0%, transparent 25%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    /* Increased for readability */
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    /* Parallax-like feel */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    /* Larger title */
    font-weight: 800;
    margin-bottom: 1rem;
    /* Clean white title as requested */
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    /* Subtle glow */
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 3rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Add a small accent line under h2 */
h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: var(--accent-glow);
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    color: #dbe4ef;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

ul,
ol {
    margin-bottom: 1.2rem;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

/* Premium Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(63, 177, 245, 0.2);
    padding-bottom: 1px;
}

a:hover {
    color: #79c0ff;
    border-bottom-color: #79c0ff;
    text-shadow: 0 0 10px rgba(121, 192, 255, 0.4);
}

/* Layout */
.container {
    max-width: 860px;
    /* Slightly wider */
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.last-updated {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

main {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 24px;
    /* Rounder corners */
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards;
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect on the card */
main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Interactive Elements */
section {
    position: relative;
    transition: opacity 0.3s ease;
}

code {
    background-color: rgba(255, 255, 255, 0.05);
    /* Lighter background */
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    color: #e6edf3;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    main {
        padding: 2rem;
        border-radius: 16px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
    border: 3px solid var(--bg-color);
    /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #58a6ff;
}