/* Fonts & Body */
/* Remove existing background image */
body {
    font-family: "Exo 2", sans-serif;
    margin: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fullscreen video background */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* behind all content */
}

/* Optional dark overlay on video for better readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35); /* adjust opacity */
    z-index: 0;
}

/* Ensure main content is above overlay */
header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* Fixed Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.65);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
}

/* Logo container */
.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

header img.logo {
    height: 80px;
    max-width: 150px;
    margin-right: 10px;
    margin-left: 10%;
}

/* Desktop nav */
.desktop-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-right: 10%;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    white-space: normal;
    flex-shrink: 1;
    min-width: 0;
    box-sizing: border-box;
}

.desktop-nav a:hover {
    background: #007bff;
    transform: scale(1.05);
}

/* Hamburger */
/* HIDE BY DEFAULT ON DESKTOP */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 16px;
    transform: none;
    z-index: 11001;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    width: 28px;
    height: 22px;
    pointer-events: auto;
}

.hamburger.open {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 4px;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger X state */
.hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
    opacity: 0;
}

.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Sidebar */
/* Default sidebar hidden offscreen */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 200px;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    padding: 70px 20px;
    gap: 12px;
    transition: left 0.3s ease;
    z-index: 10000;
}

/* Open state */
.sidebar.open {
    left: 0;
}

/* Sidebar close button */
.sidebar-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 11000;
}

.sidebar-close:hover {
    color: #007bff;
}

.sidebar a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.sidebar a:hover {
    background: #007bff;
}

/* Close X button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 11002;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    user-select: none;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.65);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 6px 10px;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1px 6px;
}

footer p {
    margin: 0;
}

/* Footer Links */
footer a {
    color: aqua;
    text-decoration: none;
}

.footer-legal {
    flex: 0 0 100%;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

/* Main content */
main {
    flex: 1;
    padding: 140px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

/* Hero */
.hero {
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    max-width: 880px;
    width: 100%;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card > *:last-child {
    margin-top: auto;
}

.card ul {
    text-align: left;
    padding-left: 20px;
    margin: 12px 0 20px;
}

.card ul li {
    margin-bottom: 6px;
}

.card .hero-button {
    margin-top: auto;
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 0;
}

.card:hover {
    transform: translateY(-5px);
}

/* Platform stats bubbles */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.platform-stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 22px 28px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.platform-stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.platform-stat-card h3 {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
    margin: 0;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
}

.example-card {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 16px;
    padding: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
    min-height: 0;
}

.example-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.example-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.example-card iframe {
    width: 100%;
    height: 520px;
    border-radius: 12px;
    border: none;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .example-card iframe {
        height: 420px;
    }
}

.example-desc {
    font-size: 0.9rem;
    color: #ddd;
    margin: 0;
}

/* Hero / Button style */
.hero-button {
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.hero-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #0052cc, #00b3e6);
}

/* Logout Button */
.logout-btn {
    padding: 0.6rem 1rem;
    background: #ff4d4f;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: center;
}

.logout-btn:hover {
    background: #e03e3f;
    transform: translateY(-2px) scale(1.02);
}

/* Make logout button responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .logout-btn {
        align-self: flex-end;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body::before {
        pointer-events: none;
    }

    /* Header adjustments */
    header {
        justify-content: center;
        padding: 23px 20px;
    }

    header img.logo {
        position: absolute;
        left: 50%;
        transform: translateX(-80%);
        margin: 0;
        height: 65px;
    }

    /* Hide desktop nav links */
    .desktop-nav {
        display: none !important;
    }

    /* Show hamburger only on mobile */
    .hamburger {
        display: flex;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }

    /* Show sidebar only on mobile */
    .sidebar {
        display: flex;
    }

    /* Hero card adjustments */
    .hero {
        width: 90%;
        max-width: none;
        padding: 1.5rem 1.2rem;
        margin: 0 auto 1.5rem auto;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    main {
        padding-top: 65px;
    }

    .features {
        gap: 12px;
    }

    .card {
        width: 85%;
        max-width: 280px;
        padding: 14px;
        font-size: 0.9rem;
        flex-direction: column;
        justify-content: flex-start;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .platform-stat-card {
        width: 85%;
        max-width: 280px;
        padding: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 4px 10px;
        font-size: 0.8rem;
        gap: 0;
        flex-direction: column;
        align-items: center;
        line-height: 1.1;
        justify-content: center;
    }

    footer > * {
        margin: 0;
        padding: 0;
    }

    footer .footer-top,
    footer .footer-bottom {
        display: block;
    }
}
