/* ============================================================
   RESET & BASE
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    background: #0f0c29; /* Matches your dark gradient */
    min-height: 100%;
}

body {
    min-height: 100dvh; /* Dynamic viewport height (better for mobile) */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1rem;
    margin: 0;
}

/* ============================================================
   DECORATIVE BACKGROUND BUBBLES
============================================================ */
.bg-bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
}

.bg-bubble:nth-child(1) {
    width: 60vw;
    height: 60vw;
    top: -20vw;
    right: -20vw;
}
.bg-bubble:nth-child(2) {
    width: 40vw;
    height: 40vw;
    bottom: -10vw;
    left: -10vw;
}
.bg-bubble:nth-child(3) {
    width: 30vw;
    height: 30vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================================
   MAIN CONTAINER
============================================================ */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 1rem;
}

/* ============================================================
   TYPOGRAPHY (FLUID SIZING)
============================================================ */
h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 0.25em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

p {
    font-size: clamp(1rem, 2vw, 1.8rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 70ch;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================================
   BUBBLE INTERFACE (FLEXIBLE LAYOUT)
============================================================ */
.bubble-interface {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    margin-top: 1rem;
}

/* ============================================================
   BUBBLE BUTTONS (FLUID SIZING)
============================================================ */
.bubble-btn {
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    aspect-ratio: 1 / 1; /* Keeps them perfectly round */
}

/* Large center bubble */
.large {
    width: clamp(120px, 25vw, 220px);
    height: clamp(120px, 25vw, 220px);
    font-size: clamp(0.9rem, 1.5vw, 1.6rem);
}

.large i {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0.25rem;
}

/* Small side bubbles */
.small {
    width: clamp(70px, 12vw, 110px);
    height: clamp(70px, 12vw, 110px);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
}

/* Hover / tap effects */
.bubble-btn:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 48px rgba(108, 99, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.bubble-btn:active {
    transform: scale(0.92);
}

/* Brand colors (subtle) */
.github:hover {
    background: rgba(255, 255, 255, 0.2);
}
.linkedin:hover {
    background: rgba(0, 119, 181, 0.4);
}
#alertButton:hover {
    background: rgba(108, 99, 255, 0.4);
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */

/* Tablets and small laptops */
@media (max-width: 768px) {
    .bubble-interface {
        gap: 1.5rem;
    }
    .large {
        width: clamp(100px, 20vw, 160px);
        height: clamp(100px, 20vw, 160px);
    }
    .small {
        width: clamp(60px, 10vw, 80px);
        height: clamp(60px, 10vw, 80px);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .bubble-interface {
        gap: 1rem;
    }
    .large {
        width: clamp(90px, 35vw, 140px);
        height: clamp(90px, 35vw, 140px);
    }
    .small {
        width: clamp(50px, 15vw, 70px);
        height: clamp(50px, 15vw, 70px);
    }
    .large i {
        font-size: 2rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    p {
        font-size: 0.95rem;
    }
}

/* Ultrawide screens (21:9 and wider) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    .large {
        width: 280px;
        height: 280px;
    }
    .small {
        width: 140px;
        height: 140px;
    }
    h1 {
        font-size: 6rem;
    }
    p {
        font-size: 2rem;
    }
}
