:root {
    --primary-color: #f8fafc; /* Light Slate */
    --secondary-color: #0d9488; /* Darker Teal for contrast */
    --accent-color: #0891b2; /* Darker Cyan for contrast */
    --text-color: #1e293b; /* Dark Slate */
    --text-muted: #475569;
    --bg-color: #ffffff;
    --card-bg: #f1f5f9;
    --glass-border: rgba(0, 0, 0, 0.05);
    --header-height: 100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle Icon */
.mobile-btn {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.mobile-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-btn span:nth-child(1) { top: 0px; }
.mobile-btn span:nth-child(2) { top: 9px; }
.mobile-btn span:nth-child(3) { top: 18px; }

.mobile-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.mobile-btn.open span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.mobile-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Layout */
section {
    padding: 100px 0;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .glass-card:hover {
        transform: none;
    }
}

.glass-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--primary-color);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    display: block;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(8, 145, 178, 0.05), transparent);
}

.hero-main-img {
    max-width: 600px;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero {
        padding: 120px 0 40px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

.text-center {
    text-align: center;
}

.scientific-vision {
    max-width: 1000px;
    margin: 0 auto 2rem;
    text-align: left;
}

.scientific-vision p {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pillar-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
}

.pillar-card h3 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    line-height: 1.4;
    font-weight: 700;
}

.pillar-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.pillar-card .number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    opacity: 1;
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }
}

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

.feed-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feed-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.feed-card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.feed-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feed-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.latest-pub-highlight {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.03), transparent);
    border: 1px solid var(--secondary-color);
    padding: 3rem;
    border-radius: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.latest-pub-highlight .journal-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.latest-pub-highlight h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.latest-pub-highlight .authors {
    font-size: 1.1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .latest-pub-highlight {
        padding: 2rem;
    }
    .latest-pub-highlight h3 {
        font-size: 1.4rem;
    }
}

/* Animations */@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 992px) {
    nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    nav.mobile-open {
        display: block;
        animation: fadeInUp 0.3s ease-out;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .mobile-btn {
        display: block;
        margin-left: auto;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .logo img {
        height: 60px;
    }
    header .container {
        gap: 0;
        justify-content: space-between;
        width: 100%;
    }
}
/* News Board */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0; /* Override glass-card padding */
}

.news-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    margin: 0.5rem 0 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Publication Card Enhancements */
.pub-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.clickable-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    text-decoration: none !important;
    display: block !important;
    color: inherit !important;
}

.clickable-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
}

.clickable-card h3 {
    transition: color 0.3s ease;
}

.clickable-card:hover h3 {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .pub-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .pub-card-top .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Team Section Enhancements */
.team-section {
    padding: 40px 0;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.member-card {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.member-card.reverse {
    flex-direction: row-reverse;
}

.member-info {
    flex: 1;
}

.member-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.member-info .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem; /* Slightly larger */
    margin-bottom: 1.5rem;
    display: block;
}

.member-details {
    margin-top: 1.5rem;
}

.member-details h4 {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.member-details li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.member-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.member-img {
    flex: 0 0 256px;
    height: auto;
    max-height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-img img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-img img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .page-header {
        text-align: left !important;
    }
    
    .team-section h2 {
        text-align: left;
    }

    .member-card,
    .member-card.reverse {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .member-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 256px;
        height: auto;
        margin: 0 auto 1.5rem;
    }
}
