:root {
    --bg-color: #111111;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #488ef7; /* A sleek blue accent based on the generated image */
    --accent-hover: #6ea3f9;
    --glass-bg: rgba(17, 17, 17, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Unbounded', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.5;
}

/* Preloader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.loader-text {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--text-primary);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Background elements imitating WebGL */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}


/* Typography elements */
a {
    text-decoration: none;
    color: inherit;
}

.button {
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.button__primary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.button__primary:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Header / Logo */
.logo-header {
    position: fixed;
    top: 2rem;
    left: 4rem;
    z-index: 100;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30vh;
    background: rgba(255, 255, 255, 0.2);
    z-index: 50;
}

.progress-bar__progress {
    width: 100%;
    background: var(--text-primary);
    height: 0%; /* Will be updated via JS */
    transition: height 0.1s;
}

/* Navigation Menu */
.menu {
    position: fixed;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.menu__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu__item {
    font-size: 0.75rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu__item.active, .menu__item:hover {
    opacity: 1;
}

.menu__item span {
    font-weight: 300;
    color: var(--accent-color);
}

/* Layout */
main {
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 10rem 6rem 12rem;
    position: relative;
}

/* Home Section */
.home__title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.home__title span {
    -webkit-text-stroke: 1px var(--text-primary);
    color: transparent;
}

.home__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.home__subtitle--smaller {
    font-size: 1rem;
    margin-bottom: 3rem;
}

.scroll-icon__container {
    position: absolute;
    bottom: 3rem;
    left: 12rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 300;
    animation: bounce 2s infinite;
}

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

/* Section Shared Styles */
.section__inner {
    max-width: 1200px;
    width: 100%;
}

.section__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 4rem;
    display: flex;
    flex-wrap: wrap;
}

.section__title div {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section__title div:hover:not(.space) {
    transform: translateY(-10px);
    color: var(--accent-color);
}

.section__content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.section__description {
    max-width: 600px;
}

.section__description--right {
    align-self: flex-end;
}

.section__description-title {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section__description-text {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.next-section-button {
    margin-top: 5rem;
    align-self: flex-start;
}

/* Lists */
.section__list {
    margin-top: 1.5rem;
}

.section__list-item {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--accent-color);
}

/* Our Work */
.our-work__shape {
    position: absolute;
    right: 15rem;
    top: 20%;
    width: 300px;
    height: 400px;
    z-index: -1;
    opacity: 0.7;
}

.our-work__media_placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 100px;
    border-bottom-left-radius: 100px;
    overflow: hidden;
    position: relative;
}

.video_placeholder {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.5;
    letter-spacing: 2px;
}

.our-work__shape-svg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    pointer-events: none;
}

/* Contact */
.contact__container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.contact__title {
    font-size: 2rem;
    font-weight: 300;
}

.contact__subtitle {
    font-size: 4rem;
    font-weight: 800;
}

.contact__label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact__email {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.contact__email-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.contact__email:hover .contact__email-underline {
    transform: scaleX(1);
    transform-origin: left;
}

.contact__social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.contact__social-link:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 6rem 4rem;
    }
    .menu {
        top: auto;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        width: 90%;
        justify-content: space-between;
    }
    .menu__container {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    .menu__item span {
        display: none;
    }
    .progress-bar {
        display: none;
    }
    .our-work__shape {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 2rem;
        min-height: auto;
    }
    .logo-header {
        top: 1.5rem;
        left: 2rem;
    }
    .home__title {
        margin-top: 4rem;
    }
    .menu {
        display: none; 
        /* Mobile menu approach can trigger a hamburger icon instead */
    }
    .section__title {
        font-size: 2.5rem;
    }
    .contact__subtitle {
        font-size: 2.5rem;
    }
    .contact__email {
        font-size: 1.5rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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