/* ======== Base Styles ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ======== Layout ======== */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Desktop) */
.sidebar {
    background-color: #1f2937;
    color: #f9fafb;
    width: 260px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: fixed;
    height: 100vh;
}

.sidebar img.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f9fafb;
    margin-bottom: 1rem;
}

.sidebar h1 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.sidebar p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.sidebar nav a {
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sidebar nav a:hover {
    color: #60a5fa;
}

/* ======== Mobile Header ======== */
.mobile-header {
    display: none;
    text-align: center;
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem 1rem;
}

.mobile-header img.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f9fafb;
}

.mobile-header h1 {
    font-size: 1.4rem;
    margin-top: 0.75rem;
}

.mobile-header p {
    color: #d1d5db;
}

.mobile-header nav ul {
    margin-top: 1rem;
    list-style: none;
}

.mobile-header nav li {
    display: inline-block;
    margin: 0.5rem;
}

.mobile-header nav a {
    text-decoration: none;
    color: #f9fafb;
    font-weight: 500;
}

.mobile-header nav a:hover {
    color: #93c5fd;
}

/* ======== Main Content ======== */
.main-content {
    flex: 1;
    padding: 3rem 2rem;
    margin-left: 260px;
    max-width: 1000px;
    text-align: justify;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

section h3 {
    margin-top: 1.5rem;
    color: #374151;
}

section h4 {
    margin-top: 0.75rem;
    color: #111827;
}

p, li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

ul {
    padding-left: 1.5rem;
}

.project {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.project:hover {
    background: #e0f2fe;
    transform: translateY(-2px);
}

.project a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.project a:hover {
    text-decoration: underline;
}

/* ======== Contact Section ======== */
#contact a {
    color: #2563eb;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* ======== Footer ======== */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1f2937;
    color: #d1d5db;
    font-size: 0.9rem;
}

/* ======== Responsiveness ======== */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

@media (max-width: 500px) {
    section h2 {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 1rem;
    }

    p, li {
        font-size: 0.95rem;
    }
}
