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

:root {
    --primary-black: #0a0a0a;
    --primary-white: #ffffff;
    --accent-gold: #d4af37;
    --text-gray: #b0b0b0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--primary-black);
    color: var(--primary-white);
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

/* Main Container - Flexbox Layout */
.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 2;
}

/* Header Section */
.header-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    min-height: 60px;
}

.main-logo {
    width: clamp(216px, 30vw, 420px);
    height: auto;
    filter: brightness(0) invert(1);
}

/* Top Text Section */
.top-text-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vh, 1rem);
    padding: clamp(10px, 2vh, 20px) 0;
}

.top-slot {
    opacity: 1;
    width: 100%;
}

.top-text-item {
    color: var(--primary-white);
    text-decoration: none;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: 0.01em;
    transition: var(--transition-smooth);
    font-weight: 300;
    display: block;
    text-transform: lowercase;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.top-slot.align-left .top-text-item {
    text-align: left;
}

.top-slot.align-right .top-text-item {
    text-align: right;
}

.top-slot.align-center .top-text-item {
    text-align: center;
}

.top-slot.split-words .top-text-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: normal;
}

.word-left {
    flex: 0 0 auto;
}

.word-right {
    flex: 0 0 auto;
}

/* Hero Section */
.hero-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    min-height: 0;
    gap: clamp(20px, 3vh, 40px);
}

.scrolling-container {
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    position: relative;
}

.scrolling-text {
    display: inline-flex;
    animation: scroll-horizontal 20s linear infinite;
    font-size: clamp(5rem, 16vw, 14rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    overflow: visible;
}

.scrolling-text span:not(.spacer) {
    display: inline-block;
    padding: 0 2rem;
    color: var(--primary-white);
}

.spacer {
    display: inline-block;
    width: 10vw;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.static-text {
    margin-top: 0;
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--primary-white);
    white-space: nowrap;
    text-transform: lowercase;
    text-align: center;
    z-index: -1;
    position: relative;
}

/* Bottom Links Section */
.bottom-links-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vh, 1rem);
    padding: clamp(10px, 2vh, 20px) 0;
    margin-bottom: 10px;
}

.social-slot {
    opacity: 1;
    width: 100%;
}

.social-link-item {
    color: var(--primary-white);
    text-decoration: none;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: 0.01em;
    transition: var(--transition-smooth);
    font-weight: 300;
    display: block;
    text-transform: lowercase;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.social-slot.align-left .social-link-item {
    text-align: left;
}

.social-slot.align-right .social-link-item {
    text-align: right;
}

.social-slot.align-center .social-link-item {
    text-align: center;
}

.social-link-item:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

/* Scroll Indicator Section */
.scroll-indicator-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    min-height: 50px;
    opacity: 0.6;
    margin-bottom: 60px;
}

.mouse-icon {
    width: 18px;
    height: 30px;
    border: 2px solid var(--primary-white);
    border-radius: 9px;
    position: relative;
    background: transparent;
}

.mouse-wheel {
    width: 2px;
    height: 6px;
    background: var(--primary-white);
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.3;
        top: 18px;
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    min-height: auto;
    background: #000000;
    padding: 3rem 2rem;
    padding-bottom: 0;
    margin-bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.contact-form-wrapper {
    opacity: 1;
}

.form-subtitle {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.contact-form {
    margin-bottom: 1.5rem;
}

.email-input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

.email-input-group:focus-within {
    border-color: var(--primary-white);
}

.email-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary-white);
    font-size: 1rem;
    outline: none;
    padding: 0.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.email-input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
}

.email-submit-btn {
    background: transparent;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-submit-btn:hover {
    color: var(--accent-gold);
    transform: translateX(3px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.social-link:hover {
    color: var(--primary-white);
    transform: scale(1.1);
}

/* Responsive for very small screens */
@media (max-height: 700px) {
    .main-container {
        padding: 10px;
    }

    .header-section {
        min-height: 40px;
    }

    .main-logo {
        width: clamp(180px, 30vw, 280px);
    }

    .top-text-section {
        gap: 0.3rem;
        padding: 5px 0;
    }

    .bottom-links-section {
        gap: 0.3rem;
        padding: 5px 0;
    }

    .top-text-item, .social-link-item {
        font-size: clamp(1.4rem, 2.8vw, 2rem);
    }

    .scrolling-text {
        font-size: clamp(4rem, 15vw, 10rem);
    }

    .static-text {
        font-size: clamp(0.8rem, 1.5vw, 1.2rem);
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .video-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        overflow: hidden;
    }

    #bg-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }

    .main-container {
        padding: 10px;
        min-height: 100vh;
    }

    .header-section {
        padding: 5px 0;
        min-height: 50px;
    }

    .main-logo {
        width: clamp(140px, 25vw, 220px);
    }

    .top-text-section {
        padding: 10px 0;
        gap: 0.5rem;
    }

    .top-text-item, .social-link-item {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        line-height: 1.1;
    }

    .hero-section {
        padding: 10px 0;
    }

    .scrolling-text {
        font-size: clamp(4rem, 25vw, 10rem);
    }

    .static-text {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
        margin-top: 10px;
    }

    .bottom-links-section {
        padding: 10px 0;
        gap: 0.5rem;
        margin-bottom: 5px;
    }

    .scroll-indicator-section {
        min-height: 40px;
        padding: 5px 0;
    }

    .mouse-icon {
        width: 16px;
        height: 26px;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

/* Tablet landscape and similar dimensions */
@media (min-width: 768px) and (max-width: 1200px) and (max-height: 700px) {
    .main-container {
        padding: 15px;
    }

    .header-section {
        min-height: 50px;
        padding: 5px 0;
    }

    .main-logo {
        width: clamp(150px, 18vw, 280px);
    }

    .top-text-section {
        padding: 8px 0;
        gap: 0.6rem;
    }

    .bottom-links-section {
        padding: 8px 0;
        gap: 0.6rem;
        margin-bottom: 8px;
    }

    .top-text-item, .social-link-item {
        font-size: clamp(1.3rem, 2.8vw, 2rem);
    }

    .scrolling-text {
        font-size: clamp(5rem, 18vw, 12rem);
    }

    .static-text {
        font-size: clamp(1.1rem, 2vw, 1.6rem);
        margin-top: 8px;
    }

    .scroll-indicator-section {
        min-height: 35px;
        padding: 5px 0;
    }
}

/* Ultra small height screens */
@media (max-height: 500px) {
    .top-text-section {
        /* Show only 2 lines on very small heights */
        max-height: 15vh;
        overflow: hidden;
    }

    .bottom-links-section {
        /* Show only 2 lines on very small heights */
        max-height: 15vh;
        overflow: hidden;
    }

    .hero-section {
        min-height: 40vh;
    }
}