:root {
    --bg-color: #050508;
    --text-primary: #e6e6f0;
    --text-secondary: #9494a0;
    --accent-red: #ff2a5f;
    --accent-blue: #00f0ff;
    --accent-purple: #b000ff;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    &::-webkit-scrollbar {
        width: 10px;
    }
    &::-webkit-scrollbar-track {
        background: var(--bg-color);
    }
    &::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
    }
    &::-webkit-scrollbar-thumb:hover {
        background: var(--accent-blue);
    }
}

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

/* Background Effects */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    animation: drift 20s infinite alternate;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.accent-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glass UI Components */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    border: none;
}

.primary-btn:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.secondary-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* Layout Elements */
main {
    padding: 0 10%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* Hero Section */
.hero {
    align-items: flex-start;
}

.greeting {
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    /* Glitch effect styles */
}

/* Simple Glitch Hover */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
.glitch:hover::before, .glitch:hover::after {
    display: none;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 80px, 0); transform: translate(0); }
    20% { clip: rect(30px, 9999px, 10px, 0); transform: translate(-2px, 2px); }
    40% { clip: rect(80px, 9999px, 60px, 0); transform: translate(2px, -2px); }
    60% { clip: rect(40px, 9999px, 90px, 0); transform: translate(-2px, 0); }
    80% { clip: rect(20px, 9999px, 40px, 0); transform: translate(2px, 2px); }
    100% { clip: rect(60px, 9999px, 30px, 0); transform: translate(0); }
}

.role {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-summary {
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    margin-top: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* About & Shared Dual Layout */
.dual-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.dual-layout.align-center {
    align-items: center;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.02);
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateX(-5px) scale(1.02);
    border-color: rgba(176, 0, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

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

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
}

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

.timeline-dot {
    position: absolute;
    left: -4.5rem;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* Education */
.degree-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.major {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.concentration {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.date-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(176, 0, 255, 0.1);
    border: 1px solid rgba(176, 0, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-top: 1rem;
}

.honors-list ul {
    list-style: none;
}
.honors-list li {
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-purple);
}

/* Footer */
.glass-footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    backdrop-filter: blur(5px);
}

.glass-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(176, 0, 255, 0.5);
}

/* Global Animations / Reveals */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .dual-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .nav-links {
        display: none; /* Mobile menu needed for real production, kept simple here */
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .secondary-btn {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        margin-left: 2rem;
    }
    .timeline-dot {
        left: -3rem;
    }
}
