* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #0f1c24; /* UNIFORM BACKGROUND */
    color: #ffffff;
    scroll-behavior: smooth;
}

/* FLOATING MENU */
.floating-menu {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    background: rgba(15, 28, 36, 0.95);
    padding: 10px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 9999;
    overflow: hidden;
}

.floating-menu button {
    background: #00e5ff;
    border: none;
    padding: 6px 14px;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.floating-menu button:hover {
    background: #00bcd4;
}

#menuTitle {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== MENU TOGGLE ===== */
#toggleMenuBtn {
    background: #ff9800;
}

/* ===== MENU TOGGLE (FINAL – GUARANTEED) ===== */
.floating-menu {
    top: 14px;
    transition: top 0.35s ease, opacity 0.25s ease;
    will-change: top, opacity;
}

.floating-menu.hidden {
    top: -200px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#showMenuBtn {
    position: fixed;
    top: 14px;
    right: 16px;
    left: auto;
    transform: none;

    background: #00e5ff;
    border: none;
    padding: 6px 10px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;

    z-index: 9000;
    display: none;

    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#showMenuBtn:hover {
    opacity: 1;
    transform: translateY(2px);
}


/* HERO */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
}

.subtitle {
    margin-top: 15px;
    opacity: 0.8;
}

/* SECTIONS */
.section {
    padding: 90px 10%;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* GRADIENT SLIDE SECTIONS */
.section,
.hero,
.thankyou {
    background: linear-gradient(
        135deg,
        rgba(32, 58, 67, 0.85),
        rgba(15, 32, 39, 0.85)
    );
    border-radius: 24px;
    margin: 60px auto;
    max-width: 1200px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.section:nth-of-type(odd) {
    background: linear-gradient(
        135deg,
        rgba(44, 83, 100, 0.85),
        rgba(15, 32, 39, 0.85)
    );
}

.section:nth-of-type(even) {
    background: linear-gradient(
        135deg,
        rgba(32, 58, 67, 0.85),
        rgba(15, 28, 36, 0.85)
    );
}


/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cards .card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-6px);
}

/* TABLE */
.table {
    display: grid;
    gap: 10px;
}

.row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
}

/* LICENSE TABLE (4 COLUMNS) */
.license-table .row {
    grid-template-columns: 0.8fr 1.5fr 2.5fr 1.2fr;
    padding: 12px;
    font-size: 0.9rem;
}


.row.header {
    background: rgba(255,255,255,0.25);
    font-weight: bold;
}

/* ===== SHARED SCROLLABLE TABLE CONTAINER ===== */
.table-container {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 6px;
}

/* scrollbar */
.table-container::-webkit-scrollbar {
    width: 6px;
}
.table-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
}

/* ===== STICKY HEADER (ALL TABLES) ===== */
.table .row.header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(0,229,255,0.3);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* ===== POS TABLE COLUMN WIDTHS ===== */
.pos-table .row {
    grid-template-columns: 2.5fr 1.2fr 1.2fr;
}

/* ===== LICENSE TABLE COLUMN WIDTHS ===== */
.license-table .row {
    grid-template-columns: 0.8fr 1.5fr 2.5fr 1.2fr;
}


/* ROADMAP */
.timeline {
    list-style: none;
}

.timeline li {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border-left: 5px solid #00e5ff;
}

/* THANK YOU */
.thankyou {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
}

/* ACTIVE SECTION */
.section.active {
    outline: 2px solid #00e5ff;
    box-shadow: 0 0 25px rgba(0,229,255,0.3);
}

/* ===== ROADMAP VISUAL ===== */
.roadmap-track {
    position: relative;
    display: grid;
    gap: 40px;
    margin-top: 40px;
    padding-left: 40px;
}

/* vertical line */
.roadmap-track::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        #00e5ff,
        rgba(255,255,255,0.15)
    );
    border-radius: 4px;
}

.roadmap-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* dots */
.roadmap-step .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
    z-index: 2;
}

/* text box */
.roadmap-step .content {
    background: rgba(255,255,255,0.12);
    padding: 16px 22px;
    border-radius: 14px;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.roadmap-step:hover .content {
    transform: translateX(6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* states */
.roadmap-step.completed .dot {
    background: #00e676;
    box-shadow: 0 0 0 4px rgba(0,230,118,0.35);
}

.roadmap-step.current .dot {
    background: #ff9800;
    box-shadow: 0 0 0 6px rgba(255,152,0,0.4);
}

.roadmap-step.completed .content {
    opacity: 0.85;
}


/* ===== CURVED ROADMAP ===== */
.roadmap-road {
    position: relative;
    max-width: 760px;        /* smaller */
    margin: 0 auto;
    height: 420px;
}

/* SVG road */
.road-svg {
    width: 100%;
    height: 100%;
}

/* ROAD BODY – visible on dark bg */
.road-body {
    fill: none;
    stroke: #555;                 /* asphalt gray */
    stroke-width: 68;             /* slightly thicker */
    stroke-linecap: round;
    filter:
        drop-shadow(0 12px 25px rgba(0,0,0,0.6))
        drop-shadow(0 0 12px rgba(255,255,255,0.08));
}

.road-center {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-dasharray: 14 14;
    opacity: 0.8;
}

/* ROAD POINTS */
.road-point {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
}

.road-point span {
    display: block;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
    margin: 0 auto;
}

.road-point .label {
    margin-top: 8px;
    background: rgba(255,255,255,0.12);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* STATES */
.road-point.completed span {
    background: #00e676;
    box-shadow: 0 0 0 4px rgba(0,230,118,0.35);
}

.road-point.current span {
    background: #ff9800;
    box-shadow: 0 0 0 6px rgba(255,152,0,0.4);
}
