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

/* Page fade-in transition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #0a0a0a;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 2.5s ease-out;
}

#mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f0f0f0;
}

/* Main content */
main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero section — fills viewport minus nav */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 6rem);
}

/* Hero */
.hero {
    text-align: center;
}

.hero-logo {
    width: 420px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 1rem;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.hero-logo:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    transform: scale(1.02);
}

.hero p {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Contact */
.contact {
    text-align: center;
}

.contact h1 {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.contact-info p {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #aaa;
}

.contact-info > p:first-child {
    margin-bottom: 1.25rem;
}

.contact-info a {
    color: #f0f0f0;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.contact-info a:hover {
    border-color: #f0f0f0;
}

.contact-divider {
    width: 40px;
    height: 1px;
    background: #333;
    margin: 1.5rem auto;
}

.contact-location {
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Coming Soon (Work page) */
.coming-soon {
    text-align: center;
}

.coming-soon h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.coming-soon p {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.06em;
}

/* Projects */
.projects-section {
    padding: 6rem 3rem 4rem;
    overflow-x: hidden;
}

.projects-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #f0f0f0;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 3.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.project-icon {
    width: 140px;
    max-width: 80%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.project-card:hover .project-icon {
    opacity: 0.9;
}

.project-name {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
}

.project-card:hover .project-name {
    color: #ccc;
}

.project-card--empty {
    border-style: dashed;
    cursor: default;
}

.project-card--empty:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transform: none;
}

/* Work page */
.work-section {
    padding: 4rem 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.work-section h1 {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #f0f0f0;
    margin-bottom: 3rem;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-item {
    display: block;
    text-decoration: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    transition: background 0.2s;
}

.work-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.work-item h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f0f0f0;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.work-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.work-item:hover p {
    color: #888;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 1.25rem 3rem;
    text-align: center;
}

footer p {
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.06em;
}

/* Mobile */
@media (max-width: 600px) {
    nav {
        padding: 1.25rem 1.5rem;
    }

    .hero-logo {
        width: 280px;
    }

    .nav-links {
        gap: 1.25rem;
    }

    footer {
        padding: 1rem 1.5rem;
    }

    .projects-section {
        padding: 4rem 1.5rem 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .project-icon {
        width: 140px;
    }
}
