:root {
    /* Healthcare Dark Mode Color Palette */
    --primary: #38bdf8; /* Lighter Trust Blue */
    --primary-dark: #0284c7;
    --secondary: #2dd4bf; /* Bright Teal */
    --accent: #0ea5e9;
    --text-main: #f8fafc; /* Near white */
    --text-muted: #94a3b8; /* Slate gray */
    --bg-main: #0f172a; /* Slate 900 */
    --bg-light: #1e293b; /* Slate 800 */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(2, 132, 199, 0.25);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.nav-btn:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.blob-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.1;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.hero-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Common Section Styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.highlight-card {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateX(10px);
}

.highlight-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

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

.skill-card {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(2, 132, 199, 0.2);
    color: var(--primary);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-main);
    border: 4px solid var(--primary);
    border-radius: 50%;
    left: 13px;
    top: 0;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content .date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Education Section */
.edu-flex {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.edu-column {
    flex: 1;
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
}

.edu-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
}

.edu-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.edu-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cert-list {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--bg-light);
}

.cert-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cert-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Publications Section */
.pub-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 3rem;
    background: var(--glass-bg);
}

.pub-image img {
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.pub-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pub-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.pub-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.contact-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--glass-bg);
    transition: transform 0.3s ease;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #020617;
    color: var(--text-main);
    padding: 3rem 0;
}

footer .logo {
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

footer p {
    color: #94a3b8;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.fade-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-flex {
        flex-direction: column;
    }
    
    .pub-card {
        flex-direction: column;
        text-align: center;
    }
    
    .pub-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .hero-img {
        width: 250px;
        height: 250px;
    }
    
    .blob-shape {
        width: 300px;
        height: 300px;
    }
    
    .section {
        padding: 4rem 0;
    }
}
