/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    header {
        padding: 20px !important
    }

    #hero {
        flex-direction: column;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 2.2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .hero-img img {
        margin-top: 25px;

        width: 180px;
    }

    header {
        padding: 20px 10%;
        flex-wrap: wrap;
        position: relative;
    }

    a.resume-btn {
        margin-right: 34%;
    }

    #nav-toggle {
        display: block !important;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 80px;
        right: 0px;
        padding: 10px;
        border-radius: 10px;
        width: 160px;
        z-index: 2000;
    }

    #nav-menu.active {
        display: flex;
    }


}

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

html,
body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(ellipse at bottom, #0a1a2f 0%, #000 100%);
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    position: relative;
}

/* ========== STAR BACKGROUND ========== */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 40px 70px, #aef, transparent),
        radial-gradient(1px 1px at 130px 190px, #fff, transparent),
        radial-gradient(1px 1px at 240px 110px, #cff, transparent);
    background-size: 300px 300px;
    animation: moveStars 120s linear infinite;
    opacity: 0.5;
}

body::after {
    background-image:
        radial-gradient(2px 2px at 10px 20px, white, transparent),
        radial-gradient(2px 2px at 100px 150px, #9ff, transparent),
        radial-gradient(2px 2px at 200px 250px, #fff, transparent),
        radial-gradient(2px 2px at 350px 180px, #bff, transparent);
    background-size: 400px 400px;
    animation: moveStars 180s linear infinite reverse;
    opacity: 0.8;
}

@keyframes moveStars {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-300px, -300px);
    }
}

@keyframes neon-glow {
    0% {
        box-shadow: 0 0 10px #00ffff;
    }

    50% {
        box-shadow: 0 0 25px #0af;
    }

    100% {
        box-shadow: 0 0 10px #00ffff;
    }
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 0 25px #0ff, 0 0 50px #0ff, 0 0 70px #0ff;
}

header h1 {
    color: #00ffff;
    font-size: 1.6em;
    font-weight: 800;
    text-shadow: 0 0 6px #0ff, 0 0 12px #0af;
    transition: all 0.3s ease;
}

header h1:hover {
    text-shadow: 0 0 12px #0ff, 0 0 25px #0af, 0 0 40px #0ff;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: #00ffff;
    cursor: pointer;
    z-index: 3000;
    font-weight: 800;
    text-shadow: 0 0 6px #0ff, 0 0 12px #0af;
    position: absolute;
    right: 20px;
}

nav a {
    margin: 0 18px;
    font-weight: 500;
    color: #e0ffff;
    text-shadow: 0 0 4px #00ffff;
    transition: all 0.25s ease;
    border-radius: 8px;
    box-shadow: 0 0 12px cyan;
    padding: 10px;
    display: inline-block;

}

nav a:hover {
    color: #0ff;
    text-shadow: 0 0 8px #0ff, 0 0 16px #0af;
    transform: scale(1.1);
}

.resume-btn {
    background: linear-gradient(135deg, #00ffff, #0af, #00f0ff);
    color: #000;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 10px #0ff, 0 0 25px #0af, 0 0 40px #00f0ff;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #0af, 0 0 60px #00f0ff;
}


/* ========== HERO SECTION ========== */
#hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 140px 10% 80px;
    background: radial-gradient(circle at top left, #0b1a2f 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3em;
    background: linear-gradient(90deg, #00ffff, #0af, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px #0ff, 0 0 12px #0af;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.hero-text h1:hover {
    text-shadow: 0 0 12px #00ffff, 0 0 25px #0af, 0 0 40px #00f0ff;
}

.hero-text p {
    font-size: 1.2em;
    opacity: 0.85;
    margin-bottom: 25px;
    text-shadow: 0 0 4px #0af;
}

.scroll-btn {
    background: linear-gradient(135deg, #00ffff, #0af, #00f0ff);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.15em;
    color: #000;
    cursor: pointer;
    box-shadow: 0 0 15px #0af, 0 0 25px #00ffff, 0 0 35px #0ff;
    transition: all 0.3s ease;
    font-weight: 600;
}

.scroll-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px #00ffff, 0 0 45px #0af, 0 0 60px #0ff;
}

.hero-img {
    flex: 0 0 auto;
    z-index: 2;
    position: relative;
}

.hero-img img {
    width: 280px;
    border-radius: 50%;
    box-shadow: 0 0 30px cyan, 0 0 50px #0ff, 0 0 80px #00f0ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 40px #0ff, 0 0 70px #0af, 0 0 100px #00f0ff;
}


/* ========== GALAXY SECTION ========== */
#galaxy {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#galaxyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#info {
    position: absolute;
    top: 90px;
    left: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 0 12px cyan;
}

#tooltip {
    position: absolute;
    padding: 8px 14px;
    background: rgba(0, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
    color: #e0ffff;
    font-weight: 600;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.25s ease-out,
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out;
    z-index: 100;
    text-shadow: 0 0 6px #00ffff;
}

/* ========== POPUP ========== */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(10, 25, 45, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 0 25px cyan;
    text-align: center;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);

}

#popup.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#popup h2 {
    margin-top: 0;
    color: cyan;
}

#popup img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

#popup p {
    line-height: 1.6;
    margin: 10px 0;
}

