@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*
  FIXED VERSION: Professional Green Theme
  - Corrected all layout, alignment, and spacing issues.
  - Implemented a sophisticated green color palette.
  - Re-engineered timeline for robust, perfect alignment.
*/
:root {
    --bg-color: #F8F9FA;
    --second-bg-color: #ffffff;
    --card-bg-color: #FDFDFD;
    --text-color: #212529;
    --secondary-text-color: #6c757d;
    --main-color: #00875A;
    /* Rich, trustworthy green */
    --accent-color: #5DC4A8;
    /* Softer, complementary mint green */
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 135, 90, 0.1);
    --light-green-bg: #F0FDF4;
}

/* Base & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--secondary-text-color);
}

.heading {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 6rem;
}

section {
    padding: 10rem 9% 8rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    font-size: 2.4rem;
    color: var(--main-color);
    font-weight: 700;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 3.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    display: none;
    cursor: pointer;
}

/* Home Section */
.home {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.home-content .home-subtitle {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-content h1 {
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.home-content .home-description {
    font-size: 1.8rem;
    max-width: 55rem;
    margin-bottom: 4rem;
}

.btn-box {
    display: flex;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 1.4rem 3.2rem;
    background: var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #006A47;
    /* Darker Green */
    box-shadow: 0 4px 15px var(--shadow-color);
    transform: translateY(-3px);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn.btn-secondary:hover {
    background: var(--main-color);
    color: #fff;
}

.home-image .image-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--second-bg-color);
    border-radius: 50%;
    padding: 1rem;
    max-width: 40rem;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.home-image img {
    width: 100%;
    border-radius: 50%;
}

/* About Section */
.about {
    background: var(--second-bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h3,
.about-details h3 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-details ul {
    list-style: none;
}

.about-details ul li {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.about-details ul li i {
    color: var(--main-color);
    font-size: 2.2rem;
    margin-right: 1.5rem;
}

/* Card Component */
.credentials {
    background: var(--light-green-bg);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg-color);
    padding: 3.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-.8rem);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header i {
    font-size: 2.8rem;
    color: var(--main-color);
    background-color: var(--light-green-bg);
    padding: 1.2rem;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.card-header h3 {
    font-size: 2.2rem;
    font-weight: 600;
}

.card-body p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body .meta {
    color: var(--secondary-text-color);
}

.card-body strong {
    color: var(--text-color);
    font-weight: 600;
}

/* REBUILT Timeline Component */
.experience {
    background: var(--second-bg-color);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 1rem;
    width: 3px;
    background-color: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
}

.timeline-item::before {
    /* The dot */
    content: '';
    position: absolute;
    left: 0;
    top: .5rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background-color: var(--second-bg-color);
    border: 4px solid var(--main-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
}

.timeline-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.8rem;
}

.timeline-content h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-content .timeline-location {
    font-size: 1.7rem;
    color: var(--secondary-text-color);
}


/* Publications & CME Section */
.publications {
    background: var(--light-green-bg);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item h3 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.publication-item {
    border-left: 3px solid var(--accent-color);
    padding-left: 2rem;
}

.publication-item h4 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.publication-item p {
    font-size: 1.6rem;
}

.cme-description {
    margin-bottom: 2.5rem;
}

/* Accordion */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--second-bg-color);
}

.accordion-header {
    width: 100%;
    background-color: transparent;
    padding: 1.8rem 2.5rem;
    font-size: 1.7rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s ease;
}

.accordion-header:hover {
    background-color: #f7f9fa;
}

.accordion-header::after {
    content: '\ea4a';
    font-family: 'boxicons';
    font-size: 2.4rem;
    color: var(--main-color);
    transition: transform .3s ease;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--second-bg-color);
}

.accordion-content ul {
    padding: 2.5rem;
    list-style-position: inside;
}

.accordion-content li {
    font-size: 1.6rem;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #212529;
    color: #fff;
    padding: 6rem 9% 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-container h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-about p {
    color: var(--border-color);
    font-size: 1.6rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--border-color);
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 2rem;
}

.footer-contact a {
    color: var(--border-color);
    transition: color .3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FIX */
.footer-links a {
    color: var(--border-color);
    font-size: 1.6rem;
    transition: color .3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: .5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 1.5rem;
    color: var(--border-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: all .3s ease;
}

.footer-iconTop a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .home {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 15rem;
    }

    .home-content {
        order: 2;
    }

    .home-image {
        order: 1;
        max-width: 35rem;
        margin-bottom: 3rem;
    }

    .home-content .home-description {
        margin: 2rem auto 4rem;
    }

    .btn-box {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 4%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--second-bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
        transition: .25s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }
}