/* --- Design System & Variables --- */
:root {
    --bg-dark: #09090b;
    --bg-card: rgba(20, 20, 25, 0.65);
    --bg-card-hover: rgba(28, 28, 36, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.3);
    
    --primary: #6366f1;       /* Indigo */
    --secondary: #8b5cf6;     /* Violet */
    --accent: #d946ef;        /* Fuchsia */
    --success: #10b981;       /* Emerald */
    
    --text-primary: #f4f4f5;   /* High contrast gray */
    --text-secondary: #a1a1aa; /* Muted gray */
    --text-muted: #71717a;     /* Darker gray */
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --gradient-card-header: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.02) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.25);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* --- Layout Utility --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0 4rem;
}

/* --- Ambient Pointer Glow --- */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.03) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width 0.3s ease, height 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    color: #a5b4fc;
    font-weight: 600;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.section-title i, .section-title svg {
    color: var(--secondary);
    width: 28px;
    height: 28px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* --- Navigation Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--primary);
    font-weight: 500;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(16px);
    z-index: 99;
    overflow: hidden;
    transition: var(--transition-normal);
}

.mobile-nav-overlay.open {
    height: calc(100vh - 70px);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2.5rem;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
}

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -8px rgba(99, 102, 241, 0.45);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.social-link i, .social-link svg {
    width: 20px;
    height: 20px;
}

