/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: #fff;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

/* Underline Effect */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #00c6ff;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #00c6ff;
}

/* Sections */
section {
    padding: 80px 20px;
    text-align: center;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #00c6ff;
    margin: 10px auto;
}

/* About Section */
#about p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Projects */
.project {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 198, 255, 0.5);
}

.project h3 {
    color: #00c6ff;
}

/* Contact */
#contact p {
    font-size: 1.2rem;
}

#contact a {
    color: #00c6ff;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    position: relative;
    width: 100%;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    section {
        padding: 60px 20px;
    }
}
