/* ─── Variables ──────────────────────────────── */
:root {
    --blue: #2f7cff;
    --orange: #f17c20;
    --teal: #4eba9a;
    --dark: #2b2d42;
    --dark-deep: #1a1b2e;
    --gold: #d4af37;
    --gray-bg: #f5f5f5;
    --text: #333;
    --muted: #666;
    --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Container ──────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Navigation ─────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(26, 27, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── Hero ────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-deep);
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 27, 46, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
    max-width: 650px;
    margin: 0 auto;
}

/* ─── Page Header (sub-pages) ────────────────── */
.page-header {
    background: var(--dark-deep);
    color: #fff;
    text-align: center;
    padding: 120px 20px 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* ─── Sections ───────────────────────────────── */
.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--gray-bg);
}

.section-dark {
    background: var(--dark-deep);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark);
}

/* ─── Buttons ────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--blue);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background: #1b5fd4;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-orange {
    background: var(--orange);
}

.btn-orange:hover {
    background: #d96a15;
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
}

.btn-gold:hover {
    background: #c4a030;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ─── About Grid ─────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ─── Features Grid ──────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-body p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue);
}

/* ─── Diary Section ──────────────────────────── */
.diary-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.diary-image img {
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.diary-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.diary-text p {
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ─── Speaking Section ───────────────────────── */
.speaking-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.speaking-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.speaking-text p {
    opacity: 0.85;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.speaking-topics h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.speaking-topics ul {
    list-style: none;
}

.speaking-topics li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 1.05rem;
    opacity: 0.9;
}

.speaking-topics li::before {
    content: "\2022";
    color: var(--gold);
    font-weight: bold;
    margin-right: 10px;
}

/* ─── Social Links ───────────────────────────── */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-links a {
    color: var(--blue);
    font-weight: 600;
}

/* ─── Books Grid ─────────────────────────────── */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.book-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card.featured {
    border: 3px solid var(--gold);
}

.book-cover {
    height: 350px;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.book-cover img {
    max-height: 100%;
    width: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.book-info {
    padding: 25px;
}

.book-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.book-info .book-meta {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 12px;
}

.book-info p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ─── Videos Grid ────────────────────────────── */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.video-card .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-card .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card .card-body {
    padding: 20px;
}

/* ─── Speaking Page ──────────────────────────── */
.topic-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--blue);
    transition: transform 0.3s;
}

.topic-card:hover {
    transform: translateX(5px);
}

.topic-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.topic-card p {
    color: var(--muted);
    line-height: 1.7;
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

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

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* ─── Footer ─────────────────────────────────── */
footer {
    background: var(--dark-deep);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-deep);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .about-grid,
    .diary-section,
    .speaking-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .books-grid,
    .videos-grid,
    .topics-list {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 50px 20px;
    }
}
