:root {
    --bg-color: #030303;
    --text-color: #f5f5f5;
    --accent: #79edfc;
    --gradient-1: #0a3fb0;
    --gradient-2: #0a7ea8;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.split-text {
    /* clip-path removed to prevent text cutoff */
}

.char {
    transition: transform .5s;
}

.text-gradient {
    background: linear-gradient(90deg, #79edfc, #55a9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient .char {
    background: linear-gradient(90deg, #79edfc, #55a9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Editorial italic serif highlight for headline */
.hero-highlight,
.hero-highlight .char {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 5%, #79edfc 55%, #55a9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    padding-right: 0.12em;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
    will-change: transform;
}
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    will-change: transform;
}
.cursor-follower.active {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(121, 237, 252, 0.7);
}
body.has-cursor .cursor,
body.has-cursor .cursor-follower {
    opacity: 1;
}
@media (hover: none), (pointer: coarse) {
    .cursor, .cursor-follower { display: none !important; }
}
.cursor.active {
    width: 20px;
    height: 20px;
    background: rgba(121, 237, 252, 0.25);
    border: 1px solid var(--accent);
}

/* Background Effects */
.bg-noise {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}
.bg-gradients {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}
.orb-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--gradient-1);
}
.orb-2 {
    bottom: -10%; right: -10%;
    width: 40vw; height: 40vw;
    background: var(--gradient-2);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Nav (Pill Design) */
.nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.nav.nav-scrolled {
    width: 72%;
    max-width: 980px;
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    background: rgba(15, 15, 15, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}
.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: -1px;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.nav-link:hover {
    opacity: 1;
}
.nav-btn {
    background: white;
    color: black;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform 0.3s;
}
.nav-btn:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    padding: 8rem 4rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}
.hero-spotlight {
    position: absolute;
    inset: -25%;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 40%), rgba(255, 255, 255, 0.06), transparent 45%);
    opacity: 0.9;
    z-index: 1;
    transition: opacity 0.4s ease;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title-wrapper {
    margin-bottom: 4rem;
}
.hero-title {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    letter-spacing: -2px;
}
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.hero-subtitle {
    max-width: 400px;
    font-size: 1.2rem;
    opacity: 0.8;
}
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}
.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Marquee with edge fade mask */
.marquee-section {
    padding: 2rem 0;
    background: var(--accent);
    color: black;
    transform: rotate(-2deg) scale(1.05);
    z-index: 10;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee-inner {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.marquee-inner span {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 2rem;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Work Bento */
.section-header {
    margin-bottom: 4rem;
}
.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 290px;
    gap: 1.5rem;
}
.bento-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.bento-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.75), 0 0 35px -8px rgba(121, 237, 252, 0.12);
}
.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}
.bento-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
}
.bento-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
    opacity: 0.88;
    transition: opacity 0.5s ease;
    z-index: 2;
}
.bento-item:hover .bento-image::after {
    opacity: 0.95;
}
.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    position: relative;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-item:hover .bento-image img {
    transform: scale(1.03);
}
.bento-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.2rem;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.bento-content.centered {
    top: 0;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.bento-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    transform: translateY(0);
    transition: transform 0.4s;
}
.bento-content p {
    color: rgba(255,255,255,0.7);
    transform: translateY(0);
    transition: transform 0.4s, color 0.4s;
    font-size: 0.95rem;
}
.bento-item:hover .bento-content p {
    color: rgba(255,255,255,0.95);
}

