/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-grey: #e8e8e8;
    --mid-grey: #a0a0a0;
    --dim-grey: #6a6a6a;
    --accent: #f5f5f5;
    --glow: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: var(--light-grey);
    overflow: hidden;
    cursor: url('cursor.cur'), auto;
    height: 100vh;
}

/* Film grain effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    opacity: 0.4;
    z-index: 9998;
    pointer-events: none;
    animation: filmGrain 0.5s steps(2) infinite;
}

@keyframes filmGrain {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.5; }
}

/* Background Video */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.75));
    z-index: 1;
}

/* Custom cursor glow */
.cursor-glow {
    display: none;
}

/* Entrance Screen */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('cursor.cur'), pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.entrance-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-content {
    text-align: center;
    position: relative;
}

.entrance-logo {
    margin-bottom: 3rem;
    position: relative;
}

.entrance-name {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 50%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: entranceGlow 3s ease-in-out infinite, entranceFloat 3s ease-in-out infinite;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

@keyframes entranceGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
        background-position: 0% 50%;
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
        background-position: 100% 50%;
    }
}

@keyframes entranceFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.entrance-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-grey), transparent);
    margin: 0 auto;
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% {
        width: 200px;
        opacity: 0.5;
    }
    50% {
        width: 300px;
        opacity: 1;
    }
}

.entrance-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInPrompt 2s ease-in-out 1s backwards;
}

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

.click-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--mid-grey);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.click-indicator {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
}

.click-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--light-grey);
    transform: rotate(90deg);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Entrance Particles */
.entrance-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--light-grey);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 90%;
    animation-delay: 3s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 4.5s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10%, 90% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Hide main content initially */
.container {
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.container.visible {
    opacity: 1;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    margin-bottom: 2rem;
    text-align: center;
}

.name {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 50%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 300;
    color: var(--mid-grey);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2rem;
}

.typing-text {
    display: inline-block;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--light-grey);
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* About Section */
.about-section {
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: url('cursor.cur'), pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--mid-grey);
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.about-card:hover .card-text {
    color: var(--light-grey);
    transform: translateZ(5px);
}

/* Social links */
.socials {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: url('cursor.cur'), pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.social-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Music player */
.music-player {
    margin-bottom: 1.5rem;
}

.music-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--mid-grey);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: url('cursor.cur'), pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--light-grey);
}

.music-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.music-btn.playing svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    margin-top: 0;
}

.scroll-indicator {
    display: none;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--mid-grey);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--mid-grey);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
}

/* Fade in animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .entrance-screen {
        cursor: url('cursor.cur'), pointer;
    }

    .entrance-name {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .entrance-line {
        width: 150px;
    }

    .click-text {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .header {
        margin-bottom: 3rem;
    }

    .about-section {
        margin-bottom: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-card {
        padding: 1.25rem 1rem;
    }

    .socials {
        margin-bottom: 3rem;
    }

    .social-link {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .music-btn {
        font-size: 0.8rem;
        padding: 0.875rem 1.5rem;
    }

    .footer {
        margin-top: 4rem;
    }
}

/* Selection styling */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

/* Beta Badge */
.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(100, 100, 100, 0.25);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: rgba(180, 180, 180, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    margin-top: 1rem;
    position: relative;
}

.beta-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(150, 150, 150, 0.4);
    color: rgba(200, 200, 200, 0.9);
}

.beta-badge img {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.beta-badge .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 0.6rem 0.8rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(100, 100, 100, 0.2);
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.02rem;
    text-transform: none;
    color: rgba(200, 200, 200, 0.9);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.beta-badge .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 10, 10, 0.95);
}

.beta-badge:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
