* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and general layout */
html, body {
    height: 100%; /* Ensure body and html cover the full height */
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    min-height: 100vh; /* Minimum height is the viewport height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Allow vertical scrolling */
}

main {
    flex: 1; /* Take up available space */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 80px; /* Space for the fixed header */
    padding-bottom: 40px; /* Space at the bottom */
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9; /* Below the header which has z-index 10 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background for better contrast */
    justify-content: center;
    align-items: flex-start; /* Align to top instead of center */
    padding-top: 100px; /* Add 50px padding from the top (50px + header height) */
    backdrop-filter: blur(5px); /* Blur background for modern look */
}

/* Modal content */
.modal-content {
    background-color: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh; /* Slightly larger height */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalOpen 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal animation */
@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #00bcd4;
    background-color: rgba(0, 188, 212, 0.1);
}

/* Profile image in modal */
.modal-content img {
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #00bcd4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: cover !important;
}

/* Feedback area */
#feedback {
    max-height: 250px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    line-height: 1.6;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: #00bcd4 #f0f0f0;
}

#feedback::-webkit-scrollbar {
    width: 8px;
}

#feedback::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

#feedback::-webkit-scrollbar-thumb {
    background-color: #00bcd4;
    border-radius: 10px;
}

/* Demo form */
#demo-form {
    display: flex;
    margin-top: 15px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* Form input */
#demo-input {
    padding: 14px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
    outline: none;
}

#demo-input:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

/* Run button */
#run-btn {
    padding: 14px 25px;
    font-size: 16px;
    background-color: #00bcd4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 188, 212, 0.2);
}

#run-btn:hover {
    background-color: #00a5bb;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 188, 212, 0.3);
    box-shadow: 0 5px 12px rgba(0, 188, 212, 0.3);
}

#run-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 188, 212, 0.2);
}
/* Header section */
header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    position: fixed; /* Fix the header at the top of the page */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* Ensures the nav is on top */
    color: white;
}

nav {
    display: flex;
    justify-content: space-between; /* Logo left, menu right */
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo section */
.logo {
    display: flex;
    align-items: center;
    text-align: left;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    cursor: default; /* Remove pointer cursor */
    pointer-events: none; /* Disable link behavior */
}

/* Only apply link behavior to the image */
.logo img {
    cursor: pointer;
    pointer-events: auto;
}

.logo img {
    height: 40px; /* Adjust logo size */
    width: auto;  /* Keep aspect ratio */
    margin-right: 10px; /* Space between logo and text */
}

/* Navigation links */
nav ul {
    display: flex;
    list-style-type: none;
    justify-content: flex-end; /* Align menu to the right */
}

nav ul li {
    margin: 0 15px;
    text-align: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #00bcd4;
}


/* Center the video container */
#scene-container {
    position: fixed; /* Fixed position to cover the viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100vh; /* Full viewport height */
    z-index: 1; /* Keep it behind other elements */
    text-align: center;
    overflow: hidden; /* Prevent scrollbars */
}

#scene-container video {
    width: 100%; /* Full width */
    height: 100vh; /* Full viewport height */
    object-fit: cover; /* Cover the container */
    position: absolute; /* Absolute positioning */
    top: 0;
    left: 0;
    min-width: 100%; /* Ensure it's at least full width */
    min-height: 100%; /* Ensure it's at least full height */
}

/* Desktop-specific video styles */
@media (min-width: 769px) {
    #scene-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    
    #scene-container video {
        width: 100vw !important;
        height: auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
        object-fit: fill !important;
    }
}

#feedback {
    color:#000;
    text-align: center;
}
/* Hero section */
.hero {
    position: fixed; /* Fixed position to overlay the video */
    top: 0;
    left: 0;
    height: 100vh; /* Full viewport height */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2; /* Ensures the content is above the video */
    padding-top: 80px; /* Space for the fixed header */
}

.hero h1 {
    font-size: 50px;
    color: #a2b4f6;
    z-index: 2;
    text-align: center;
    text-shadow: 
        0 0 8px rgb(13, 13, 13),   /* Outer glow effect */
        0 0 8px rgb(7, 7, 7),   /* Outer glow effect */
        0 0 8px rgb(7, 7, 7),   /* Outer glow effect */
        0 0 8px rgb(14, 13, 13);   /* Outer glow effect */
}


.hero p {
    font-size: 20px;
    color: #fff;
    z-index: 2;
    text-align: center;
}

