/* Global Styles */
:root {
    --primary-color: #002147;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #002147;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    cursor: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002147, #0ea5e9, #8b5cf6);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.95), 0 0 28px rgba(139, 92, 246, 0.55);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.7);
    background: transparent;
    transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    box-shadow: none;
}

.cursor-ring.cursor-hover {
    width: 62px;
    height: 62px;
    border-color: #0ea5e9;
    background: transparent;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.42);
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    cursor: pointer;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
}

.section-divider {
    height: 20px;
    margin: 24px 0 20px;
    border-bottom: 1px solid rgba(0, 33, 71, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #111111;
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    flex-shrink: 0;
    margin-right: 8px;
}

.nav-logo a {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111111;
}

img[alt="Logo"] {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #0f2c5c;
    padding: 2px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #111111;
    font-weight: 600;
    font-size: 0.96rem;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #002147, #0f3e78);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 33, 71, 0.18);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 23px;
    height: 2.5px;
    background-color: #111111;
    margin: 3px 0;
    transition: 0.3s;
}

/* Cover Section */
.cover-section {
    height: 80vh;
    background: #0f2a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 20px;
}

.cover-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.cover-text {
    flex: 1;
    text-align: left;
}

.cover-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cover-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cover-text .hero-typing {
    min-height: 2.4em;
    margin-bottom: 1.2rem;
    color: #111111;
}

.cover-text .hero-typing-prefix {
    display: inline-block;
    color: #111111;
}

.cover-text .hero-typing-target {
    display: inline-block;
    color: #0f2a4a;
    font-weight: 700;
    min-width: 10ch;
}

.cover-text .hero-typing-cursor {
    display: inline-block;
    margin-left: 2px;
    color: #0f2a4a;
    animation: hero-cursor-blink 0.8s step-end infinite;
}

@keyframes hero-cursor-blink {
    50% {
        opacity: 0;
    }
}

.cover-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cover-image img {
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cover-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Bio Section */
.bio-section {
    padding: 80px 0;
    background-color: white;
}

.bio-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.bio-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bio-text {
    flex: 1;
    max-width: 900px;
    padding: 40px;
    border: 2px solid var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Scientific Expertise Section */
.expertise-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f7fb 100%);
}

.expertise-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.expertise-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.12);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.expertise-header h2 {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.expertise-header p {
    color: #576574;
    font-size: 1.05rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 33, 71, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.expertise-card.active-card {
    border-color: rgba(52, 152, 219, 0.35);
    box-shadow: 0 16px 35px rgba(52, 152, 219, 0.14);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.16), rgba(0, 33, 71, 0.1));
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.expertise-card h3 {
    font-size: 1.15rem;
    color: #111111;
    margin-bottom: 8px;
}

.expertise-card p {
    color: #5f6b7a;
    margin-bottom: 14px;
    line-height: 1.7;
}

.expertise-bar {
    width: 100%;
    height: 8px;
    background: #e9eef4;
    border-radius: 999px;
    overflow: hidden;
}

.expertise-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

@media screen and (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Research Section */
.research-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.research-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.research-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.research-link-item {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.research-link-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.research-link-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.research-link-content {
    padding: 16px 18px 20px;
}

.research-link-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #111111;
}

.research-link-content p {
    color: #555555;
    margin-bottom: 0;
    line-height: 1.7;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.research-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.research-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.research-card .fa-worm {
    font-size: 3.5rem;
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111111;
}

.research-card p {
    color: #222222;
}

@media screen and (max-width: 1024px) {
    .research-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .research-links {
        grid-template-columns: 1fr;
    }
}

/* Connection Section */
.connection-section {
    padding: 80px 0;
    background-color: white;
}

.connection-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 10px;
    width: 120px;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.social-link-footer {
    display: inline-block;
    margin: 0 5px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-link-footer:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-link:hover .fa-twitter {
    color: #1DA1F2; /* Twitter blue color */
    transform: scale(1.1);
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    background-color: #fafaf8;
    color: #202020;
    padding: 60px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 33, 71, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
    pointer-events: none;
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 138, 221, 0.08), transparent 72%);
    pointer-events: none;
}

.footer-content,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    color: #111111;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #002147;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #002147;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #3f4b56;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #002147;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 33, 71, 0.12);
    color: #454545;
}

/* Responsive Design */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-item {
        margin: 0 3px;
    }

    .nav-link {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.08);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .cover-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cover-text {
        text-align: center;
    }

    .cover-text h1 {
        font-size: 2.5rem;
    }

    .cover-text p {
        font-size: 1.2rem;
    }

    .cover-buttons {
        justify-content: center;
    }

    .cover-image img {
        max-width: 200px;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bio-image img {
        max-width: 200px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 100px;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .cover-text h1 {
        font-size: 2rem;
    }

    .cover-text p {
        font-size: 1rem;
    }

    .cover-image img {
        max-width: 150px;
    }

    .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .social-link {
        width: 80px;
        padding: 10px;
    }

    .social-link span {
        font-size: 0.8rem;
    }
    
    .bio-text {
        padding: 20px;
    }
}