:root
{
    /* theme colors */
    --primary-color: #9900ff;
    --secondary-color: #2c004f;
    --dark-color: #111111;
    --light-color: #f5f5f5;
    --medium-color: #d6d6d6;

    /* text colors */
    --menu-text-color: var(--white);
    --menu-secondary-text-color: var(--medium-color);
    --menu-text-over-color: var(--primary-color);
    --body-text-color: #333333;

    /* basic colors */
    --white: #ffffff;
    --black: #000000;
    --transparent-color: #00000000;
    --menu-gradient: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.5) 100%);

    /* fonts */
    --font-family: 'Poppins', sans-serif;

    /* dimensions */
    --container-max-width: 85%;
    --container-max-width-mobile: 85%;
    --menu-height: 110px;
    --menu-height-scrolled: 80px;
    --menu-height-mobile: 70px;
    
    /* Dynamic viewport height that accounts for mobile browser UI */
    --vh: 1vh;

    /* shadows */
    --logo-shadow: 0 4px 8px rgba(0, 0, 0, 0.22);
}

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

html
{
    scroll-behavior: smooth;
}

p
{
    font-size: 1.1rem;
}

body
{
    line-height: 1.6;
    color: var(--body-text-color);
    background-color: var(--white);
    font-family: var(--font-family);
    overflow-x: hidden;
}

/* Navigation Styles */
header
{
    width: 100%;
    height: var(--menu-height);
    background: var(--menu-gradient);
    position: fixed;
    z-index: 1000;
    transition: all 0.3s ease;
}

header:hover
{
    background: rgba(0, 0, 0, 0);
    background-color: rgba(122, 122, 122, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

header.scrolled
{
    height: var(--menu-height-scrolled);
}

.anchor
{
    display: block;
    position: relative;
    top: calc(var(--menu-height) * -1);
    visibility: hidden;
}

.navbar
{
    width: 100%;
    height: 100%;
}

.nav-container
{
    max-width: var(--container-max-width);
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo
{
    gap: 1rem;
    display: flex;
    align-items: center;
}

.nav-logo .logo
{
    width: 60px;
    height: auto;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: var(--logo-shadow);
}

.nav-logo a
{
    text-decoration: none;
}

.nav-logo h1
{
    font-size: 1.4rem;
    margin: 0;
    color: var(--menu-text-color);
    font-weight: 600;
}

.nav-logo p
{
    font-size: 0.9rem;
    color: var(--menu-secondary-text-color);
    font-weight: 400;
}

.nav-menu
{
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

.nav-link
{
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    color: var(--menu-text-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

header:hover .nav-link
{
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    border-radius: 25px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header:hover .nav-link:hover
{
    text-decoration: none;
    background-color: rgba(98, 0, 155, 0.2);
    border: 1px solid rgb(192, 98, 255);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.nav-toggle
{
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar
{
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.container
{
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

section
{
    text-align: center;
}

section h2
{
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    display: inline-block;
    position: relative;
}

/* Underline effect for section titles */
section h2::after
{
    width: 60px;
    height: 4px;
    margin: 0.5rem auto 0;
    background: var(--primary-color);
    content: '';
    display: block;
    border-radius: 2px;
}

#hero
{
    width: calc(100vw - var(--scroll-width));
    height: 100vh; /* Fallback for older browsers */
    height: calc(var(--vh, 1vh) * 100); /* Use dynamic vh */
    background-color: var(--transparent-color);
    /* Fallback if video doesn't load */
    display: flex;
    align-items: center;
    position: relative;
    /* To position video background and overlay */
    overflow: hidden;
    /* To clip the video if it's larger */
}

.hero-video-background
{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 1;
}

.hero-video-background iframe
{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}

.hero-overlay
{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    z-index: 2;
}

.youtube-link
{
    position: absolute;
    bottom: 1.4rem;
    right: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 3;
}

.youtube-link:hover
{
    transform: translateY(-2px);
    background-color: rgba(98, 0, 155, 0.2);
    border: 1px solid rgb(192, 98, 255);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.scroll-indicator
{
    position: absolute;
    bottom: 1rem;
    left: 7%;
    z-index: 3;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scroll-arrow
{
    color: var(--white);
    font-size: 2.6rem;
    opacity: 0.9;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.scroll-arrow a
{
    color: inherit;
    text-decoration: none;
}

@keyframes bounce
{
    0%, 20%, 50%, 80%, 100%
    {
        transform: translateY(0);
    }
    40%
    {
        transform: translateY(-10px);
    }
    60%
    {
        transform: translateY(-5px);
    }
}

#contact .social-links
{
    margin: 1.5rem 0;
}

#contact .social-icon
{
    width: 100px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

#contact .social-icon:hover
{
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

#contact p a
{
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

#contact p a:hover
{
    text-decoration: underline;
}

footer
{
    height: var(--menu-height-scrolled);
    background-color: var(--dark-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px)
{
    p
    {
        font-size: 1rem;
    }

    header
    {
        height: var(--menu-height-mobile);
    }

    header:hover .nav-link
    {
        background-color: transparent;
        text-decoration: none;
        backdrop-filter: blur(0px);
        border: 0 solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    header.scrolled
    {
        height: var(--menu-height-mobile);
    }

    .nav-container
    {
        max-width: var(--container-max-width-mobile);
    }

    .nav-logo h1
    {
        font-size: 1.2rem;
    }

    .nav-logo p
    {
        font-size: 0.8rem;
        margin-top: -0.1rem;
    }

    .nav-logo .logo
    {
        width: 40px;
        margin-right: 0;
    }

    .nav-menu
    {
        width: 100%;
        top: var(--menu-height-mobile);
        left: -100%;
        gap: 1.5rem;
        padding: 1.5rem 0;
        background: transparent;
        background-color: var(--dark-color);
        flex-direction: column;
        text-align: center;
        position: fixed;
        transition: all 0.3s ease;
    }

    .nav-menu.active
    {
        left: 0;
    }

    .nav-item
    {
        margin: 0rem 3rem;
    }

    .nav-link
    {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
        background-color: transparent;
        text-decoration: none;
        backdrop-filter: blur(0px);
        border: 0 solid rgba(255, 255, 255, 0);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .nav-link:hover
    {
        background-color: transparent;
        text-decoration: none;
        backdrop-filter: blur(0px);
        border: 0 solid rgba(255, 255, 255, 0);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .nav-toggle
    {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2)
    {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1)
    {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3)
    {
        transform: translateY(-8px) rotate(-45deg);
    }

    .container
    {
        max-width: var(--container-max-width-mobile);
    }

    section h2
    {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #hero h2
    {
        font-size: 2.3rem;
    }

    .youtube-link
    {
        bottom: 1.5rem;
        right: 1.2rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .scroll-indicator
    {
        bottom: 0.8rem;
        left: 6.5%;
    }

    .scroll-arrow
    {
        font-size: 2.3rem;
    }

    footer
    {
        height: var(--menu-height-mobile);
    }
}

@media (min-aspect-ratio: 16/9)
{
    .hero-video-background
    {
        width: 100%;
        height: 200%;
        top: 50%;
        /* Center the video */
        transform: translateY(-50%);
    }
}

@media (max-aspect-ratio: 16/9)
{
    .hero-video-background
    {
        width: 500%;
        height: 100%;
        left: -200%;
    }
}