/* style.css - sleek modern design */

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
    /* Deep dark grey background */
    background: #121212;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Ensure the canvas is actually visible and on top of the body background */
#gridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* z-index -1 puts it behind the content card, 
       but it must be higher than the body background */
    z-index: 0;
    pointer-events: none;
    display: block;
}

.academic-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    /* Translucent glassmorphism card */
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.academic-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.academic-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.cv-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s;
}

.cv-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.academic-section {
    margin-bottom: 3rem;
}

.academic-section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.academic-section p {
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1rem;
}

.pub-list {
    padding-left: 1.2rem;
}

.pub-list li {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #bbb;
}

.pub-year {
    color: #666;
    font-style: italic;
    margin-left: 5px;
}

.academic-footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    opacity: 0.8;
}

.academic-footer a {
    color: #88aaff;
    font-weight: 500;
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cv-section p {
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
.about p, .contact p { max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.project-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform .2s, box-shadow .2s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.project-card h3 { margin-bottom: 0.5rem; }

/* Footer */
.footer { text-align: center; padding: 2rem; opacity: 0.7; }

