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

        :root {
            --primary: #27acd8;
            --secondary: #30C7C2;
            --dark: #1a1d24;
            --darker: #0f1115;
            --light: #ffffff;
            --gray: #9ea2a8;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--darker);
            color: var(--light);
            line-height: 1.6;
            background-image: url('assets/images/background.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 17, 21, 0.5);
            z-index: -1;
        }

        header {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 0.35rem 0;
            background: var(--darker);
            z-index: 1000;
            border-bottom: 2px solid var(--primary);
        }

        nav {
            max-width: none;
            margin: 0;
            padding: 0 3%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
            letter-spacing: 2px;
            text-decoration: none;
            cursor: pointer;
        }

        .logo:hover {
            color: var(--secondary);
        }

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

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

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

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
            background: transparent;
            padding-top: 100px;
        }

        .hero-content {
            max-width: 1000px;
        }

        .profile-photo {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            border: 4px solid var(--primary);
            margin: 0 auto 2rem;
            display: block;
            object-fit: cover;
            background-color: var(--gray);
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

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

        .hero .tagline {
            font-size: 1.2rem;
            color: var(--light);
            margin-bottom: 3rem;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            /* Added for glow effect */
            position: relative;
            z-index: 1; /* Ensure button content is above glow */
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: #208aa8;
        }

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

        .btn-secondary:hover {
            background: var(--secondary);
        }

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

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

        .section-subtitle {
            text-align: center;
            color: var(--gray);
            margin-bottom: 4rem;
            font-size: 1.1rem;
        }

        /* About Section Styles */
        .about-intro {
            max-width: 1000px;
            margin: 0 auto 4rem;
            background: var(--dark);
            padding: 3rem;
            border-radius: 15px;
            border: 2px solid var(--primary);
            text-align: center;
        }

        .about-photo {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 2px solid var(--primary);
            object-fit: cover;
            margin: 0 auto 2rem;
            display: block;
            background-color: var(--gray);
        }

        .about-text {
            max-width: 800px;
            margin: 0 auto;
        }

        .about-text h3 {
            color: var(--primary);
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

        .about-text p {
            color: var(--light);
            line-height: 1.9;
            font-size: 1.05rem;
            margin-bottom: 1.5rem;
        }

        .about-highlights {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(39, 172, 216, 0.3);
        }

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

        .highlight-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .highlight-text {
            color: var(--secondary);
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* Research Highlights */
        .research-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .research-card {
            background: var(--dark);
            border: 2px solid var(--primary);
            border-radius: 15px;
            position: relative;
            /* overflow: hidden; */ /* <-- This was the issue! Removing it allows the '::before' glow to show. */
            cursor: pointer;
            aspect-ratio: 16 / 10;
            transition: border-color 0.3s;
        }

        .research-card:hover {
            border-color: var(--secondary);
        }

        .card-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0.6;
            transition: opacity 0.3s;
            border-radius: 13px; /* Added to keep corners rounded inside the parent border */
        }

        .research-card:hover .card-background {
            opacity: 0.4;
        }

        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            z-index: 2;
            text-align: center;
            border-radius: 13px; /* Added to keep corners rounded inside the parent border */
        }

        .card-title {
            color: var(--primary);
            font-size: 1.8rem;
            font-weight: bold;
            transition: opacity 0.3s;
        }

        .card-hover-text {
            color: var(--secondary);
            font-size: 1.2rem;
            opacity: 0;
            transition: opacity 0.3s;
            margin-top: 1rem;
        }

        .research-card:hover .card-title {
            opacity: 0;
        }

        .research-card:hover .card-hover-text {
            opacity: 1;
        }

        /* Modal Styles */
        #modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            display: none;
        }

        #modal-container {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--dark);
            border: 2px solid var(--primary);
            border-radius: 15px;
            padding: 2.5rem;
            z-index: 2001;
            display: none;
            width: 90%;
            max-width: 1200px;
            max-height: 85vh;
            overflow-y: auto;
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1.5rem;
            font-size: 2.5rem;
            color: var(--light);
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: var(--secondary);
        }

        #modal-title {
            color: var(--primary);
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

        #modal-content {
            color: var(--light);
            line-height: 1.8;
            font-size: 1.0rem;
        }

        #modal-content p {
            margin-bottom: 1.5rem;
        }

        #modal-content h3 {
            color: var(--secondary);
            font-size: 1.5rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }

        .modal-links {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(39, 172, 216, 0.3);
        }

        .modal-links h4 {
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .modal-links a {
            color: var(--secondary);
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s;
        }

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

        /* Publications Timeline */
        .timeline {
            position: relative;
            padding: 2rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--secondary);
        }

        .timeline-item {
            margin-bottom: 1.5rem;
            position: relative;
            width: 45%;
        }

        .timeline-item:nth-child(odd) {
            margin-left: auto;
            padding-left: 2rem;
        }

        .timeline-item:nth-child(even) {
            padding-right: 2rem;
            text-align: right;
        }

        .timeline-content {
            background: var(--dark);
            padding: 1.2rem;
            border-radius: 10px;
            border: 2px solid var(--primary);
            cursor: pointer;
            transition: border-color 0.3s, background-color 0.3s;
            /* Added for glow effect */
            position: relative;
        }

        .timeline-content:hover {
            border-color: var(--secondary);
            background: rgba(26, 29, 36, 0.95);
        }

        .timeline-content h4 {
            color: var(--primary);
            margin-bottom: 0.3rem;
            font-size: 1.1rem;
        }

        .timeline-content .journal {
            color: var(--secondary);
            font-weight: bold;
            margin-bottom: 0.3rem;
            font-size: 0.9rem;
        }

        .timeline-content p {
            font-size: 0.95rem;
        }

        /* Teaching Section */
        .teaching-grid {
            display: grid;
            grid-template-columns: 1fr; /* This line ensures cards stack vertically */
            gap: 2rem;
            margin-top: 3rem;
        }

        .teaching-card {
            background: var(--dark);
            border: 2px solid var(--secondary);
            border-radius: 15px;
            padding: 2rem;
            transition: border-color 0.3s, transform 0.3s;
        }

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

        .teaching-card h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.4rem;
        }

        .teaching-card .role {
            color: var(--secondary);
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .teaching-card .details {
            color: var(--light);
            line-height: 1.8;
            margin-bottom: 0.5rem;
        }

        .teaching-card .year {
            color: var(--gray);
            font-size: 0.9rem;
        }

        .teaching-experience-list {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(48, 199, 194, 0.3);
        }

        .experience-item {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

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

        .experience-title {
            color: var(--secondary);
            font-weight: bold;
            margin-bottom: 0.3rem;
        }

        .experience-details {
            color: var(--light);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .experience-year {
            color: var(--gray);
            font-size: 0.85rem;
            margin-top: 0.2rem;
        }

        /* Contact Section */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .contact-card {
            background: var(--dark);
            padding: 2rem;
            border-radius: 15px;
            border: 2px solid var(--secondary);
            text-align: center;
            transition: border-color 0.3s;
            cursor: pointer;
        }

        .contact-card:hover {
            border-color: var(--primary);
        }

        .contact-card .icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .contact-card h3 {
            color: var(--light);
            margin-bottom: 0.5rem;
        }

        .contact-card .contact-link-text {
            color: var(--gray);
            text-decoration: none;
            transition: color 0.3s;
        }

        .contact-grid a:hover .contact-card .contact-link-text {
            color: var(--primary);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 2rem;
            background: var(--darker);
            border-top: 2px solid var(--primary);
            color: var(--gray);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            nav {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-links {
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .about-photo {
                width: 150px;
                height: 150px;
            }

            .about-highlights {
                grid-template-columns: 1fr;
            }

            .research-grid {
                grid-template-columns: 1fr;
            }

            .teaching-grid {
                grid-template-columns: 1fr;
            }

            .timeline::before {
                left: 0;
            }

            .timeline-item {
                width: 100%;
                padding-left: 2rem !important;
                padding-right: 0 !important;
                text-align: left !important;
            }
        }

        /* Smooth Scroll Effects */
        /* .fade-in-up {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

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

        /* --- UPDATED: Subtle hover glow effects --- */
        /* Only apply position: relative to elements that will have a glow */
        .research-card,
        .contact-card,
        .timeline-content,
        .btn {
            position: relative;
        }

        /* Glow for 15px radius cards: Research and Contact */
        .research-card::before,
        .contact-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 15px; /* Matches these cards */
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            box-shadow: 0 0 20px rgba(39, 172, 216, 0.5);
        }

        .research-card:hover::before,
        .contact-card:hover::before {
            opacity: 1;
        }

        /* Glow for 10px radius timeline content */
        .timeline-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 10px; /* Matches .timeline-content */
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            box-shadow: 0 0 20px rgba(39, 172, 216, 0.5);
        }

        .timeline-content:hover::before {
            opacity: 1;
        }

        /* Glow for 50px radius buttons */
        .btn::before {
            content: '';
            position: absolute;
            top: -2px; /* Adjust to align with border */
            left: -2px; /* Adjust to align with border */
            right: -2px; /* Adjust to align with border */
            bottom: -2px; /* Adjust to align with border */
            border-radius: 50px; /* Matches .btn */
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: -1; /* Place glow behind button content */
            box-shadow: 0 0 20px rgba(39, 172, 216, 0.5);
        }

        .btn:hover::before {
            opacity: 1;
        }
