/* ============================================
   DIGI PARTNER — Premium Cinematic Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent: #ff8c00;
    --accent-light: #ffb347;
    --accent-glow: rgba(255, 140, 0, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 140, 0, 0.4);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    --font-display: 'Outfit', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', 'Space Grotesk', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nav-height: 5rem;
}

/* Light mode overrides */
.light-mode {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #0f0f1a;
    --text-secondary: rgba(15, 15, 26, 0.6);
    --text-muted: rgba(15, 15, 26, 0.35);
    --border: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: auto;
    /* Lenis handles */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* ---------- Noise Overlay ---------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-heading {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: -0.03em;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.section-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    position: relative;
    padding: 7rem 0;
}

/* ---------- Gradient Background Blobs ---------- */
.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

.gradient-blob.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.gradient-blob.blob-2 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    bottom: 10%;
    left: -5%;
    animation-delay: -7s;
}

.gradient-blob.blob-3 {
    width: 400px;
    height: 400px;
    background: #f43f5e;
    top: 50%;
    right: 30%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    100% {
        transform: translate(30px, -10px) scale(1.02);
    }
}

/* ---------- Custom Cursor ---------- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent);
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 64px;
    height: 64px;
    opacity: 0.8;
    border-color: var(--accent-light);
}

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.light-mode .site-nav {
    background: rgba(255, 255, 255, 0.75);
}

.site-nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.light-mode .site-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo img {
    height: 2.5rem;
    width: auto;
}

.nav-logo-text {
    height: 1.5rem;
    width: auto;
    transition: opacity 0.3s, max-width 0.3s;
    overflow: hidden;
}

.site-nav.scrolled .nav-logo-text {
    max-width: 0;
    opacity: 0;
    margin-left: -0.5rem;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ---------- Button Styles ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-glass:hover {
    border-color: var(--border-hover);
    background: rgba(255, 140, 0, 0.1);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header img {
    height: 2rem;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.mobile-menu-body {
    padding: 1rem 0;
    flex: 1;
}

.mobile-menu-body a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-menu-body a:hover,
.mobile-menu-body a.active {
    color: var(--accent);
    background: rgba(255, 140, 0, 0.06);
    border-left-color: var(--accent);
}

.mobile-menu-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 2rem);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 100%;
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Arched Image Container */
.hero-image-arch {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3 / 4;
    border-radius: 300px 300px 20px 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Founder Carousel */
.founder-carousel {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.founder-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: scale(0.98);
}

.founder-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Floating Badges */
.founder-badge-top {
    position: absolute;
    top: 15%;
    left: -15%;
    background: rgba(236, 236, 239, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(236, 236, 239, 0.7);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.founder-badge-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.founder-badge-icon .material-icons {
    font-size: 1.1rem;
}

.founder-badge-text strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.founder-name-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
    z-index: 5;
}

.founder-title {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.founder-name {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Carousel Navigation Dots */
.founder-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.founder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.founder-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.founder-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Floating Social Strip */
.floating-social-strip {
    position: absolute;
    bottom: 25%;
    left: -5%;
    background: rgba(232, 232, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(236, 236, 239, 0.7);
    padding: 1rem 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
    animation: float 7s ease-in-out infinite reverse;
}

.floating-social-strip a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.floating-social-strip a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.floating-social-strip svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.hero-badge .pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.hero-heading .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;

}

.hero-heading .line span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-heading .line span.revealed {
    transform: translateY(0);
}

.hero-heading .accent-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.1em;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin: 1.5rem 0 2.5rem;
    max-width: 520px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero-sub.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.hero-buttons.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 10%;
    right: -5%;
    filter: blur(80px);
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: 20%;
    right: 20%;
    filter: blur(60px);
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: #f43f5e;
    top: 30%;
    left: 60%;
    filter: blur(50px);
}

/* Hero social proof */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
}

.hero-proof.revealed {
    opacity: 1;
    transform: translateY(0);
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    margin-left: -10px;
    object-fit: cover;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-stack .avatar-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--bg-primary);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.proof-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.proof-stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.logo-section {
    padding: 0;
    margin: 4rem auto;
    max-width: 1400px;
}

.logo-grid-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 640px) {
    .logo-grid-matrix {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .logo-grid-matrix {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.logo-matrix-cell {
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-parallax-wrap {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-parallax-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.logo-matrix-cell:hover img {
    opacity: 1;
}

/* ---------- Section Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Services Section ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(255, 140, 0, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    transition: color var(--transition);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    position: relative;
    margin-bottom: 0.75rem;
}

.service-card a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.service-card a:hover::after,
.service-card:hover a::after {
    width: 100%;
}

.service-card a:hover h3,
.service-card:hover a h3 {
    color: var(--accent);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    /* Removed invalid group property */
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

/* Horizontal Grid Matrix */
.tilted-portfolio-wrap {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    margin: 3rem 0;
    background: var(--bg-primary);
    width: 100vw;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1920px) {
    .tilted-portfolio-wrap {
        width: 100%;
        left: 0;
        transform: none;
    }
}

.tilted-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tilted-row {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.tilted-row.left {
    animation: scrollLeft 180s linear infinite;
}

.tilted-row.right {
    animation: scrollRight 180s linear infinite;
}

.tilted-row:hover {
    animation-play-state: paused;
}

.tilted-item {
    height: 340px;
    width: auto;
    border-radius: 1%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 4px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    contain: layout style paint;
}

.tilted-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.tilted-item img {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    display: block;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .tilted-portfolio-wrap {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .tilted-grid {
        gap: 1rem;
    }

    .tilted-row {
        gap: 1rem;
    }

    .tilted-item {
        height: 220px;
        width: auto;
    }
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-card:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* ---------- Process Timeline ---------- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
}

.process-line-fill {
    position: absolute;
    top: 36px;
    left: 10%;
    height: 2px;
    background: var(--accent);
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-timeline.visible .process-line-fill {
    width: 80%;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
    transition: all 0.5s;
}

.process-timeline.visible .process-step .process-num {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 140, 0, 0.08);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Stats Counter ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-number .accent {
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- About Us Leadership Grid ---------- */
.about-leadership-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .about-leadership-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

.testimonial-inner {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
}

.testimonial-inner:hover {
    border-color: var(--border-hover);
    background: rgba(255, 140, 0, 0.04);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    background: var(--bg-glass);
}

.testimonial-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.testimonial-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* ---------- Contact Section ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s;
    outline: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s;
    background: var(--bg-primary);
    padding: 0 0.25rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group select:focus~label,
.form-group select:valid~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.light-mode .form-group label {
    background: var(--bg-primary);
}

.form-alert {
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1rem;
    border: 1px solid transparent;
}

.form-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.form-alert.success .material-icons {
    color: #22c55e;
}

.form-alert.success p {
    color: #22c55e;
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.form-alert.error .material-icons {
    color: #ef4444;
}

.form-alert.error p {
    color: #ef4444;
}

.form-alert.hidden {
    display: none !important;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-submit .btn-text {
    transition: opacity 0.3s;
}

.btn-submit.sending .btn-text {
    opacity: 0;
}

.btn-submit .btn-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-submit.sending .btn-loader {
    opacity: 1;
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.03));
    border-top: 1px solid var(--border);
}

.cta-section .section-heading {
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* ---------- Material Icons inline ---------- */
.material-icons {
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .process-timeline::before {
        display: none;
    }

    .process-line-fill {
        display: none;
    }

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

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

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

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

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons,
    .hero-proof {
        width: 100%;
        justify-content: center;
    }

    .hero-image-arch {
        max-width: 350px;
    }

    /* Shift founder card slightly right so floating badges are visible */
    .hero-visual {
        padding-left: 2rem;
    }

    .founder-badge-top {
        left: -5%;
    }

    .floating-social-strip {
        left: 0%;
    }
}

/* Page entrance animation for hero visual */
.hero-visual {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: heroVisualEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes heroVisualEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 1rem);
    }

    .hero-heading {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Removed hiding testimonial controls on mobile to allow manual navigation and visibility of progress */

    .view-all-testimonials-wrap {
        display: block !important;
    }

    /* By default on mobile, we show only top 2 in a list if the class isn't there? 
       Actually, we can use the slider mode by default and only switch to list if they click "View All".
       But the user said "show only to [two] review".
    */

    .testimonial-track.is-list-mode {
        flex-direction: column !important;
        transform: none !important;
        gap: 1.5rem;
    }

    .testimonial-slider.is-collapsed .testimonial-card:nth-child(n+3) {
        display: none;
    }

    .testimonial-slider.is-collapsed .testimonial-controls {
        display: none !important;
    }

    /* Initially hide slider controls on mobile if we start in collapsed list mode */
    .testimonial-slider.is-collapsed .testimonial-track {
        flex-direction: column;
        transform: none !important;
        gap: 1.5rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .stagger-children>* {
        opacity: 1;
        transform: none;
    }

    .hero-heading .line span {
        transform: none;
    }

    .hero-sub,
    .hero-buttons,
    .hero-proof {
        opacity: 1;
        transform: none;
    }
}

/* Touch devices */
@media (hover: none) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .service-card:hover {
        transform: none;
    }
}

/* Safe area */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .mobile-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ---------- Performance: Content-Visibility for below-fold sections ---------- */
#services,
#portfolio,
#process,
#results,
#testimonials,
#about,
#blog,
#contact,
.cta-section,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}