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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    /* Allow scrolling */
    display: flex;
    flex-direction: column;
    /* Better for scrolling */
    justify-content: center;
    /* Center if possible */
    align-items: center;
    color: #ffffff;
    background-color: #0d1117;
    padding: 2rem 0;
    /* Ensure some breathing room */
}

/* Background & Glassmorphism */
/* Using a blurry gradient background similar to the reference */
/* Background & Mesh Gradient */
.background-blur {
    position: fixed;
    /* Fixed so it stays during scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: #0f0c29;
    overflow: hidden;
}

.background-blur::before,
.background-blur::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    /* Sharper blur for more visibility */
    opacity: 0.8;
    /* Increased opacity */
    animation: float 6s infinite ease-in-out alternate;
    /* Faster animation */
}

/* Gradient Blob 1 */
.background-blur::before {
    width: 70vw;
    /* Larger */
    height: 70vw;
    background: radial-gradient(circle, #4b1d68, #24243e);
    /* More vibrant purple */
    top: -15%;
    left: -15%;
    animation-duration: 8s;
    /* Faster */
}

/* Gradient Blob 2 */
.background-blur::after {
    width: 60vw;
    /* Larger */
    height: 60vw;
    background: radial-gradient(circle, #2d1b4e, #000000);
    bottom: -15%;
    right: -15%;
    animation-duration: 10s;
    /* Faster */
    animation-delay: -2s;
}

/* Additional moving light */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(100, 50, 200, 0.2), transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulseGlow 5s infinite alternate;
    /* Faster pulse */
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 500px;
    /* Reduced from 600px */
    padding: 1.5rem;
    text-align: center;
    z-index: 1;

    /* Staggered Entry Animation */
    animation: fadeInUp 0.8s ease-out forwards;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduced from 2.5rem */
    align-items: center;
}

/* Branding */
.brand-section {
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* Reduced from 1.5rem */
}

.slogan-img {
    max-width: 350px;
    /* Increased from 220px */
    width: 90%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.logo-img {
    width: 140px;
    /* Increased from 90px */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Typography */
.headline {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Stagger animations for children */
.brand-section {
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
}

.text-section {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.progress-section {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.signup-section {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.subtext {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.progress-section {
    width: 100%;
    margin-bottom: 0.5rem;
}

.progress-container {
    width: 100%;
    height: 32px;
    /* Reduced from 48px */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Thinner border */
    border-radius: 999px;
    position: relative;
    /* Glassmorphism Refinement */
    background: rgba(255, 255, 255, 0.05);
    /* Lighter background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Crisper border */
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #ff0080);
    /* Vibrant Orange to Pink/Red */
    border-radius: 999px;
    /* Width set inline */
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
    /* Orange Glow */
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    /* Slower, smooth fill */
    width: 0%;
    /* Start at 0% for JS animation */
}

.progress-text {
    position: absolute;
    right: 15px;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.85rem;
    /* Smaller text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Signup Form */
.signup-section {
    width: 100%;
    max-width: 400px;
    /* Reduced width */
}

.signup-form {
    display: flex;
    background: rgba(30, 35, 45, 0.5);
    /* Slightly darker/more transparent */
    border-radius: 999px;
    /* Fully, perfectly round pills */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    height: 50px;
    /* Fixed height for consistency */
}

.signup-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.signup-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.signup-form button {
    background: rgba(255, 255, 255, 0.1);
    /* Subtle separation */
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 2rem;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.signup-form button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Success Message */
.hidden {
    display: none;
}

.success-message {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
        max-width: 100%;
    }

    .content-wrapper {
        gap: 1rem;
        /* Tighter vertical spacing */
    }

    /* Branding Compactness */
    .brand-section {
        gap: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .slogan-img {
        max-width: 280px;
        /* Smaller slogan */
    }

    .logo-img {
        width: 100px;
        /* Smaller logo */
    }

    /* Typography Compactness */
    .headline {
        font-size: 1.75rem;
        /* Smaller headline */
        margin-bottom: 0.25rem;
    }

    .subtext {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.25rem;
    }

    /* Progress Compactness */
    .progress-container {
        height: 24px;
        /* Thinner progress bar */
    }

    .progress-text {
        font-size: 0.75rem;
        right: 10px;
    }

    /* Form Compactness */
    .signup-form {
        height: 44px;
        /* Slightly shorter form */
        flex-direction: row;
        /* Keep row if possible, content can shrink */
    }

    .signup-form input {
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .signup-form button {
        padding: 0 1.25rem;
        font-size: 0.85rem;
    }

    /* Contact Compactness - Handled by main styles now */
    .contact-grid {
        gap: 0.75rem;
    }
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%);
    /* Center horizontally */
    right: auto;
    /* Remove right positioning */
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile positioning */
@media (max-width: 480px) {
    .language-toggle {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Contact Section */
.contact-section {
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 2rem;
    /* Ensure bottom scrolling space */
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

/* Contact Buttons */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 99px;
    /* Pill shape */
    transition: all 0.3s ease;

    /* Stronger Button Look */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 200px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-item svg {
    opacity: 1;
    /* Full visibility */
    width: 18px;
    height: 18px;
}

/* Address Card (distinct from buttons but consistent) */
.address-item {
    width: 100%;
    max-width: 300px;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: default;
}

.address-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

.address-item span {
    line-height: 1.5;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .contact-item {
        width: 100%;
        /* Full width buttons on mobile */
        max-width: 300px;
        padding: 12px 16px;
    }
}