/* Fluid Mind — Bold Presentation */

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

:root {
    --bg: #f4fcff;
    --text: #0a1628;
    --dim: rgba(10, 22, 40, 0.6);
    --accent: #00c8e8;
    --accent-dark: #0891b2;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(0, 200, 232, 0.15);
    --font: 'Outfit', system-ui, sans-serif;
}

html {
    /* Smooth scroll handled by JS for centering */
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

::selection {
    background: var(--accent);
    color: #ffffff;
}

/* Canvas */
#lava {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Page content wrapper */
.page {
    position: relative;
    z-index: 10;
}

/* ================================
   NAVIGATION — Minimal
   ================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(200, 230, 240, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.nav-logo img {
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-logo:hover img {
    opacity: 1;
}

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

.nav-links a {
    font-family: var(--font);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hamburger menu button */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   HERO — Big & Bold
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    padding-bottom: 5vh;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-family: var(--font);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 1000px;
    overflow: visible;
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, #0099aa 0%, #007088 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.15em;
    display: inline-block;
}

.hero-sub {
    margin-top: 3rem;
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--dim);
    white-space: nowrap;
    line-height: 1.45;
}

/* ================================
   CAPABILITIES — Flip Card Carousel
   ================================ */
.capabilities {
    padding: 8vh 0 16vh;
    position: relative;
    z-index: 10;
}

.capabilities-heading {
    font-family: var(--font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 5vw;
}

.capabilities-subheading {
    font-size: 1.4rem;
    color: var(--dim);
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 5vw;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2vw;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.1);
}

.carousel {
    flex: 1;
    overflow-x: scroll;
    overflow-y: visible;
    padding: 2rem 0 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    width: max-content;
}

/* Flip Card */
.flip-card {
    width: 300px;
    height: 220px;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    flex-shrink: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(145deg, #0a1628 0%, #162033 100%);
    border: 1px solid rgba(0, 200, 232, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 200, 232, 0.1) inset;
}

.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 200, 232, 0.15) 0%, transparent 50%);
    border-radius: 28px;
    pointer-events: none;
}

.flip-card-front h3 {
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.flip-card-back {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: rotateY(180deg) translateZ(1px);
    -webkit-transform: rotateY(180deg) translateZ(1px);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.4);
}

.flip-card-back p {
    font-size: 1.05rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
}

/* ================================
   WHO WE ARE
   ================================ */
.who-we-are {
    padding: 12vh 5vw;
    position: relative;
    z-index: 10;
}

