:root {
    --bg-light: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.8);
    --primary-cyan: #0284C7;
    --primary-green: #059669;
    --text-main: #000000;
    --text-muted: #222222;
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft Hexagon Pattern for Chemical Feel */
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Glassmorphism Panel / Light Cards */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

/* Add subtle circuit/hex decoration to cards */
.glass-panel::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.glass-panel > * {
    position: relative;
    z-index: 1;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.2);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background: rgba(2, 132, 199, 0.05);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-green);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    position: relative;
}

/* Circuit Decoration */
.hero-section::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 2%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--primary-cyan) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.tagline {
    color: var(--primary-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tagline::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary-green);
    display: inline-block;
}

.title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-green);
    font-weight: 700;
}

.summary {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed var(--primary-cyan);
    border-radius: 30px;
    z-index: -1;
    animation: rotateSlow 30s linear infinite;
    opacity: 0.5;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    z-index: -2;
    opacity: 0.3;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 16px;
    border: 8px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.glass-badge {
    position: absolute;
    bottom: -10px;
    right: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    color: var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Sections Global */
.deco-svg {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: -1;
    animation: rotateSlow 20s linear infinite;
}
.deco-tech {
    top: 20%;
    right: 5%;
}
.deco-chem {
    bottom: 10%;
    left: 5%;
    animation-direction: reverse;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
}

.about-card ion-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    background: rgba(5, 150, 105, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-muted);
}

/* Impact / Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Publications Section */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pub-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    border-left: 4px solid transparent;
}
.pub-card:hover {
    border-left: 4px solid var(--primary-cyan);
}

.pub-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-cyan);
    min-width: 80px;
    border-right: 2px solid var(--glass-border);
    padding-right: 2rem;
}

.pub-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pub-details .authors {
    color: var(--primary-green);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.pub-details .journal {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Honors Section */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.honor-card ion-icon {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.honor-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.honor-card ul {
    list-style: none;
}

.honor-card ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.honor-card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Footer / Contact */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 5% 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.footer h2 {
    color: var(--primary-cyan);
}

.footer-content > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item:hover {
    color: var(--primary-green);
}

.contact-item ion-icon {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.address {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.address ion-icon {
    color: var(--primary-cyan);
    font-size: 1.5rem;
}

.university-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(2, 132, 199, 0.05);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(2, 132, 199, 0.1);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations & Interactivity */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 4rem;
        padding-top: 120px;
    }
    .title {
        font-size: 3.5rem;
    }
    .pub-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .pub-year {
        border-right: none;
        border-bottom: 2px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 0.5rem;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .title {
        font-size: 2.8rem;
    }
    .subtitle {
        font-size: 1.5rem;
    }
    .hero-image-container {
        width: 300px;
        height: 300px;
    }
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    .image-wrapper img {
        width: 250px;
        height: 250px;
    }
}


/* Show More / Expandable Lists */
.pub-category {
    position: relative;
    padding: 2rem;
    padding-bottom: 70px;
    margin-bottom: 2rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-cyan);
}

.expand-list {
    list-style: none;
    max-height: 200px; /* Show roughly 3 items */
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.pub-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.pub-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.list-icon {
    color: var(--primary-green);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.fade-overlay {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.show-more-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

.show-more-btn ion-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

/* Expanded State */
.pub-category.expanded .expand-list {
    max-height: 5000px;
}
.pub-category.expanded .fade-overlay {
    opacity: 0;
}
.pub-category.expanded .show-more-btn ion-icon {
    transform: rotate(180deg);
}
