body {
    font-family: sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #f4f4f4;
    line-height: 1.6;
}

/* HEADER */
header {
    background-color: #222;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* NAVBAR - FIXED JUSTIFY CONTENT */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* NAV LINKS - IMPROVED SPACING */
nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly; /* ✅ equal spacing */
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* MAIN */
main {
    padding-top: 80px;
}

/* SECTIONS */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

/* ABOUT */
#about {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* PROFILE IMAGE */
.profile-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00bcd4;
}

/* SOCIAL LINKS */
.social-links a {
    color: #f4f4f4;
    font-size: 2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00bcd4;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #00bcd4;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: #008c9e;
}

/* SKILLS */
#skills h3 {
    color: #00bcd4;
    margin-top: 30px;
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0 30px;
}

.skill-item {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    background-color: #333;
}

/* PROJECTS - IMPROVED CARD DESIGN */
.project-card {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

/* EDUCATION */
.education-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.education-item:hover {
    transform: translateY(-3px);
}

.education-item h3 {
    margin-top: 0;
    color: #00bcd4;
}

/* CONTACT FORM */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 30px auto;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #333;
    color: #f4f4f4;
}

#contact-form button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #00bcd4;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

#contact-form button:hover {
    background-color: #008c9e;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }
}