/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 15px 50px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #0a84ff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #0a84ff;
}

/* About Section */
.about {
    padding: 80px 10%;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #0a84ff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-pic:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}


.about-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-text p {
    max-width: 550px;
    font-size: 16px;
    line-height: 1.8;
}

/* Projects Section */
.projects {
    padding: 80px 10%;
    text-align: center;
}

.projects h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.project-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 15px;
    border-radius: 6px;
    background: #0a84ff;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.project-btn:hover {
    background: #006edc;
}

/* Skills Section */
.skills {
    padding: 80px 10%;
}

.skills h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    font-weight: 600;
}

.bar {
    width: 100%;
    height: 12px;
    background: #e6e6e6;
    border-radius: 10px;
    margin-top: 5px;
}

.fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #0a84ff, #33c4ff);
    animation: fillBar 2s ease forwards;
    width: 0; /* start from 0, animate to final width */
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--fill-width); } /* set width dynamically with inline style */
}

/* Contact Section */
.contact {
    padding: 80px 10%;
    text-align: center;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    font-size: 24px;
    color: #0a84ff;
    transition: 0.3s;
}

.socials a:hover {
    color: #006edc;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: #ffffff;
    margin-top: 30px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
}
