/* GENERAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e0e0e0;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #020617;
    flex-wrap: wrap;
}

nav h2 {
    color: #38bdf8;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

nav ul li {
    margin-left: 15px;
}

nav button {
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
}

nav button:hover {
    text-decoration: underline;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-container {
    max-width: 700px;
    margin: auto;
}

.profile-pic {
    width: 200px;        /* fixed width */
    height: 200px;       /* fixed height to make it square */
    border-radius: 50%;  /* makes it circular */
    object-fit: cover;   /* ensures image covers circle without stretching */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* CONTENT SECTIONS */
.content-section {
    padding: 40px 20px;
}

.content-section h2 {
    text-align: center;
    color: #38bdf8;
    margin-bottom: 30px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10%;
}

.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    text-align: left; /* left-aligned content */
}

.card h3 {
    margin-top: 0;
    color: #38bdf8;
}

.card .desc {
    margin-top: 10px;
    line-height: 1.5;
}

/* BUTTON */
.btn {
    background: #38bdf8;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
    color: white;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* HIDE SECTIONS */
.hidden-section {
    display: none;
}

.section-active {
    display: block;
}

/* Already existing styles remain... */

/* PROJECTS */
#projects .grid .card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

#projects .card h3 {
    color: #38bdf8;
    margin-top: 0;
}

#projects .card .desc {
    margin-top: 10px;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        justify-content: center;
    }

    nav ul li {
        margin-left: 10px;
    }

    .grid {
        padding: 0 5%;
    }

    h1 {
        font-size: 1.8em;
    }

    h3, .intro {
        font-size: 1em;
    }
}