/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Root Medical Color Palette --- */
:root {
    --primary-teal: #0d6efd; /* Trustworthy deep teal/blue */
    --medical-teal: #008080; /* Classic health teal */
    --mint-green: #2ecc71;   /* Healing/Vitality green */
    --dark-slate: #2c3e50;   /* Professional text color */
    --light-bg: #f8f9fa;      /* Clean background */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- Basic Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-slate);
}

/* --- Navbar Styles --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Brand/Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--medical-teal);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--mint-green);
    animation: pulse 2s infinite;
}

/* Desktop Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-slate);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover, 
.nav-link.active {
    color: var(--medical-teal);
}

/* Animated underline effect for desktop links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint-green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Medical CTA Button style for Contact */
.btn-contact {
    background-color: var(--medical-teal);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
}

.btn-contact:hover {
    background-color: #006666;
    transform: translateY(-2px);
}

.btn-contact::after {
    display: none; /* Disable underline for button */
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--medical-teal);
    cursor: pointer;
}

/* --- Heartbeat pulse animation for the logo --- */
@keyframes pulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* --- Responsive Media Query (Tablets & Mobile) --- */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%; /* Hidden off-screen by default */
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
        transition: var(--transition);
    }

    /* JavaScript slides this class in */
    .nav-menu.active {
        left: 0;
    }

    .btn-contact {
        width: 80%;
        text-align: center;
    }
}

/* --- HERO SECTION STYLES --- */
.hero-section {
    padding: 7rem 2rem 4rem; /* Top padding accommodates the fixed navbar */
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef7f6 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #27ae60;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(39, 174, 96, 0.4);
    animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

/* Typography */
.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--dark-slate);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.highlight-text {
    color: var(--medical-teal);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.hero-description {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--medical-teal);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 128, 128, 0.3);
}

.btn-primary:hover {
    background-color: #006666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 128, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark-slate);
    border: 1.5px solid #cbd5e1;
}

.btn-secondary:hover {
    border-color: var(--medical-teal);
    color: var(--medical-teal);
    transform: translateY(-2px);
}

/* Stats Footer */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--medical-teal);
    background: rgba(0, 128, 128, 0.08);
    padding: 0.6rem;
    border-radius: 12px;
}

.stat-item h4 {
    font-size: 1rem;
    color: var(--dark-slate);
    margin-bottom: 0.1rem;
}

.stat-item p {
    font-size: 0.8rem;
    color: #64748b;
}

/* --- RIGHT SIDE IMAGE CONTAINER --- */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-bg-card {
    position: absolute;
    width: 85%;
    height: 90%;
    background: linear-gradient(135deg, #008080 0%, #2ecc71 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Soft organic shape */
    z-index: 1;
    opacity: 0.85;
    transition: var(--transition);
}

.hero-person-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); */
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-slate);
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1.2rem;
    color: var(--mint-green);
}

.top-badge {
    top: 10%;
    left: -5%;
}

.bottom-badge {
    bottom: 8%;
    right: -2%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Large Screens (1200px and up) */
@media screen and (min-width: 1200px) {
    .hero-title { font-size: 3.2rem; }
    .hero-person-img { max-width: 420px; }
}

/* Tablets (Max 992px) */
@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .top-badge { left: 5%; }
    .bottom-badge { right: 5%; }
}

/* Mobile Devices (Max 576px) */
@media screen and (max-width: 576px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .floating-badge {
        display: none; /* Hide floating pills on small screens for better breathing room */
    }

    .hero-person-img {
        max-width: 280px;
    }
}

/* --- About Section Styles --- */
.about-section {
    padding: 6rem 2rem;
    background-color: var(--white);
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

/* --- Left Side: Info Card Layout --- */
.about-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.05);
    border: 1px solid rgba(0, 128, 128, 0.08);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 128, 128, 0.1);
}

.avatar-icon {
    width: 80px;
    height: 80px;
    background-color: var(--medical-teal);
    color: var(--white);
    font-size: 2.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.2);
}

.card-header h3 {
    font-size: 1.4rem;
    color: var(--dark-slate);
    font-weight: 600;
}

