/* Blue link for CMT309 and CMT655 */
.blue-link {
    color: #1976d2;
    font-weight: 600;
}
/* Yellow link */
.yellow-link {
    color: #FFD600;
    font-weight: 600;
}
:root {
    --primary-blue: #0A2463;
    --accent-blue: #1E3A8A;
    --bright-yellow: #FFD700;
    --light-yellow: #FFF4CC;
    --dark-yellow: #F4B942;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-gray: #4A5568;
    --bg-light: #FAFBFD;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bright-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 3rem 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--bright-yellow);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    animation: fadeInLeft 1s ease-out backwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-role {
    font-size: 1.3rem;
    color: var(--bright-yellow);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-bio {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-bio p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.hero-bio p:last-child {
    margin-bottom: 0;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-link {
    padding: 0.9rem 2rem;
    background: var(--bright-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hero-link:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.hero-image {
    animation: fadeIn 1s ease-out 0.5s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 5px solid var(--bright-yellow);
}

/* Main Content Wrapper */
.main-content {
    background: linear-gradient(180deg, #FAFBFD 0%, #F5F7FA 100%);
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(10, 36, 99, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Sections */
.section {
    padding: 6rem 3rem;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--bright-yellow);
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.inline-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--bright-yellow);
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* News Section */
.news {
    background: transparent;
}

.news-list {
    list-style: none;
    max-width: 800px;
}

.news-list li {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border-radius: 10px;
    border-left: 4px solid var(--bright-yellow);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-date {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 100px;
}

.news-list p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.news-list a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list a:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .news-list li {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-date {
        min-width: auto;
    }
}

/* Research Section */
.research {
    background: transparent;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.research-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.research-card.principal {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--text-light);
    border-left: 4px solid var(--bright-yellow);
}

.research-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-card.featured {
    border-color: var(--bright-yellow);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bright-yellow);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    padding-right: 6rem;
}

.project-meta {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    padding: 0.6rem 1.5rem;
    background: var(--primary-blue);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

.role-tag {
    display: inline-block;
    background: var(--bright-yellow);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.research-card.principal .role-tag {
    background: var(--text-light);
}

.research-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-blue);
}

.research-card.principal h3 {
    color: var(--bright-yellow);
}

.research-org {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.research-card.principal .research-org {
    color: rgba(255, 255, 255, 0.9);
}

.research-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.research-card.principal .research-desc {
    color: rgba(255, 255, 255, 0.9);
}

.research-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.research-card.principal .research-link {
    color: var(--bright-yellow);
}

.research-link:hover {
    transform: translateX(5px);
}

.research-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Supervision Section */
.supervision-section {
    margin-top: 5rem;
}

.supervision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.student-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--bright-yellow);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.student-card h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.student-status {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.student-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.student-link:hover {
    color: var(--primary-blue);
}

/* Teaching Section */
.teaching {
    background: transparent;
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.course-card.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--text-light);
    border-color: var(--bright-yellow);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-code {
    display: inline-block;
    background: var(--bright-yellow);
    color: var(--primary-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-card.highlight .course-code {
    background: var(--text-light);
}

.course-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.course-card.highlight h3 {
    color: var(--bright-yellow);
}

.course-org {
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-card.highlight .course-org {
    color: rgba(255, 255, 255, 0.9);
}

.course-desc {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.course-card.highlight .course-desc {
    color: rgba(255, 255, 255, 0.9);
}

.course-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.course-card.highlight .course-link {
    color: var(--bright-yellow);
}

.course-link:hover {
    transform: translateX(5px);
}

/* Service Section */
.service {
    background: transparent;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--bright-yellow);
}

.activity-list {
    list-style: none;
}

.activity-list li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-list li strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.activity-list li span {
    display: block;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.activity-list li p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--text-light);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--bright-yellow);
    margin-bottom: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--bright-yellow);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
    }
    
    .hero-links {
        justify-content: center;
    }
    
    .research-grid,
    .teaching-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .supervision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1.5rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-role {
        font-size: 1.1rem;
    }
    
    .hero-bio p {
        font-size: 1rem;
        text-align: left;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .supervision-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-role {
        font-size: 1rem;
    }
    
    .hero-bio p {
        font-size: 0.95rem;
    }
    
    .hero-links {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-link {
        width: 100%;
        text-align: center;
    }
    
    .hero-image img {
        max-width: 280px;
        height: 280px;
    }
}
