* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header Styles */
header {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #9333ea;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(147, 51, 234, 0.3);
}

#main-heading {
    text-align: center;
    padding: 2rem 0;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #9333ea, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.8)); }
}

#main-nav {
    background: rgba(30, 30, 30, 0.8);
    padding: 1rem 0;
}

#main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

#main-nav li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#main-nav li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
    transition: left 0.5s;
}

#main-nav li:hover::before {
    left: 100%;
}

#main-nav li:hover {
    border-color: #9333ea;
    color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.4);
}

/* Main Section */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2 {
    font-size: 2.5rem;
    color: #9333ea;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #ec4899);
    border-radius: 2px;
}

h3 {
    color: #ec4899;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    position: relative;
    display: inline-block;
}

h3::before {
    content: '> ';
    color: #9333ea;
    font-weight: bold;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    background: rgba(40, 40, 40, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #9333ea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

em {
    color: #ec4899;
    font-style: italic;
    font-weight: bold;
}

a {
    color: #3b82f6;
    text-decoration: none;
    position: relative;
    font-weight: bold;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #60a5fa;
}

/* Projects List */
section ul {
    list-style: none;
    margin: 2rem 0;
}

section li {
    background: rgba(50, 50, 50, 0.4);
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

section li::before {
    content: '◆';
    color: #9333ea;
    font-weight: bold;
    margin-right: 1rem;
}

section li:hover {
    transform: translateX(10px);
    border-color: #9333ea;
    box-shadow: 0 5px 25px rgba(147, 51, 234, 0.3);
    background: rgba(60, 60, 60, 0.6);
}

section li:hover::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #9333ea;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Footer */
footer {
    background: rgba(20, 20, 20, 0.95);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid #9333ea;
    margin-top: 4rem;
}

footer p {
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    color: #888;
    font-size: 0.9rem;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-heading {
        font-size: 2rem;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #9333ea, #ec4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #a855f7, #f472b6);
}