.card-header p {
    font-size: 0.9rem;
    color: var(--medical-teal);
    font-weight: 500;
    margin-bottom: 2rem;
}

.card-body {
    text-align: left;
}

.info-item {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8892b0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label i {
    color: var(--mint-green);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-slate);
}

.info-value a {
    color: var(--dark-slate);
    text-decoration: none;
    transition: var(--transition);
}

.info-value a:hover {
    color: var(--medical-teal);
}

/* --- Right Side: Content & Typography --- */
.section-heading {
    margin-bottom: 2rem;
}

.sub-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mint-green);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.main-title {
    font-size: 2.5rem;
    color: var(--dark-slate);
    font-weight: 700;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--medical-teal);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.objective-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-slate);
    font-weight: 500;
    margin-bottom: 1rem;
}

.vision-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 2.5rem;
}

/* --- Pillars Grid --- */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pillar-box {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--medical-teal);
}

.pillar-icon {
    font-size: 1.5rem;
    color: var(--medical-teal);
    margin-bottom: 0.75rem;
}

.pillar-box h4 {
    font-size: 1.1rem;
    color: var(--dark-slate);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.pillar-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5a6c7d;
}

/* --- Responsiveness Media Queries --- */

/* Laptops / Desktop Screens */
@media screen and (max-width: 1024px) {
    .about-container { gap: 3rem; }
    .main-title { font-size: 2.2rem; }
}

/* Tablets (Stacked Viewport) */
@media screen and (max-width: 768px) {
    .about-section { padding: 4rem 1.5rem; }
    .about-container {
        grid-template-columns: 1fr; /* Stack side card above text content */
        gap: 3.5rem;
    }
    .about-card {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile Devices */
@media screen and (max-width: 480px) {
    .main-title { font-size: 1.8rem; }
    .objective-text { font-size: 1.05rem; }
    .pillars-grid {
        grid-template-columns: 1fr; /* Stack columns into single stack */
        gap: 1.2rem;
    }
}

/* --- Education Section Styles --- */
.education-section {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.education-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Timeline Architecture --- */
.timeline-wrapper {
    position: relative;
    margin: 4rem auto 0 auto;
    padding: 1rem 0;
}

/* Central vertical spine line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: rgba(0, 128, 128, 0.15);
    transform: translateX(-50%);
    border-radius: 4px;
}

/* Individual Rows */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
}

.left-item {
    left: 0;
    justify-content: flex-end;
    padding-right: 3.5rem;
}

.right-item {
    left: 50%;
    justify-content: flex-start;
    padding-left: 3.5rem;
}

/* Central Node Icons */
.timeline-dot {
    position: absolute;
    top: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--medical-teal);
    color: var(--medical-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.left-item .timeline-dot {
    right: 0;
    transform: translate(50%, -50%);
}

.right-item .timeline-dot {
    left: 0;
    transform: translate(-50%, -50%);
}

/* --- Content Block Cards --- */
.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 128, 128, 0.05);
    width: 100%;
    max-width: 480px;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 128, 128, 0.08);
    border-color: rgba(0, 128, 128, 0.2);
}