/* Project Badges & Action Indicator */
.project-info {
    display: flex;
    flex-direction: column;
    z-index: 3;
}
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.badge-pill {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.badge-pill.badge-accent {
    background: rgba(121, 237, 252, 0.12);
    border-color: rgba(121, 237, 252, 0.35);
    color: var(--accent);
}
.bento-item:hover .badge-pill {
    border-color: rgba(255, 255, 255, 0.25);
}
.card-action-indicator {
    position: relative;
    z-index: 4;
    flex-shrink: 0;
}
.action-arrow-circle {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    box-shadow: 0 4px 18px rgba(121, 237, 252, 0.35);
}
.diagonal-arrow {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-item:hover .diagonal-arrow {
    transform: translate(3px, -3px);
}
.bento-item:hover .action-arrow-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(121, 237, 252, 0.55);
}

.bento-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
}
.studio-bento {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.studio-logo-wrapper {
    width: 68px;
    height: 68px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.studio-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.studio-bento:hover .studio-logo-wrapper {
    transform: scale(1.1) rotate(6deg);
    border-color: #55A9FF;
    box-shadow: 0 0 30px rgba(85, 169, 255, 0.35);
}

/* Core Tech Stack Bento */
.tech-bento .bento-content {
    top: 0;
    padding: 1.8rem 2rem;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.tech-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}
.tech-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.9rem;
}
.tech-icons {
    display: flex;
    gap: 0.85rem;
    margin-top: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 520px;
    position: relative;
    z-index: 6;
}
.tech-icon-wrapper {
    position: relative;
    cursor: pointer;
    z-index: 6;
}
.tech-icon {
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tech-icon img,
.tech-icon .tech-svg {
    width: 27px;
    height: 27px;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.tech-icon-wrapper:hover .tech-icon {
    background: rgba(121, 237, 252, 0.1);
    border-color: var(--accent);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 28px -5px rgba(121, 237, 252, 0.25);
}
.tech-icon-wrapper:hover .tech-icon img,
.tech-icon-wrapper:hover .tech-icon .tech-svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(121, 237, 252, 0.6));
}
.tech-tooltip {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: white;
    color: black;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
.tech-icon-wrapper:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.float-anim {
    animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}
.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* About */
.about {
    padding: 12rem 4rem;
}
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.about-text-container h2 {
    font-size: 3.5rem;
    line-height: 1.1;
}
.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 4/5;
}
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    border-top: none;
}
.expertise-card {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.8rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.expertise-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        380px circle at var(--mx, 50%) var(--my, 50%),
        rgba(121, 237, 252, 0.09),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}
.expertise-card:hover::before {
    opacity: 1;
}
.expertise-card > * {
    position: relative;
    z-index: 3;
}
.expertise-top-line {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    transition: all 0.45s ease;
    pointer-events: none;
    z-index: 4;
}
.expertise-card:hover .expertise-top-line {
    left: 5%;
    right: 5%;
    opacity: 1;
    box-shadow: 0 0 12px var(--accent);
}
.expertise-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(121, 237, 252, 0.12);
}
.expertise-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.expertise-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.expertise-card:hover .expertise-icon {
    background: rgba(121, 237, 252, 0.12);
    border-color: rgba(121, 237, 252, 0.35);
    transform: scale(1.08) rotate(3deg);
}
.expertise-pill {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
.expertise-card .service-info {
    transition: none;
    transform: none;
    margin-bottom: 2.2rem;
}
.expertise-card:hover .service-info {
    transform: none;
}
.expertise-card .service-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    transition: color 0.3s ease;
}
.expertise-card:hover .service-name {
    color: white;
}
.expertise-card .service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 100%;
    transition: color 0.3s ease;
}
.expertise-card:hover .service-desc {
    color: rgba(255, 255, 255, 0.88);
}
.expertise-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}
.expertise-tags {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.expertise-tags span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}
.expertise-card .service-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.expertise-card:hover .service-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: black;
    transform: translate(3px, -3px);
}


