/* ==========================================================================
   Ipak Yuli Bank × Ipak Travel — Corporate Contest Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #071320;
    --bg-card: rgba(11, 28, 45, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.14);
    --accent-teal: #00a884;
    --accent-teal-hover: #058f73;
    --accent-gold: #d4af37;
    --accent-gold-hover: #e5c158;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-code: 'Fira Code', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography & Helpers */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-teal {
    color: var(--accent-teal) !important;
}

.bg-teal-gradient {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-hover) 100%);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
}

/* Navbar */
.navbar-custom {
    background: rgba(7, 19, 32, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    padding: 1rem 0;
    z-index: 1050;
}

.navbar-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 168, 132, 0.15);
    border: 1px solid rgba(0, 168, 132, 0.35);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 168, 132, 0.15);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%) scale(1.05);
    object-fit: cover;
    animation: slowZoom 25s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: translate(-50%, -50%) scale(1.0); }
    100% { transform: translate(-50%, -50%) scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(7, 19, 32, 0.88) 0%,
        rgba(11, 28, 45, 0.72) 45%,
        rgba(5, 143, 115, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 920px;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #e2e8f0;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Parallax Sections */
.parallax-banner {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-banner-1 {
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80');
}

.parallax-banner-2 {
    background-image: url('https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=1920&q=80');
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 19, 32, 0.88) 0%, rgba(11, 28, 45, 0.78) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 168, 132, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 168, 132, 0.2);
}

/* Glass Form Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.85rem 1.2rem !important;
    font-size: 1rem !important;
    transition: var(--transition-smooth) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 132, 0.25) !important;
    color: #ffffff !important;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-hover) 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 168, 132, 0.35);
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 168, 132, 0.55);
    color: #ffffff;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-gold-custom {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: #071320;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-gold-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.55);
    color: #071320;
}

/* Timeline Cards */
.timeline-card {
    background: rgba(11, 28, 45, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.2rem;
    height: 100%;
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 168, 132, 0.15);
}

.timeline-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-teal);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

/* Destination Gallery Cards */
.destination-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 380px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover img {
    transform: scale(1.09);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 19, 32, 0.95) 0%, rgba(7, 19, 32, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

/* Stats Counter Badge */
.stat-box {
    background: rgba(11, 28, 45, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.accordion-custom .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-custom .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: rgba(0, 168, 132, 0.12);
    color: var(--accent-teal);
}

.accordion-custom .accordion-button::after {
    filter: invert(1);
}

.accordion-custom .accordion-body {
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: 1rem;
}

/* Modals */
.modal-content-glass {
    background: rgba(11, 28, 45, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.participant-code-display {
    font-family: var(--font-code);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.12);
    border: 2px dashed rgba(212, 175, 55, 0.45);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 1.5rem 0;
    user-select: all;
    animation: pulseGold 2s infinite alternate;
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
    100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.55); }
}

.checkmark-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 168, 132, 0.15);
    border: 2px solid var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.2rem;
    color: var(--accent-teal);
    animation: checkBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkBounce {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.section-padding {
    padding: 6.5rem 0;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
}

.footer-custom {
    background: #040c14;
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    color: var(--text-muted);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: rgba(0, 168, 132, 0.2);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    transform: scale(1.08);
}

/* Light Mode Theme Overrides & Readable Contrast */
[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
}

[data-theme="light"] body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

/* Sections with bg-dark should use light background in Light mode */
[data-theme="light"] .bg-dark {
    background-color: var(--bg-dark) !important;
}

/* Comprehensive text color overrides for Light mode */
[data-theme="light"] .section-title,
[data-theme="light"] .hero-title,
[data-theme="light"] .timeline-card h4,
[data-theme="light"] .glass-card h2,
[data-theme="light"] .glass-card h3,
[data-theme="light"] .modal-content-glass h3,
[data-theme="light"] .modal-content-glass h4,
[data-theme="light"] .modal-content-glass h5,
[data-theme="light"] label,
[data-theme="light"] .form-label,
[data-theme="light"] .text-white:not(.btn):not(.badge):not(.destination-card *):not(.navbar-brand-badge *) {
    color: #0f172a !important;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .timeline-card p,
[data-theme="light"] .glass-card p,
[data-theme="light"] .modal-content-glass p,
[data-theme="light"] .form-text,
[data-theme="light"] .form-check-label,
[data-theme="light"] .text-secondary,
[data-theme="light"] .text-light:not(.btn):not(.badge):not(.destination-card *):not(.navbar-brand-badge *),
[data-theme="light"] .text-muted {
    color: #334155 !important;
}

[data-theme="light"] .hero-content .small,
[data-theme="light"] .hero-subtitle strong {
    color: #0f172a !important;
}

[data-theme="light"] .navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .nav-link {
    color: #334155 !important;
}

[data-theme="light"] .nav-link:hover {
    color: var(--accent-teal) !important;
}

[data-theme="light"] .navbar-toggler {
    color: #0f172a !important;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(241, 245, 249, 0.92) 0%,
        rgba(226, 232, 240, 0.85) 45%,
        rgba(0, 168, 132, 0.3) 100%
    );
}

[data-theme="light"] .parallax-overlay {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.92) 0%, rgba(226, 232, 240, 0.85) 100%);
}

[data-theme="light"] .parallax-banner .text-white {
    color: #0f172a !important;
}

[data-theme="light"] .parallax-banner .text-light {
    color: #334155 !important;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .stat-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .timeline-card:hover {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 15px 35px rgba(0, 168, 132, 0.15) !important;
}

[data-theme="light"] .glass-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .glass-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .glass-input:focus {
    background: #ffffff !important;
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 132, 0.2) !important;
    color: #0f172a !important;
}

[data-theme="light"] .accordion-custom .accordion-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .accordion-custom .accordion-button {
    color: #0f172a !important;
    background: #ffffff !important;
}

[data-theme="light"] .accordion-custom .accordion-button:not(.collapsed) {
    background: rgba(0, 168, 132, 0.12) !important;
    color: var(--accent-teal) !important;
}

[data-theme="light"] .accordion-custom .accordion-button::after {
    filter: none !important;
}

[data-theme="light"] .accordion-custom .accordion-body {
    color: #334155 !important;
}

[data-theme="light"] .modal-content-glass {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .modal-content-glass .btn-close {
    filter: none !important;
}

[data-theme="light"] .modal-content-glass .glass-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .participant-code-display {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: #d4af37 !important;
    color: #b48c14 !important;
}

[data-theme="light"] .footer-custom {
    background: #e2e8f0 !important;
    border-top: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .footer-custom .text-white {
    color: #0f172a !important;
}

[data-theme="light"] .footer-custom .text-secondary,
[data-theme="light"] .footer-custom .text-muted {
    color: #334155 !important;
}

[data-theme="light"] .brand-logo {
    filter: brightness(0.15) !important;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .parallax-banner {
        background-attachment: scroll !important;
    }
}


