:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-graphite: #333333;
    --color-light-gray: #f5f5f5;
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-speed) ease;
}

a:hover {
    opacity: 0.7;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    /* Slightly wider for nav */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-black);
    margin-left: 20px;
}

.brand img{
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-graphite);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--color-black);
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero-section {
    margin-top: var(--header-height);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 50vh;
    /* Ensure visibility on empty content */
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    /* Very subtle overlay */
    pointer-events: none;
}

/* Narrative Section */
.narrative-section {
    padding: 8rem 2rem;
    background-color: var(--color-white);
}

.narrative-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.narrative-text {
    font-size: 1.5rem;
    /* Increased size for narrative feel */
    line-height: 1.8;
    color: var(--color-graphite);
    font-weight: 300;
}

.narrative-text p {
    margin-bottom: 2.5rem;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer (Simple) */
.site-footer {
    padding: 4rem 2rem;
    background-color: var(--color-light-gray);
    text-align: center;
    color: var(--color-graphite);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 10px;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 50vh);
        /* Stack vertically */
    }

    .narrative-text {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .hero-image-wrapper img,
    .bar,
    .nav-links,
    a {
        transition: none;
    }
}

/* --- Gallery Page Styles --- */

/* Video Background */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Reduced height for better fold visibility */
    overflow: hidden;
    margin-top: var(--header-height);
    background-color: var(--color-black);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    /* Slight dim for better overlay text contrast if needed */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    /* Gradient overlay */
}

/* Gallery Container */
.hero-section-images {
    display: block;
    /* Override .hero-section grid */
    height: auto;
    /* Override .hero-section 100vh */
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background-color: var(--color-white);
    position: relative;
    /* Overlap effect */
    z-index: 10;
    border-radius: 20px 20px 0 0;
    margin-top: 20px;
    /* Modern curve */
}

.gallery-logo-container {
    margin-bottom: 3rem;
    margin-top: 0;
}

/* Override user's inline style if possible, or style wrapper */
#hubicon_logo {
    max-width: 200px;
    /* Reduced max-width for balance */
    height: auto;
    display: inline-block;
    margin-top: 0 !important;
    /* Force override of user's inline style */
    margin-bottom: 2rem;
}

/* Gallery Headers */
.image-header {
    font-size: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    /* Center alignment looks cleaner with this layout */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-graphite);
    position: relative;
    display: inline-block;
}

.image-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-black);
    margin: 10px auto 0;
}

/* Grid Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Wider columns */
    gap: 2rem;
    margin-bottom: 5rem;
}

.gallery .image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    /* Cinematic ratio */
    background-color: var(--color-light-gray);
    cursor: pointer;
    border-radius: 8px;
    /* Soft corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery .image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.gallery .image:hover img {
    transform: scale(1.08);
}

.nav-link.active {
    color: var(--color-black);
    font-weight: 700;
    border-bottom: 2px solid var(--color-black);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-wrapper {
        height: 60vh;
        /* Taller on mobile for drama */
    }

    .hero-section-images {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
        margin-top: 35px;
    }

    #hubicon_logo {
        max-width: 150px;
    }

    .image-header {
        font-size: 1.25rem;
    }

    .image-header {
        font-size: 1.25rem;
    }
}

/* --- Components Section Styles --- */

.about-us {
    padding: 6rem 2rem;
    background-color:#fff;
    /* Distinguish section */
    color: var(--color-graphite);
}

.about-us h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    border-bottom: 2px solid var(--color-black);
    display: inline-block;
    padding-bottom: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.about-us .col-md-12 {
    text-align: center;
}

/* Emulating Bootstrap Grid behavior for this snippet */
.container-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
    /* Negative margin for gutter */
}

.col-md-12,
.col-md-6 {
    padding: 0 1rem;
    /* Gutter padding */
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
        /* 2 columns on desktop */
    }
}

/* Typography & Lists */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.right-col p {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.components-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.components-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    color: var(--color-graphite);
}

.components-list li::before {
    content: '•';
    color: var(--color-black);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (min-width: 768px) {
    .components-list {
        grid-template-columns: 1fr 1fr;
        /* 2 column list on desktop for better space usage */
    }
}

/* Responsive adjustment for row */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .about-us {
        padding: 4rem 1.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}