/* ============================================
   ITERA LABS - Shared Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    font-family: 'Inter', sans-serif;
    color: #d4d4d4;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

h1, h2, h3 {
    font-family: 'Fugaz One', cursive;
    color: #fff;
    font-weight: 400;
}

/* ---- Navigation ---- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    font-family: 'Fugaz One', cursive;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

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

.nav-links a {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    opacity: 1;
}

/* ---- Layout ---- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
}

main {
    flex: 1;
    padding-top: 5rem;
}

.section {
    padding: 5rem 0;
}

.section-label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 640px;
    line-height: 1.8;
}

/* ---- Hero (Home page) ---- */

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero-logo {
    font-family: 'Fugaz One', cursive;
    font-size: clamp(3rem, 10vw, 7rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    cursor: default;
    user-select: none;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8f8f8 5%,
        #e8e8e8 10%,
        #c0c0c0 18%,
        #888888 30%,
        #555555 42%,
        #333333 50%,
        #555555 58%,
        #888888 70%,
        #c0c0c0 82%,
        #e8e8e8 90%,
        #f8f8f8 95%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
        drop-shadow(1px 1px 0 #3a3a3a)
        drop-shadow(2px 2px 0 #333333)
        drop-shadow(3px 3px 0 #2d2d2d)
        drop-shadow(4px 4px 0 #262626)
        drop-shadow(5px 5px 0 #202020)
        drop-shadow(6px 6px 0 #1a1a1a)
        drop-shadow(7px 7px 0 #141414)
        drop-shadow(8px 8px 0 #0f0f0f)
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.08));
}

.hero-logo::before {
    content: 'ITERA LABS';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.7) 5%,
        rgba(255, 255, 255, 0) 12%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
}

.hero-logo::after {
    content: 'ITERA LABS';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 46%,
        rgba(255, 255, 255, 0.5) 49%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 51%,
        rgba(255, 255, 255, 0) 54%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
    letter-spacing: 0.04em;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1rem;
    max-width: 520px;
}

/* ---- Project Cards ---- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.card-tag {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'Fugaz One', cursive;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.card-status {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
}

/* ---- Page Header ---- */

.page-header {
    padding: 6rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-header .section-title {
    margin-bottom: 0.75rem;
}

.page-header .section-text {
    margin-bottom: 0;
}

/* ---- Focus Areas ---- */

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.focus-item {
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.focus-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.focus-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

/* ---- Contact ---- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info a {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1px;
}

.contact-info a:hover {
    opacity: 1;
    border-color: #fff;
}

.contact-form label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 0.75rem 2rem;
    background: #fff;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contact-form button:hover {
    opacity: 0.85;
}

.form-error {
    background: rgba(220, 80, 80, 0.15);
    border: 1px solid rgba(220, 80, 80, 0.4);
    border-radius: 6px;
    color: #e06060;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.form-success {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    padding: 2rem 0;
}

/* ---- Footer ---- */

footer {
    padding: 3rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.footer-contact {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-contact:hover {
    color: #fff;
    opacity: 1;
}

.footer-legal {
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Divider ---- */

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero {
        min-height: 60vh;
        padding: 5rem 0 3rem;
    }

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

    footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.6875rem;
    }

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

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