/* ===================================
   Burhan Medicine Professional Corp
   Website Styles
   =================================== */

/* --- CSS Variables --- */
:root {
    --primary: #1B2A4A;
    --primary-light: #2E5090;
    --primary-lighter: #3A65B0;
    --accent: #E8EEF6;
    --accent-hover: #D0DDEF;
    --text: #2C3E50;
    --text-light: #5A6C7E;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --border: #E2E8F0;
    --shadow: 0 2px 15px rgba(27, 42, 74, 0.08);
    --shadow-lg: 0 10px 40px rgba(27, 42, 74, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-lighter);
}

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

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    line-height: 1.2;
    gap: 12px;
}

.nav-logo-img {
    height: 14px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary-light);
    background: var(--accent);
}

.nav-link-cta {
    background: var(--primary);
    color: var(--white) !important;
    margin-left: 8px;
}

.nav-link-cta:hover {
    background: var(--primary-light) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 140px 0 120px;
    color: var(--text);
}

.hero-name {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--primary);
}

.hero-line {
    width: 60px;
    height: 2px;
    background: var(--primary-light);
    margin: 32px auto;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin: 0 auto 16px;
    color: var(--text);
    line-height: 1.4;
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-outline svg {
    width: 18px;
    height: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-full:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* --- Section Styles --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--off-white);
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-photo-img {
    width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text);
}

.credentials-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--accent);
    border-radius: var(--radius);
}

.credential-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.credential-icon svg {
    width: 24px;
    height: 24px;
}

.credential-item strong {
    color: var(--primary);
}

/* --- Expertise Section --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.expertise-icon svg {
    width: 24px;
    height: 24px;
}

.expertise-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Research Section --- */
.research-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--accent);
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.publications-section {
    margin-bottom: 40px;
}

.publications-section h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.publication-list {
    list-style: none;
}

.publication-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-year {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.pub-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.pub-journal {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-style: italic;
}

.research-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

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

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:first-child .timeline-marker {
    background: var(--primary-light);
}

.timeline-content {
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius);
    color: var(--primary-light);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--off-white);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46, 80, 144, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A0AEC0;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6C7E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Media Section --- */
.media-category {
    margin-bottom: 48px;
}

.media-category:last-child {
    margin-bottom: 0;
}

.media-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.media-category-title svg {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
    color: var(--text);
}

.media-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-start;
    background: #EBF5FF;
    color: #1D4ED8;
}

.media-badge-podcast {
    background: #F3E8FF;
    color: #7C3AED;
}

.media-badge-video {
    background: #FEF3C7;
    color: #B45309;
}

.media-badge-institution {
    background: #ECFDF5;
    color: #059669;
}

.media-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.35;
}

.media-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
}

.media-date {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Footer --- */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-license {
    margin-top: 4px;
    opacity: 0.6;
    font-size: 0.8rem;
}

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

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

/* --- Responsive --- */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        display: flex;
        justify-content: center;
    }

    .photo-placeholder {
        width: 220px;
        height: 280px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
    }

    .nav-link-cta {
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-credentials {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-sub br {
        display: none;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .nav-logo-img {
        height: 40px;
    }

    .research-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 12px;
    }

    .pub-year {
        width: auto;
        height: auto;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        align-self: flex-start;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -23px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .research-stats {
        grid-template-columns: 1fr 1fr;
    }

    .research-links {
        flex-direction: column;
        align-items: center;
    }
}
