/* ============================================
   DATAJAM 2025 - POLISHED DESIGN
   ============================================ */

:root {
    --cgi-red: #E31937;
    --cgi-red-dark: #c4152f;
    --cgi-red-light: #ff4d6a;
    --cgi-purple: #5236AB;
    --cgi-purple-dark: #3d2880;
    --cgi-gradient: linear-gradient(135deg, #E31937 0%, #5236AB 100%);

    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-100: #F4F5F7;
    --gray-200: #E8EAED;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ============================================
   GRADIENT BAR
   ============================================ */
.gradient-bar {
    height: 4px;
    background: var(--cgi-gradient);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    height: 36px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--gray-900);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-nav {
    background: var(--cgi-red);
    color: var(--white) !important;
    padding: 10px 20px;
}

.btn-nav:hover {
    background: var(--cgi-red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--cgi-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--cgi-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--cgi-red);
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 8px;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 480px;
    width: 100%;
    margin-bottom: 32px;
}

.hero-tagline {
    font-size: 1.35rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
}

.hero-date, .hero-location {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cgi-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-location {
    color: var(--gray-500);
}

.hero-location::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
}

.hero-scroll {
    padding: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gray-300);
    border-bottom: 2px solid var(--gray-300);
    transform: rotate(45deg);
    margin: 12px auto 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(6px) rotate(45deg); }
    60% { transform: translateY(3px) rotate(45deg); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 24px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 720px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-title-light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 500;
}

.about-details p, .eligibility p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============================================
   SECTION DARK (Schedule)
   ============================================ */
.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

/* ============================================
   JOURNEY CARDS
   ============================================ */
.journey {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.journey-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.card-accent {
    height: 6px;
    background: var(--cgi-red);
}

.card-accent.accent-purple {
    background: var(--cgi-purple);
}

.card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    display: inline-block;
    background: rgba(227, 25, 55, 0.1);
    color: var(--cgi-red);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    width: fit-content;
}

.card-badge.badge-purple {
    background: rgba(82, 54, 171, 0.1);
    color: var(--cgi-purple);
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-weight: 700;
}

.card-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.card-desc {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Workshop Schedule */
.workshop-schedule {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
}

.ws-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ws-item:hover {
    background: var(--white);
}

.ws-date {
    background: var(--cgi-red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 56px;
    text-align: center;
}

.ws-details {
    flex: 1;
}

.ws-title {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.ws-presenter {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Challenge Block */
.challenge-block {
    background: linear-gradient(135deg, rgba(82, 54, 171, 0.08) 0%, rgba(227, 25, 55, 0.08) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--cgi-purple);
}

.challenge-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cgi-purple);
    margin-bottom: 6px;
}

.challenge-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.challenge-block p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Prizes */
.prizes {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.prize-item {
    flex: 1;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.prize-place {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.prize-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cgi-red);
}

.card-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Card Price */
.card-price {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cgi-red);
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
    background: var(--cgi-gradient);
    text-align: center;
    padding: 80px 24px;
}

.cta-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-secondary {
    margin-top: 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-secondary a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-secondary a:hover {
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    padding: 48px 24px 32px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 600;
}

.footer-logo {
    height: 40px;
}

.footer-contact p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--gray-300);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-hosts {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-cgi {
    height: 28px;
}

.footer-bar {
    height: 3px;
    background: var(--cgi-gradient);
    border-radius: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .journey {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        align-items: center;
        justify-content: flex-start;
    }

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

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        padding: 120px 20px 60px;
    }

    .hero-logo {
        max-width: 300px;
    }

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

    .hero-meta {
        flex-direction: column;
        gap: 8px;
    }

    .hero-location::before {
        display: none;
    }

    .section {
        padding: 70px 20px;
    }

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

    .card-content {
        padding: 24px;
    }

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

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-brand {
        flex-direction: column;
    }

    .hero-scroll {
        display: none;
    }
}
