/* ==============================
   HEADER
   ============================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1f2937;
    color: white;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    font-family: 'Segoe UI',sans-serif;
}

/* Header container */
#header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Left group: logo + nav */
.left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .left-group img {
        height: 40px;
        width: auto;
    }

.left-links a {
    text-decoration: none;
    color: white;
    padding: 10px 12px;
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .left-links a:hover {
        transform: scale(1.05);
        color: #38bdf8;
    }

/* Greeting styling */
.user-greeting {
    font-size: 1rem; /* Larger text */
    font-style: italic; /* Italic */
    font-weight: 300; /* Optional weight */
    color: white; /* Match header text */
    text-align: right; /* Right-justify inside its container */
    margin-left: auto; /* Push to the right within flex layout */
}


/* Style for right-container */
.right-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-right: 50px; /* moves all items 50px left from the screen edge */
}


/* Adjust logout button */
#logout-btn {
    display: none; /* shown dynamically via JS */
    background-color: #f87171;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap; /* prevent text from breaking */
    flex-shrink: 0;
}

/* Login link */
.right-login a {
    text-decoration: none;
    color: white;
    padding: 10px 12px;
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .right-login a:hover {
        transform: scale(1.05);
        color: #38bdf8;
    }

/* Get Started button */
.right-link {
    background-color: #38bdf8;
    color: white;
    padding: 8px 16px;
    margin-right: 0;
    border-radius: 6px;
    font-weight: 400;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

    .right-link:hover {
        transform: scale(1.05);
        background-color: white;
        color: #0f172a;
    }

@media (max-width: 600px) {
    header {
        padding: 20px; /* reduce horizontal padding */
    }

    .right-container {
        gap: 5px;
    }
}

/* ==============================
   HERO SECTION
   ============================== */
body {
    background-color: #18181b;
    font-family: 'Segoe UI',sans-serif;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers content vertically */
    align-items: center;
    min-height: 100vh; /* ensures full viewport height */
    padding-top: calc(60px + 20px); /* header height + spacing */
    padding-bottom: 40px; /* extra space for button */
    text-align: center;
    box-sizing: border-box;
}

/* Optional media query for very tall screens */
@media screen and (min-height: 1200px) {
    .hero {
        padding-top: calc(60px + 40px); /* extra spacing on tall screens */
        padding-bottom: 60px;
    }
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-weight: 600;
    color: #38bdf8;
    font-size: clamp(60px, 5vw, 90px); /* reduce max to 90px */
    line-height: 1.1;
}

h2 {
    margin: 0;
    color: white;
    font-size: clamp(18px, 2vw, 28px); /* smaller max for subtitle */
}

/* Optional: for really wide screens */
@media screen and (min-width: 2500px) {
    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 25px;
    }
}

.important-text {
    color: #38bdf8;
    font-weight: 700;
}

#get-started-btn {
    padding: 12px 28px;
    font-size: 1.2rem;
    background-color: #38bdf8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px; /* ensures button is always separated */
}

    #get-started-btn:hover {
        transform: scale(1.05);
        background-color: white;
        color: #0f172a;
    }

/* ==============================
   PARALLAX TEAM IMAGE
   ============================== */
.parallax-container {
    width: 99vw;
    height: 50vh;
    overflow: hidden;
    position: relative;
}

    .parallax-container img {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
        transition: transform 0.1s linear;
    }

/* ==============================
   PROJECT INFO
   ============================== */
/* Header container for About section */
.project-info .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-top: 40px;
}

    .project-info .header h2,
    .scroll-container h2 {
        font-size: clamp(28px, 3vw, 48px);
        color: white;
        margin-bottom: 20px;
    }

/* Project content flex container */
.project-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100vw;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center; /* ensures content is centered horizontally */
}

/* Paragraph box */
.project-desc {
    background-color: #1f2937;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    color: white;
    font-size: 1.5rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin: 0 auto;
}

/* ==============================
   TEAM MEMBER CAROUSEL
   ============================== */

/* Container for entire team section */
.scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 2; /* ensures this section appears above parallax image */
}

    /* Meet the Team header */
    .scroll-container h2 {
        font-size: clamp(28px, 3vw, 48px);
        color: white;
        margin-bottom: 10px;
    }

/* Black background box that holds the carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background-color: #1f2937;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px 0;
    box-sizing: border-box;
    overflow: hidden; /* prevents members from showing outside box */
    z-index: 3;
}

/* Inner track that slides members */
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: flex-start;
}

/* Each member card */
.member {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: white;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 4; /* ensure content stays visible inside box */
}

/* Member image */
.name-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #38bdf8;
}

/* Member name */
.name {
    font-size: 1.7rem;
    color: #38bdf8;
    margin-top: 10px;
}

/* Member description */
.name-desc {
    width: 85%;
    font-size: 1rem;
    line-height: 1.4rem;
    color: #ccc;
}

/* Carousel arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(56, 189, 248, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    z-index: 5; /* above members */
    transition: background 0.3s ease;
}

    .arrow:hover {
        background: rgba(56, 189, 248, 0.8);
    }

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* ==============================
   FOOTER
   ============================== */
footer {
    width: 100%;
    height: 100px;
    background-color: #1f2937;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column; /* stack items vertically */
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    gap: 0.5rem; /* optional spacing between items */
    padding: 0 2rem;
    box-sizing: border-box;
    margin-top: 30px;
}

    /* Optional: for text paragraphs inside the footer */
    footer p {
        margin: 0;
        text-align: center;
    }

 /* DASH CSS */

/* Dashboard container: single column, center items */
.dashboard-container {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 60px);
    padding: 20px;
    box-sizing: border-box;
    margin-top: 60px;
    gap: 30px; /* space between video and any other items */
}

/* Video container */
.video-container {
    width: 90%;
    max-width: 900px; /* cap width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title above the video */
.video-title {
    color: #38bdf8;
    margin-top: 50px;
    font-size: 2vw;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    text-align: center;
    margin-bottom: 1rem;
}

/* Video wrapper */
.video-wrapper {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 12; /* keeps height proportional to width */
    background-color: #111;
    border: 4px solid white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video feed styling */
#video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Placeholder for no feed */
.video-placeholder {
    color: white;
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
}

/* ===== MEDIA QUERIES ===== */

/* Tablets */
@media (max-width: 768px) {
    .video-title {
        font-size: 5vw;
    }
}

/* Phones */
@media (max-width: 480px) {
    .video-title {
        font-size: 6vw;
    }
}