/* Contact */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem;
}
.contact-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-title {
    font-size: clamp(2.6rem, 8vw, 6rem);
    margin-bottom: 4rem;
    text-align: center;
}
.contact-form-container {
    max-width: 600px;
    margin: 0 auto 6rem auto;
}
.form-group {
    margin-bottom: 2rem;
    position: relative;
}
input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 1rem 0;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    transition: border-color 0.3s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}
textarea {
    resize: vertical;
    min-height: 50px;
}
.submit-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: color 0.3s;
}
.btn-text {
    position: relative;
    z-index: 2;
}
.btn-fill {
    position: absolute;
    top: 100%; left: 0; right: 0; bottom: 0;
    background: var(--accent);
    z-index: 1;
    transition: top 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.submit-btn:hover {
    color: black;
}
.submit-btn:hover .btn-fill {
    top: 0;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.footer-links a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }
    .bento-item.large { grid-column: span 2; grid-row: span 1; min-height: 380px; }
    .bento-item.wide { grid-column: span 2; }
    .about-container { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-card:last-child { grid-column: span 2; }
    .nav.nav-scrolled { width: 85%; }
}
@media (max-width: 768px) {
    .nav { 
        top: auto; 
        bottom: max(1rem, env(safe-area-inset-bottom, 1rem)); 
        width: max-content;
        max-width: 95%;
        padding: 0.6rem 1rem; 
        gap: 1.2rem;
        box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.5);
    }
    .nav.nav-scrolled { 
        width: max-content;
        max-width: 92%;
        padding: 0.6rem 1rem; 
        bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
        box-shadow: 0 -20px 40px -10px rgba(0, 0, 0, 0.7);
    }
    .nav-links { gap: 0.8rem; }
    .nav-link { font-size: 0.75rem; }
    .nav-btn { 
        padding: 0.5rem 1rem; 
        font-size: 0.75rem; 
        white-space: nowrap; 
    }
    .nav-logo { font-size: 1.2rem; }
    .hide-mobile { display: none; }
    
    .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); line-height: 1; }
    .about-text-container h2 { font-size: 2rem; line-height: 1.2; }
    section { padding: 5rem 1.5rem; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-item.large, .bento-item.wide, .bento-item { grid-column: span 1; grid-row: auto; min-height: 280px; }
    .bento-content h3 { font-size: 1.5rem; }
    .expertise-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .expertise-card:last-child { grid-column: span 1; }
    .expertise-card { padding: 2.2rem 1.6rem; }
    .tech-icons { gap: 0.65rem; }
    .tech-icon { width: 48px; height: 48px; }
    .tech-icon img, .tech-icon .tech-svg { width: 24px; height: 24px; }
    .contact-title { line-height: 1.1; }
    .about, .contact { padding: 5rem 1.5rem; }
    .contact { min-height: auto; }
    .marquee-inner span { font-size: 1.5rem; padding: 0 1rem; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .scroll-indicator { display: none; }
    .section-header { margin-bottom: 2.5rem; }
    .number-stat { font-size: 3.8rem !important; }
    
    .contact-footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding-bottom: max(6rem, calc(5rem + env(safe-area-inset-bottom, 0px)));
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* ==========================================================
   UI Enhancements
   ========================================================== */

/* Accessibility: skip link + focus states */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    background: var(--accent);
    color: black;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 1rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible {
    outline: none;
}
::selection {
    background: var(--accent);
    color: black;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), #55a9ff);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 10001;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Nav: logo link + active link indicator */
.nav-logo {
    color: white;
    text-decoration: none;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link.is-active {
    opacity: 1;
}
.nav-link.is-active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}
.nav-btn:hover {
    background: var(--accent);
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(121,237,252,0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(121,237,252,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(121,237,252,0); }
    100% { box-shadow: 0 0 0 0 rgba(121,237,252,0); }
}

/* Hero: subtle gradient highlight on the text and a nicer subtitle */
.hero-subtitle {
    line-height: 1.6;
}

/* Marquee: pause on hover */
.marquee:hover .marquee-inner {
    animation-play-state: paused;
}

/* Spotlight hover glow on cards (position set from script.js) */
.bento-item::before,
.expertise-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mx, 50%) var(--my, 50%),
        rgba(121, 237, 252, 0.10),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}
.bento-item:hover::before,
.expertise-card:hover::before {
    opacity: 1;
}

/* Honeypot: completely hidden from layout, users and screen readers/keyboard */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* About image: soft frame */
.about-image-wrapper {
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.about-image-wrapper img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Form polish */
input, textarea {
    transition: border-color 0.3s, box-shadow 0.3s;
}
input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.45);
}
input:focus, textarea:focus {
    box-shadow: 0 1px 0 0 var(--accent);
}
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-text-fill-color: white;
    transition: background-color 9999s ease-in-out 0s;
}
.submit-btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}
.form-status {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 1rem;
    min-height: 1.5em;
    color: rgba(255,255,255,0.8);
}
.form-status.success { color: var(--accent); }
.form-status.error { color: #ff6b6b; }

/* Footer link underline animation */
.footer-links a {
    position: relative;
}
.footer-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-links a:hover::after {
    transform: scaleX(1);
}
.copyright {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Touch devices: hover-only content must still be visible */
@media (hover: none) {
    .explore-icon,
    .card-action-indicator {
        opacity: 1;
        transform: none;
    }
    .tech-tooltip {
        display: none;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-inner { animation: none; }
}

/* ==========================================================
   Added in the cyan rebuild
   ========================================================== */

/* The native pointer only hides once the custom cursor is really running */
@media (hover: hover) and (pointer: fine) {
    body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor textarea {
        cursor: none;
    }
}

/* Headings split across lines */
.hero-title .split-text,
.contact-title .split-text { display: block; }

/* Room for the floating nav, and the whole hero fits on short laptop screens */
.hero { padding-top: 7.5rem; padding-bottom: 3rem; }
.hero-title { font-size: clamp(3.4rem, min(9.5vw, 15.5vh), 9rem); }
.hero-title-wrapper { margin-bottom: clamp(1.5rem, 4vh, 4rem); }
.hero-badge { margin-bottom: clamp(1rem, 2.5vh, 2rem); }

.hero-lead { display: grid; gap: 1.8rem; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hero-btn-primary { background: #fff; color: #000; }
.hero-btn-primary:hover { background: var(--accent); box-shadow: 0 10px 40px -10px rgba(121, 237, 252, 0.6); }
.hero-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.hero-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* MoonDim bento card */
.moon-bento { background: radial-gradient(120% 120% at 50% 0%, rgba(47, 128, 255, 0.28), rgba(255, 255, 255, 0.02) 65%); }
.moon-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 40px rgba(121, 237, 252, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.moon-bento:hover .moon-mark { transform: rotate(-14deg) scale(1.08); }

/* Whole expertise card is a link */
.card-link { position: absolute !important; inset: 0; z-index: 5 !important; border-radius: inherit; }

/* Business band */
.biz-band-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(90% 140% at 100% 0%, rgba(47, 128, 255, 0.22), rgba(255, 255, 255, 0.02) 60%);
}
.biz-band-card h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.05; margin-bottom: 1.2rem; }
.biz-band-card h2 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 5%, #79edfc 55%, #55a9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.1em;
}
.biz-band-card p { color: rgba(255, 255, 255, 0.7); max-width: 54ch; line-height: 1.6; margin-bottom: 1.8rem; }
.biz-list { list-style: none; display: grid; gap: 0.7rem; }
.biz-list li {
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
}

/* About details */
.about-text-container .about-meta { margin-top: 2.4rem; color: rgba(255, 255, 255, 0.65); font-size: 1.05rem; line-height: 1.6; }
.about-text-container .about-meta strong { color: #fff; font-weight: 600; }

@media (max-width: 1100px) {
    .nav { padding: 1rem 1.6rem; gap: 1.5rem; }
    .nav.nav-scrolled { width: 92%; padding: 0.7rem 1rem 0.7rem 1.6rem; }
    .nav-links { gap: 1.4rem; }
    .nav-link { font-size: 0.8rem; }
}
@media (max-width: 900px) {
    .biz-band-card { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .nav.nav-scrolled { width: max-content; padding: 0.6rem 1rem; }
    .nav-links { gap: 0.8rem; }
    .nav-link { font-size: 0.75rem; }
    .hero { padding-top: 3.5rem; padding-bottom: 6.5rem; }
    .hero-title { font-size: clamp(2.8rem, 12.5vw, 4rem); line-height: 1.02; }
    .hero-title-wrapper { margin-bottom: 2rem; }
    .hero-actions, .hero-btn { width: 100%; }
    .biz-list li { padding: 0.75rem 1rem; }
    .about-image-wrapper { max-width: 340px; }
}
