:root {
    --global-bg-color: black; 

    --primary-color1: #003296;
    --primary-color2: #288C64;
    --primary-color3: #E13100;
    --primary-color4: #323232;
    --secondary-color1: #003CA0;
    --secondary-color2: #8C0F00;
    --secondary-color3: #640FAF;

    --text-white: #ffffff;
    --text-black: #1a1a1a;

    --green-glow: radial-gradient(circle,#288c64bd 5%, #288c6400 50%);
    --blue-glow: radial-gradient(circle,#003296 5%, #00329600 50%);

    /* Modular Font Variables: style weight size/line-height family */
    --font-family-base: 'Roboto', sans-serif;
    --font-heading: normal 500 6rem/1.1 var(--font-family-base);
    --font-heading2: normal 500 2.5rem/1.2 var(--font-family-base);
    --font-medium: normal 500 1.2rem/1.6 var(--font-family-base);
    --font-regular: normal 400 1.2rem/1.6 var(--font-family-base);

    /* Mobile-optimized font sizes */
    --font-heading-mobile: normal 500 3rem/1.1 var(--font-family-base);
    --font-heading2-mobile: normal 500 2rem/1.2 var(--font-family-base);
    --font-medium-mobile: normal 500 1rem/1.6 var(--font-family-base);
    --font-regular-mobile: normal 400 1rem/1.6 var(--font-family-base);
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll caused by off-screen menu */
}

body {
    background-color: var(--global-bg-color);
    margin: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    overflow-x: hidden; /* Prevent horizontal scroll when menu is hidden */
}

.body-content {
    grid-column: 1 / -1; /* Span all columns */
}

section {
    grid-column: 1 / -1; /* Span all columns */
    height: 100vh;
    /* ----------- temp boarder -------------------- */
    /* border: 1px solid white; /* Temporary border for tracking */
    /* box-sizing: border-box; /* Ensure border doesn't cause overflow */
    /* ---------------------------------------------- */
    overflow: hidden;
    position: relative; /* Needed for absolute positioning of children */
}

section > p {
    text-align: justify;
}

/* ---------- gradient containers ------------ */

.gradient-container{
    width: 125rem; /* Floating container width (2000px) */
    height: 125rem; /* Floating container height (2000px) */
    position: absolute;
    z-index: -1; /* Place behind hero background */
}

.gradient-container-green-top-left, .gradient-container-green-bottom-left{
    left: -62.5rem; /* Pull it halfway off the left edge */
    background: var(--green-glow);
}

.gradient-container-blue-top-right, .gradient-container-blue-bottom-right{
    right: -62.5rem; /* Pull it halfway off the right edge */
    background: var(--blue-glow);
}

.gradient-container-green-top-left, .gradient-container-blue-top-right {
    top: 0%; /* Move to center vertically */
    transform: translateY(-50%); /* Adjust to exactly center */
}

.gradient-container-green-bottom-left, .gradient-container-blue-bottom-right {
    bottom: 0%; /* Move to center vertically */
    transform: translateY(50%); /* Adjust to exactly center */
}

/* ---------- end gradient containers ------------ */

/* ----------------- Header Styles ----------------- */
header {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 1; /* Place in the first row to overlap with the first section */
    align-self: start; /* Keep at the top of the grid row */
    height: 5rem; /* Reliable thickness in rem units */
    background-color: transparent; /* No color background */
    z-index: 10; /* Ensure it stays above the gradient sections */
    padding-top: 1rem;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

header .logo {
    height: 3rem; /* Keep logo reasonably sized within the 5rem header */
    width: auto;
}

header ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ----- Menu Toggle (Hamburger) ----- */
/* Hide the checkbox */
.menu-toggle {
    display: none;
}
/* Hamburger icon */
.menu-icon {
    font-size: 2rem;
    color: var(--text-white);
    cursor: pointer;
    user-select: none;
}

/* Panel hidden by default, independent of header */
.menu-panel {
    position: absolute;
    top: 7rem; /* Sit below header */
    right: 2rem; /* Static offset so it never overflows screen */
    width: 100%; 
    height: 30%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden; /* Hide completely when not checked */
    transform: translateY(-1rem); /* Subtle drop-down animation */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
    box-sizing: border-box;
}

/* When checkbox is checked, show panel */
#menu-toggle:checked ~ .menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu list styling */
.menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.menu-panel ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.menu-panel ul li a:hover {
    color: var(--primary-color3);
}


header ul li a {
    color: white;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 1.1rem;
}
/* ----------------- end Header Styles ----------------- */


div:first-of-type{ 
grid-row: 1; /*Whoever is the first section,Place in the first row to overlap with header */
}

/* ---------- Hero styles ---------- */
.hero {
    background-image: url('../../images/eye_red_lense.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 80%;
    background-origin: content-box;
    padding: 3rem 0; /* Creates margins from top and bottom */
}

.hero h1{
    color: var(--text-white);
    position: absolute;
    z-index: 5; /* Ensures it renders above the gradients */
    left: 4rem; /* Positions it on the left side */
    top: 50%; /* Centers it vertically */
    transform: translateY(-50%);
    max-width: 50%; /* Constrains text width so it overlaps the background lens gracefully */
    margin: 0;
    font: var(--font-heading);
}
/* ---------- end Hero styles ---------- */

/* ---------- Watch Now styles ---------- */
.section-layer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-layer-content {
    max-height: 80hv;
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    justify-content: center;
    gap: 2rem;
    padding: 0 4rem;
    z-index: 5; /* Keep above gradients */
    position: relative;
}

.rounded-image {
    width: 50%;
    border-radius: 1.5rem;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.glass-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Slight white tint */
    backdrop-filter: blur(12px); /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Thin white border */
    border-radius: 1.5rem; /* Rounded corners */
    /* padding: 3rem; */
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.3), /* Depth shadow in rem */
                inset 0.125rem 0.125rem 0.3125rem rgba(255, 255, 255, 0.5); /* Inset shadow in rem */
    color: var(--text-white);
}

.glass-box h2, .glass-box p {
    padding: 1rem;
}

.glass-box h2 {
    font: var(--font-heading2);
    /* margin-top: 0; */
}

.glass-box p {
    font: var(--font-regular);
    /* margin-bottom: 0; */
}

.glass-btn {
    background: linear-gradient(90deg,rgba(225, 49, 0, 0.8) 0%, rgba(225, 49, 0, 0) 100%); /* Primary color 3 with opacity for glass effect */
    background-repeat: no-repeat;
    background-size: 50% 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem; /* Fully rounded button */
    padding: 1rem 3rem;
    color: var(--text-white);
    font: var(--font-medium);
    cursor: pointer;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2), 
                inset 0.125rem 0.125rem 0.3125rem rgba(255, 255, 255, 0.5); /* Matching inset and depth shadows */
    transition: background-size 0.3s ease, transform 0.4s ease;
}

.glass-btn:hover {
    background-size: 100% 100%; /* This will cover the whole button when hovered */
    transform: translateY(-0.1rem); /* Slight lift on hover */
}
/* ---------- end Watch Now styles ---------- */

/* ---------- We Collaborate styles ---------- */
.collaborate-layer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* Ensures the glass box hits the right edge */
}

.collaborate-text {
    width: 33.33%;
    height: 70%;
    padding: 0 4rem;
    color: var(--text-white);
    z-index: 5;
}

.collaborate-text h2 {
    font: var(--font-heading2);
    margin-top: 0;
}

.collaborate-text p {
    font: var(--font-regular);
}

.collaborate-glass-bg {
    width: 66.66%;
    height: 70%; /* Takes up 70% of the section height */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none; /* Flush with right edge */
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.3), 
                inset 0.125rem 0.125rem 0.3125rem rgba(255, 255, 255, 0.5);
    padding: 4rem;
    color: var(--text-white);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 2rem; /* Vertical spacing between points */
}

