/* ==========================================================================
   Web Academy Webinar Landing Page - Modern Light Design System
   ========================================================================== */

:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --border-color: rgba(203, 213, 225, 0.7);
    --border-glow: rgba(2, 132, 199, 0.25);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;

    --accent-cyan: #0284c7;
    --accent-cyan-glow: rgba(2, 132, 199, 0.18);
    --accent-yellow: #fdf235;
    --accent-yellow-glow: rgba(253, 242, 53, 0.45);
    --accent-indigo: #4f46e5;
    --accent-purple: #9333ea;

    --header-bg: rgba(255, 255, 255, 0.88);
    --item-bg: rgba(241, 245, 249, 0.7);
    --item-border: rgba(226, 232, 240, 0.9);
    --input-bg: #ffffff;
    --input-border: rgba(203, 213, 225, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.12);

    --hero-title-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0284c7 100%);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}

.bg-glow-1 {
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-glow-2 {
    top: 30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-glow-3 {
    bottom: -10%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

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

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-yellow);
    color: #191919;
    box-shadow: 0 4px 16px var(--accent-yellow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #f7eb16;
    box-shadow: 0 6px 22px rgba(253, 242, 53, 0.6);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 25px rgba(2, 132, 199, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1.05rem;
}


/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.course-link-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--item-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.course-link-badge:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
}

.badge-icon {
    font-size: 1.2rem;
}

.link-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.2;
}

.link-text strong {
    color: var(--text-main);
}

.link-text small {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-cyan-glow);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
}

/* Content Section Layout */
.content-section {
    padding: 20px 0 80px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Speaker Card */
.speaker-card {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.speaker-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.22);
}

.avatar-ring {
    display: none;
}

.speaker-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    background-color: #f1f5f9;
}

.speaker-info {
    display: flex;
    flex-direction: column;
}

.speaker-role-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 4px;
}

.speaker-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.speaker-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.speaker-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.speaker-linkedin-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.card-icon {
    font-size: 1.5rem;
    background: var(--item-bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Agenda List */
.agenda-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.agenda-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
}

.item-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    background: var(--accent-cyan-glow);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.item-content strong {
    color: var(--text-main);
    font-size: 1rem;
}

.item-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 2px;
}

/* Announcement Box */
.announcement-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(2, 132, 199, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
}

.announcement-box a {
    color: var(--accent-cyan);
    font-weight: 700;
    text-decoration: underline;
}

.badge-status {
    background: rgba(253, 242, 53, 0.25);
    border: 1px solid rgba(230, 220, 36, 0.5);
    color: #191919;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Video Card & Player */
.video-card {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pulse-red {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Highlights Card */
.highlights-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-icon {
    color: var(--accent-cyan);
    font-weight: 900;
}

/* Modal Dialog Styles */
.modal-dialog {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 520px;
    width: 90%;
    margin: auto;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    border-color: var(--border-glow);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--item-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.7;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.98rem;
    outline: none;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.input-wrapper input.invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2000;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-body strong {
    color: var(--text-main);
    font-size: 0.95rem;
    display: block;
}

.toast-body p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    background: var(--header-bg);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 30px;
    opacity: 0.9;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
    }

    .course-link-badge {
        padding: 6px 12px;
    }

    .link-text small {
        display: none;
    }

    .glass-card {
        padding: 20px;
    }

    .speaker-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }
}
