/**
 * Talk Python Training - Homepage Redesign CSS
 * Dark theme with modern typography (Outfit, Nunito Sans, JetBrains Mono)
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --hp-bg-dark: #0d1117;
    --hp-bg-section-alt: #161b22;
    --hp-bg-card: #1c2128;
    --hp-accent-primary: rgba(255, 253, 130, 0.9);
    --hp-accent-success: #3fb950;
    --hp-accent-warning: #d29922;
    --hp-text-primary: #f0f6fc;
    --hp-text-secondary: #b4beca;
    --hp-text-muted: #6e7681;
    --hp-border-color: #30363d;
    --hp-gradient-primary: linear-gradient(135deg, rgba(255, 253, 130, 0.75) 0%, rgba(244, 208, 63, 0.75) 100%);
    --hp-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --hp-shadow-hover: 0 8px 32px rgba(255, 253, 130, 0.2);
}

/* ==================== BASE STYLES ==================== */
.home-redesign {
    background-color: var(--hp-bg-dark);
    color: var(--hp-text-primary);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    /* Pull content up to go behind the fixed navbar */
    margin-top: -3.25rem;
}

.home-redesign h1,
.home-redesign h2,
.home-redesign h3,
.home-redesign h4 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: var(--hp-text-primary);
}

.home-redesign .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-redesign .section-subtitle {
    font-size: 1.25rem;
    color: var(--hp-text-secondary);
    margin-bottom: 2rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Add padding to account for navbar overlap */
    padding-top: 3.25rem;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.7) 0%,
        rgba(13, 17, 23, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-content h2 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--hp-accent-primary);
    margin-bottom: 2.5rem;
    font-family: 'Nunito Sans', sans-serif;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-btn {
    background: white;
    color: #0d1117;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: .75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.hero-btn:hover {
    background: white;
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.5);
}

/* ==================== METRICS BAR ==================== */
.metrics-bar {
    background-color: var(--hp-bg-section-alt);
    padding: 3rem 0;
    border-top: 1px solid var(--hp-border-color);
    border-bottom: 1px solid var(--hp-border-color);
}

.metric-item {
    text-align: center;
    padding: 1rem;
}

.metric-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--hp-accent-primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 1rem;
    color: var(--hp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ==================== BLACK FRIDAY BANNER ==================== */
.black-friday-banner {
    background-color: var(--hp-bg-dark);
    padding: 2rem 0;
}

/* ==================== FIND SKILL SECTION ==================== */
.find-skill-section {
    background-color: var(--hp-bg-section-alt);
    padding: 5rem 0;
}

/* ==================== NEWEST COURSES ==================== */
.newest-courses-section {
    background-color: var(--hp-bg-dark);
    padding: 5rem 0;
}

.course-card {
    background-color: var(--hp-bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--hp-shadow-card);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-hover);
}

.course-image-link {
    display: block;
    overflow: hidden;
}

.course-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-info {
    padding: 0.5rem 1rem 1rem;
    text-align: center;
}

.course-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.see-all-link {
    font-size: 1.25rem;
    color: var(--hp-accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.see-all-link:hover {
    color: rgba(255, 254, 168, 0.85);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
    background-color: var(--hp-bg-dark);
    padding: 5rem 0;
}

.testimonial-card {
    background-color: var(--hp-bg-card);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    /* border-left: 4px solid var(--hp-accent-primary); */
    box-shadow: var(--hp-shadow-card);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--hp-text-primary);
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    border: none;
    padding: 0;
}

.testimonial-attribution {
    margin-top: 1.5rem;
    color: var(--hp-text-secondary);
    font-size: 0.9rem;
    font-style: normal;
}

.testimonial-cta {
    color: var(--hp-text-muted);
    font-size: 0.9rem;
}

.testimonial-cta a {
    color: var(--hp-accent-primary);
}

/* ==================== SUCCESS STORIES ==================== */
.success-stories-section {
    background-color: var(--hp-bg-section-alt);
    padding: 5rem 0;
}

.success-card {
    background-color: var(--hp-bg-card);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--hp-shadow-card);
    display: flex;
    flex-direction: column;
}

.success-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.success-emoji {
    font-size: 1.75rem;
}

.success-badge-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hp-accent-success);
}

.success-quote {
    flex: 1;
    font-size: 0.95rem;
    color: var(--hp-text-secondary);
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0;
}

.success-initials {
    margin-top: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: var(--hp-gradient-primary); */
    /* color: white; */
    color: var(--hp-accent-success);
    /* display: flex; */
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== APPS SECTION ==================== */
.apps-section {
    background-color: var(--hp-bg-section-alt);
    padding: 5rem 0;
}

.apps-showcase {
    margin: 2rem 0;
}

.apps-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--hp-shadow-card);
}

.apps-description {
    color: var(--hp-text-secondary);
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-store-link {
    display: inline-block;
}

.app-store-badge {
    max-width: 180px;
    height: auto;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .app-store-badge {
        max-width: 150px;
    }
}

/* ==================== TECHNOLOGY PARADE ==================== */
.tech-parade-section {
    background-color: var(--hp-bg-dark);
    padding: 5rem 0;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.tech-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--hp-bg-card);
    transition: all 0.3s ease;
    min-width: 120px;
}

