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

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fcfaf8;
    color: #26251e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(252, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
    border-bottom: 1px solid #f3f0ef;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #26251e;
    font-family: 'Questrial', 'Century Gothic', 'Avenir Next', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.4px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 4px;
    color: #26251e;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 2px;
    background: #26251e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #26251e;
}

.nav-link.active {
    color: #26251e;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #26251e;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(252, 250, 248, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid #f3f0ef;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .hero {
        padding-top: 65px;
    }
}

/* Typography */
h1, h2, h3 {
    font-family: 'Questrial', 'Century Gothic', 'Avenir Next', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.4px;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
    margin-bottom: 2rem;
}

h3 {
    font-size: 22px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.447;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section spacing */
.about,
.projects,
.contact {
    padding: 100px 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
    transition: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    padding: 0 2rem;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(38, 37, 30, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(38, 37, 30, 0.08);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #504f49;
}

.hero-badge--accent {
    color: #26251e;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.hero-title {
    margin: 0;
    font-family: 'Questrial', 'Century Gothic', 'Avenir Next', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #26251e;
}

.hero-highlight {
    color: #26251e;
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(38, 37, 30, 0.1);
    z-index: -1;
    border-radius: 2px;
}

.hero-tagline {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #504f49;
    max-width: 600px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #504f49;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: #504f49;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.5);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    line-height: 1.447;
    color: #504f49;
}

.about-details {
    list-style: none;
    margin-top: 2rem;
}

.about-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f0ef;
    color: #504f49;
    font-size: 16px;
}

.about-details li:last-child {
    border-bottom: none;
}

.about-photo img {
    border-radius: 4px;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #f3f0ef;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3,
.project-card p {
    padding: 0 1.5rem;
}

.project-card h3 {
    padding-top: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #26251e;
}

.project-card p {
    color: #504f49;
    font-size: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.project-tags span {
    font-size: 12px;
    padding: 0.25rem 0.75rem;
    background: #fcfaf8;
    border-radius: 100px;
    color: #504f49;
}

.project-link {
    display: block;
    padding: 1rem 1.5rem 1.5rem;
    font-weight: 500;
    font-size: 16px;
}

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

.contact-cta {
    font-size: 22px;
    color: #504f49;
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    font-family: 'Questrial', 'Century Gothic', 'Avenir Next', sans-serif;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
    letter-spacing: 0.4px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-links a {
    color: #504f49;
    font-size: 15px;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: #26251e;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #504f49;
    font-size: 12px;
    letter-spacing: 0.8px;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px);
    will-change: opacity, transform, filter;
    transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered children for project cards */
.projects-grid .project-card {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(1px);
    will-change: opacity, transform, filter;
    transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects-grid .project-card.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.projects-grid .project-card:nth-child(1) { transition-delay: 0ms; }
.projects-grid .project-card:nth-child(2) { transition-delay: 150ms; }
.projects-grid .project-card:nth-child(3) { transition-delay: 300ms; }
.projects-grid .project-card:nth-child(4) { transition-delay: 450ms; }
.projects-grid .project-card:nth-child(5) { transition-delay: 600ms; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .projects-grid .project-card {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ── Page Content ───────────────────────────────────────── */
.page-content {
    padding-top: 65px;
}

.page-hero {
    height: auto;
    min-height: 350px;
    padding: 120px 0 80px;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.page-hero .hero-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
    transition: none;
}

.page-hero .container {
    position: relative;
    z-index: 3;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-header {
    padding: 80px 0 60px;
    text-align: center;
    background: #f5f4ef;
}

.page-header h1 {
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 22px;
    color: #504f49;
    font-weight: 500;
    letter-spacing: 0.4px;
}

/* ── About Page ─────────────────────────────────────────── */
.about-section {
    padding: 80px 0;
}

.about-section .about-grid {
    margin-bottom: 80px;
}

.about-section h2 {
    margin-bottom: 24px;
}

.about-section p {
    color: #504f49;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 80px;
}

.value-card {
    background: #f5f4ef;
    padding: 2rem;
    border-radius: 4px;
}

.value-card h3 {
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #26251e;
}

.value-card p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.6;
}

.team-section {
    text-align: center;
    margin-bottom: 80px;
}

.team-section h2 {
    margin-bottom: 16px;
}

.team-section > p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.team-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    border: 2px solid #e8e5e0;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0ece6, #e8e5e0, #f0ece6);
    border-radius: 24px 24px 0 0;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    animation: wobble 0.6s ease-in-out;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 0 0 #b0aca6,
        0 12px 25px rgba(0, 0, 0, 0.12);
}

.team-card:active {
    transform: translateY(-2px) scale(0.98);
    animation: none;
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e8e5e0;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 3px 6px rgba(0, 0, 0, 0.06);
}

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

.team-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #26251e;
    margin-bottom: 4px;
}

.team-role {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #504f49;
    background: #f5f4ef;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 14px;
    color: #504f49;
    line-height: 1.6;
}

.commitment-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.commitment-section h2 {
    margin-bottom: 24px;
}

.commitment-section p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.8;
}

/* ── Portfolio Page ─────────────────────────────────────── */
.projects-section {
    padding: 80px 0;
}

/* ── STEM Page ──────────────────────────────────────────── */
.stem-section {
    padding: 80px 0;
}

.stem-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.stem-intro h2 {
    margin-bottom: 24px;
}

.stem-intro p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.8;
}

.stem-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 80px;
}

.stem-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    border: 2px solid #e8e5e0;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.stem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0ece6, #e8e5e0, #f0ece6);
    border-radius: 24px 24px 0 0;
}

.stem-card:hover {
    transform: translateY(-8px) scale(1.02);
    animation: wobble 0.6s ease-in-out;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 0 0 #b0aca6,
        0 12px 25px rgba(0, 0, 0, 0.12);
}

.stem-card:active {
    transform: translateY(-2px) scale(0.98);
    animation: none;
    box-shadow:
        0 1px 0 0 #d4d0ca,
        0 2px 0 0 #c8c4be,
        0 3px 8px rgba(0, 0, 0, 0.1);
}

.stem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #f8f6f2, #ece9e3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 1.25rem;
    border: 2px solid #e8e5e0;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 3px 6px rgba(0, 0, 0, 0.06);
    position: relative;
}

