/* =================================================================
 * WEBSITE THEME DEFINITION (CSS Custom Properties - Mobile First)
 * ================================================================= */
:root {
    /* Color Palette */
    --color-heading-card: #000088;
    --color-body-card: #000088;
    --color-border-card: #223FA0;
    --color-title-main: #191E3D;
    --color-desc-main: #000088;
    --color-accent: #4F46E5;
    --color-accent-hover: #3730A3;
    --color-card-text-hover: #4F46E5;
    --color-divider: #BFDBFE;
    --color-button-bg: #191E3D;
    --color-button-text: #FFFFFF;
    --color-button-bg-hover: #000088;
    --color-background-light: #f8fafc;
    --color-gradient-start: #0062D1;
    --color-gradient-end: #004C97;
    --color-mid-banner-gradient-start: #003366;
    --color-mid-banner-gradient-end: #0066CC;
    --color-success: #16A34A;
    --color-danger: #DC2626;
    --color-warning: #F59E0B;
    --color-title-main-rgb: 25, 30, 61; /* For rgba usage */
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Source Serif Pro', serif;
    --font-body: 'Manrope', sans-serif;

    /* Responsive Typography - ALL IN REM UNITS */
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 2rem;
    --fs-h4: 1.625rem;
    --fs-h5: 1.25rem;
    --fs-body-main: 1.25rem;
    --fs-body-card: 1.125rem;
    --fs-body-base: 1rem;
    --fs-button: 1.125rem;
    --fs-nav-link: 1rem;
    --fs-dropdown-link: 0.95rem;
    /* Banner Specific Typography */
    --fs-banner-h1-mobile: 2.5rem;
    --fs-banner-p-mobile: 1.25rem;
    --fs-scroll-button-mobile: 1.125rem;
}

/* Responsive typography for tablets */
@media (min-width: 768px) {
    :root {
        --fs-h2: 2.625rem;
        --fs-h3: 2.125rem;
        --fs-h4: 1.75rem;
    }
}

/* Responsive typography for desktops */
@media (min-width: 1024px) {
    :root {
        --fs-h2: 3rem;
        --fs-h3: 2.375rem;
        --fs-h4: 1.75rem;
        --fs-body-main: 1.3125rem;
        --fs-banner-h1-sm: 3rem;
        --fs-banner-p-sm: 1.5rem;
        --fs-banner-h1-md: 3.5rem;
        --fs-banner-p-md: 1.75rem;
        --fs-banner-h1-lg: 4rem;
        --fs-banner-p-lg: 2rem;
    }
}

/* =================================================================
 * GENERAL & SECTION-SPECIFIC STYLES (Mobile First)
 * ================================================================= */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: var(--color-background-light);
    font-family: var(--font-body);
    color: var(--color-title-main);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Hero Section --- */
.scroll-container {
    width: 100%;
    background-color: var(--color-title-main);
}

#hero-container {
    position: relative;
    height: 100vh;
}

#hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    padding: 0 1rem;
    color: #191E3D;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-banner-h1-mobile);
    font-weight: 600;
    line-height: 1.1;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: var(--fs-banner-p-mobile);
    margin: 1.5rem auto 0;
    max-width: 800px;
}

@media (min-width: 480px) {
    .hero-content h1 { font-size: var(--fs-banner-h1-sm); }
    .hero-content p { font-size: var(--fs-banner-p-sm); }
}
@media (min-width: 768px) {
    .hero-content h1 { font-size: var(--fs-banner-h1-md); }
    .hero-content p { font-size: var(--fs-banner-p-md); }
}
@media (min-width: 1024px) {
    .hero-content h1 { font-size: var(--fs-banner-h1-lg); }
    .hero-content p { font-size: var(--fs-banner-p-lg); }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-body);
    font-size: 0.875rem;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #191E3D;
}

.scroll-down .arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* --- Narrative Section (Section 3) --- */
.narrative-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    padding: 2rem 1rem;
}

.narrative-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    z-index: 1;
}

.narrative-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--color-title-main-rgb), 0.7);
    z-index: 2;
}

.intro-section .narrative-background::after {
    background: radial-gradient(circle at center, rgba(var(--color-title-main-rgb), 0.2) 0%, rgba(var(--color-title-main-rgb), 0.8) 100%);
}

