/* ── VARIABLES ── */
:root {
    --background: #0a0a0a;
    --surface: #111111;
    --border: #222222;
    --text: #f0f0f0;
    --text-muted: #888888;
    --accent: #00ff94;
    --accent-dim: rgba(0, 255, 148, 0.1);
    --font-mono: 'Courier New', monospace;
    --font-sans: 'Inter', sans-serif;
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── BASE ── */
body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--accent);
    margin-bottom: 1rem;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 100;
}

/* ── NAV ── */
nav a {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: bold;
}

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

nav ul a {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul a.active {
    color: var(--accent);
}

nav ul a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── SECTIONS ── */
section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── TESTIMONIAL ── */
#testimonial {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    max-width: 100%;
    padding: 5rem 3rem;
}



/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── HERO ── */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    border-bottom: 1px solid var(--border);
    padding-top: 0;
}

#hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-mono);
    color: var(--text);
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

#hero h1 span {
    color: var(--accent)
}

.hero-links {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.btn-primary:hover {
    text-decoration: none;
    opacity: 0.85;
}

.btn-ghost {
  /* Layout */
    display: inline-flex;           /* Switch to flex */
    align-items: center;     /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    height: 44px;           /* MATCH THE BADGE EXACTLY */
    transform: translateY(8px);
    
    /* Box Model */
    border: 1px solid var(--border);
    padding: 0 1.5rem;       /* Remove vertical padding, keep horizontal */
    box-sizing: border-box;  /* Ensure border is inside the 44px */
    
    /* Typography */
    color: var(--text);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;   /* Essential for <a> tags */
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}


/* ── WORK ── */
#work {
    max-width: 900px;
}

#work h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.project {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

.project:hover {
    border-color: var(--accent);
}

.project-link:hover {
    text-decoration: none;
}

.project:hover h2 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project h2 {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── SERVICES ── */
#services h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.service:hover {
    border-color: var(--accent);
}

.service h2 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.service p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── ABOUT ── */
#about h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#about>p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.founding-story {
    max-width: 650px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 3rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

.member {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.member:hover {
    border-color: var(--accent);
}

.member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
}

.member h2 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text);
}

.member p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.member-links {
    display: flex;
    gap: 1rem;
}

.member-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

/* ── MEMBER MODAL ── */
.modal-headshot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--accent);
}
.modal-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.9rem;
}

.modal-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
}

.modal-details span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-content .btn-primary {
    margin-top: 1.5rem;
    display: inline-block;
}

.member {
    cursor: pointer;
}


/* ── CONTACT ── */
#contact h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#contact p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

form input,
form textarea {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
    border-color: var(--accent);
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-muted);
}

form button {
    background-color: var(--accent);
    color: #000000;
    border: none;
    border-radius: 4px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
}

form button:hover {
    opacity: 0.85;
}

#contact a {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ── CASE STUDY ── */
#case-study {
    max-width: 800px;
}

.case-study-hint {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.project:hover .case-study-hint {
    opacity: 1;
}

.case-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.back-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.case-header h1 {
    font-family: var(--font-mono);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-link {
    text-decoration: none;
    display: block;
}

.client {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.case-block {
    margin-bottom: 3rem;
}

.case-block h2 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.case-block p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 650px;
}

.stack-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stack-list li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

.case-footer {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.app-store-badge {
    display: block;
    height: 40px;
    width: auto;
}

/* ── MODAL ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-details {
    padding: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-mono);
}

.modal-close:hover {
    color: var(--accent);
}

.service {
    cursor: pointer;
}

/* ── 404 ── */
#not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: bold;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0;
}

#not-found h1 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#not-found p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
    /* Nav */
    nav {
        padding: 1rem 1.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    nav ul a {
        font-size: 0.7rem;
    }

    /* Sections */
    section {
        padding: 4rem 1.5rem;
    }

    /* Hero */
    #hero h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .hero-links {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-ghost {
        text-align: center;
        width: 100%;
    }

    /* Work */
    #work {
        max-width: 100%;
    }

    /* Services */
    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    /* About */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Case Study */
    .case-header h1 {
        font-size: 2rem;
    }

    /* Modal */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    /* Footer */
    footer {
        padding: 1.5rem;
    }
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SCROLL TESTIMONIALS ── */
.testimonial-quote, .testimonial-author {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

#testimonial {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}