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

/* Body and Background */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

nav .logo {
    font-weight: 700;
    font-size: 1.8em;
    color: #00ffea;
    text-shadow: 0 0 10px #00ffea;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00ffea;
    text-shadow: 0 0 10px #00ffea;
}

/* Hero Section */
header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    position: relative;
}

/* Hero Text */
.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: #00ffea;
    text-shadow: 0 0 15px #00ffea, 0 0 30px #00ffea;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 0 0 10px #00ffea;
}

.hero .btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1.2em;
    color: #00ffea;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.5);
}

.hero .btn:hover {
    background: #00ffea;
    color: #0d0d0d;
    transform: scale(1.05);
}

/* About Section */
#about {
    padding: 60px 20px;
    background-color: #111;
    text-align: center;
}

#about .profile-photo {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Projects Section */
#projects {
    padding: 60px 20px;
    background-color: #222;
    text-align: center;
}

#projects .project {
    display: inline-block;
    width: calc(100% - 40px);
    max-width: 300px;
    margin: 15px;
    padding: 15px;
    background-color: #333;
    border-radius: 10px;
}

#projects .project-logo {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
}

/* Features Section */
#features {
    padding: 60px 20px;
    background-color: #0d0d0d;
    text-align: center;
}

#features h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00ffea;
    text-shadow: 0 0 10px #00ffea;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin: 15px;
    width: calc(100% - 40px);
    max-width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.5);
}

.feature-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background-color: #111;
    text-align: center;
}

#contact a {
    color: #00ffea;
    text-decoration: none;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #222;
    color: #e0e0e0;
    text-align: center;
}

footer a {
    color: #00ffea;
    text-decoration: none;
}

/* Cyberpunk Rays */
.ray-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ray {
    position: absolute;
    width: 300%;
    height: 300%;
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: screen;
}

.ray.purple {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.8) 0%, transparent 100%);
    animation: move-purple 10s linear infinite;
}

.ray.blue {
    background: linear-gradient(-90deg, rgba(0, 191, 255, 0.8) 0%, transparent 100%);
    animation: move-blue 10s linear infinite;
}

@keyframes move-purple {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes move-blue {
    0% { transform: translateX(100%) rotate(-45deg); }
    100% { transform: translateX(-100%) rotate(-45deg); }
}

/* Sparkles */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    animation: sparkle-animation 2s linear infinite;
    opacity: 0.8;
    mix-blend-mode: screen;
}

@keyframes sparkle-animation {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero .btn {
        font-size: 1em;
    }

    .features-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    nav .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero .btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    .feature, #projects .project {
        width: 90%;
    }
}
