* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* 🌈 Animated Background */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #ff6ec4, #7873f5, #42e695);
    background-size: 600% 600%;
    animation: gradientMove 10s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Header */
header {
    text-align: center;
    padding: 40px;
    color: white;
}

header h1 {
    font-size: 40px;
}

header p {
    font-size: 18px;
}

/* Navbar */
nav {
    text-align: center;
    padding: 15px;
}

nav a {
    margin: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: yellow;
}

/* Cards */
.card {
    margin: 20px auto;
    padding: 25px;
    width: 85%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.02);
}

/* Projects */
.project {
    margin-top: 15px;
    padding: 10px;
    border-left: 4px solid yellow;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    color: white;
}
/* ✨ Floating Particles */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -1;
}

.particles span {
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.6;
    border-radius: 50%;
    animation: move 10s linear infinite;
}

/* 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: 6s; }
.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: 7s; }
.particles span:nth-child(8) { left: 80%; animation-duration: 13s; }

/* Animation */
@keyframes move {
    0% {
        top: 100%;
        transform: translateX(0);
    }
    100% {
        top: -10%;
        transform: translateX(50px);
    }
}
/* ✍️ Typing Effect */
.typing span::before {
    content: "Aspiring Software Developer";
    animation: words 12s infinite;
}

.typing span::after {
    content: "";
    border-right: 2px solid white;
    margin-left: 5px;
    animation: cursor 0.6s infinite;
}

/* Change text automatically */
@keyframes words {
    0% { content: "Aspiring Software Developer"; }
    33% { content: "AI & DSA Enthusiast"; }
    66% { content: "Problem Solver"; }
    100% { content: "Lifelong Learner"; }
}

/* Blinking cursor */
@keyframes cursor {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
/* 🌈 Gradient Animated Text */
.gradient-text {
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(270deg, #ff6ec4, #7873f5, #42e695, #ffcc70);
    background-size: 600% 600%;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: gradientMoveText 6s ease infinite;
}

/* Animation */
@keyframes gradientMoveText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-text {
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
/* 📦 Projects Grid */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 💎 Project Card */ 
.project-card {
    width: 280px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: white;
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

/* ✨ Glow Border Effect */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, #ff6ec4, #7873f5, #42e695);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* 🚀 Hover Effect */
.project-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 0 20px #ff6ec4,
        0 0 40px #7873f5,
        0 0 60px #42e695;
}

/* Title */
.project-card h3 {
    margin-bottom: 10px;
}

/* Text */
.project-card p {
    font-size: 14px;
}
/* 📱 Mobile Responsive Design */
@media (max-width: 768px) {

    /* Header */
    header h1 {
        font-size: 28px;
    }

    .gradient-text {
        font-size: 30px;
    }

    header p {
        font-size: 14px;
    }

    /* Profile Image */
    .profile-pic {
        width: 110px;
        height: 110px;
    }

    /* Navbar */
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        display: inline-block;
        margin: 5px;
        font-size: 14px;
    }

    /* Cards */
    .card {
        width: 95%;
        padding: 15px;
    }

    /* Projects */
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
    }
}