body {
    font-family: 'Poppins', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

/* --- HERO: SOLAR SYSTEM --- */
.solar-system {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(20, 184, 166, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin-right linear infinite;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.1);
}

.planet-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
}

.planet-icon {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #14b8a6;
    color: #14b8a6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.6);
    animation: spin-left linear infinite;
    backdrop-filter: blur(5px);
}

.orbit-1 {
    width: 180px;
    height: 180px;
    animation-duration: 15s;
    z-index: 3;
}

.orbit-1 .planet-icon {
    animation-duration: 15s;
}

.orbit-2 {
    width: 280px;
    height: 280px;
    animation-duration: 25s;
    z-index: 2;
}

.orbit-2 .planet-icon {
    animation-duration: 25s;
}

.orbit-3 {
    width: 380px;
    height: 380px;
    animation-duration: 35s;
    z-index: 1;
}

.orbit-3 .planet-icon {
    animation-duration: 35s;
}

@keyframes spin-right {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-left {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* --- ABOUT: NEXUS ROTATION + 4-WAY BUBBLES --- */
.nexus-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* About Section Container */
#about {
    overflow-x: hidden;
}

#about .container {
    overflow: visible;
}

/* 1. Background Container for Bubbles */
.nexus-bg-container {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.9) 30%, rgba(20, 184, 166, 0.05) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: 0 0 50px rgba(20, 184, 166, 0.1);
    overflow: hidden;
    z-index: 1;
}

/* 4-Way Bubble Animation */
.bubble-particle {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
}

.move-up {
    animation: float-up 4s linear infinite;
}

.move-down {
    animation: float-down 4s linear infinite;
}

.move-left {
    animation: float-left 4s linear infinite;
}

.move-right {
    animation: float-right 4s linear infinite;
}

@keyframes float-up {
    0% {
        top: 100%;
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        top: -20px;
        opacity: 0;
    }
}

@keyframes float-down {
    0% {
        top: -20px;
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes float-left {
    0% {
        left: 100%;
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        left: -20px;
        opacity: 0;
    }
}

@keyframes float-right {
    0% {
        left: -20px;
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.p-bug {
    color: #ef4444;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.p-dev {
    color: #3b82f6;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.p-qa {
    color: #14b8a6;
    text-shadow: 0 0 5px rgba(20, 184, 166, 0.5);
}

/* 2. Central Core */
.nexus-core {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #020617;
    border: 2px solid #14b8a6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #14b8a6;
    font-size: 2rem;
    z-index: 20;
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.5);
    animation: core-pulse 2s infinite;
}

/* 3. The Rotating Orbit Ring */
.nexus-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    margin-top: -140px;
    margin-left: -140px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: spin-orbit 25s linear infinite;
    z-index: 10;
}

/* Connecting Lines (Spokes) */
.orbit-spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.6));
    transform-origin: 0 0;
}

/* Tech Nodes Container */
.node-holder {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
}

/* Tech Node Icon (Counter-Rotates to stay upright) */
.tech-node {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: spin-orbit-reverse 25s linear infinite;
}

.node-bug {
    color: #ef4444;
    border-color: #ef4444;
}

.node-test {
    color: #14b8a6;
    border-color: #14b8a6;
}

.node-devops {
    color: #3b82f6;
    border-color: #3b82f6;
}

.node-lang {
    color: #a855f7;
    border-color: #a855f7;
}

.node-tech {
    color: #f59e0b;
    border-color: #f59e0b;
}

@keyframes spin-orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-orbit-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        scale: 1;
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
    }

    50% {
        scale: 1.1;
        box-shadow: 0 0 40px rgba(20, 184, 166, 0.8);
    }
}

/* Typing Cursor */
.typed-cursor {
    font-size: 1em;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Fix extra blank space after hero (mobile) */
#home {
    overflow-x: hidden;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

    /* Hero Section Mobile */
    #home {
        padding-top: 120px;
    }

    #home h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        text-align: center;
        margin-top: 10px;
    }

    #home h2 {
        font-size: 1.2rem !important;
        text-align: center;
        margin-bottom: 20px;
    }

    #home p {
        text-align: center;
        font-size: 0.95rem;
        padding: 0 10px;
    }

    #home .flex.flex-col.md\:flex-row.gap-4 {
        align-items: center;
        width: 100%;
    }

    #home a {
        width: 100%;
        text-align: center;
        max-width: 280px;
        display: block;
    }

    /* Reduce hero animation size */
    .solar-system {
        transform: scale(0.5);
        height: 300px;
        margin-top: -20px;
        margin-bottom: 20px;
    }

    /* Reduce orbit sizes */
    .orbit-1 {
        width: 160px;
        height: 160px;
    }

    .orbit-2 {
        width: 260px;
        height: 260px;
    }

    .orbit-3 {
        width: 360px;
        height: 360px;
    }

    /* Center animation properly */
    #home .solar-system {
        justify-content: center;
        align-items: center;
    }

    /* About Section Mobile - Scale down animation */
    .nexus-wrapper {
        transform: scale(0.65);
        max-width: 100%;
        margin: 0 auto;
    }

    /* Fix About section layout on mobile */
    #about {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    #about .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    #about .grid {
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    /* Ensure text content doesn't get cut off */
    #about h2 {
        font-size: 1.875rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        padding: 0;
        text-align: center;
    }

    #about p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        padding: 0;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Center animation container properly */
    #about .flex.justify-center {
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        height: 280px !important;
    }

    /* Adjust stats cards on mobile */
    #about .grid.grid-cols-1 {
        gap: 1rem;
        padding: 0;
    }

    #about .grid.grid-cols-1>div {
        margin: 0;
    }

    /* Fix text container on mobile */
    #about [data-aos="fade-left"] {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
}