/* === CSS Variables === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a8;
    --text-muted: #686878;
    --accent: #4a9eff;
    --accent-dim: rgba(74, 158, 255, 0.15);
    --accent-glow: rgba(74, 158, 255, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(74, 158, 255, 0.3);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0d1520 100%);
    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Film grain overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 20px var(--accent-glow);
}

strong {
    color: var(--accent);
    font-weight: 600;
}

/* === Navigation === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.nav-social {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-social a:hover {
    color: var(--accent);
    background: var(--accent-dim);
    text-shadow: none;
}

/* === Main Content === */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 4rem;
    background: var(--gradient-hero);
	position: relative;
}

.hero::before {
	content: '';
	position: absolute;
    top: 50%;
	left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
	position: relative;
    z-index: 1;
}

.hero-image-container {
    margin-bottom: 2rem;
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-dim), 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--accent-glow), 0 25px 80px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle .separator {
    color: var(--accent);
    margin: 0 0.5rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    max-width: 500px;
    margin: 0 auto;
}

/* === Value Props Section === */
.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: -4rem 0 5rem;
	position: relative;
    z-index: 2;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.value-card.featured {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(74, 158, 255, 0.05) 100%);
    border-color: var(--border-accent);
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--accent);
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Section Titles === */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.title-accent {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 400;
}

/* === Skills Section === */
.skills-section {
    margin-bottom: 5rem;
}

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

.skill-category h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

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

.skill-tags span {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* === Experience Section === */
.experience-section {
    margin-bottom: 5rem;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.exp-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-company {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.exp-company h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

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

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.exp-highlights {
	list-style: none;
    margin-left: 64px;
}

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

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

.exp-images {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-left: 64px;
}

.exp-images img {
    height: 100px;
    width: auto;
    border-radius: 8px;
    opacity: 0.9;
}

/* === Education Section === */
.education-section {
    margin-bottom: 5rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.edu-card:hover {
    border-color: var(--border-accent);
}

.edu-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.edu-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.edu-school {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.edu-gpa {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.edu-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === Projects Section === */
.projects-section {
    margin-bottom: 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.project-card.featured-project {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(74, 158, 255, 0.03) 100%);
    border-color: var(--border-accent);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.project-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
}

.project-tag.live {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5050;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.project-card h3 {
    font-size: 1.15rem;
}

.project-card h3 a {
    color: var(--text-primary);
}

.project-card h3 a:hover {
    color: var(--accent);
}

.project-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.project-features {
    list-style: none;
}

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

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.project-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.project-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-meta i {
    color: var(--accent);
    margin-right: 0.4rem;
}

/* === Publications Section === */
.publications-section {
    margin-bottom: 5rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pub-card:hover {
    border-color: var(--border-accent);
    border-left-color: var(--accent);
}

.pub-venue {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.pub-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pub-card h3 a {
    color: var(--text-primary);
}

.pub-card h3 a:hover {
    color: var(--accent);
}

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

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

.scholar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.scholar-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    text-shadow: none;
}

/* === Misc Section === */
.misc-section {
    margin-bottom: 5rem;
}

.misc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.misc-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.misc-item:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
    text-shadow: none;
}

.misc-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.misc-item span {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Footer === */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-note {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-note a {
    color: var(--text-secondary);
}

/* === Responsive === */
@media (max-width: 900px) {
    .value-props {
        grid-template-columns: 1fr;
        margin: -2rem 1rem 4rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured-project {
        grid-column: span 1;
    }
    
    .misc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .exp-highlights {
        margin-left: 0;
    }
    
    .exp-images {
        margin-left: 0;
    }
    
    .exp-company {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .exp-card {
        padding: 1.5rem;
    }
}