.stem-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 12px 12px 50% 50%;
}

.stem-card h3 {
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #26251e;
}

.stem-card p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.6;
    margin-bottom: 16px;
}

.stem-features {
    list-style: none;
    padding: 0;
}

.stem-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #504f49;
    border-bottom: 1px solid #e5e2df;
}

.stem-features li:last-child {
    border-bottom: none;
}

.stem-impact {
    text-align: center;
    margin-bottom: 80px;
}

.stem-impact h2 {
    margin-bottom: 40px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: 'Questrial', 'Century Gothic', 'Avenir Next', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #26251e;
    letter-spacing: 0.4px;
}

.stat-label {
    font-size: 16px;
    color: #504f49;
}

.stem-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.stem-cta h2 {
    margin-bottom: 16px;
}

.stem-cta p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border-radius: 46px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: #26251e;
    border: 1px solid #979696;
    transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:hover {
    background: #26251e;
    color: #fcfaf8;
    border-color: #26251e;
    transform: translateY(-1px);
}

.btn--primary {
    background: #26251e;
    color: #fcfaf8;
    border-color: #26251e;
}

.btn--primary:hover {
    background: #3a3933;
    border-color: #3a3933;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #504f49;
    background: #f3f0ef;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: #504f49;
    max-width: 600px;
    margin: 0 auto;
}

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

/* ── Hero CTAs ───────────────────────────────────────────── */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ── Services Grid ───────────────────────────────────────── */
.services-preview {
    padding: 100px 0;
}

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

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    border: 2px solid #e8e5e0;
    box-shadow: 
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0ece6, #e8e5e0, #f0ece6);
    border-radius: 24px 24px 0 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    animation: wobble 0.6s ease-in-out;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 0 0 #b0aca6,
        0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-card:active {
    transform: translateY(-2px) scale(0.98);
    animation: none;
    box-shadow:
        0 1px 0 0 #d4d0ca,
        0 2px 0 0 #c8c4be,
        0 3px 8px rgba(0, 0, 0, 0.1);
}