.narrative-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(60px); 
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.intro-section .narrative-content {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: all 1s ease-out;
    text-align: center;
}

.narrative-content.is-visible,
.narrative-section.is-visible .narrative-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.narrative-content .content-inner {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}

.narrative-section.is-visible .content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mid-Page Banner (Section 2) --- */
.mid-banner {
    height: auto;
    min-height: 400px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: background-position 0.5s ease;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.mid-banner .content {
    max-width: 100%;
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(233,240,249,0.9));
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    position: relative;
    margin: 2rem auto;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.8s ease forwards;
}

.eyebrow {
    margin: 1.5rem 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.divider-line {
    height: 0.125rem;
    background-color: var(--color-accent);
    opacity: 1;
    flex: 1;
    max-width: 3.75rem;
}

.divider-text {
    margin: 0 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-body-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    white-space: nowrap;
}

.mid-banner-h2 {
    margin: 0 0 0.75rem;
    position: relative;
}

.mid-banner-h2::after {
    content: "";
    display: block;
    width: 3.75rem;
    height: 0.125rem;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 0.1875rem;
}

.tagline,
.intro {
    margin: 0 0 1rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    line-height: 1.5;
}

.intro {
    line-height: 1.7;
}

.float {
    animation: float 6s ease-in-out infinite;
}

.particle-accent { background-color: var(--color-accent); }
.particle-title-main { background-color: var(--color-title-main); }

/* --- Two-Column Layout (Section 4 & New) --- */
.two-column-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: white;
    flex: 1;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    box-sizing: border-box;
}

.image-column {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 0;
    box-sizing: border-box;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-is-visible .content-column,
.section-is-visible .image-column {
    opacity: 1;
    transform: translateX(0);
}

/* --- Typography & Elements --- */
h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-title-main);
}

.intro-section .narrative-content h2 {
    color: #FFFFFF;
    font-size: var(--fs-h2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.narrative-description {
    font-family: var(--font-body);
    font-size: var(--fs-body-main);
    margin-top: 1.5rem;
    color: var(--color-desc-main);
}

.intro-section .narrative-description {
    color: #FFFFFF;
}

.intro-section .narrative-description a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}

.intro-section .narrative-description a:hover {
    color: #FFFFFF;
}

.narrative-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: var(--fs-body-base);
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--color-accent);
    transition: color 0.3s ease, border-color 0.3s ease;
    color: var(--color-accent);
    text-decoration: none;
}

.narrative-link:hover {
    color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.text-accent {
    color: var(--color-accent);
}

/* =================================================================
 * MEDIA QUERIES (Applying desktop styles)
 * ================================================================= */

/* Tablets and larger */
@media (min-width: 768px) {
    .hero-content {
        padding: 2rem;
    }

    .two-column-layout {
        flex-direction: row;
    }

    .content-column {
        padding: 2rem 5rem;
    }

    .image-column {
        padding: 0;
    }

    .narrative-section {
        padding: 2rem;
    }

    .mid-banner {
        padding: 2rem 5vw;
    }

    .mid-banner .content {
        padding: 3rem;
    }
}

/* Additional styles merged from test.php */
.fullscreen-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    position: relative;
}

.section-6-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('assets/images/home/cityscape-bg.png');
    background-size: cover;
    background-position: center;
}
.section-6-bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%);
}
@media (min-width: 1024px) {
    .section-6-bg-overlay::before {
        background: linear-gradient(250deg, rgba(255, 255, 255, 0.8) 0 50%, rgba(255, 255, 255, 0) 55%);
    }
}

.section-eyebrow {
    letter-spacing: .2em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
}

.title {
    font-family: var(--font-heading);
}

.focusable:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

#scaling-paradox-bg {
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform .6s ease;
    transform-origin: center;
}

.hover-zoom:hover img {
    transform: scale(1.06);
}

.animated-underline {
    position: relative;
    text-decoration: none;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -0.25rem;
    left: 0;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}

.link-button:hover .animated-underline::after,
.group:hover .animated-underline::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.skip-link {
    position: absolute;
    top: -2.5rem;
    left: 0;
    background: var(--color-heading-card);
    color: white;
    padding: 0.5rem;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.3s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

.button-arrow {
    animation: arrow-move 1.5s infinite ease-in-out;
}

@keyframes arrow-move {
    0% { transform: translateX(0); }
    50% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
