/* ============================================
   Youth Dialogue Program — Frontend Styles
   Theme: Warm Saffron-Yellow Light Theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --saffron: #FF6B00;
    --saffron-deep: #E65100;
    --saffron-light: #FF9800;
    --saffron-glow: rgba(255, 107, 0, 0.25);
    --golden: #FFD700;
    --golden-light: #FFE44D;
    --golden-glow: rgba(255, 215, 0, 0.25);

    /* Light backgrounds */
    --bg-primary: #FFF8E1;           /* warm cream-yellow */
    --bg-secondary: #FFF3CD;         /* light saffron tint */
    --bg-hero: linear-gradient(135deg, #FF8F00, #FF6B00, #E65100);
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFAF0;

    /* Text */
    --text-dark: #3E2723;            /* deep brown */
    --text-body: #5D4037;            /* warm brown */
    --text-muted: #8D6E63;           /* muted brown */
    --text-on-saffron: #FFFFFF;      /* white on saffron */

    --white: #FFFFFF;
    --success-green: #2E7D32;
    --error-red: #C62828;

    /* Borders & Glass */
    --border-light: rgba(255, 107, 0, 0.12);
    --border-card: rgba(255, 152, 0, 0.15);
    --shadow-card: 0 4px 20px rgba(255, 107, 0, 0.08);
    --shadow-card-hover: 0 8px 35px rgba(255, 107, 0, 0.15);

    --gradient-main: linear-gradient(135deg, var(--saffron), var(--golden));
    --gradient-warm: linear-gradient(135deg, #FF8F00, #FFD740);
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--saffron);
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Utility Classes ---------- */
.section-padding {
    padding: 100px 0;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-divider {
    width: 100px;
    height: 3px;
    background: var(--gradient-main);
    margin: 15px auto 30px;
    border-radius: 2px;
    box-shadow: 0 2px 10px var(--saffron-glow);
}

/* ---------- Navbar ---------- */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 20px rgba(255, 107, 0, 0.1);
}

.navbar-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-custom .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-custom .nav-link:hover {
    color: var(--saffron) !important;
    background: rgba(255, 107, 0, 0.06);
}

.navbar-toggler {
    border: 1px solid var(--saffron) !important;
}

.navbar-toggler-icon {
    filter: none;
}

/* ---------- Hero Section ---------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-hero);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 143, 0, 0.1) 0%, rgba(230, 81, 0, 0.3) 70%, rgba(183, 28, 28, 0.15) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-date-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.hero-date-badge i {
    color: var(--golden);
    font-size: 1.1rem;
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--saffron);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 40px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    background: var(--golden);
    color: var(--text-dark);
}

.btn-cta:hover::before {
    transform: scale(1);
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* Pulsing glow animation */
.btn-cta-glow {
    animation: btn-glow-pulse 3s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
    0%, 100% { box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 4px 35px rgba(0, 0, 0, 0.25), 0 0 60px rgba(255, 215, 0, 0.2); }
}

/* Diya / Om decorative elements */
.hero-deco {
    position: absolute;
    z-index: 2;
    font-size: 4rem;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.hero-deco-left {
    left: 5%;
    bottom: 15%;
    animation-delay: 0s;
}

.hero-deco-right {
    right: 5%;
    top: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 60px;
}

/* ---------- Schedule / Timeline Section ---------- */
#schedule {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

#schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--saffron), var(--golden), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 10px 40px 40px 0;
    position: relative;
    width: 50%;
    left: 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    left: 50%;
    justify-content: flex-start;
    padding: 10px 0 40px 40px;
    transform: translateX(30px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

/* Timeline node dot */
.timeline-item::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--saffron);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--saffron-glow);
    z-index: 5;
}

.timeline-item:nth-child(even)::after {
    left: -9px;
    right: auto;
}

.timeline-item:nth-child(3)::after,
.timeline-item:nth-child(5)::after {
    background: var(--golden);
    box-shadow: 0 0 10px var(--golden-glow);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    transition: var(--transition);
    max-width: 380px;
    box-shadow: var(--shadow-card);
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--saffron-light);
    box-shadow: var(--shadow-card-hover);
}

.timeline-step-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    color: var(--saffron);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.timeline-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--saffron);
    margin-bottom: 10px;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Registration Modal ---------- */
.modal-content {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 215, 0, 0.05));
    border-bottom: 1px solid var(--border-light);
    padding: 25px 30px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-title-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.btn-close {
    filter: none;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.form-floating {
    margin-bottom: 18px;
}

.form-floating .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 16px 14px;
    height: auto;
    transition: var(--transition);
}

.form-floating .form-control:focus {
    background: var(--white);
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px var(--saffron-glow);
    color: var(--text-dark);
}

.form-floating label {
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: var(--saffron);
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 20px 30px;
    justify-content: center;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-main);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--saffron-glow);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success / Error messages */
#form-message {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}

#form-message.success {
    display: block;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    color: var(--success-green);
}

#form-message.error {
    display: block;
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.2);
    color: var(--error-red);
}

/* Success animation */
.success-checkmark {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-checkmark.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 25px var(--saffron-glow);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-checkmark h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.success-checkmark p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */
#footer {
    background: linear-gradient(180deg, var(--saffron-deep), #BF360C);
    border-top: none;
    padding: 60px 0 30px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--golden);
    border-radius: 2px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--golden);
    border-color: var(--golden);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--golden);
    font-size: 1rem;
    width: 20px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a:hover {
    color: var(--golden);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--golden);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Scroll-triggered animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-cta {
        font-size: 1rem;
        padding: 14px 30px;
    }

    /* Stack timeline vertically */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 10px 0 30px 55px;
        justify-content: flex-start;
        transform: translateY(20px);
    }

    .timeline-item.visible,
    .timeline-item:nth-child(even).visible {
        transform: translateY(0);
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
        right: auto;
        top: 18px;
    }

    .timeline-card {
        max-width: 100%;
    }

    .hero-deco {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-date-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header {
        padding: 20px;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    #hero-canvas,
    .hero-deco,
    .navbar-custom,
    .btn-cta,
    .modal {
        display: none !important;
    }
}
