@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: #212529;
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background: #fff;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #212529;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #f58827; /* Orange branding */
}

/* Layout Container */
.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Portfolio Grid - Fixed equal size via CSS Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}

.portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 136, 39, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.portfolio-item:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay p {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 700;
    padding: 25px;
    line-height: 1.4;
}

/* Project Page - 2 Column Layout */
.project-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.project-info {
    flex: 0 0 350px;
    position: sticky;
    top: 40px;
    text-align: left;
}

.project-info h1, .project-info h2, .project-info h3, .project-info h4, .project-info h5, .project-info h6 {
    color: #212529;
    text-align: left;
}

.project-info h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-info h2 {
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-info h3 {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #212529;
}

.project-info p {
    font-size: 16px;
    font-weight: 400;
    color: #212529;
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: left;
}

.project-images {
    flex: 1 1 960px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.project-image-row {
    display: flex;
    align-self: stretch;
    gap: 30px;
    width: 100%;
}

.project-image-row img {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.project-images > img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* About Page */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

.about-image {
    flex: 1 1 350px;
    max-width: 450px;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content {
    flex: 2 1 500px;
}

.about-content h3 {
    color: #f58827; /* Orange branding */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #212529;
}

.about-contact-image {
    text-align: center;
    margin-top: 60px;
}

/* Footer */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    margin-top: 50px;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
    color: #212529;
}

.footer-left img {
    width: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.footer-left a {
    color: #f58827;
}

.footer-right {
    display: flex;
    gap: 15px;
}

.footer-right a {
    font-size: 24px;
    color: #212529;
    display: inline-block;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-right a:hover {
    color: #f58827;
    transform: scale(1.1);
}

/* Error 404 Page Styles */
.error-container {
    text-align: center;
    padding: 100px 0;
}

.error-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: inline-block;
}

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .project-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }
    .project-info {
        position: static;
        flex: 1 1 auto;
        width: 100%;
    }
    .error-container {
        padding: 50px 0;
    }
}
