/* MAIN SETTINGS */

/* this enables smooth scrolling for anchor jumps */
html {
    scroll-behavior: smooth;
}

/* this sets the global background + font family */
body {
    background-color: #FFFFFF;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* this applies border-box sizing to all elements */
* {
    box-sizing: border-box;
}

/* NAVBAR */

/* this styles the main navbar container */
#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    max-width: 98vw;
    margin: 0 auto;
    position: sticky;
    top: 15px;
    z-index: 1000;
    transition: all 0.3s ease;
    gap: 1rem;
    flex-wrap: wrap;
}

/* this groups left and right nav sections */
.nav-sides {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* CENTRE NAV */

/* this holds the centre nav content */
#centre-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* this styles the in‑development badge */
#in-development {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #44efbf;
    background-color: rgba(226, 254, 248, 0.7);
    padding: 0.35rem 1rem;
    border-radius: 15px;
    border: 1px solid #cafee8;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(68, 239, 191, 0.4);
}

/* this aligns the left side of the navbar */
#left-nav-side {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

/* this aligns the right side of the navbar */
#right-nav-side {
    flex: 1;
    justify-content: flex-end;
    gap: 1.5rem;
}

/* this adds spacing around the logo container */
#navbar-logo-container {
    margin-right: 1.5rem;
}

/* this styles the crest logo image */
#navbar-logo-image {
    height: 3.8rem;
    width: auto;
    object-fit: contain;
    display: block;
}

/* this styles the nav ul lists */
.navbar-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* this is for the right side login/register list */
#login-register-navbar-list {
    gap: 0.75rem;
}

/* this disables login/register links */
#login-link,
#register-link {
    opacity: 0.45;
}

/* this styles each li item */
.navbar-item {
    list-style: none;
}

/* this styles each nav link */
.navbar-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(1rem, 1.05vw, 1.1rem);
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* this adds hover feedback to nav links */
.navbar-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #111827;
    transform: translateY(-1px);
}

/* this adds click feedback */
.navbar-link:active {
    transform: scale(0.97);
}

/* this adds active state styling */
.navbar-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 600;
}

/* this styles the beta link button */
.beta-link {
    background-color: #3b82f6 !important;
    color: white !important;
    font-weight: 600;
    min-height: 44px;
}

/* this adds hover feedback to the beta link */
.beta-link:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- MOBILE NAVBAR FIX --- */
@media (max-width: 768px) {

    /* this adjusts navbar layout for mobile */
    #navbar {
        position: static;
        top: 0;
        border-radius: 0;
        padding: 0.65rem 1rem;
        max-width: 100%;
    }

    /* this scales down the logo */
    #navbar-logo-image {
        height: 2.6rem;
    }

    /* this reduces spacing between nav sides */
    .nav-sides {
        gap: 1rem;
    }

    /* this reduces padding + font size for links */
    .navbar-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
        min-height: 40px;
    }

    /* this centres both nav sides */
    #left-nav-side,
    #right-nav-side {
        justify-content: center;
    }

    /* this scales down the badge */
    #in-development {
        font-size: 0.8rem;
        padding: 0.25rem 0.7rem;
    }

    /* this hides login/register on mobile */
    #login-register-navbar-list {
        display: none;
    }
}

@media (max-width: 480px) {

    /* this tightens navbar padding further */
    #navbar {
        padding: 0.55rem 0.8rem;
    }

    /* this scales logo again */
    #navbar-logo-image {
        height: 2.3rem;
    }

    /* this adjusts link spacing */
    .navbar-link {
        padding: 0.45rem 0.75rem;
        font-size: 0.9rem;
    }

    /* this scales badge again */
    #in-development {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* HERO SECTION */

/* this styles the hero section container */
#hero-section {
    width: 96%;
    max-width: 2200px;
    margin: 0 auto;
    height: 75vh;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* image */

