:root {
    --bg-base: #0f172a;
    --acc-primary: #38bdf8;
    --acc-secondary: #818cf8;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 0% 0%, rgba(56,189,248,0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(129,140,248,0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--acc-primary);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    padding: 4rem 3rem;
    max-width: 800px;
}

.gradient-text {
    background: linear-gradient(to right, var(--acc-primary), var(--acc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--acc-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--acc-primary);
}

.card .role {
    font-weight: 600;
    color: var(--acc-secondary);
    margin-bottom: 1rem;
}

.card .details {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card .note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1rem;
}

.glow-link {
    color: var(--acc-secondary);
    text-decoration: none;
    font-weight: 600;
}

.glow-link:hover {
    text-decoration: underline;
}

.tech-stack {
    font-size: 0.85rem;
    color: var(--acc-secondary);
    margin-bottom: 1rem;
    font-family: monospace;
}

.cyber-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--acc-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cyber-btn:hover {
    background: var(--acc-primary);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.publications-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.pub-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pub-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.citation-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.citations {
    background: rgba(129, 140, 248, 0.1);
    color: var(--acc-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 5%;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

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

.social-links a:hover {
    color: var(--acc-primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* Simple mobile hide for now */
    }
    
    .pub-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .citations {
        margin-left: 0;
    }
}
