:root {
    --bg-color: #020617;
    /* Slate 950 */
    --card-bg: rgba(30, 41, 59, 0.4);
    /* Slate 800 with opacity */
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-text: #f8fafc;
    /* Slate 50 */
    --secondary-text: #94a3b8;
    /* Slate 400 */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-gradient: linear-gradient(135deg, #60a5fa, #a855f7);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -10%;
    left: -10%;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.globe-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 40%;
    left: 40%;
    animation-duration: 25s;
    opacity: 0.4;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links li a {
    color: var(--secondary-text);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links li a:hover {
    color: var(--primary-text);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent-gradient);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Main Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* offset for fixed nav */
}

.eyebrow {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    position: relative;
    /* Basic styling without glitch for now to keep it clean, or add pseudo-elements */
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--secondary-text);
    font-weight: 300;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--secondary-text);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

/* Summary */
.summary-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--secondary-text);
}

.summary-text strong {
    color: var(--primary-text);
    font-weight: 600;
}

/* Timeline/Experience */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.card-header h4 {
    font-size: 1.4rem;
    color: var(--primary-text);
    margin-bottom: 0.2rem;
}

.company {
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 1rem;
}

.location {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-style: italic;
}

.achievements {
    list-style: none;
}

.achievements li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.achievements strong {
    color: var(--primary-text);
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.education-card h4 {
    color: var(--primary-text);
    font-size: 1.1rem;
    margin: 0;
    min-width: 200px;
}

.education-card p {
    color: var(--accent-color);
    margin: 0;
    flex: 1;
}

.institution {
    color: var(--secondary-text);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    color: var(--primary-text);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(59, 130, 246, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-color);
    color: white;
}

/* Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.interest-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.interest-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.interest-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.interest-card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--secondary-text);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-nav {
        width: 95%;
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed, for now just hiding links on small screens or we can make them stack */
        /* Simple mobile fix: */
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .timeline {
        margin-left: 0;
    }

    .timeline::before {
        display: none;
        /* Hide vertical line on very small screens if it overlaps, or adjust padding */
    }
}

/* Scroll Animation Base States */
.card,
.section-title,
.timeline-item,
.skill-category,
.tag,
.eyebrow,
.subtitle,
.contact-info,
.glitch-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.timeline-item:nth-child(even) .visible {
    transition-delay: 0.2s;
}