:root {
    --color-background: #000000;
    --color-glass: rgba(22, 29, 39, 0.6);
    --color-border: rgba(0, 212, 255, 0.15);
    --color-accent: #00d4ff;
    --color-blue: #0099cc;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Decorative background orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent), transparent 60%);
    opacity: 0.1;
    filter: blur(100px);
    z-index: -1;
}

body::before {
    top: -100px;
    left: -100px;
}

body::after {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--color-blue), transparent 60%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.btn-source-code {
    background-image: linear-gradient(135deg, var(--color-accent), var(--color-blue));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background-size: 200% 200%;
}

.btn-source-code:hover {
    background-position: right center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* --- Glass Pane & Sections --- */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.glass-pane {
    background-color: var(--color-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    background: linear-gradient(90deg, var(--color-accent), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* --- Card Styling (for grids inside glass panes) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

.card:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

.card .icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --- Face Gallery Specifics --- */
.face-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.face-card {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.face-card:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

.face-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem auto;
}

.face-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* --- Code Blocks --- */
pre {
    background-color: #0c0f14;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-dark);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
        font-size: 1.5rem;
    }
}