/* this sets the hero background image */
#hero-image {
    height: 100%;
    width: 100%;
    inset: 0;
    background-image: url(/images/hero-image.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* this adds a dark overlay on the hero image */
#hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(35,25,15,0.5);
}

/* hero text */

/* this positions the hero text in the centre */
#hero-text-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2;
    height: 100%;
    width: 100%;
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
}

/* this removes default margin from h1 */
#hero-text-container h1 {
    margin: 0;
}

/* this styles the main hero text */
.hero-text {
    color: rgb(255, 255, 255);
    font-size: clamp(1.8rem, 7vw, 5rem);
    pointer-events: none;
    line-height: 1.05;
}

/* this styles the bottom hero text */
#bottom-hero-text {
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.55rem, 5.5vw, 4rem);
    line-height: 1.1;
}

/* create account button */

/* this styles the hero CTA button */
#hero-create-account-button {
    margin-top: .5rem;
    height: clamp(10px, 3.8rem, 100px);
    background-color: transparent;
    color: #f8fafc;
    border: 2.5px solid #f8fafc;
    border-radius: 15px;
    color: white;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    cursor: not-allowed;
    transition: transform 0.2s ease-in-out, box-shadow 0.05s ease-in-out;
    min-height: 56px;
    width: 90%;
    max-width: 320px;
}

/* this adds hover feedback to CTA */
#hero-create-account-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -10px white;
}

/* this adds click feedback */
#hero-create-account-button:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* FEATURE SECTION */

/* this styles the whole feature section */
#feature-section {
    width: 96%;
    max-width: 1400px;
    margin: 5rem auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* this styles each reusable feature block */
.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* this styles the left text column */
.feature-text {
    flex: 1;
    color: #1f2937;
}

.feature-text h2 {
    margin: 0 0 1rem 0;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 700;
}

.feature-text p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: #374151;
}

/* this styles the right image column */
.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* this makes the layout stack on mobile */
@media (max-width: 768px) {
    .feature-block {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .feature-image img {
        max-width: 90%;
    }
}

/* ABOUT SECTION */

/* this styles the about section container */
#about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1rem 6rem;
    background: #f8f9fa;
    min-height: 100vh;
}

/* this styles the about heading */
#about-heading {
    font-size: clamp(2.2rem, 2.5vw, 3.2rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3.5rem;
    text-align: center;
}

/* this centres each about group container */
.about-group-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 1rem;
}

/* this styles each accordion group */
.about-group {
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* this adds hover elevation */
.about-group:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* this styles the accordion header button */
.about-group-header-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    transition: background-color 0.25s ease;
    min-height: 60px;
}

/* this adds hover feedback to header */
.about-group-header-button:hover {
    background-color: #f8fafc;
}

/* this styles the header text */
.about-group-header {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

/* this styles the arrow icon */
.about-group-header-button svg {
    width: 26px;
    height: 26px;
    stroke: #4b5563;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* this styles the hidden accordion text */
.about-group-text {
    overflow: hidden;
    padding: 0 1.5rem 0;  
    color: #374151;
    line-height: 1.65;
    max-height: 0;
    opacity: 0;
    transition: 
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease 0.05s,
        padding-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* this reveals accordion text when open */
.about-group.open .about-group-text {
    max-height: 800px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

/* this rotates the arrow when open */
.about-group.open svg {
    transform: rotate(180deg);
}

/* this adjusts about section for tablets */
@media (max-width: 768px) {
    #about-section {
        padding: 4rem 1rem 5rem;
    }
    
    .about-group-header-button {
        padding: 1.1rem 1.25rem;
    }
}

/* this adjusts about section for mobile */
@media (max-width: 480px) {
    .about-group-container {
        margin-bottom: 0.75rem;
    }
    
    .about-group-header-button {
        padding: 1.25rem 1.1rem;
    }
    
    #about-section {
        padding: 3.5rem 0.8rem 4rem;
    }
}
