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

body, html {
    min-height: 100%;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #050505;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Dynamic Blurry Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* This creates the massive blur effect blending the blobs */
    filter: blur(120px);
    -webkit-filter: blur(120px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.shape1 {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: #ff2a5f;
    top: -10%;
    left: -10%;
    animation: float1 20s infinite alternate ease-in-out;
}

.shape2 {
    width: 70vw;
    height: 70vw;
    max-width: 700px;
    max-height: 700px;
    background: #5b21b6;
    bottom: -20%;
    right: -10%;
    animation: float2 25s infinite alternate-reverse ease-in-out;
}

.shape3 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: #0ea5e9;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation: float3 22s infinite alternate ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20%, 30%) scale(1.3); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30%, -20%) scale(1.2); }
}

@keyframes float3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.4); }
}

/* Glassmorphism Foreground Container */
.glass-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 4rem 4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.glass-container h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.glass-container p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: #e4e4e7;
    margin-bottom: 1.5rem;
}

.email-container {
    margin-bottom: 2.5rem;
}

.apple-glass-email {
    display: inline-block;
    max-width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px; /* Pill shape for Apple look */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.apple-glass-email:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.98);
}

.apple-glass-email:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: scale(1.05);
}


/* Tablets and small laptops */
@media (max-width: 900px) {
    .glass-container {
        padding: 3rem 2.5rem;
    }
    .glass-container h1 {
        font-size: 3.5rem;
    }
}

/* Phones */
@media (max-width: 600px) {
    .background-container {
        /* Lighter blur radius keeps animation smooth on mobile GPUs */
        filter: blur(80px);
        -webkit-filter: blur(80px);
    }
    .glass-container {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    .glass-container h1 {
        font-size: 2.75rem;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }
    .glass-container p {
        font-size: 1.05rem;
    }
    .email-container {
        margin-bottom: 1rem;
    }
    .apple-glass-email {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        white-space: normal;
        word-break: break-word;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .glass-container {
        padding: 2rem 1.25rem;
    }
    .glass-container h1 {
        font-size: 2.25rem;
    }
    .glass-container p {
        font-size: 1rem;
    }
    .apple-glass-email {
        font-size: 0.875rem;
        padding: 0.65rem 1rem;
    }
}

@media (hover: none) {
    .apple-glass-email:hover {
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
    .glass-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .apple-glass-email,
    .apple-glass-email:hover {
        transition: none;
        transform: none;
    }
}
