* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: #030908;
    color: #fff;
}

nav {
    background-color: rgba(51, 51, 51, 0.9);
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00ff88;
}

#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(3, 9, 8, 0.8), rgba(3, 9, 8, 0.9)), url('https://f.hubspotusercontent40.net/hubfs/4650993/New_Avast_Academy/Hackers/Hacker-Thumb-a1.png') no-repeat center center/cover;
}

.intro {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.intro h1 {
    font-size: 50px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00ff88, #00a1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.intro img {
    max-width: 200px;
    border-radius: 50%;
    margin: 20px 0;
    border: 3px solid #00ff88;
}

.social-links {
    margin: 20px 0;
}

.social-icon {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #00ff88;
}

.intro .btn {
    background: linear-gradient(90deg, #00ff88, #00a1ff);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.intro .btn:hover {
    transform: translateY(-3px);
}

#about {
    padding: 100px 20px;
    background-color: #0a1f1c;
}

.about-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.about-content img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    border: 3px solid #00ff88;
}

.about-content p {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
}

#skills {
    padding: 100px 20px;
    background-color: #030908;
}

h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    color: #fff;
}

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 20px;
}

.skill-category {
    background: #0a1f1c;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #fff;
}

.percentage {
    color: #00a1ff;
}

.skill-bar {
    background: #1a2928;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00a1ff);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

#portfolio {
    padding: 100px 20px;
    background-color: #0a1f1c;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.project {
    background: #030908;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.project:hover {
    transform: translateY(-5px);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project h3 {
    padding: 20px;
    color: #fff;
    font-size: 1.2rem;
    background: rgba(3, 9, 8, 0.9);
    margin: 0;
}

#contact {
    padding: 100px 20px;
    background-color: #030908;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #0a1f1c;
    border: 1px solid #1a2928;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #00ff88;
    outline: none;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    background: linear-gradient(90deg, #00ff88, #00a1ff);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-top: 20px;
}

#contact-form button:hover {
    transform: translateY(-3px);
}

footer {
    background-color: #0a1f1c;
    color: #888;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

footer .social-links {
    margin-bottom: 20px;
}

footer .social-icon {
    font-size: 24px;
    margin: 0 15px;
}

/* Animation Classes */
.animate-skill {
    animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 40px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content p {
        margin-top: 20px;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    nav ul li {
        margin: 0 10px;
    }

    .intro p {
        font-size: 18px;
    }

    .skill-category {
        margin: 10px;
    }

    #contact-form {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 32px;
    }

    nav ul li {
        margin: 0 5px;
        font-size: 14px;
    }

    .project h3 {
        font-size: 1rem;
    }

    .social-icon {
        font-size: 20px;
        margin: 0 8px;
    }
}
