/* === Global Reset & Layout === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0f;
    color: #fff;
}

/* === Hero Section === */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #0a0a0f; /* fallback */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: #fff;
}

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 1.5rem;
        max-width: 700px;
        margin: 0 auto 2rem;
    }

/* === Scroll Button === */
#scrollProjects {
    border-radius: 30px;
    font-size: 1.1rem;
    border: 2px solid #a855f7;
    color: #a855f7;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

    #scrollProjects:hover {
        background-color: #a855f7;
        color: #fff;
        border-color: #a855f7;
        transform: translateY(3px);
    }

/* Bounce animation */
@keyframes bounce {
    0%,20%,50%,80%,100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Navbar Styling */
.navbar {
    width: 100%;
    border-radius: 0;
    background-color: rgba(50, 50, 70, 0.95);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

    .navbar .navbar-nav {
        margin-left: auto;
    }

    .navbar .nav-link {
        color: #fff !important;
        font-size: 1.2rem;
        margin-left: 1rem;
        transition: color 0.3s;
    }

        .navbar .nav-link:hover {
            color: #a855f7 !important;
        }

/* === About Section === */
#about {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #1a1a2e;
    color: white;
    text-align: center;
}

    #about h2 {
        font-weight: 700;
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }

    #about p {
        max-width: 720px;
        margin: 0 auto 1.5rem;
        line-height: 1.7;
        letter-spacing: 0.5px;
        font-size: 1.1rem;
        color: #ddd;
    }

/* === Skills Section === */
#skills {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #1a1a2e;
    color: white;
    text-align: center;
}

.skill-badge {
    background-color: #6d5dfc;
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: default;
}

    .skill-badge:hover {
        background-color: #a855f7;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
    }

/* === Projects Section === */
#projects {
    padding-top: 3rem;
    padding-bottom: 6rem;
}

/* Project Highlight Card */
.project-highlight {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

    .project-highlight img {
        max-width: 600px;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .project-highlight img:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.7);
        }

.project-info {
    max-width: 400px;
    background-color: #1a1a2e;
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-info h5 {
        font-weight: 700;
        margin-bottom: 1rem;
        color: #fff;
    }

    .project-info p {
        margin-bottom: 1.5rem;
        color: #ddd;
    }

    /* Project Buttons */
    .project-info a {
        display: inline-block;
        padding: 0.5rem 1.2rem;
        border-radius: 50px;
        background-color: #6d5dfc;
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(109,93,252,0.4);
    }

        .project-info a:hover {
            background-color: #a855f7;
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 18px rgba(168,85,247,0.5);
        }

/* === Contact Section === */
#contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

    #contact a.btn {
        border-radius: 50px;
        transition: all 0.3s ease;
    }

/* === Responsive Hero Typography === */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .navbar .nav-link {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    #about p {
        font-size: 1rem;
    }

    /* Stack project on mobile */
    .project-highlight {
        flex-direction: column;
        text-align: center;
    }

    .project-info {
        text-align: center;
        max-width: 100%; 
        margin: 0 auto;
    }

    .project-highlight img {
        max-width: 100%;
        width: 100%;
    }

