:root {
    /* Web3 / Dark Modern Palette */
    --bg-color: #030305;
    --bg-secondary: #0a0a0c;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(255, 255, 255, 0.2);

    /* Web3 Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    --glow-color: rgba(139, 92, 246, 0.5);

    --accent-color: #8b5cf6; /* Violet */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;

    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(165, 180, 252, 0.2);
}

h2.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
}

p.lead {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-weight: 300;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.main-header nav {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header ul {
    display: flex;
    gap: 32px;
}

.main-header a:not(.logo) {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.main-header a:not(.logo):hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Bio Section */
.bio-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 40px;
}

.bio-text {
    flex: 1;
}

.bio-text h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.bio-image {
    flex: 1;
    max-width: 500px;
}

/* Abstract Background Shapes for Hero */
.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

.hero-content {
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

/* Bento Grid (Glassmorphism) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
    align-items: stretch;
}

.bento-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Hover Effect for Bento */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.bento-item:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    background: var(--card-hover-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item.large {
    grid-column: span 2;
}

.bento-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    z-index: 2;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 15px;
    z-index: 2;
    max-width: 90%;
}

.bento-icon {
    font-size: 48px;
    margin-bottom: auto;
    filter: drop-shadow(0 0 20px rgba(139,92,246,0.3));
    z-index: 2;
}

/* Timeline Future */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 29px; /* Align center */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    z-index: 0;
    opacity: 0.5;
}

.timeline-entry {
    position: relative;
    padding-left: 80px;
    padding-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #000;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.timeline-year {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-content h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: white;
}

.timeline-body p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--card-border);
    padding: 80px 0;
    font-size: 14px;
    color: var(--text-secondary);
    background: #010101;
}

.footer-link {
    color: var(--text-primary);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1.hero-title { font-size: 42px; }
    h2.section-title { font-size: 32px; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-grid-2 { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; }

    .timeline-line { left: 19px; }
    .timeline-marker { left: 5px; }
    .timeline-entry { padding-left: 60px; }

    .bio-hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .bio-text h1 {
        font-size: 36px;
    }
}

/* Badges for Bento Cards */
.bento-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    z-index: 2;
    min-height: 85px; /* Harmonization of badge area height */
    align-content: flex-end;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Helper for Bento Card Layout */
.bento-content-top {
    flex-grow: 1;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