.tech-logo-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-hover);
    background-color: var(--hp-bg-dark);
}

.tech-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.tech-name {
    font-size: 0.9rem;
    color: var(--hp-text-secondary);
    font-weight: 500;
}

.tech-logo-link:hover .tech-name {
    color: var(--hp-text-primary);
}

/* ==================== CREDENTIALS SECTION ==================== */
.credentials-section {
    background-color: var(--hp-bg-dark);
    padding: 5rem 0;
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--hp-accent-primary);
    box-shadow: var(--hp-shadow-card);
}

.credentials-content {
    color: var(--hp-text-secondary);
    font-size: 1.1rem;
}

.credentials-content strong {
    color: var(--hp-text-primary);
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.credentials-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credentials-list li i {
    color: var(--hp-accent-primary);
    width: 24px;
    text-align: center;
}

/* ==================== GET NOTIFIED ==================== */
.get-notified-section {
    background-color: var(--hp-bg-section-alt);
    padding: 5rem 0;
}

.notification-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== TEAM SECTION ==================== */
.team-section {
    background-color: var(--hp-bg-dark);
    padding: 5rem 0;
}

.team-description {
    font-size: 1.1rem;
    color: var(--hp-text-secondary);
    line-height: 1.7;
}

.team-icon {
    font-size: 6rem;
    color: var(--hp-accent-primary);
    opacity: 1;
}

/* ==================== ECOSYSTEM (PODCASTS) ==================== */
.ecosystem-section {
    background-color: var(--hp-bg-section-alt);
    padding: 5rem 0;
}

.ecosystem-card {
    text-align: center;
    height: 100%;
}

.ecosystem-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.ecosystem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ecosystem-card p {
    color: var(--hp-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== BOOK SECTION ==================== */
.book-section {
    background-color: var(--hp-bg-dark);
    padding: 5rem 0;
}

.book-cover-link {
    display: inline-block;
}

.book-cover {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.book-content {
    padding: 2rem 0;
}

.book-content .section-title {
    text-align: left;
    margin-bottom: 0.75rem;
}

.book-subtitle {
    font-size: 1.2rem;
    color: var(--hp-accent-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.book-description {
    font-size: 1.15rem;
    color: var(--hp-text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
}

.book-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.book-ctas .button i {
    margin-left: 0.5rem;
}

@media screen and (max-width: 768px) {
    .book-section .columns {
        flex-direction: column-reverse;
    }
    
    .book-content {
        text-align: center;
        padding-top: 0;
    }
    
    .book-content .section-title {
        text-align: center;
    }
    
    .book-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-ctas {
        justify-content: center;
    }
    
    .book-cover {
        max-width: 280px;
        margin-top: 2rem;
    }
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    background-color: var(--hp-bg-section-alt);
    padding: 5rem 0;
}

/* ==================== FINAL CTA ==================== */
.final-cta-section {
    background-color: #0A0A0A;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta-section .container {
    position: relative;
    z-index: 1;
}

.final-cta-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--hp-text-primary) 0%, var(--hp-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta-section .button.is-primary {
    background: linear-gradient(135deg, rgba(255, 253, 130, 0.9) 0%, rgba(244, 208, 63, 0.9) 100%);
    color: #0d1117;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 253, 130, 0.3);
}

.final-cta-section .button.is-primary:hover {
    background: linear-gradient(135deg, rgba(255, 253, 130, 1) 0%, rgba(244, 208, 63, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 253, 130, 0.4);
}

.final-cta-section .button.is-primary i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.final-cta-section .button.is-primary:hover i {
    transform: translateX(4px);
}

/* ==================== BUTTONS ==================== */
.home-redesign .button.is-primary {
    background: #ddd;
    color: #0d1117;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-redesign .button.is-primary:hover {
    background: white;
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
}

.home-redesign .button.is-outlined {
    background: transparent;
    border: 2px solid var(--hp-accent-primary);
    color: var(--hp-accent-primary);
    font-weight: 600;
}

.home-redesign .button.is-outlined:hover {
    background: var(--hp-accent-primary);
    color: #0d1117;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
    /* Override Bulma's default of hiding hero-video on mobile */
    .hero-video-container .hero-video {
        display: block;
    }

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

    .hero-content h2 {
        font-size: 1.25rem;
    }

    .hero-section {
        min-height: 70vh;
    }

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

    .home-redesign .section-title {
        font-size: 1.75rem;
    }

    .tech-logos {
        gap: 1rem;
    }

    .tech-logo-link {
        min-width: 100px;
        padding: 1rem;
    }

    .tech-logo {
        width: 48px;
        height: 48px;
    }

    .founder-image {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .notification-options {
        flex-direction: column;
        align-items: center;
    }

    .notification-options .button {
        width: 100%;
        max-width: 300px;
    }

    .final-cta-section .section-title {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .metric-number {
        font-size: 1.75rem;
    }

    .metric-label {
        font-size: 0.8rem;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(13, 17, 23, 0.95) 0%,
            rgba(255, 253, 130, 0.15) 100%
        );
    }

    .course-card:hover,
    .tech-logo-link:hover,
    .hero-btn:hover,
    .home-redesign .button.is-primary:hover {
        transform: none;
    }
}

