* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333333;
  display: flex;
  justify-content: center;
}

ul li a {
  display: block;
  color: white;
  padding: 14px 50px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #111111;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(ellipse at top, #200310 0%, #0a0010 60%, #000000 100%);
    animation: animateBg 50s linear infinite;
}

h1, h2, h3, p {
    font-family: 'Courier New', Courier, monospace;
}

@keyframes animateBg {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 0 0 8px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,0.1);
    animation: animate 3s linear infinite;
}

span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

span:nth-child(1) { top: 0; right: 0; left: initial; animation-delay: 0s; animation-duration: 1s; }
span:nth-child(2) { top: 0; right: 80px; left: initial; animation-delay: 0.2s; animation-duration: 3s; }
span:nth-child(3) { top: 80px; right: 0; left: initial; animation-delay: 0.4s; animation-duration: 2s; }
span:nth-child(4) { top: 0; right: 180px; left: initial; animation-delay: 0.6s; animation-duration: 1.5s; }
span:nth-child(5) { top: 0; right: 400px; left: initial; animation-delay: 0.8s; animation-duration: 2.5s; }
span:nth-child(6) { top: 0; right: 600px; left: initial; animation-delay: 1s; animation-duration: 3s; }
span:nth-child(7) { top: 300px; right: 0; left: initial; animation-delay: 1.2s; animation-duration: 1.75s; }
span:nth-child(8) { top: 0; right: 700px; left: initial; animation-delay: 1.4s; animation-duration: 1.25s; }
span:nth-child(9) { top: 0; right: 450px; left: initial; animation-delay: 2.75s; animation-duration: 2.75s; }

/* Navbar */
nav {
    position: relative;
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.about-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bubbles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.bubble {
    width: 220px;
    height: 220px;
    background: rgba(20, 10, 30, 0.85);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
}

.bubble:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 100, 200, 0.3);
    background: rgba(40, 15, 60, 0.95);
    border-color: #ff758c;
}

.bubble h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff758c;
}

.bubble p {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #dddddd;
}

.back-btn {
    display: none;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    margin-top: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.back-btn:hover {
    background: #ffffff;
    color: #000000;
}

.bubbles-grid.has-active .bubble {
    display: none;
}

.bubbles-grid.has-active .bubble.active {
    display: flex;
    width: 420px;
    height: 420px;
    grid-column: 1 / -1;
    justify-self: center;
    cursor: default;
    background: rgba(20, 10, 30, 0.95);
    border: 5px solid #ff758c;
    box-shadow: 0 0 60px rgba(255, 117, 140, 0.5);
    padding: 50px;
    transform: none !important;
}

.bubbles-grid.has-active .bubble.active h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bubbles-grid.has-active .bubble.active p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.bubbles-grid.has-active .bubble.active .back-btn {
    display: inline-block;
}

@media (max-width: 900px) {
    .bubbles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bubbles-grid {
        grid-template-columns: 1fr;
    }
    .bubbles-grid.has-active .bubble.active {
        width: 300px;
        height: 300px;
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .bubbles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .bubbles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    ul {
        flex-direction: column;
        align-items: center;
    }

    ul li a {
        padding: 10px 20px;
        text-align: center;
    }

    .about-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .bubbles-grid.has-active .bubble.active {
        width: 280px;
        height: 280px;
        padding: 25px;
    }

    .bubbles-grid.has-active .bubble.active h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .bubbles-grid.has-active .bubble.active p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}