.heroic {
    position: absolute; /* Absolute positioning */
    bottom: 0; /* Aligns the .heroic section to the bottom of the video */
    left: 50%; /* Center the .heroic section horizontally */
    transform: translateX(-50%); /* Perfectly centers horizontally */
    padding: 20px 0; /* Adds space around the content */
    text-align: center; /* Centers the text */
    width: 100%; /* Ensure it spans the full width */
    z-index: 3; /* Ensure this is above the video */
}
.heroic p {
    font-size: 20px;
    color: #fff;
    z-index: 2;
    text-align: center;
}
.hero button.cta-button {
    padding: 15px 30px;
    background-color: #00bcd4;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
    margin: 20px auto 0;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero button.cta-button:hover {
    background-color: #00a5bb;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

.hero button.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

/* Modal heading */
.modal-content h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}
.contact {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(169, 169, 169, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact h1 {
    font-size: 36px;
    color: #010818;
    margin-bottom: 20px;
    text-align: center;
}

/* Form elements styling */
form {
    display: grid;
    gap: 15px;
    justify-items: center;
    width: 100%;
    text-align: center;
}

/* Labels */
label {
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: #010818;
    margin-bottom: 5px;
}

/* Input fields */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: #2867ef;
    background-color: #e6f0ff;
    outline: none;
}

textarea {
    resize: vertical;
    height: 150px;
    text-align: center;
}

/* Button styling */
button[type="submit"] {
    padding: 12px 25px;
    font-size: 18px;
    color: white;
    background-color: #00bcd4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    display: block;
}

button[type="submit"]:hover {
    background-color: #00a3c4;
}

.about {
    margin: 0 auto;
    max-width: 800px;
    padding: 40px;
    background-color: rgba(226, 223, 223, 0.532);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 90%; /* Ensure it's not too wide on mobile */
}

.about:hover {
    transform: translateY(-5px); /* Subtle hover effect */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about h1 {
    font-size: 36px;
    color: #01050d;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.about p {
    font-size: 18px;
    line-height: 1.8;
    color: #01050d;
    margin-bottom: 20px;
    text-align: center;
}

/* Style for the first paragraph */
.about p:first-of-type {
    font-weight: bold;
    color: #01050d;
    text-align: center;
}

/* Add subtle animation to paragraphs */
.about p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.about p:nth-of-type(1) {
    font-weight: bold;
    color: #01050d;
    animation-delay: 0.2s;
}

.about p:nth-of-type(2) {
    font-weight: bold;
    color: #01050d;
    animation-delay: 0.4s;
}

.about p:nth-of-type(3) {
    font-weight: bold;
    color: #01050d;
    animation-delay: 0.6s;
}

/* Animation keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
        text-align: center;
    }
    
    main {
        padding-top: 120px; /* More space for the header on mobile */
    }
    
    .about {
        width: 90%;
        padding: 20px;
    }

    .about h1 {
        font-size: 30px;
    }

    .about p {
        font-size: 16px;
    }

    nav {
        flex-direction: column; /* Stack logo and menu */
        align-items: center; /* Center everything */
        justify-content: center; /* Override the space-between for mobile */
    }

    /* Center the logo */
    .logo {
        text-align: center;
        justify-content: center;
    }
    
    .logo img {
        margin-bottom: 10px; /* Adds space between the logo and menu */
    }

    /* Align the navigation items in a row, centered */
    nav ul {
        display: flex; /* Menu items in a row */
        justify-content: center; /* Center the items */
        flex-wrap: wrap; /* Allow wrapping on very small screens */
        width: 100%; /* Take up full width */
    }

    nav ul li {
        margin: 5px 10px; /* Reduced space between menu items */
    }
     
    /* These styles are already applied to desktop now, so no need to repeat them in mobile media query */
    /* #scene-container and .hero styles are now the same for both desktop and mobile */
    
    /* Adjust text size and button spacing for smaller screens */
    .hero h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero button.cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    /* Modal adjustments for tablets */
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-content img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .modal-content h3 {
        font-size: 20px;
    }
    
    #feedback {
        max-height: 200px;
        padding: 12px;
        font-size: 15px;
    }
    
    #demo-form {
        flex-direction: column;
    }
    
    #demo-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #run-btn {
        width: 100%;
    }
}

/* Additional media query for very small screens */
@media (max-width: 480px) {
    main {
        padding-top: 150px; /* Even more space for the header on very small screens */
    }
    
    .about {
        width: 95%;
        padding: 15px;
    }
    
    .about h1 {
        font-size: 24px;
    }
    
    .about p {
        font-size: 14px;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    /* Modal adjustments for mobile */
    .modal-content {
        padding: 25px 15px;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    #feedback {
        max-height: 150px;
        padding: 10px;
        font-size: 14px;
        margin: 10px 0;
    }
    
    #demo-input {
        padding: 12px;
        font-size: 15px;
    }
    
    #run-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .hero button.cta-button {
        font-size: 15px;
        padding: 10px 20px;
        width: 80%;
    }
}

footer {
    background-color: #333;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Ensure all sections are centered */
section {
    text-align: center;
    margin: 0 auto;
}

/* Ensure all content is centered */
.showcase, #ai-demo {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}
