/* ============================================
   ALEX WARDLE PORTFOLIO — SITE.CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font: 'Inter', sans-serif;
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #f9f9f9;
    --gray-100: #f2f2f2;
    --gray-200: #e5e5e5;
    --gray-400: #a0a0a0;
    --gray-600: #5a5a5a;
    --gray-800: #2a2a2a;
    --accent: #0a0a0a;
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1160px;
    --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-optical-sizing: auto;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    height: var(--nav-height);
}

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

.nav__logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 14px;
    color: var(--gray-600);
    transition: color 0.2s;
}

.nav__links a:hover { color: var(--black); }

.nav__cta {
    background: var(--black) !important;
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s !important;
}

.nav__cta:hover { opacity: 0.8; }

.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; }

.nav__mobile {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.nav__mobile.open { display: flex; }
.nav__mobile a { font-size: 18px; font-weight: 500; }

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 700px;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn--primary {
    background: var(--black);
    color: var(--white);
}

.btn--primary:hover { opacity: 0.8; }

.btn--secondary {
    background: var(--gray-100);
    color: var(--black);
}

.btn--secondary:hover { background: var(--gray-200); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 48px;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
    padding: 80px 0;
    background: var(--gray-50);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-card__image {
    aspect-ratio: 16/10;
    background: var(--gray-100);
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-card__image img { transform: scale(1.04); }

.project-card__body {
    padding: 20px 24px 24px;
}

.project-card__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.project-card__title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.projects__cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__label { margin-bottom: 16px; }

.about__title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about__text {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.about__stats {
    display: flex;
    gap: 40px;
}

.about__stat-number {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.about__stat-label {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--gray-100);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
    padding: 24px 0 80px;
}

.skills__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.skills__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
    padding: 80px 0;
    background: var(--gray-50);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.process__step-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.process__step-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.process__step-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 80px 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--gray-200);
}

.testimonial-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-card__name {
    font-size: 14px;
    font-weight: 600;
}

.testimonial-card__role {
    font-size: 12px;
    color: var(--gray-400);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.cta-section__title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-section__subtitle {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 36px;
}

.cta-section .btn--primary {
    background: var(--white);
    color: var(--black);
}

.cta-section .btn--secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--gray-200);
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}

.footer__name {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.footer__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.footer__dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer__nav, .footer__social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav a, .footer__social a {
    font-size: 14px;
    color: var(--gray-600);
    transition: color 0.2s;
}

.footer__nav a:hover, .footer__social a:hover { color: var(--black); }

.footer__bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-400);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }

    .projects__grid { grid-template-columns: 1fr; }
    .about__inner { grid-template-columns: 1fr; gap: 40px; }
    .about__image { order: -1; aspect-ratio: 3/2; }
    .process__grid { grid-template-columns: 1fr; }
    .testimonials__grid { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; }
    .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 32px; }
    .about__stats { gap: 24px; }
}
