:root {
    /* Color Palette - Darker Mountain Theme */
    --bg-base: #030305; /* Near black */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6; /* Blue highlight */
    --accent-hover: #60a5fa;
    --glass-bg: rgba(5, 5, 10, 0.75); /* Much darker glass */
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Background Canvas */
#mountainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Layout */
.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 100px;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px 0 rgba(0, 0, 0, 0.9);
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20vh;
    background: rgba(3, 3, 5, 0.5); 
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* General Sections */
.svg-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}
.content-section {
    padding: 50px;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-desc {
    margin-bottom: 30px;
}

.content-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Instagram Grid */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ig-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    border: 1px solid var(--glass-border);
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ig-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 2rem;
}

.ig-item:hover img {
    transform: scale(1.1);
}

.ig-item:hover .ig-overlay {
    opacity: 1;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.1);
}

.project-card > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #e2e8f0;
}

.collaborators {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.collaborator-link {
    color: var(--accent-color);
    text-decoration: none;
}
.collaborator-link:hover { text-decoration: underline; }

.project-desc {
    flex: 1;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag-bubble {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #fff;
    backdrop-filter: blur(4px);
}

.paper-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.paper-link:hover { text-decoration: underline; }

/* Papers Grid */
.paper-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.paper-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.paper-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.contact-item img {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Education Card */
.education-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.education-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff; /* In case logo is dark/transparent */
    padding: 5px;
}

.education-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.education-info p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Layout Utilities */
.split-row {
    display: flex;
    gap: 40px;
}

.split-row > section {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
}

/* Responsive */
@media (max-width: 768px) {
    .split-row {
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .content-section {
        padding: 30px;
    }
}
