/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff;
    --background-color: #ffffff;
    --text-color: #343a40;
    --card-bg-color: #ffffff;
    --dark-bg-color: #2c3e50;
    --light-text-color: #ecf0f1;
    --section-heading-color: #0056b3;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--section-heading-color);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section {
    padding: 100px 10%;
    border-top: 1px solid var(--border-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus {
    background-color: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--dark-bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--primary-color);
    outline: none;
}

.hamburger-menu {
    display: none;
    font-size: 2rem;
    color: var(--light-text-color);
    cursor: pointer;
}

/* --- Home Section --- */
#home {
    display: flex;
    
    align-items: center;
    justify-content: center;
    text-align: center;
    
    
    
    
    
}
.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 900px;
    
}

.home-profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.home-content h1 {
    font-size: 4.5rem;
    margin-top: 15px;
    color: var(--dark-bg-color);
}

.home-content .subtitle {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
}

.home-content .subtitle::after {
    display: none;
}

.home-content p {
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 1.15rem;
    color: var(--text-color);
}




/* --- About Section --- */
#about {
    background: var(--background-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: justify;
}

.profile-pic {
    min-width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Skills Section --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-card:hover,
.skill-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Projects & Certificates Section --- */
.projects-container,
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover,
.card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.card p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 15px;
}

.project-tech {
    margin: 15px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background-color: #e9ecef;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.project-links a:hover,
.project-links a:focus {
    color: var(--section-heading-color);
    outline: none;
}

.cert-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.cert-card p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.cert-card a {
    margin-top: auto;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.cert-card a:hover,
.cert-card a:focus {
    color: var(--section-heading-color);
    outline: none;
}

.cert-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Contact Section --- */
#contact {
    text-align: center;
    background-color: var(--background-color);
    padding: 80px 10%;
    border-top: 1px solid var(--border-color);
}

#contact h2 {
    color: var(--dark-bg-color);
}

#contact p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    color: var(--text-color);
}

.contact-form {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.contact-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    cursor: pointer;
}

.contact-form .btn svg {
    margin-left: 10px;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 40px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-name {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.copyright-text {
    font-size: 0.9rem;
    color: #aab2b8;
    margin: 0;
}

/* --- Social Links (Used in Home and Footer) --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Styling for social links in the #home section (light background) */
#home .social-links {
    margin: 25px 0;
}

#home .social-links a {
    color: #333333;
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

#home .social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Styling for social links in the footer (dark background) */
footer .social-links {
    margin: 0;
}

footer .social-links a {
    color: var(--light-text-color);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover,
footer .social-links a:focus {
    color: var(--primary-color);
    transform: scale(1.15);
    outline: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animated-skill {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delays for up to 16 skills */
.skills-container .animated-skill {
    /* Base animation properties */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Simple loop-like delay assignment using individual properties */
.skills-container .animated-skill:nth-child(1) { animation-delay: 0.1s; }
.skills-container .animated-skill:nth-child(2) { animation-delay: 0.2s; }
.skills-container .animated-skill:nth-child(3) { animation-delay: 0.3s; }
.skills-container .animated-skill:nth-child(4) { animation-delay: 0.4s; }
.skills-container .animated-skill:nth-child(5) { animation-delay: 0.5s; }
.skills-container .animated-skill:nth-child(6) { animation-delay: 0.6s; }
.skills-container .animated-skill:nth-child(7) { animation-delay: 0.7s; }
.skills-container .animated-skill:nth-child(8) { animation-delay: 0.8s; }
.skills-container .animated-skill:nth-child(9) { animation-delay: 0.9s; }
.skills-container .animated-skill:nth-child(10) { animation-delay: 1.0s; }
.skills-container .animated-skill:nth-child(11) { animation-delay: 1.1s; }
.skills-container .animated-skill:nth-child(12) { animation-delay: 1.2s; }
.skills-container .animated-skill:nth-child(13) { animation-delay: 1.3s; }
.skills-container .animated-skill:nth-child(14) { animation-delay: 1.4s; }
.skills-container .animated-skill:nth-child(15) { animation-delay: 1.5s; }
.skills-container .animated-skill:nth-child(16) { animation-delay: 1.6s; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section {
        padding: 80px 5%;
    }
    nav {
        padding-left: 5%;
        padding-right: 5%;
    }
    .nav-links {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    h2::after {
        width: 60px;
    }
    .home-content h1 {
        font-size: 3rem;
    }
    .home-content .subtitle {
        font-size: 1.8rem;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .about-content p {
        text-align: center;
    }
    .profile-pic {
        width: 200px;
        height: 200px;
        min-width: 200px;
    }
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .skill-card {
        padding: 25px;
        font-size: 1rem;
    }
    .skill-card i {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .projects-container,
    .certificates-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .home-content {
        padding: 20px;
    }
    .home-content h1 {
        font-size: 2.5rem;
    }
    .home-content .subtitle {
        font-size: 1.4rem;
    }
    .home-content p {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .home-profile-pic,
    .profile-pic {
        width: 150px;
        height: 150px;
        min-width: 150px;
        border-width: 4px;
    }
    .project-card h3 {
        font-size: 1.4rem;
    }
    footer {
        font-size: 0.9rem;
    }
    .cert-card {
        padding: 20px;
    }
    .cert-image {
        margin-bottom: 10px;
    }
}