@keyframes wobble {
    0% { transform: translateY(-8px) scale(1.02) rotate(0deg); }
    15% { transform: translateY(-8px) scale(1.02) rotate(-2deg); }
    30% { transform: translateY(-8px) scale(1.02) rotate(2deg); }
    45% { transform: translateY(-8px) scale(1.02) rotate(-1.5deg); }
    60% { transform: translateY(-8px) scale(1.02) rotate(1.5deg); }
    75% { transform: translateY(-8px) scale(1.02) rotate(-0.5deg); }
    100% { transform: translateY(-8px) scale(1.02) rotate(0deg); }
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #f8f6f2, #ece9e3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 2px solid #e8e5e0;
    box-shadow: 
        0 2px 0 0 #d4d0ca,
        0 3px 6px rgba(0, 0, 0, 0.06);
    position: relative;
}

.service-icon-wrap::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 12px 12px 50% 50%;
}

.service-icon {
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #26251e;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 15px;
    color: #504f49;
    line-height: 1.6;
}

/* ── Service Cards Full ──────────────────────────────────── */
.services-section {
    padding: 80px 0;
}

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

.service-card-full {
    display: flex;
    gap: 2rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    border: 2px solid #e8e5e0;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0ece6, #e8e5e0, #f0ece6);
    border-radius: 24px 24px 0 0;
}

.service-card-full:hover {
    transform: translateY(-8px) scale(1.02);
    animation: wobble 0.6s ease-in-out;
    box-shadow:
        0 2px 0 0 #d4d0ca,
        0 4px 0 0 #c8c4be,
        0 6px 0 0 #bcb8b2,
        0 8px 0 0 #b0aca6,
        0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-card-full:active {
    transform: translateY(-2px) scale(0.98);
    animation: none;
    box-shadow:
        0 1px 0 0 #d4d0ca,
        0 2px 0 0 #c8c4be,
        0 3px 8px rgba(0, 0, 0, 0.1);
}

.service-card-full .service-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.service-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #26251e;
    margin-bottom: 4px;
}

.service-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #504f49;
    margin-bottom: 12px;
}

.service-content p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.6;
}

/* ── Projects Preview ────────────────────────────────────── */
.projects-preview {
    padding: 100px 0;
    background: #f5f4ef;
}

.project-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #504f49;
    margin-bottom: 8px;
}

/* ── STEM Preview ────────────────────────────────────────── */
.stem-preview {
    padding: 100px 0;
}

.stem-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.stem-spotlight-image {
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
}

.stem-spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stem-spotlight-content h3 {
    font-family: 'Questrial', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #26251e;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
}

.stem-spotlight-content p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.6;
    margin-bottom: 24px;
}

.stem-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 24px;
}

.stem-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stem-stat-value {
    font-family: 'Questrial', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #26251e;
}

.stem-stat-label {
    font-size: 14px;
    color: #504f49;
}

/* ── CTA Banner ──────────────────────────────────────────── */
.contact-preview,
.cta-section {
    padding: 100px 0;
}

.cta-banner {
    text-align: center;
    background: #26251e;
    color: #fcfaf8;
    padding: 60px 40px;
    border-radius: 8px;
}

.cta-banner h2 {
    font-family: 'Questrial', sans-serif;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
    color: #fcfaf8;
}

.cta-banner p {
    font-size: 18px;
    color: #a1a1aa;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .btn {
    color: #fcfaf8;
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-banner .btn:hover {
    background: #fcfaf8;
    color: #26251e;
    border-color: #fcfaf8;
}

.cta-banner .btn--primary {
    background: #fcfaf8;
    color: #26251e;
    border-color: #fcfaf8;
}

.cta-banner .btn--primary:hover {
    background: #e5e2df;
    border-color: #e5e2df;
}

/* ── Contact Section ─────────────────────────────────────── */
.contact-section {
    padding: 80px 0;
}

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

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 16px;
    color: #504f49;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #26251e;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 16px;
    color: #504f49;
    text-decoration: none;
}

.contact-item a:hover {
    color: #26251e;
}

.contact-social h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #26251e;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f4ef;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #26251e;
    text-decoration: none;
    transition: background 0.2s ease;
}

