:root {
    /* Colors */
    --primary-color: #0D47A1;
    --primary-light: #1976D2;
    --primary-dark: #002171;
    --accent-color: #00BFA5;
    --accent-light: #5DF2D6;
    --text-main: #2C3E50;
    --text-muted: #546E7A;
    --bg-main: #FFFFFF;
    --bg-light: #F5F8FA;
    --bg-gradient: linear-gradient(135deg, #F5F8FA 0%, #E3F2FD 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --nav-height: 80px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(13, 71, 161, 0.05);
    --shadow-md: 0 10px 20px rgba(13, 71, 161, 0.08);
    --shadow-lg: 0 20px 40px rgba(13, 71, 161, 0.12);
    --shadow-hover: 0 15px 30px rgba(13, 71, 161, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-padding {
    padding: 100px 0;
}

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

.text-teal {
    color: var(--accent-color);
}

.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

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

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.separator {
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-gradient);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(0, 191, 165, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 20% 80%, rgba(13, 71, 161, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.hero-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 10%; left: -20px; animation-delay: 0s; color: #E53935; }
.icon-2 { top: 40%; right: -20px; animation-delay: 2s; color: var(--primary-color); }
.icon-3 { bottom: 10%; left: 20px; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Highlights */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.stat-card p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.personal-details {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-item strong {
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rounded-img {
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Timeline Components */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.2;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-left: 4px solid var(--accent-color);
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    margin-bottom: 4px;
    font-size: 1.25rem;
}

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

/* Appointments */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.premium-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.premium-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.premium-card .institution {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.premium-card .location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Skills & Procedures */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.procedure-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
}

.procedure-card:hover {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary-color);
    transform: translateY(-5px);
}

.proc-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.proc-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.complex-procedures {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.skills-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.skills-list li i {
    margin-top: 4px;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.expertise-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.expertise-card i, .expertise-card svg {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.expertise-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

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

.expertise-card:hover h3, .expertise-card:hover i, .expertise-card:hover svg {
    color: white;
}

/* Publications */
.subsection-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
}

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

.pub-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--primary-light);
    display: flex;
    flex-direction: column;
}

.pub-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.pub-year {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 12px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.pub-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.pub-authors {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.pub-journal {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.pub-doi {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

.pub-doi::after {
    content: '\f08e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

.contact-details a {
    color: var(--text-muted);
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    gap: 16px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.map-placeholder:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 3rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 24px;
    position: relative;
}

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

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-brand p {
    margin-bottom: 16px;
}

.footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

#back-to-top {
    position: absolute;
    top: -25px;
    right: 5%;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: white;
    color: var(--accent-color);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content p {
        margin: 0 auto 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats-grid {
        margin-top: 40px;
    }
    .timeline::before {
        left: 15px;
    }
    .timeline-dot {
        left: 8px;
    }
    .timeline-item {
        padding-left: 45px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .pub-grid {
        grid-template-columns: 1fr;
    }
}
