/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #0d0d0d 25%, #1a0033 50%, #2d004d 75%, #000000 100%);
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 128, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #cc0066 0%, #cc3300 25%, #cc6600 50%, #cc9900 75%, #cccc00 100%);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #cc0066;
    box-shadow:
        0 0 15px rgba(204, 0, 102, 0.4),
        0 0 30px rgba(204, 51, 0, 0.3),
        0 0 45px rgba(204, 102, 0, 0.2);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    font-weight: 600;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.4s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px) scale(1.02);
    text-shadow:
        0 0 8px rgba(255, 255, 255, 1),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #000000 0%, #1a0033 30%, #2d004d 60%, #000000 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 0, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
}

#hero h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00, #80ff00, #00ff80, #0080ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 4s ease-in-out infinite;
    text-shadow:
        0 0 20px rgba(255, 0, 128, 0.8),
        0 0 40px rgba(255, 64, 0, 0.6),
        0 0 60px rgba(255, 128, 0, 0.4);
}

@keyframes rainbowText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 0, 128, 0.8),
        0 0 45px rgba(255, 64, 0, 0.6);
}

/* Button Styles */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00);
    background-size: 300% 300%;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid transparent;
    box-shadow:
        0 0 20px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(255, 64, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow:
        0 0 40px rgba(255, 0, 128, 1),
        0 0 80px rgba(255, 64, 0, 0.8),
        inset 0 0 40px rgba(255, 255, 0, 0.4);
    background-position: 100% 50%;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00, transparent);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
}

section h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sectionTitle 5s ease-in-out infinite;
    text-shadow:
        0 0 20px rgba(255, 0, 128, 0.8),
        0 0 40px rgba(255, 64, 0, 0.6),
        0 0 60px rgba(255, 128, 0, 0.4);
}

@keyframes sectionTitle {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

section p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* About Section */
#about {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #2d004d 100%);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 0, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project {
    background: linear-gradient(135deg, #1a0033 0%, #2d004d 50%, #400066 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(255, 0, 128, 0.4),
        0 0 60px rgba(255, 64, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 0, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
}

.project:hover::before {
    transform: scaleX(1);
}

.project:hover {
    transform: translateY(-15px) scale(1.05) rotate(1deg);
    box-shadow:
        0 0 50px rgba(255, 0, 128, 0.8),
        0 0 100px rgba(255, 64, 0, 0.6),
        0 0 150px rgba(255, 128, 0, 0.4),
        inset 0 0 50px rgba(255, 255, 0, 0.2);
    border-color: rgba(255, 0, 128, 0.8);
}

.project h3 {
    color: #ffff00;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow:
        0 0 15px rgba(255, 255, 0, 1),
        0 0 30px rgba(255, 255, 0, 0.8);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill {
    text-align: center;
    background: linear-gradient(135deg, #1a0033 0%, #2d004d 50%, #400066 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 128, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
}

.skill:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow:
        0 0 50px rgba(0, 255, 255, 0.8),
        0 0 100px rgba(0, 255, 128, 0.6),
        0 0 150px rgba(128, 255, 0, 0.4),
        inset 0 0 50px rgba(255, 255, 0, 0.2);
    border-color: rgba(0, 255, 255, 0.8);
}

.skill h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow:
        0 0 15px rgba(0, 255, 255, 1),
        0 0 30px rgba(0, 255, 255, 0.8);
}

.skill ul {
    list-style: none;
    padding: 0;
}

.skill li {
    background: linear-gradient(45deg, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00);
    background-size: 200% 200%;
    color: white;
    padding: 10px 18px;
    margin: 6px 0;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.4s ease;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: skillItem 4s ease-in-out infinite;
}

@keyframes skillItem {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.skill li:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow:
        0 0 20px rgba(255, 0, 128, 0.8),
        0 0 40px rgba(255, 64, 0, 0.6);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #2d004d 100%);
    color: white;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.2) 0%, transparent 60%),
        linear-gradient(45deg, rgba(255, 0, 128, 0.1) 0%, transparent 50%, rgba(0, 255, 255, 0.1) 100%);
}

#contact form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

#contact input,
#contact textarea {
    padding: 18px;
    border: 2px solid rgba(255, 0, 128, 0.4);
    border-radius: 15px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow:
        0 0 30px rgba(255, 0, 128, 0.8),
        0 0 60px rgba(255, 64, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact textarea {
    height: 180px;
    resize: vertical;
}

#contact button {
    align-self: flex-start;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #2d004d 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    border-top: 3px solid #ff0080;
    position: relative;
    box-shadow: inset 0 0 50px rgba(255, 0, 128, 0.3);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0080, #ff4000, #ff8000, #ffb000, #ffff00);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.8);
}

/* Mouse Trail Styles */
.trail {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 1.5s ease-out forwards;
    box-shadow: 0 0 15px currentColor;
}

.trail:nth-child(odd) {
    background: linear-gradient(45deg, #ff0080, #ff4000);
    color: #ff0080;
    box-shadow:
        0 0 15px rgba(255, 0, 128, 1),
        0 0 30px rgba(255, 0, 128, 0.8),
        0 0 45px rgba(255, 0, 128, 0.6);
}

.trail:nth-child(even) {
    background: linear-gradient(45deg, #ffb000, #ffff00);
    color: #ffff00;
    box-shadow:
        0 0 15px rgba(255, 176, 0, 1),
        0 0 30px rgba(255, 176, 0, 0.8),
        0 0 45px rgba(255, 176, 0, 0.6);
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5) rotate(180deg);
        filter: brightness(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
        filter: brightness(0.5);
    }
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
        filter: brightness(1.2);
    }
}

.project:hover,
.skill:hover {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    .project-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project,
    .skill {
        margin: 0 1rem;
        padding: 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}
