* {
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f8f8f8;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* ================= MAIN ================= */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ================= HERO ================= */
.hero {
    margin-bottom: 4rem;
   
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
}

/* ================= PROJECTS ================= */
#projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0rem;
}
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 80px;
    justify-content: start;
    padding: 30px 60px 60px 60px;  /* was 135 and 20 px*/
    background: #f0f2f1;
    
    
}

.project-card {
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-id {
    font-size: 0.8rem;
    color: #888;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.project-tags {
    font-size: 0.8rem;
    color: #555;
}

.project-card .desc {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* link button */
.project-card .link {
    display: inline-block;
    padding: 10px 15px;
    background: #2d9246;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.project-card .link:hover {
    background: #1f6f36;
}

/* ================= SKILLS ================= */
.skills {
    background-color: rgba(45, 145, 71, 0.12);
    padding: 50px 0;
    margin-top: 50px;
    border-radius: 30px;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    background-color: white;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.skill-card img {
    width: 60px;
}

/* ================= PROGRESS / SCORE ================= */
.score-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
}

.progress-circle {
    --size: 100px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(closest-side, #f5f7f6 80%, transparent 0),
                conic-gradient(var(--color) calc(var(--score) * 1%), #e8f5e9 0);
    transition: transform 0.2s ease;
}

.progress-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color);
}

.score-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}

/* ================= FOOTER ================= */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    border-top: 1px solid #ddd;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links svg {
    fill: #555;
    transition: fill 0.2s;
}

.social-links a:hover svg {
    fill: #000;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}
.circle-text {
    position: absolute;
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.circle-text text {
    font-size: 8px;
    fill: #2d9246;
    letter-spacing: 3px;
    font-weight: bold;
}
.score-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
}

/* IMPORTANT: make circle relative container */
.progress-circle {
    --size: 100px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(closest-side, #f5f7f6 80%, transparent 0),
                conic-gradient(var(--color) calc(var(--score) * 1%), #e8f5e9 0);
    transition: transform 0.2s ease;

    position: relative;
}

/* Put SVG ABOVE the circle */
.circle-text {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    z-index: 2;
    pointer-events: none;
    shape-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

.circle-text text {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    fill: #2d9246;
}
/* Make sure score stays above background but below text */
.score-value {
    position: relative;
    z-index: 3;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 1088px) {
    #hero-container {
        flex-direction: column; /* Stacks the sections vertically */
        text-align: center;     /* Centers text for a cleaner mobile look */
        gap: 20px;              /* Reduces the gap for smaller screens */
    }

    .hero-img img {
        width: 100% !important; /* Makes the image responsive */
        max-width: 350px;       /* Keeps it from getting too huge on small tablets */
        box-shadow: 20px -10px #2d9246; /* Optional: Scale down the shadow for mobile */
    }

    .hero-title {
        font-size: 2rem;        /* Shrinks title so it doesn't overflow */
    }

    .hero-description {
        margin: 0 auto;         /* Centers the description block */
    }

    /* Centers your LinkedIn/GitHub icons on mobile */
    .hero div[style*="flex"] {
        justify-content: center;
    }
    /* --- HEADER FIXES --- */
    .nav {
        gap: 0.8rem;
    }
    /* Hide specific nav items to save space if needed */
    .nav-link {
        font-size: 0.9rem;
    }

    /* --- PROJECTS FIXES --- */
    /* --- PROJECTS STACKED --- */
    .projects {
        /* This forces exactly one column */
        grid-template-columns: 1fr; 
        
        /* Centers the single column of projects */
        justify-items: center; 
        
        /* Adds vertical space between the stacked projects */
        gap: 40px; 
       
        /* Ensure the background covers the full width */
        width: 100%;
        padding:  2.5rem 2rem 5.5rem 2rem;
    }

    .project-card {
        /* Prevents the card from becoming awkwardly wide on tablets */
        width: 100%;
        max-width: 350px; 
        margin: 0 auto;
        /* 7. Reset any potential floats or absolute positioning */
        position: relative;
    }

    /* --- SKILLS FIXES --- */
    .skills {
        padding: 40px 20px;
        margin: 20px; /* Gives the light green box some breathing room from screen edge */
    }

    .skills-container {
        flex-wrap: wrap; /* CRITICAL: Allows cards to wrap to next line */
        justify-content: center;
        gap: 15px;
    }

    .skill-card {
        width: 100px; /* Slightly smaller icons for mobile */
        height: 100px;
    }
}
/* Extra small screens (Phones) */
@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

}
