* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orienta', sans-serif;
    color: #333;
    overflow: hidden; /* Prevent scrolling if not needed */
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    width: 200px;
    background-color: #D9D9D9; /* Light gray from mockup */
    padding: 50px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between; /* Push social links to bottom */
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px; /* Large scale KV */
    font-weight: 500;
    margin-bottom: 40px; /* Reduced from 80px to accommodate spacing */
    letter-spacing: -5px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

nav {
    flex-grow: 1; /* Allow nav to take available space */
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #000;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-links a {
    color: #333;
    font-size: 32px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links a[aria-label="Facebook"] { color: #1877F2; }
.social-links a[aria-label="LinkedIn"] { color: #0A66C2; }
.social-links a[aria-label="GitHub"] { color: #333; }

.content {
    flex: 1;
    background-color: #BDBDBD; /* Slightly darker gray from mockup */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-page {
    background-color: #D6D6D6; /* Lighter background for the about section area as seen in mockup */
    justify-content: flex-start;
    align-items: stretch;
}

.about-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.about-image {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Matches the BW photo in mockup */
}

.about-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #D6D6D6;
}

.about-text h1 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
}

/* Projects Page Styles */
.projects-page {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto; /* Allow scrolling for multiple projects */
    background-color: #BDBDBD;
}

.projects-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    background-color: #D6D6D6; /* Lighter gray for card bg */
    border: 1px solid #333;
    padding: 25px;
    display: flex;
    gap: 30px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.project-image {
    flex: 0 0 350px;
    height: 250px;
    background-color: #222; /* Placeholder for image */
    overflow: hidden;
    border: 1px solid #555;
    cursor: pointer; /* Feedback for modal interaction */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #333;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-info h3 {
    font-family: 'Orienta', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.project-info p {
    font-family: 'Orienta', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

h1 {
    font-size: 48px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .logo {
        font-size: 32px;
        margin-bottom: 0;
        letter-spacing: -2px;
    }

    nav {
        flex-grow: 0;
    }

    nav ul {
        display: flex;
        gap: 15px;
    }

    nav ul li {
        margin-bottom: 0;
    }

    nav ul li a {
        font-size: 16px;
    }

    .social-links {
        display: none; /* Hide social links from top nav on mobile to save space */
    }

    .content {
        min-height: calc(100vh - 72px); /* Adjust based on sidebar height */
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
        height: 300px;
    }

    .about-text {
        padding: 40px 20px;
    }

    .about-text h1 {
        font-size: 32px;
    }

    .project-card {
        flex-direction: column;
        padding: 15px;
    }

    .project-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .project-info h3 {
        margin-top: 15px;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #D6D6D6;
    margin: auto;
    padding: 30px;
    border: 1px solid #333;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-image {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    border: 1px solid #555;
    background-color: #222;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 30%;
    width: 100%;
    left: 0;
    pointer-events: none; /* Let clicks pass through to content if needed */
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.nav-arrow {
    pointer-events: auto; /* Re-enable clicks for arrows */
    background-color: rgba(214, 214, 214, 0.7); /* Match modal content color with transparency */
    color: #333;
    border: 1px solid #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-arrow:hover {
    background-color: #D6D6D6;
    color: #000;
    transform: scale(1.1);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-details {
    font-family: 'Orienta', sans-serif;
    color: #222;
}

.modal-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.modal-details p {
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-line; /* Preserves line breaks from description */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-details h3 {
        font-size: 20px;
    }

    .modal-details p {
        font-size: 16px;
    }
}