.social-link:hover {
    background: #e5e2df;
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-form-container {
    background: #f5f4ef;
    padding: 2rem;
    border-radius: 4px;
}

.contact-form h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #26251e;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #26251e;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #fcfaf8;
    border: 1px solid #e5e2df;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #26251e;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #26251e;
}

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

/* ── Footer Grid ─────────────────────────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-logo {
    width: 45px;
    height: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: #504f49;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #26251e;
    margin-bottom: 16px;
}

.footer-links-group a,
.footer-links-group span {
    display: block;
    font-size: 14px;
    color: #504f49;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-links-group a:hover {
    color: #26251e;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f3f0ef;
}

.footer-bottom p {
    font-size: 12px;
    color: #504f49;
    letter-spacing: 0.8px;
}

/* ── Case Study Pages ────────────────────────────────────── */
.case-study-hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.case-study-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.case-study-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.case-study-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #fcfaf8, transparent);
}

.case-study-hero .container {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #504f49;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #26251e;
}

.case-study-hero h1 {
    margin-bottom: 24px;
    max-width: 800px;
}

.case-study-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #504f49;
}

.meta-value {
    font-size: 16px;
    font-weight: 500;
    color: #26251e;
}

.case-study-content {
    padding: 80px 0;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-section {
    margin-bottom: 60px;
}

.case-study-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.case-study-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #504f49;
    margin-bottom: 20px;
}

.feature-card {
    background: #f5f4ef;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #26251e;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #504f49;
    margin-bottom: 0;
}

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

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    line-height: 1.6;
    color: #504f49;
}

.result-icon {
    color: #26251e;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.tech-tags span {
    padding: 8px 20px;
    background: #f5f4ef;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #26251e;
}

.case-study-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f3f0ef;
}

/* Phone Mockup & Float Styles */
.phone-mockup {
    width: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 8px solid #1a1a1a;
    background: #1a1a1a;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-float-right {
    float: right;
    margin: 0 0 2rem 2.5rem;
}

.case-study-float-left {
    float: left;
    margin: 1rem 2.5rem 2rem 0;
}

/* Clearfix */
.case-study-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile Responsive for Case Studies */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .case-study-hero {
        padding: 100px 0 60px;
        min-height: 300px;
    }

    .case-study-meta {
        gap: 1rem;
    }

    .case-study-section h2 {
        font-size: 24px;
    }

    .case-study-section p {
        font-size: 16px;
    }

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

    .phone-mockup {
        width: 200px;
        margin: 0 auto 2rem;
    }

    .case-study-float-right,
    .case-study-float-left {
        float: none;
        margin: 0 0 2rem 0;
        text-align: center;
    }
}



/* ── Card Click Animation ───────────────────────────────────── */
@keyframes popOut {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    50% { transform: scale(1.15) translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.3); z-index: 10; }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
}

.animate-pop {
    animation: popOut 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.service-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .about-grid {
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

/* Mobile */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .about,
    .projects,
    .contact {
        padding: 60px 0;
    }

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

    .about-photo {
        order: -1; /* Photo above text on mobile */
    }

    .about-photo img {
        max-width: 200px;
        margin: 0 auto;
    }

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

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

    

    .page-hero {
        padding: 80px 0 60px;
        min-height: 250px;
    }

    .page-hero::before {
        --reveal-opacity: 0.9;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .about-section,
    .projects-section,
    .stem-section {
        padding: 60px 0;
    }

    .values-grid,
    .stem-programs {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }

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

    .services-grid-full {
        grid-template-columns: 1fr;
    }

    .service-card-full {
        flex-direction: column;
        gap: 1rem;
    }

    .stem-spotlight {
        grid-template-columns: 1fr;
    }

    .stem-spotlight-image {
        height: 250px;
    }

    .stem-stats {
        justify-content: center;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .scroll-indicator {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .services-preview {
        padding: 60px 0;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .service-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .service-icon {
        font-size: 22px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-tagline {
        font-size: 16px;
    }

    /* Disable blur on mobile for better performance */
    .reveal,
    .projects-grid .project-card {
        filter: none;
    }
}


