/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
   :root {
    /* Color System */
    --clr-dark-bg: #0B132B; /* Dark Slate Blue */
    --clr-dark-surface: #1C2541;
    --clr-light-bg: #F4F7F6; /* Medical Grade Off-white */
    --clr-light-surface: #FFFFFF;
    --clr-accent: #00F5D4; /* Clinical Teal */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 5%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #333;
    background-color: var(--clr-light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: inherit;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: var(--clr-accent);
    border: 1px solid var(--clr-accent);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    color: var(--clr-dark-bg);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--clr-dark-bg);
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: #fff;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.center-nav a {
    margin: 0 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.8;
}

.center-nav a:hover {
    opacity: 1;
    color: var(--clr-accent);
}

.social-nav {
    display: flex;
    align-items: center;
}

.social-nav a {
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.social-nav a:hover {
    opacity: 1;
    color: var(--clr-accent);
}

/* ==========================================================================
   Hero Section (Geometric)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    background-color: var(--clr-dark-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    overflow: hidden;
}




/* Hero Content & Image */
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 400px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-title .greeting {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--clr-accent);
    margin-bottom: 40px;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    width: 50%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}


/* ==========================================================================
   Sections (Light Background)
   ========================================================================== */
.section-light {
    padding: var(--section-padding);
}

/* Resume Grid & Layout */
.resume-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.resume-image {
    flex: 1;
    min-width: 300px;
}

.resume-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    object-fit: cover;
}

.resume-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.resume-item {
    background: var(--clr-light-surface);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-top: 3px solid var(--clr-dark-bg);
    transition: transform 0.3s ease;
}

.resume-item:hover {
    transform: translateY(-5px);
}

.resume-item .date {
    font-size: 0.85rem;
    color: var(--clr-accent);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.resume-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.resume-item h4 {
    font-family: var(--font-body);
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}


/* Research (PRISMA style) */
.research-section {
    background-color: #fff; /* Slight contrast from other light sections */
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.research-card {
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.research-card .card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
}

.research-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.research-card p {
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--clr-dark-bg);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
    padding-bottom: 2px;
}

.read-more:hover {
    color: var(--clr-accent);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.blog-post {
    background: var(--clr-light-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
}

.blog-post:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-content {
    padding: 30px;
}

.blog-content .tag {
    font-size: 0.75rem;
    background: rgba(0, 245, 212, 0.1);
    color: #009984;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--clr-dark-bg);
}

.blog-content p {
    color: #666;
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.link-card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 245, 212, 0.05);
}

.link-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--clr-dark-bg);
}

.link-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--clr-dark-bg);
    color: #fff;
    padding: 100px 5% 30px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: #aaa;
    max-width: 400px;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--clr-accent);
    display: block;
    margin-bottom: 10px;
}

.footer-socials a {
    margin-right: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.footer-socials a:hover {
    opacity: 1;
    color: var(--clr-accent);
}

.footer-form .form-group {
    margin-bottom: 20px;
}

.footer-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #aaa;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--clr-dark-surface);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.85rem;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }

    .hero-image-container {
        width: 80%;
        height: 40vh;
        margin-bottom: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-wrap: wrap;
    }

    .center-nav {
        display: none; /* In a real app, toggle a mobile menu */
    }
    
    .floating-nav {
        display: none; /* Hide complex geometric nav on very small screens */
    }

    .section-padding {
        padding: 60px 5%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