.who-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.who-left h2 {
    font-family: var(--font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.who-tagline {
    font-family: var(--font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    color: #006d80;
    -webkit-text-stroke: 0.5px rgba(10, 22, 40, 0.2);
}

.who-desc {
    font-size: 1.15rem;
    color: var(--dim);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.who-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.who-traits span {
    background: rgba(255, 255, 255, 0.5);
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    border: 1px solid var(--accent);
}

/* ================================
   MANIFESTO — Statement
   ================================ */
.manifesto {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10vh 5vw;
    position: relative;
    z-index: 10;
}

.manifesto-content {
    max-width: 800px;
}

.manifesto p {
    font-family: var(--font);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--dim);
}

.manifesto p:last-child {
    margin-bottom: 0;
}

.manifesto .highlight {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1.5rem;
}

/* Manifesto projects link */
.manifesto-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(145deg, #0a1628 0%, #162033 100%);
    border: 1px solid rgba(0, 200, 232, 0.3);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.manifesto-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 200, 232, 0.15);
    border-color: var(--accent);
}

.manifesto-link svg {
    transition: transform 0.3s ease;
}

.manifesto-link:hover svg {
    transform: translateX(3px);
}

/* ================================
   CONTACT — Simple CTA
   ================================ */
.contact {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10vh 5vw;
    position: relative;
    z-index: 10;
}

.contact h2 {
    font-family: var(--font);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.contact-link {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-dark);
    text-decoration: none;
    padding: 1.25rem 3rem;
    border: 2px solid var(--accent);
    border-radius: 100px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.contact-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: scale(1.05);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    position: relative;
    z-index: 10;
    padding: 3rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(10, 22, 40, 0.06);
}

.footer img {
    height: 24px;
    opacity: 0.35;
}

.footer span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--dim);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
    .capabilities {
        padding: 6vh 0 10vh;
    }

    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .flip-card {
        width: 260px;
        height: 190px;
    }

    .flip-card-front h3 {
        font-size: 1.2rem;
    }

    .flip-card-back p {
        font-size: 0.95rem;
    }
}

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

    .nav-burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: env(safe-area-inset-top, 20px) 2rem env(safe-area-inset-bottom, 20px);
        background: #f4fcff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        opacity: 0.8;
    }

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

    .hero {
        padding: 0 1.5rem;
        padding-bottom: 8vh;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 5rem);
    }

    .hero-sub {
        font-size: 1.1rem;
        margin-top: 2rem;
    }

    .capabilities {
        padding: 5vh 0 10vh;
    }

    .carousel-container {
        padding: 0;
        gap: 0;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel {
        padding: 0 1rem;
    }

    .carousel-track {
        gap: 1rem;
        padding-right: 4rem;
    }

    .flip-card {
        width: 240px;
        height: 170px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .flip-card-front h3 {
        font-size: 1.1rem;
    }

    .who-we-are {
        padding: 8vh 1.5rem;
    }

    .who-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .who-traits {
        justify-content: center;
    }

    .manifesto {
        padding: 10vh 1.5rem;
    }

    .contact {
        padding: 10vh 1.5rem;
    }

    .contact h2 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

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

/* ================================
   PROJECTS PAGE
   ================================ */
.projects-header {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 15vh 5vw 6vh;
    position: relative;
    z-index: 10;
}

.projects-header h1 {
    font-family: var(--font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.projects-header p {
    font-size: 1.2rem;
    color: var(--dim);
}

/* Bento Grid Layout */
.projects-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw 10vh;
    position: relative;
    z-index: 10;
}

/* Base card styles */
.project-card {
    background: linear-gradient(145deg, #0a1628 0%, #162033 100%);
    border: 1px solid rgba(0, 200, 232, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 200, 232, 0.5);
    box-shadow: 0 20px 50px rgba(0, 200, 232, 0.12);
}

.project-card h2 {
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.project-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    flex-grow: 1;
}

/* Featured card (NotoNote) - spans 2 columns, taller */
.project-featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 3rem;
    background: linear-gradient(145deg, #0a1628 0%, #0f1d30 50%, #162033 100%);
    border-color: rgba(0, 200, 232, 0.35);
    position: relative;
    overflow: hidden;
}

.project-featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 30%, rgba(0, 200, 232, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.project-featured h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-featured p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    line-height: 1.7;
}

.project-badge {
    display: inline-block;
    background: var(--accent);
    color: #0a1628;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.project-tagline {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    flex-grow: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.9rem 1.8rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 100px;
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent);
    color: #0a1628;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(4px);
}

/* Small project links */
.project-link-small {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(0, 200, 232, 0.4);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.project-link-small:hover {
    background: var(--accent);
    color: #0a1628;
}

/* Project status badges */
.project-status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
}

.project-status.disabled {
    opacity: 0.5;
}

/* Medium cards */
.project-medium {
    grid-column: span 1;
}

/* Small cards */
.project-small {
    grid-column: span 1;
}

.back-cta {
    display: flex;
    justify-content: center;
    padding: 2vh 5vw 10vh;
    position: relative;
    z-index: 10;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.nav-links a.active {
    opacity: 1;
}

@media (max-width: 900px) {
    .projects-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1.5rem 8vh;
    }

    .project-featured {
        grid-column: span 2;
        grid-row: span 1;
        padding: 2.5rem;
    }

    .project-featured h2 {
        font-size: 2rem;
    }

    .project-medium,
    .project-small {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .projects-bento {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-featured,
    .project-medium,
    .project-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .projects-header {
        padding: 12vh 1.5rem 4vh;
        min-height: 30vh;
    }

    .project-card {
        padding: 1.75rem;
    }

    .project-featured {
        padding: 2rem;
    }

    .project-featured h2 {
        font-size: 1.75rem;
    }

    .project-featured p {
        font-size: 1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #lava { display: none; }

    html {
        scroll-behavior: auto;
    }

    body {
        background: radial-gradient(ellipse at 30% 40%, rgba(0, 200, 232, 0.1), transparent 50%),
                    radial-gradient(ellipse at 70% 60%, rgba(0, 200, 232, 0.08), transparent 50%),
                    var(--bg);
    }

    .flip-card-inner {
        transition: none;
    }

    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card-back {
        display: none;
    }
}