/* --- Code Box Visualization --- */
.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.visual-card-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.visual-card {
    background: #0c0c0e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header-bar {
    background: #121214;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.35rem;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #f59e0b; }
.window-dot.green { background-color: #10b981; }

.card-code-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #a5b4fc;
    line-height: 1.5;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: #f472b6; }
.code-string { color: #34d399; }
.code-number { color: #fbbf24; }

/* --- Glassmorphic Cards --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* --- About & Education --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.education-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.edu-logo-placeholder {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-logo-placeholder i {
    width: 32px;
    height: 32px;
    color: white;
}

.edu-details h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.edu-degree {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.edu-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.edu-achievements h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.edu-achievements ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-achievements li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.edu-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

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

.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, rgba(139, 92, 246, 0.2) 100%);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 2rem;
    transform: translateX(-40%);
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-content {
    margin-left: 1.5rem;
}

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

.timeline-date {
    float: right;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.role-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.company-name {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.role-description {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.role-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.role-bullets li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.role-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

.links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.inline-link:hover {
    color: var(--text-primary);
}

.inline-link i, .inline-link svg {
    width: 14px;
    height: 14px;
}

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

.tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* --- Projects Section --- */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 8px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.project-accent-gradient {
    height: 5px;
    background: var(--gradient-primary);
    width: 100%;
}

.project-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    margin-bottom: 1rem;
}

.project-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1rem;
}

.project-features li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 70%;
}

.project-tech span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-link-btn:hover {
    color: var(--text-primary);
}

.project-link-btn i, .project-link-btn svg {
    width: 15px;
    height: 15px;
}

.project-icon-only {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-icon-only i, .project-icon-only svg {
    width: 14px;
    height: 14px;
}

/* --- Research Section --- */
.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.research-card {
    display: flex;
    flex-direction: column;
}

.research-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.pub-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding-right: 4.5rem;
}

.pub-venue {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.pub-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pub-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.pub-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pub-detail i, .pub-detail svg {
    width: 15px;
    height: 15px;
    color: var(--secondary);
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skills-card {
    height: 100%;
}

.skills-group-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.skills-group-title i, .skills-group-title svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.skill-badge:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* --- Clubs / Activities --- */
.clubs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.club-card {
    display: flex;
    flex-direction: column;
}

.club-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.club-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.6rem;
}

.club-name {
    font-size: 1.25rem;
}

.club-role {
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 500;
}

.club-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.club-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.club-bullets li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.club-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- Awards Section --- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.award-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.award-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.award-icon-container i, .award-icon-container svg {
    width: 24px;
    height: 24px;
}

.award-icon-container i.gold-trophy { color: #f59e0b; }
.award-icon-container i.bronze-medal { color: #d97706; }
.award-icon-container i.gold-star { color: #fbbf24; }
.award-icon-container i.blue-shield { color: #3b82f6; }

.award-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

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

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    background: #060608;
    padding: 3rem 0;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-center p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    color: var(--text-primary);
}

.footer-social-link i, .footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-grid {
        gap: 2rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 0 2.5rem;
    }
    
    .main-content {
        padding: 0 1rem;
    }

    /* ---- Hero ---- */
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-badge {
        margin: 0 auto 1.25rem auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
    }
    
    .hero-ctas {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-ctas .btn {
        font-size: 0.875rem;
        padding: 0.6rem 1.25rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        width: 100%;
    }

    /* ---- 3D Card: shrink on small screens ---- */
    .card-3d-container {
        max-width: 340px;
        height: 220px;
    }

    /* Disable fluid canvas on mobile (mouse-only interaction) */
    #hero-fluid-canvas {
        display: none;
    }

    /* Disable constellation canvas on mobile (performance) */
    #site-constellation-canvas {
        display: none;
    }

    /* ---- About ---- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* ---- Experience / Timeline ---- */
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::after {
        left: 3px;
    }
    
    .timeline-dot {
        left: -1rem;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        margin-left: 0.75rem;
        padding: 1.25rem;
    }
    
    .timeline-date {
        float: none;
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    .timeline-header.flex-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* ---- Projects ---- */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    /* ---- Research ---- */
    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* ---- Skills ---- */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* ---- Clubs ---- */
    .clubs-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Awards ---- */
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    /* ---- Footer ---- */
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* ---- Section titles ---- */
    .section-title {
        font-size: 1.6rem;
    }

    /* ---- Glass cards ---- */
    .glass-card {
        padding: 1.25rem;
    }
}

/* Small phones (<480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-3d-container {
        max-width: 300px;
        height: 195px;
    }

    .name-value {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Company, Education, and Project Logo Enhancements
   ========================================================================== */

.edu-logo-container {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.edu-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-header.flex-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.company-logo-container {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.03);
    transition: var(--transition-normal);
}

.timeline-item:hover .company-logo-container {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text {
    flex-grow: 1;
}

/* Projects Logo Meta Row styling */
.project-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    margin-bottom: 1.25rem;
}

.project-logo-container {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    flex-shrink: 0;
    color: var(--primary);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03);
    transition: var(--transition-normal);
}

.project-card:hover .project-logo-container {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.project-logo-container svg {
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   3D Holographic Developer Card Widget Styling
   ========================================================================== */

.card-3d-container {
    width: 100%;
    max-width: 420px;
    height: 270px;
    perspective: 1500px;
    cursor: pointer;
    margin: 0 auto;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* State when flipped */
.card-3d-wrapper.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.card-front {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.75) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.card-back {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(20, 20, 30, 0.75) 100%);
    transform: rotateY(180deg);
}

/* Holographic shine highlight layer */
.shine-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}

/* Holographic foil shifting coloring */
.card-front::after, .card-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(99, 102, 241, 0.08) 40%,
        rgba(236, 72, 153, 0.08) 45%,
        rgba(168, 85, 247, 0.08) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    background-position: calc(var(--mx, 50%) * 2) calc(var(--my, 50%) * 2);
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: color-dodge;
}

/* Holographic watermarks */
.card-watermark {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 7.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.015);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -5px;
    pointer-events: none;
    user-select: none;
}

/* Front Design */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(30px);
}

.card-ucla-logo {
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.card-type {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.card-chip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
    transform: translateZ(25px);
}

/* Realistic micro-chip visual */
.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #f3e098 0%, #d8b245 40%, #cda12f 60%, #eedb90 100%);
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.chip-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
}
.chip-line:nth-child(1) { top: 33%; left: 0; width: 100%; height: 1px; }
.chip-line:nth-child(2) { top: 66%; left: 0; width: 100%; height: 1px; }
.chip-line:nth-child(3) { left: 50%; top: 0; width: 1px; height: 100%; }
.chip-line:nth-child(4) {
    top: 25%; left: 25%; width: 50%; height: 50%;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
}

.card-rfid {
    color: rgba(255, 255, 255, 0.3);
}

.rfid-icon {
    width: 20px;
    height: 20px;
}

.card-body {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transform: translateZ(35px);
}

.card-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-photo i {
    width: 28px;
    height: 28px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
}

.info-value {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.name-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.5rem;
    transform: translateZ(30px);
}

.footer-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.card-barcode {
    display: flex;
    align-items: flex-end;
    height: 18px;
    gap: 1px;
    opacity: 0.45;
}

.bar {
    width: 2px;
    height: 100%;
    background: white;
}

.bar.long {
    height: 125%;
}

.click-instruction {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

.click-instruction i {
    width: 10px;
    height: 10px;
}

/* Back Design */
.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(30deg);
}

.back-title {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-ucla-logo-back {
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.skills-grid-3d {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.8rem 0;
    transform: translateZ(25px);
}

.skill-category-3d {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.4rem 0.60rem;
}

.cat-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cat-title i {
    width: 10px;
    height: 10px;
}

.cat-skills {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.back-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.25rem;
    transform: translateZ(35px);
}

.signature-line {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
    width: 75%;
    text-align: center;
    padding-bottom: 2px;
}

.sig-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
}

/* Subtle pulse animation for click indicator */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.55; }
}