#popup a,
.visit-btn {
    display: inline-block;
    margin-top: 10px;
    background: cyan;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    color: black;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

#popup a:hover,
.visit-btn:hover {
    background: #00ffff;
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.3em;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
}

.close-btn:hover {
    color: cyan;
    transform: scale(1.2);
}

/* ========== PROJECTS SECTION ========== */
#projects {
    background: #090a0f;
    padding: 100px 10%;
    text-align: center;
}

#projects h2 {
    font-size: 2.4em;
    color: cyan;
    margin-bottom: 50px;
    text-shadow: 0 0 4px #00ffff;
    transition: all 0.25s ease;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(20, 25, 35, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px cyan;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.project-card h3 {
    color: cyan;
    margin-bottom: 8px;
}

/* ========== CONTACT SECTION ========== */
#contact {
    background: radial-gradient(circle at center, #0b1a2f 0%, #000 100%);
    padding: 100px 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Glow particle effect (optional) */
#contact::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: floatGlow 10s linear infinite;
    z-index: 0;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

#contact h2 {
    font-size: 2.6em;
    color: #00ffff;
    margin-bottom: 30px;
    text-shadow: 0 0 6px #00ffff, 0 0 12px #0af;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
}

#contact p {
    opacity: 0.85;
    margin-bottom: 40px;
    color: #aef;
    text-shadow: 0 0 4px #00ffff;
    position: relative;
    z-index: 1;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

input,
textarea {
    padding: 14px 18px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid #00ffff;
    border-radius: 12px;
    color: #e0ffff;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: #aef;
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 12px #00ffff, 0 0 25px #0af;
    border-color: #0af;
}

#contact button.visit-btn {
    background: linear-gradient(45deg, #00ffff, #0af, #00f0ff);
    color: black;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 12px #00ffff, 0 0 25px #0af, 0 0 40px #00f0ff;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

#contact button.visit-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #0af, 0 0 60px #00f0ff;
}


/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 30px 0;
    background: #000;
    color: #999;
    border-top: 1px solid #222;
}

.scroll-btn,
.resume-btn,
.visit-btn {
    background: rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border: 1px solid #00ffff;
    color: #e0ffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 4px #00ffff;
    transition: all 0.25s ease;
}

.scroll-btn:hover,
.resume-btn:hover,
.visit-btn:hover {
    background: rgba(0, 255, 255, 0.35);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #0af;
    transform: scale(1.05);
    animation: neon-glow 1.5s infinite alternate;

}
