body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #fafafa;
    color: #222;
    line-height: 1.4;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 5vw;
    background: #3a6ea5;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Glowing Logo */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #f5ba31;
    text-shadow:
      0 0 10px #f5ba31,
      0 0 20px #f5ba31aa,
      0 0 30px #f5ba3188;
    animation: glowLogo 2s infinite alternate;
}
@keyframes glowLogo {
    from {
        text-shadow:
          0 0 10px #f5ba31,
          0 0 20px #f5ba31aa,
          0 0 30px #f5ba3188;
    }
    to {
        text-shadow:
          0 0 20px #fff100,
          0 0 40px #fff100,
          0 0 60px #fff10044;
    }
}

nav ul.nav-list {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul.nav-list li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 0.7em;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
nav ul.nav-list li a:hover {
    background: #f5ba31;
    color: #fff;
    transform: scale(1.1) rotate(-1deg);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4vw 5vw 2vw 5vw;
    background: white;
    gap: 2vw;
}
.hero-text {
    flex: 1 1 400px;
    animation: fadeInUp 1.2s;
}
.hero-text h1 {
    font-size: 2.5rem;
    color: #3a6ea5;
    margin-bottom: 0.6em;
}
.hero-text p {
    font-size: 1.3rem;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px);}
    100% { opacity: 1; transform: translateY(0);}
}
.hero-image {
    flex: 1 1 250px;
    display: flex;
    justify-content: center;
}
.hero-image img {
    width: 15vw;
    min-width: 150px;
    max-width: 270px;
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    animation: popIn 1s cubic-bezier(.42,.54,.57,1.4);
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.7);}
    80% { opacity: 0.95; transform: scale(1.07);}
    100% { opacity: 1; transform: scale(1);}
}

/* About */
#about {
    padding: 3rem 5vw;
    background: #fafafa;
}
#about h2,
#skills h2,
#projects h2,
#contact h2 {
    text-align: center;
}
#about ul {
    margin-top: 1em;
    padding-left: 2em;
}
#about li {
    font-size: 1.1rem;
    margin-bottom: 0.7em;
}

/* Skills Grid - centered section and content */
#skills {
    text-align: center;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2em;
    padding: 3rem 5vw;
    background: white;
    justify-items: center;
    text-align: center;
}
.skill-card {
    background: #f5ba31;
    color: #fff;
    width: 180px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.2em;
    border-radius: 0.7em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 1em;
    transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

/* Projects Grid - centered section and content */
#projects {
    text-align: center;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    padding: 3rem 5vw;
    background: #fafafa;
    justify-items: center;
    text-align: center;
}
.project-card {
    background: white;
    border-radius: 0.7em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.3em;
    text-align: center;
    transition: transform 0.5s, box-shadow 0.2s;
}
.project-card:hover {
    transform: scale(1.04) rotate(-1.5deg);
    box-shadow: 0 12px 22px rgba(58,110,165,0.18);
}
.project-card img {
    width: 100%;
    max-width: 180px;
    border-radius: 0.7em;
    margin-bottom: 1em;
}
.project-card h3 {
    color: #3a6ea5;
    margin-bottom: 0.3em;
}
.project-card p {
    font-size: 1rem;
    color: #333;
}

/* Contact Form */
#contact {
    padding: 3rem 5vw;
    background: #fff;
    text-align: center;
}
#contact form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #fafafa;
    padding: 2em;
    border-radius: 0.7em;
    box-shadow: 0 1px 7px rgba(0,0,0,0.06);
}
#name, #email, #message {
    width: 100%;
    font-size: 1.1em;
    padding: 0.6em 1em;
    margin-bottom: 1.2em;
    border: 1px solid #ddd;
    border-radius: 0.7em;
}
button[type="submit"] {
    font-size: 1.2em;
    background: #3a6ea5;
    color: #fff;
    padding: 0.7em 2em;
    border: none;
    border-radius: 0.7em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
button[type="submit"]:hover {
    background: #f5ba31;
    transform: scale(1.06);
}

/* Footer */
footer {
    padding: 2em 5vw;
    text-align: center;
    background: #3a6ea5;
    color: white;
    font-size: 1.2em;
    margin-top: 2em;
    position: relative;
}
footer a {
    color: #f5ba31;
    text-decoration: underline;
    margin: 0 0.5em;
    transition: color 0.2s;
}
footer a:hover {
    color: white;
}
.back-to-top-link {
    display: inline-block;
    margin-top: 1em;
    background: #f5ba31;
    color: white;
    padding: 0.5em 1em;
    border-radius: 0.7em;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.back-to-top-link:hover {
    background: #222;
    color: #fff;
    transform: translateY(-5px);
}

/* Responsive Design: Media Queries */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-image img {
        width: 40vw;
        max-width: 200px;
    }
    header {
        flex-direction: column;
        gap: 1em;
        padding: 1.5rem 2vw;
    }
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
        justify-items: center;
    }
}

@media (max-width: 570px) {
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 1em;
        padding: 2rem 1vw;
        justify-items: center;
    }
    header {
        padding: 1rem 1vw;
    }
    nav ul.nav-list {
        gap: 1em;
        font-size: 1rem;
    }
    .hero-section {
        padding: 2em 1vw;
    }
    #contact form {
        padding: 1em;
    }
    footer {
        padding: 1em 1vw;
        font-size: 1em;
    }
}
