/* ===================================
   MICHAEL DESIGN — BROOKS STYLE REWORK
   Inspired by brooks.framer.website/homepage02
   =================================== */

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

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --text: #ffffff;
    --text-muted: #999999;
    --text-dim: #666666;
    --accent: #ffffff;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-w: 1200px;
    --radius: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* — NAVIGATION — */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-link:hover { color: var(--text); }

.nav-cta {
    background: var(--text);
    color: var(--bg) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-weight: 500;
    transition: opacity 0.3s, transform 0.2s;
}

.nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* — HERO — */
.hero {
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content { max-width: 900px; }

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* — BUTTONS — */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text);
    background: rgba(255,255,255,0.05);
}

.btn-large {
    padding: 1.125rem 2.75rem;
    font-size: 1rem;
}

/* — SECTIONS COMMON — */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* — EXPERIENCE & AWARDS — */
.experience, .awards {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-period {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* — SERVICES — */
.services {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.service-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

/* — SELECTED WORKS — */
.works {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

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

.works-header .section-label {
    margin-bottom: 0;
}

.works-see-all {
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.works-see-all:hover { color: var(--text); }

.works-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s;
}

.work-item:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.work-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.work-item:hover .work-image img {
    transform: scale(1.03);
}

.work-details {
    padding: 1rem 0;
}

.work-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.work-category {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.work-date {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.work-description {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* — TESTIMONIAL — */
.testimonial {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border);
}

.testimonial-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.testimonial-author { margin-top: 2rem; }

.author-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-company {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* — CTA SECTION — */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* — FOOTER — */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-link:hover { color: var(--text); }

.footer-cta {
    background: var(--text);
    color: var(--bg) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-social-link:hover { color: var(--text); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* — SCROLL ANIMATION — */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* — RESPONSIVE — */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 99;
    }

    .nav-menu.active { display: flex; }

    .nav-link { font-size: 1.5rem; font-weight: 400; }
    .nav-link.nav-cta { font-size: 1rem; }

    .nav-toggle { display: flex; z-index: 101; }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero {
        padding: 9rem 0 5rem;
        min-height: auto;
    }

    .hero-title { font-size: 2.75rem; }

    .hero-cta { flex-direction: column; align-items: flex-start; }

    .works-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }

    .nav-container { padding: 1rem 1.25rem; }

    .hero { padding: 7rem 0 4rem; }
    .hero-title { font-size: 2.25rem; }

    .service-card { padding: 1.75rem; }

    .work-item { padding: 1.25rem; }
    .work-title { font-size: 1.375rem; }

    .btn-large { padding: 1rem 2rem; font-size: 0.9375rem; }

    .timeline-role { font-size: 1.0625rem; }
}
