/* Base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-color: #070707;
    color: #ffdada;
}

main {
    flex: 1; /* main content takes all available space */
}

a {
    color: #38bdf8; /* main link color */
    text-decoration: underline; /* optional */
    transition: color 0.3s;
}

a:hover {
    color: #7dd3fc; /* hover color */
}

/* Navigation */
nav {
    background: #070707;
    box-shadow: 0 2px 8px rgba(238, 234, 234, 0.1);
    padding: 1rem 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 6rem 1rem;
}

.profile-wrapper {
    width: 200px;
    height: 170px; /* cropped oval */
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0.5rem 0 1rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0077ff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #005bb5;
}

/* About Section */
#about {
    padding: 4rem 1rem;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

#about h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

/* Projects Section */
#projects {
    padding: 4rem 1rem;
}

#projects h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #070707;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(255, 253, 253, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.project-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 1rem 0 0.5rem;
}

.project-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

.tech-icons {
    margin: 0.5rem 0;
}

.tech-icons span {
    background: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Currently Working On Section */
#working-on {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#working-on h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.working-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.working-card {
    background: #070707;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.working-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(255, 253, 253, 0.15);
}

.working-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 0.5rem;
}

.working-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

.working-card .tech-icons {
    margin-top: 0.5rem;
}

.working-card .tech-icons span {
    background: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #222;
    color: white;
    margin-top: auto; /* keeps footer at bottom */
    font-size: 0.9rem;
}

/* Contact */
#contact {
    margin-top: 2%;
    margin-left: 2%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    #hero {
        padding: 4rem 1rem;
    }

    .profile-wrapper {
        width: 150px;
        height: 130px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 1600px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}
