/* ─── VARIABLES ─── */
:root {
    --bg-main: #1D2A30; /* Dark teal background */
    --bg-card: #25333A; /* Slightly lighter for cards if needed */
    --bg-form: #D5CCBE; /* Beige form background */
    --bg-input: #151E22; /* Dark input background */
    
    --text-main: #FFFFFF;
    --text-accent: #F2DDC5; /* Peach/Beige for highlights like QUANTA VIETNAM... */
    --text-muted: #9AA6AC; /* Gray text */
    --text-dark: #151E22; /* For form labels/text */
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-form: #C5BBAA;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── PRELOADER ─── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pl-logo {
    font-family: var(--font-heading);
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 800;
    overflow: hidden;
}

.pl-logo-inner {
    display: inline-block;
    transform: translateY(110%);
    /* GSAP will animate this */
}

.pl-logo em {
    font-style: normal;
    color: var(--text-accent);
}

.pl-line {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.pl-line::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    animation: plLineAnim 1.5s ease-in-out infinite;
}

@keyframes plLineAnim {
    to { left: 100%; }
}

.pl-pct {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ─── HEADER ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(29, 42, 48, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.center-logo-img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.center-logo-img img {
    height: 50px !important;
}

/* Đảm bảo flex layout của container đẩy nút menu về bên phải khi không có phần tử bên trái */
.header-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    min-height: 50px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--text-accent);
}

/* ─── OFF-CANVAS MENU ─── */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1001;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.offcanvas-menu.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 50px;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: var(--text-accent);
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-link:hover {
    color: var(--text-accent);
    padding-left: 10px;
}

/* ─── HERO SECTION ─── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 160px;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -50%; /* Make it larger to rotate/position */
    z-index: -1;
    /* Simulate the concentric rings using radial-gradient */
    background: repeating-radial-gradient(
        circle at 50% 50%,
        transparent 0,
        transparent 30px,
        rgba(255, 255, 255, 0.03) 31px,
        transparent 32px
    );
    opacity: 0.7;
    pointer-events: none;
    animation: pulseRings 15s infinite alternate ease-in-out;
}

