:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent-cyan: #00f2ea;
    --accent-pink: #eb2f96;
    --bg-dark: #0a0e17;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-nav: rgba(10, 14, 23, 0.9);
    --card-bg: rgba(255, 255, 255, 0.05);
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    /* For Fullpage Scroll Snap */
}

body {
    font-family: 'Pretendard', 'Inter', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

/* Fullpage Wrapper */
.fullpage-wrapper {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Utility Classes */
.text-accent-cyan {
    color: var(--accent-cyan) !important;
}

.text-accent-pink {
    color: var(--accent-pink) !important;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
.display-cyber {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

@media (min-width: 992px) {
    .display-cyber {
        font-size: 4.5rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-color));
}

/* Navbar & Mega Menu */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2000;
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-nav);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
    padding-left: 2rem;
}

.glass-nav {
    background: var(--glass-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 242, 234, 0.4);
}

/* Quick Menu (Floating Right) */
.quick-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-item .material-icons-round {
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: var(--primary-dark);
    transition: color 0.3s;
}

.quick-item:hover {
    transform: translateX(-5px) scale(1.05);
    background: white;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

.quick-item:hover .material-icons-round,
.quick-item:hover span {
    color: var(--primary-color);
}

/* Hero Section Refined */
.hero-section {
    background: linear-gradient(135deg, #020024 0%, #090979 35%, #00d4ff 100%);
    text-align: center;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.glow-1 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.2);
}

.glow-2 {
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: rgba(0, 242, 234, 0.1);
}

/* D-Day Counter */
.d-day-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.d-day-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-right: 1rem;
}

.d-day-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Program Section - 5 Cards */
.program-container {
    display: flex;
    width: 100%;
    height: 70%;
    padding: 0 5%;
    gap: 15px;
}

.program-card {
    flex: 1;
    height: 100%;
    background: #1e293b;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-content {
    position: absolute;
    bottom: 40px;
    left: 30px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.program-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 0;
    opacity: 0;
    transition: all 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
}

.program-card:hover {
    flex: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.program-card:hover img {
    transform: scale(1.1);
}

.program-card:hover .program-desc {
    max-width: 300px;
    opacity: 1;
    margin-top: 10px;
}

/* Notice Section - Grid Layout */
.notice-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

.notice-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
    cursor: pointer;
}

.notice-item:hover {
    color: var(--accent-cyan);
}

.notice-item span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.date-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-large {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
}

.map-box {
    padding: 0;
    overflow: hidden;
    background: #000;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #334155 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Key Speakers Section */
.card-speaker {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.card-speaker:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.speaker-img-wrapper {
    height: 250px;
    overflow: hidden;
    background: #1e293b;
    position: relative;
}

.speaker-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #334155, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

.speaker-info {
    padding: 1.5rem;
    text-align: center;
}

.speaker-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.speaker-title {
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

/* Video Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.play-button:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: scale(1.1);
}

.play-button .material-icons-round {
    /* Fix for centering icon */
    font-size: 40px;
    color: white;
    margin-left: 4px;
    /* Slight visual adjustment for play icon */
}

/* Section Common Titles */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-label {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* Footer */
.footer-section {
    background: #020408;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-section .text-muted {
    color: #cbd5e1 !important;
    /* Lighter slate for better contrast */
}

.footer-section h6.text-white {
    color: var(--accent-cyan) !important;
    letter-spacing: 1px;
}

.hover-white:hover {
    color: white !important;
}

/* Cyber Matrix Background */
.matrix-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: #05070a;
}

.matrix-strand {
    position: absolute;
    top: -20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-cyan);
    font-family: 'monospace';
    font-size: 14px;
    line-height: 1;
    opacity: 0.3;
    pointer-events: none;
}

.matrix-strand span {
    margin: 2px 0;
    text-shadow: 0 0 5px var(--accent-cyan);
}

.matrix-strand i {
    font-size: 18px;
    margin: 5px 0;
    color: white;
    text-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes matrixFall {
    to {
        transform: translateY(120vh);
    }
}

/* Footer Section Adjustments */
.footer-section {
    background: rgba(2, 4, 8, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--glass-nav);
        margin-top: 1rem;
        border-radius: 1rem;
        padding: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav {
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        background: transparent;
        border: none;
        padding: 0;
        margin-left: 1rem;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-item.show .dropdown-menu {
        display: block;
    }

    .quick-menu {
        right: 15px;
        gap: 10px;
    }

    .quick-item {
        width: 50px;
        height: 50px;
    }

    .program-container {
        flex-direction: column;
        height: auto;
        padding: 10%;
    }

    .program-card {
        height: 150px;
        flex: none;
    }

    .program-card:hover {
        flex: none;
        height: 200px;
    }

    .notice-grid {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .display-cyber {
        font-size: 2.2rem;
    }

    section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0;
    }
}