/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    --bg-cream: #FFF8E7;
    --soft-gold: #FFD77A;
    --primary-gold: #E6A520;
    --dark-brown: #7A4A00;
    
    --text-main: #2D1A00;
    --text-muted: #523A1A;
    --white: #FFFFFF;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(122, 74, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(122, 74, 0, 0.15);
    
    --container-width: 1200px;
    --section-padding: 100px 20px;
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--dark-brown);
}

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

ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.nav-links, .footer-links ul {
    list-style: none;
    margin-left: 0;
}

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

section {
    padding: var(--section-padding);
    max-width: var(--container-width);
    margin: 0 auto;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

/* =========================================
   NAVBAR
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(122, 74, 0, 0.05);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-brown);
    letter-spacing: -1px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-brown);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 120px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 600;
    display: block;
}

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

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

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 450px;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    background: var(--soft-gold);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--soft-gold);
    top: 20px;
    left: 20px;
    border-radius: 20px;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-gold);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(230, 165, 32, 0.3);
}

.btn:hover {
    background: var(--dark-brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(122, 74, 0, 0.2);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.highlight-card {
    background: var(--soft-gold);
    padding: 1.5rem;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.highlight-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   EDUCATION & EXPERIENCE TIMELINE
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--primary-gold);
    bottom: -10px;
    left: 20%;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-left: 5px solid var(--primary-gold);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.timeline-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.timeline-sub {
    font-weight: 600;
    color: var(--primary-gold);
}

.timeline-year {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* =========================================
   BOOKS & RESEARCH
   ========================================= */
.publications-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background: var(--primary-gold);
    color: var(--white);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.pub-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.pub-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.pub-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pub-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pub-year {
    font-size: 0.9rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.read-more {
    margin-top: auto;
    color: var(--dark-brown);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--primary-gold);
}

/* =========================================
   HEALTH ARTICLES
   ========================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

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

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.article-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   VIDEOS SECTION
   ========================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    height: 250px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    background: var(--dark-brown);
}

.video-card-content {
    padding: 1.5rem;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-meta-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* Modal Styling */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 26, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--soft-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-cream);
    border-radius: 10px;
    background: var(--bg-cream);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--dark-brown);
    color: var(--bg-cream);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--soft-gold);
}

.footer-links h4 {
    color: var(--soft-gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

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

/* =========================================
   COMPONENTS
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-hover);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        margin: 0 auto 2.5rem;
    }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    section {
        padding: 60px 20px;
    }
}

/* =========================================
   MANUSCRIPTS SECTION
   ========================================= */
.manuscripts {
    padding: 100px 0;
    background: var(--white);
}

.manuscript-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.manuscript-card {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--soft-gold);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.manuscript-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.manuscript-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.manuscript-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.manuscript-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--dark-brown);
    font-weight: 700;
}

.manuscript-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.status-published {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-review {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.manuscript-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.manuscript-link:hover {
    color: var(--dark-brown);
}
