/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Background Glow */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #1e3a8a, #020617);
    z-index: -1;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
}

.gradient-text {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

header p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Navbar */
nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
}

nav a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* Section Cards */
.card {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 15px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    margin-bottom: 15px;
    color: #38bdf8;
}

/* Skills */
#skills ul {
    list-style: none;
}

#skills li {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 8px;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    padding: 15px;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.5);
    transition: 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    background: rgba(71, 85, 105, 0.7);
}

.project-card h3 {
    margin-bottom: 10px;
    color: #a78bfa;
}

/* Contact */
#contact p {
    margin-bottom: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #94a3b8;
}

/* Floating Particles */
.particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    animation: float 10s linear infinite;
    opacity: 0.6;
}

/* Random positions */
.particles span:nth-child(1) { left: 10%; animation-duration: 8s; }
.particles span:nth-child(2) { left: 20%; animation-duration: 12s; }
.particles span:nth-child(3) { left: 30%; animation-duration: 10s; }
.particles span:nth-child(4) { left: 40%; animation-duration: 14s; }
.particles span:nth-child(5) { left: 50%; animation-duration: 9s; }
.particles span:nth-child(6) { left: 60%; animation-duration: 11s; }
.particles span:nth-child(7) { left: 70%; animation-duration: 13s; }
.particles span:nth-child(8) { left: 80%; animation-duration: 10s; }

@keyframes float {
    0% {
        bottom: -10px;
        transform: translateX(0);
    }
    100% {
        bottom: 100%;
        transform: translateX(50px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .gradient-text {
        font-size: 2rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 10px;
    }
}