.collaborate-point-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.point-icon {
    width: 2.2rem; /* Size perfectly scaled to fit nicely alongside the 1.6rem header */
    height: auto;
    object-fit: contain;
}

.collaborate-point h3 {
    font: var(--font-heading2);
    font-size: 1.6rem;
    margin: 0;
    color: var(--text-white);
}

.collaborate-point p {
    font: var(--font-regular);
    margin: 0;
    line-height: 1.5;
}
/* ---------- end We Collaborate styles ---------- */



/* ----------------- Footer Styles ----------------- */
footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
    z-index: 10;
    min-height: 20rem;
    max-height: 50vh;
    overflow: hidden;
    position: relative; /* Needed for absolute positioning of children */
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 15; /* Ensure all content stays safely above the green gradient */
}

/* Glassed Follow Us Box */
.footer-follow-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.3), 
                inset 0.125rem 0.125rem 0.3125rem rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

.footer-follow-glass span {
    font: var(--font-heading2);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    color: var(--text-white);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover .social-icon {
    color: var(--primary-color3); /* Hover color from theme */
    transform: scale(1.1);
}

/* Footer Bottom Layout */
.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-bottom-left {
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    /* height: 8rem; */
    width: 9rem;
    object-fit: contain;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font: var(--font-regular);
    font-size: 1rem;
    margin: 0;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* Adjusted gap for vertical list */
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font: var(--font-regular);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color3);
}
/* ----------------- end Footer Styles ----------------- */

/* ----------------- Media Queries for Vertical Screens ----------------- */
@media (max-width: 900px), (orientation: portrait) {

    .gradient-container{
    width: 100rem; /* Floating container width (2000px) */
    height: 100rem; /* Floating container height (2000px) */
    }

    section {
        height: auto;
        min-height: 70vh;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .section-layer-content {
        flex-direction: column;
        align-items: center;
        padding: 0 2rem;
        gap: 0; /* Remove gap so margin-top overlap works exactly as specified */
    }

    .rounded-image {
        width: 100%;
        order: 1; /* Always put image first */
    }

    .glass-wrapper {
        width: 100%;
        order: 2; /* Glass wrapper comes after image */
        margin-top: -2rem; /* Overlap image by 2rem */
        z-index: 2;
        position: relative; /* Required for z-index */
        align-items: center; /* Center text and button on vertical screens */
        text-align: center;
    }

    /* Collaborate section mobile layout: text first, centered */
    .collaborate-layer {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
    
    .collaborate-text {
        order: 1;
        width: 70%;
        margin-bottom: 2rem;
        text-align: justify;
    }

    .collaborate-text h2{
        text-align: center;
    }

    .collaborate-glass-bg {
        order: 2;
        width: 60%;
        align-self: flex-end
    }

    .hero {
        background-size: auto 80%;
    }

    .hero h1{
        /* height: 100%; */
        font: var(--font-heading-mobile);
    }

    .footer-follow-glass{
        padding: 1.5rem 1rem;
    }
}
