/* Animation layer for future geometric shapes */
.animation-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main content */
main {
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: var(--space-4xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    border-radius: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 500px;
    font-style: italic;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* About Section */
.about-wrapper {
    display: flex;
    gap: var(--space-3xl);
    align-items: flex-start;
}

.about-content {
    flex: 1;
    max-width: 700px;
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: var(--space-lg);
}

.about-portrait {
    flex-shrink: 0;
    width: 280px;
}

.about-portrait img {
    width: 100%;
    aspect-ratio: 1 / 1.3;
    object-fit: cover;
    object-position: bottom;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

/* Contact Section */
.contact-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Footer */
.main-footer {
    padding: var(--space-2xl);
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* Homepage: constrain footer border to content width */
.home .main-footer {
    border-top: none;
    position: relative;
}

.home .main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(var(--max-width) - 100px);
    height: 1px;
    background: var(--color-border);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) var(--space-md);
        min-height: auto;
    }

    .section:first-of-type {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-wrapper {
        flex-direction: column-reverse;
        gap: var(--space-xl);
    }

    .about-portrait {
        width: 200px;
    }

    .contact-links {
        flex-direction: column;
    }
}
