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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Three.js Canvas */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

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

.signature-container {
    margin-bottom: 30px;
}

@font-face {
    font-family: 'Amsterdam';
    src: url('Amsterdam Four_ttf 400.ttf') format('truetype');
    font-display: swap;
}

.signature {
    font-family: 'Amsterdam', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: rotate(-5deg);
    position: relative;
}

@media (max-width: 768px) {
    .signature {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .signature {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

.signature::after {
    content: '|';
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: bold;
    opacity: var(--cursor, 1);
}

.signature.typing-complete::after {
    display: none;
}

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

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-text {
    text-align: center;
}

.loading-percentage {
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
    display: block;
}

/* Main Content */
.content {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* Amsterdam Header */
.amsterdam-header {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
}

.amsterdam-name {
    font-family: 'Amsterdam', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: 2px;
    transform: rotate(-2deg);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    margin-bottom: 60px;
}

.title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.glow-text {
    background: linear-gradient(45deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

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

.description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: #cccccc;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

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

/* Email Subscription Form */
.subscription {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.email-form {
    display: flex;
    justify-content: center;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-group:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
    min-width: 300px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group button {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 30px 20px;
    }
    
    .amsterdam-name {
        font-size: 1.8rem;
    }
    
    .hero {
        margin-top: 60px;
        margin-bottom: 40px;
    }
    
    .title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        max-width: 500px;
        line-height: 1.5;
        letter-spacing: 0.3px;
    }
    
    .input-group input {
        min-width: 250px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .input-group button {
        width: 45px;
        height: 45px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 25px 15px;
    }
    
    .amsterdam-name {
        font-size: 1.5rem;
    }
    
    .hero {
        margin-top: 50px;
        margin-bottom: 30px;
    }
    
    .title {
        font-size: clamp(2rem, 5vw, 3rem);
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .description {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
        max-width: 400px;
        line-height: 1.4;
        letter-spacing: 0.2px;
    }
    
    .input-group input {
        min-width: 200px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .input-group button {
        width: 40px;
        height: 40px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Smooth scrolling and performance optimizations */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #f0f0f0, #ffffff);
}
