/* Reset */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fixed Full-Screen Video Background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Hide video when body has .hide-video */
body.hide-video .video-bg,
body.hide-video .overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Video Section Layout */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

    /* Content over video */
    .video-section .content {
        position: relative;
        z-index: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        padding-top: 70px; /* header offset */
        padding-bottom: 50px; /* footer offset */
    }

/* Scroll Down Icon */
.scroll-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Card Sections */
.card-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    background-color: rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

    .card-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

.card {
    max-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.card-header {
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    color: white;
}

.card-body p {
    color: rgba(255, 255, 255, 0.85);
}

/* Graph Container */
.graph-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 30px auto;
    max-width: 600px;
}

#graphCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.graph-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    transition: transform 0.2s ease-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

    .graph-point.center {
        width: 16px;
        height: 16px;
        background-color: #ffcc00;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .graph-point:hover {
        transform: translateY(-5px) scale(1.2);
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.9);
    }


.chat-float {
    position: fixed;
    bottom: 50px;
    right: 50px;
    background-color: #007bff;
    color: white;
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 80%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 10px;
    background: #007bff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-messages {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    background: #f9f9f9;
    font-size: 14px;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 5px;
}

    .chat-input input {
        flex: 1;
        border: none;
        padding: 8px;
        outline: none;
    }

    .chat-input button {
        border: none;
        background: #007bff;
        color: white;
        padding: 8px 12px;
        cursor: pointer;
    }

.d-none {
    display: none !important;
}