.academic-period {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mint-green);
    background-color: rgba(46, 204, 113, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.degree-title {
    font-size: 1.6rem;
    color: var(--medical-teal);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.degree-subtitle {
    font-size: 1rem;
    color: var(--dark-slate);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.institution-name {
    font-size: 0.9rem;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Context Badges inside cards */
.edu-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-badge {
    font-size: 0.75rem;
    background-color: #f1f5f9;
    color: #64748b;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- Media Queries for Layout Adaptability --- */

/* Tablets & Small Laptops (Moves spine line leftwards) */
@media screen and (max-width: 768px) {
    .timeline-wrapper::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 0;
        justify-content: flex-start;
    }

    .left-item, .right-item {
        left: 0;
    }

    .left-item .timeline-dot,
    .right-item .timeline-dot {
        left: 30px;
        transform: translate(-50%, -50%);
    }

    .timeline-content {
        max-width: 100%;
    }
}

/* Mobile Devices */
@media screen and (max-width: 480px) {
    .education-section {
        padding: 4rem 1rem;
    }

    .timeline-wrapper::before {
        display: none; /* Hide spine line entirely for plain stack cards */
    }

    .timeline-item {
        padding-left: 0;
        margin-bottom: 2rem;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-dot {
        display: none; /* Hide timeline nodes on small screens */
    }

    .timeline-content {
        padding: 1.5rem;
    }
}

/* --- Affiliation Section Styles --- */
.affiliation-section {
    padding: 6rem 2rem;
    background-color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
}

.affiliation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

/* --- Left Column: Badge Card UI --- */
.affiliation-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Premium Credential Frame Design */
.badge-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(0, 128, 128, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 128, 128, 0.06);
    position: relative;
    transition: var(--transition);
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 128, 128, 0.12);
    border-color: rgba(0, 128, 128, 0.2);
}

.badge-icon-wrapper {
    width: 75px;
    height: 75px;
    background-color: rgba(0, 128, 128, 0.05);
    color: var(--medical-teal);
    font-size: 2.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.badge-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mint-green);
    background-color: rgba(46, 204, 113, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.org-name {
    font-size: 1.5rem;
    color: var(--dark-slate);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.org-tagline {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.badge-divider {
    height: 1px;
    background: radial-gradient(circle, rgba(0,128,128,0.2) 0%, transparent 100%);
    margin: 2rem 0 1.5rem 0;
}

.badge-meta {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.badge-meta i {
    color: var(--medical-teal);
}

/* --- Right Column: Content and Metrics --- */
.affiliation-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 2.5rem;
}

/* Custom Interactive Engagement List Items */
.engagement-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.engagement-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.item-marker {
    width: 45px;
    height: 45px;
    background-color: var(--light-bg);
    color: var(--medical-teal);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 128, 128, 0.05);
}

.item-text h4 {
    font-size: 1.1rem;
    color: var(--dark-slate);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.item-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a6c7d;
}

/* --- Media Queries for Layout Adaptability --- */

/* Laptops / Desktop Screens */
@media screen and (max-width: 1024px) {
    .affiliation-container { gap: 3rem; }
}

/* Tablets & Small Devices (Splits to Stacked View) */
@media screen and (max-width: 768px) {
    .affiliation-section { padding: 4rem 1.5rem; }
    .affiliation-container {
        grid-template-columns: 1fr; /* Force vertical flow stack */
        gap: 4rem;
    }
    .affiliation-visual {
        order: 2; /* Content moves above the badge card on mobile displays */
    }
    .affiliation-content {
        order: 1;
    }
    .badge-card {
        max-width: 100%; /* Fill card container scale width natively */
    }
}

/* Small Mobile Screen Adjustments */
@media screen and (max-width: 480px) {
    .badge-card {
        padding: 2rem 1.5rem;
    }
    .engagement-item {
        flex-direction: column;
        gap: 0.8rem;
    }
    .item-marker {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* --- Gallery Section Styles --- */
.gallery-section {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- The Uniform Sizing Grid Engine --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns on Large Desktop screens */
    gap: 1.5rem;
    margin-top: 3.5rem;
}

/* Individual Card Structural Constraints */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Enforces perfect mathematical uniformity */
    aspect-ratio: 1 / 1; 
    transition: var(--transition);
}

.gallery-img {
    width: 100%;
    height: 100%;
    /* Clips and fills frame elegantly without image skewing */
    object-fit: cover; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Interactive Hover Overlay Mask --- */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 128, 128, 0.9) 0%, rgba(0, 128, 128, 0.4) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0; /* Hidden by default state */
    transition: var(--transition);
}

.overlay-content {
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mint-green);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.overlay-content h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

/* --- Hover Interactive State Behaviors --- */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 128, 128, 0.15);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08); /* Zoom lens effect */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

/* --- Media Queries for Perfect Responsive Sizing --- */

/* Laptops & Mid-tier Monitors */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* Drop down to 3 stable columns */
        gap: 1.2rem;
    }
}

/* Tablets (Portrait orientation viewports) */
@media screen and (max-width: 768px) {
    .gallery-section {
        padding: 4rem 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Drop down to 2 equal columns */
        gap: 1rem;
    }
}

/* Standard Mobile Devices */
@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column stack; aspect-ratio keeps them perfectly sized squares */
        gap: 1.2rem;
    }
    
    .overlay-content h4 {
        font-size: 1.05rem;
    }
}


