@font-face {
    font-family: 'Hallway';
    src: url('fonts/Hallway Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-container {
    position: relative;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 169, 184, 0.3), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(91, 206, 250, 0.3), transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(245, 169, 184, 0.25), transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(91, 206, 250, 0.25), transparent 50%);
    opacity: 1;
}


.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 4rem;
    gap: 1.5rem;
    overflow: visible;
}

.hero-title-svg {
    width: clamp(30rem, 60vw, 60rem);
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    position: relative;
    z-index: 10;
    mix-blend-mode: difference;
}

.hero-title-text {
    font-family: 'Hallway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 180px;
    font-weight: normal;
    letter-spacing: 0.02em;
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: rgba(0, 0, 0, 0.9);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero-subtitle-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    position: relative;
    z-index: 10;
    align-items: center;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    width: 50vw;
}

.hero-subtitle:first-child {
    text-align: right;
    padding-right: 0.5rem;
}

.hero-subtitle:last-child {
    text-align: left;
    padding-left: 0.5rem;
}

.subtitle-separator {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.6);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    width: 100vw;
    animation: fadeInUp 1s ease-out 0.8s backwards;
    position: relative;
    z-index: 10;
}

.btn-wrapper {
    width: 50vw;
    display: flex;
}

.btn-wrapper:first-child {
    justify-content: flex-end;
    padding-right: 0.75rem;
}

.btn-wrapper:last-child {
    justify-content: flex-start;
    padding-left: 0.75rem;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 0;
    letter-spacing: 0.15em;
    transition: all 0.15s ease;
    text-transform: uppercase;
    border: 1px solid black;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: black;
    color: white;
    border: 1px solid black;
}

.btn-primary:hover {
    background: white;
    color: black;
}

.btn-secondary {
    background: transparent;
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    border-color: black;
    background: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, black, transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

.flag-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.current-flag {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 3px;
    overflow: hidden;
}

.current-flag:hover {
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.4);
}

.current-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flag-options {
    position: absolute;
    bottom: 100%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.flag-options.expanded {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.flag-option {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.flag-option:hover {
    transform: scale(1.1);
    border-color: rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

.flag-option img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(-10px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

.visualizer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 1;
}


.floating-player {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 100;
    animation: fadeInUpCentered 1s ease-out 1s backwards;
    overflow: visible;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: black;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn svg {
    flex-shrink: 0;
}

.play-btn svg path {
    fill: white;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 300px;
    overflow: visible;
}

.track-name {
    color: black;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.progress-bar {
    width: 100%;
    height: 16px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.progress-bar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.progress-fill {
    position: absolute;
    height: 4px;
    background: black;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: black;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left 0.1s linear;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.volume-slider {
    width: 100px;
    height: 4px;
    appearance: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: black;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: black;
    cursor: pointer;
    border: none;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.85);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn svg path {
    fill: black;
}

.hidden {
    display: none;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.track-name {
    color: white;
    font-weight: 400;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-info {
    display: flex;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.volume-slider {
    width: 80px;
    height: 4px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.progress-container {
    margin-bottom: 1rem;
}

.visualizer-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.viz-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.15s ease;
}

.viz-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.viz-btn.active {
    background: white;
    border-color: white;
    color: black;
}

.file-upload {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.15s ease;
}

.upload-label:hover {
    border-color: white;
}

.upload-label svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-title-svg {
        width: 85vw;
        min-width: 0;
        max-width: none;
    }

    .hero-title-text {
        font-size: 80px;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-subtitle-container {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .hero-subtitle {
        width: 100%;
        text-align: center !important;
        padding: 0 !important;
        font-size: 0.75rem;
    }

    .subtitle-separator {
        position: static;
        transform: none;
        width: 50%;
        height: 1px;
        background: rgba(0, 0, 0, 0.6);
        margin: 0 auto;
        font-size: 0;
        color: transparent;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 1rem;
    }

    .btn-wrapper {
        width: auto;
        justify-content: center !important;
        padding: 0 !important;
    }

    .btn {
        width: auto;
        text-align: center;
        white-space: nowrap;
    }

    .floating-player {
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: none;
        flex-direction: row;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .play-btn {
        width: 40px;
        height: 40px;
    }

    .play-btn svg {
        width: 20px;
        height: 20px;
    }

    .player-info {
        min-width: auto;
        width: 100%;
    }

    .track-name {
        font-size: 0.75rem;
    }

    .time-display {
        font-size: 0.65rem;
    }

    .flag-selector {
        display: flex;
    }

    .volume-slider {
        display: none;
    }
}