@keyframes pulseRings {
    0% {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.8;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-top {
    text-align: center;
    margin-bottom: 40px;
}

.hero-top .subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-top .welcome-text {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-top .description {
    color: var(--text-muted);
    font-size: 16px;
}

.hero-center {
    text-align: center;
    margin: auto 0; /* Center vertically */
}

.hero-title-box {
    display: inline-block;
}

.main-title {
    font-size: clamp(40px, 8vw, 80px);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-accent);
    margin-bottom: 20px;
}

.brand-slogan {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.slogan-line {
    width: 60px;
    height: 1px;
    background: var(--text-accent);
    position: relative;
}

.slogan-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-accent);
}

.slogan-text {
    text-align: left;
    color: var(--text-accent);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slogan-text .bold-text {
    font-weight: 700;
}

.slogan-text span:not(.bold-text) {
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
}

.dot-separator {
    font-size: 10px;
}

.location-date {
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-top: 10px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--text-accent);
    color: var(--bg-main);
    border: 1px solid var(--text-accent);
    /* For the submit button gradient effect */
}

.btn-primary:hover {
    background: #e8d0b5;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.hero-bottom-scroll {
    text-align: center;
    margin-top: 150px; /* Chỉnh lại khoảng cách theo ý user */
}

.hero-bottom-scroll p:first-child {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.hero-bottom-scroll h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.hero-bottom-scroll .small-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ─── FORM SECTION ─── */
.form-section {
    padding: 30px 0 100px;
}

.form-wrapper {
    background: var(--bg-form);
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    border: none;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--bg-input);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(90deg, #1A2830, #678D96);
    color: var(--text-main);
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* ─── INFO SECTION ─── */
.info-section {
    padding: 80px 0;
    text-align: center;
}

.section-tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.countdown-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-wrapper {
    text-align: center;
    margin-bottom: 100px;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 16px;
    min-width: 130px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cd-box:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 221, 197, 0.6);
}

.cd-number {
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, var(--text-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(242, 221, 197, 0.2);
}

.cd-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.event-info-wrapper {
    margin-top: 80px;
}

.event-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.event-desc {
    color: var(--text-muted);
    max-width: 1000px;
    margin: 0 auto 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    position: relative;
    padding: 20px 0;
}

/* Add vertical dividers */
.info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15); /* Đường trắng mỏng nhẹ */
}

.icon-circle {
    font-size: 28px;
    color: var(--text-accent);
    margin-bottom: 15px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.info-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.info-sub {
    color: var(--text-muted);
    font-size: 14px;
}

/* ─── PROGRAM SECTION ─── */
.program-section {
    padding: 80px 0 120px;
}

.program-header {
    text-align: center;
    margin-bottom: 80px;
}

.program-desc {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-title {
    font-size: 28px;
    margin-bottom: 50px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* Đường dọc mỏng tinh tế */
.timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 80px; /* Căn giữa khoảng trống (60px time + 20px) */
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

/* Đường line sáng màu chạy dọc khi scroll */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 80px;
    width: 1px; /* Đổi thành 1px cho thật mỏng nhẹ */
    height: 0;
    background: var(--text-accent);
    box-shadow: 0 0 8px rgba(242, 221, 197, 0.5); /* Thêm chút vầng sáng thay vì làm dày nét */
    z-index: 1;
}

.tl-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.tl-dot {
    position: absolute;
    top: 6px; /* Căn giữa dọc lại vì dot nhỏ hơn */
    left: 80.5px; /* Căn đúng tâm của đường kẻ dọc 1px */
    transform: translateX(-50%);
    width: 10px; /* Nhỏ lại (trước là 14) */
    height: 10px; /* Nhỏ lại */
    background-color: var(--text-accent);
    border: 2px solid #ffffff; /* Viền mỏng lại (trước là 3) */
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(242, 221, 197, 0.1); /* Hào quang mỏng và mờ hơn */
    z-index: 2;
}

.tl-time {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    width: 60px;
    flex-shrink: 0;
}

.tl-content {
    flex: 1;
    padding-left: 10px; /* Đẩy chữ ra xa đường kẻ line/dot thêm 10px */
}

.tl-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.tl-content p {
    color: var(--text-muted);
    font-size: 14px;
}

.tl-label {
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-accent);
    margin: 30px 0 30px 100px;
    text-transform: uppercase;
}

/* ─── FOOTER ─── */
.footer {
    padding: 20px 0 60px;
    background-color: var(--bg-main);
    text-align: center;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.footer-slogan {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
    .main-title {
        font-size: clamp(32px, 6vw, 60px);
    }
    
    .form-wrapper {
        padding: 40px 30px;
    }
    
    .countdown-boxes {
        padding: 30px 20px;
        gap: 10px;
    }
    
    .cd-number {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .info-item:not(:last-child)::after {
        display: none;
    }
    
    .countdown-boxes {
        flex-wrap: wrap;
    }
    
    .cd-box {
        min-width: 45%;
        margin-bottom: 20px;
    }
    
    .tl-item {
        gap: 8px;
        flex-direction: column;
        padding-left: 40px;
    }
    
    .timeline-list::before, .timeline-progress {
        left: 15px !important;
    }
    
    .tl-dot {
        left: 15.5px !important;
    }
    
    .tl-content {
        padding-left: 0;
    }
    
    .tl-time {
        width: 100%;
        color: var(--text-accent);
    }
    
    .tl-label {
        margin-left: 40px;
    }
}

/* ─── SUCCESS POPUP ─── */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

.success-popup .popup-content {
    background: var(--bg-form);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.success-popup.active .popup-content {
    transform: translateY(0);
}

.success-popup .popup-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.success-popup h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.success-popup p {
    color: #4a4a4a;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-popup button {
    width: 100%;
}