/* Override .hero-visual settings for 3D card centering */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphic Flip Button on Card */
.flip-badge-btn {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-normal);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateZ(40px); /* Pushes button forward in 3D space */
}

.flip-badge-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: translateZ(40px) scale(1.05);
}

.flip-badge-btn i {
    width: 12px;
    height: 12px;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d-container:hover .flip-badge-btn i {
    transform: rotate(180deg);
}

/* Entrance Peek Animation for 3D Card */
@keyframes cardPeek {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    20% { transform: rotateY(-18deg) rotateX(8deg); }
    40% { transform: rotateY(15deg) rotateX(-6deg); }
    60% { transform: rotateY(-8deg) rotateX(4deg); }
    80% { transform: rotateY(4deg) rotateX(-2deg); }
    100% { transform: rotateY(0deg) rotateX(0deg); }
}

.card-3d-wrapper {
    animation: cardPeek 2.8s cubic-bezier(0.25, 0.8, 0.25, 1) 1.5s;
}

/* Background Mesh Grid on Body */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.12) 1.2px, transparent 1.2px),
        linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
    background-size: 28px 28px, 56px 56px, 56px 56px;
    background-position: center;
    pointer-events: none;
    z-index: -1;
}

/* Blurry Glowing background circles */
.bg-orb {
    position: fixed;
    width: 48vw;
    height: 48vw;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.35;
    animation: floatOrb 28s infinite alternate ease-in-out;
}

.orb-1 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 80%);
    top: -12%;
    left: -12%;
}

.orb-2 {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 80%);
    bottom: 12%;
    right: -12%;
    animation-delay: -6s;
}

.orb-3 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 80%);
    top: 45%;
    left: 45%;
    width: 32vw;
    height: 32vw;
    animation-delay: -12s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, 6%) scale(1.08); }
    100% { transform: translate(-3%, -4%) scale(0.95); }
}

/* On mobile: smaller orbs, less blur = better GPU performance */
@media (max-width: 768px) {
    .bg-orb {
        width: 70vw;
        height: 70vw;
        filter: blur(80px);
        opacity: 0.22;
        animation: none; /* Stop animating on mobile to save battery */
    }

    .orb-3 {
        display: none; /* Drop the 3rd orb entirely on small screens */
    }
}

/* Hover glow states on timeline cards */
.timeline-content.glass-card {
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.timeline-item:hover .timeline-content.glass-card {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Club & Activities List Improvements */
.club-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.club-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.club-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
    transform: translateX(4px);
}

.club-logo-container {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.club-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.club-details {
    display: flex;
    flex-direction: column;
}

.club-details strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.club-details span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Research Cards Header Improvements */
.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.research-logo-container {
    height: 24px;
    display: flex;
    align-items: center;
}

.research-logo {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.invert-logo {
    filter: brightness(0) invert(1);
}

/* --- Page-Load Entrance Animations (Wow Factor) --- */
.load-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delay utility classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

/* Glowing light sweep animation for all glassmorphic cards on load */
@keyframes borderLightSweep {
    0% {
        box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
    30% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), 0 0 40px rgba(99, 102, 241, 0.15);
        border-color: rgba(139, 92, 246, 0.35);
    }
    100% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

.glass-card {
    /* Trigger border highlight sweep on load */
    animation: borderLightSweep 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

/* Shimmer animation for Krishay Garg title */
@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-title .gradient-text {
    background: linear-gradient(
        90deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--accent) 50%, 
        var(--secondary) 75%, 
        var(--primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4.5s linear infinite;
}

/* --- Ambient Interactive Elements Styling --- */
.hero-section {
    position: relative;
    /* Allow canvas bleed outside section bounds without clipping */
    overflow: visible;
}

.section-bg-canvas {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 160px);
    pointer-events: none; /* Allow interaction with links/text in front */
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
}

/* Site-wide fixed constellation canvas */
#site-constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}