/* --- Skills Section Styles --- */
.skills-section {
    padding: 6rem 2rem;
    background-color: var(--white);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- The Flex/Grid Layout System --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on Desktop for clean reading */
    gap: 2rem;
    margin-top: 3.5rem;
}

/* --- Modern Card Architecture --- */
.skill-card {
    background-color: var(--light-bg);
    border: 1px solid rgba(0, 128, 128, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-sizing: border-box;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 128, 128, 0.08);
    border-color: rgba(0, 128, 128, 0.15);
    background-color: var(--white);
}

.skill-icon-frame {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 128, 128, 0.08);
    color: var(--medical-teal);
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon-frame {
    background-color: var(--medical-teal);
    color: var(--white);
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--dark-slate);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.skill-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 2rem;
    flex-grow: 1; /* Aligns capability tracks horizontally across rows */
}

/* --- Metric Performance Displays --- */
.skill-metric {
    margin-top: auto;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8892b0;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-track {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(to right, var(--medical-teal), var(--mint-green));
    border-radius: 50px;
}

/* Value metrics matching the healthcare criteria segments */
.Fill-1 { width: 85%; }
.Fill-2 { width: 90%; }
.Fill-3 { width: 88%; }
.Fill-4 { width: 92%; }

/* --- Media Queries for Seamless Scaling --- */

/* Smaller Laptops & Landscape Tablets */
@media screen and (max-width: 992px) {
    .skills-grid {
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 2rem;
    }
}

/* Tablets & Large Mobile Screens */
@media screen and (max-width: 768px) {
    .skills-section {
        padding: 4rem 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr; /* Drop into vertical card list flow */
        gap: 1.5rem;
    }
}

/* Small Mobile Viewports */
@media screen and (max-width: 480px) {
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-card h3 {
        font-size: 1.15rem;
    }
    
    .skill-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* --- Contact Section Styles --- */
.contact-section {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal split layout on desktop panels */
    gap: 4rem;
    align-items: flex-start;
    width: 100%;
}

/* --- Left Side: Directory Layout --- */
.contact-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 2.5rem;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-link-card {
    background-color: var(--white);
    border: 1px solid rgba(0, 128, 128, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.contact-link-card:not(.raw-card):hover {
    transform: translateX(5px);
    border-color: rgba(0, 128, 128, 0.2);
    box-shadow: 0 10px 25px rgba(0, 128, 128, 0.05);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 128, 128, 0.05);
    color: var(--medical-teal);
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.card-details span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8892b0;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-details h4 {
    font-size: 1.05rem;
    color: var(--dark-slate);
    font-weight: 600;
}

.card-arrow {
    position: absolute;
    right: 1.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link-card:hover .card-arrow {
    color: var(--medical-teal);
}

/* --- Right Side: Clean Form Container --- */
.contact-form-panel {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 128, 128, 0.05);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-slate);
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: var(--light-bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark-slate);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medical-teal);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.08);
}

.form-submit-btn {
    border: none;
    cursor: pointer;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* --- Footer Elements --- */
.main-footer {
    background-color: var(--dark-slate);
    color: #94a3b8;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-creds {
    font-size: 0.8rem;
    color: var(--mint-green);
    font-weight: 500;
}

/* --- Media Queries for Layout Adaptability --- */

/* Laptops & Standard Monitors */
@media screen and (max-width: 1024px) {
    .contact-container { gap: 2.5rem; }
    .contact-form-panel { padding: 2rem; }
}

/* Tablets & Smaller Viewports (Forces Grid Splitting to Rows) */
@media screen and (max-width: 768px) {
    .contact-section { padding: 4rem 1.5rem; }
    .contact-container {
        grid-template-columns: 1fr; /* Dynamic vertical layout flow transformation */
        gap: 3.5rem;
    }
}

/* Small Mobile Viewports */
@media screen and (max-width: 480px) {
    .contact-link-card {
        padding: 1.2rem;
    }
    .card-details h4 {
        font-size: 0.9rem;
    }
    .card-arrow {
        display: none; /* Strip decorative arrow assets on dense windows */
    }
}
