/* Base Styles */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray-900);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Layout */
.page-container {
    min-height: 100vh;
    padding: 2rem;
}

@media (min-width: 768px) {
    .page-container {
        padding: 3rem;
    }
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.site-header.light .logo {
    color: var(--color-white);
}

.site-header .logo.dark {
    color: var(--color-black);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.back-link:hover {
    text-decoration: underline;
}

.menu-toggle {
    color: var(--color-white);
}

/* Home Page */
.home-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.fullscreen-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fullscreen-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: var(--color-white);
}

@media (min-width: 768px) {
    .content-overlay {
        padding: 3rem;
    }
}

.project-info {
    margin-top: auto;
}

.project-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.875rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .project-info h2 {
        font-size: 2rem;
    }
    
    .project-info p {
        font-size: 1rem;
    }
}

.nav-arrows {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-arrows {
        bottom: 3rem;
        right: 3rem;
    }
}

.nav-arrow {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 300;
}

.project-meta {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Project Detail */
.project-detail .project-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-detail .project-meta {
    margin-bottom: 3rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .project-content {
        grid-template-columns: 2fr 1fr;
    }
}

.project-description {
    font-size: 1.125rem;
}

.project-specs h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.spec-item dt {
    color: var(--color-gray-600);
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gallery-image {
    position: relative;
    aspect-ratio: 16/9;
}

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

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
}

.prev-link, .next-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prev-link:hover, .next-link:hover {
    text-decoration: underline;
}

/* About Page */
.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .about-section {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    position: relative;
    aspect-ratio: 1/1;
}

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

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.member-image {
    position: relative;
    aspect-ratio: 3/4;
    margin-bottom: 1rem;
}

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

.member-name {
    font-size: 1.125rem;
    font-weight: 500;
}

.member-role {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item .icon {
    color: var(--color-gray-400);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item h3 {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-gray-300);
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

.submit-button {
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--color-gray-800);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: var(--color-white);
}

.menu-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

@media (min-width: 768px) {
    .menu-container {
        padding: 3rem;
    }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.close-menu {
    color: var(--color-black);
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-item {
    font-size: 2rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .nav-item {
        font-size: 3.75rem;
    }
}

.nav-item:hover {
    color: var(--color-gray-500);
}

.menu-footer {
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Icons */
.icon {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}