/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Navigation */
header {
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.logo {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-initials {
    display: none;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #333;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span + span {
    margin-top: 0.3rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Sections */
section {
    padding: 5rem 10%;
}

h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #222;
}

/* About Section */
#about {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 3rem; 
    background-color: #fff;
    flex-wrap: wrap-reverse; 
}

.about-content {
    flex: 1; 
    min-width: 300px;
}

#about h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

#about h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

/* Image Styling */
.about-image img {
    max-width: 100%;
    width: 350px; 
    height: auto;
    border-radius: 50%; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: cover; 
    aspect-ratio: 1 / 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 0.5rem;
    margin-top: 1rem;
}

/* Grid Layout for Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card, .job-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 10%;
    background-color: #222;
    color: #fff;
}

.social-links a {
    color: #4da6ff;
    text-decoration: none;
    margin: 0 1rem;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.25rem;
    }

    .logo-full {
        display: none;
    }

    .logo-initials {
        display: inline;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .nav-links {
        display: none;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0 0;
        background: #fff;
        box-shadow: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-links li + li {
        margin-top: 0.75rem;
    }

    .nav-open .nav-links {
        display: flex;
    }

    .nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(0.4rem) rotate(45deg);
    }

    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-0.4rem) rotate(-45deg);
    }
}