:root {
    --bg-color: #F2F2F2;
    --card-bg: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #E5E5E5;
    --border-radius-lg: 32px;
    --border-radius-md: 24px;
    --border-radius-sm: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background glow effect */
/* Glow bg removed for solid color */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
    /* bottom padding for floating dock */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Bento Cards */
.bento-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dark-card {
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dark-card h3 {
    color: #fff;
}

.dark-card p {
    color: #aaa;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.text-gray {
    color: var(--text-secondary);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Top Nav (Pill Shaped) */
.top-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: white;
    background: rgba(1, 136, 159, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Cinematic delay for nav */
    opacity: 0;
    animation: fadeInNav 1.5s ease 6s forwards;
}

@keyframes fadeInNav {
    to {
        opacity: 1;
        /* we don't change transform, just let opacity animate */
    }
}

.nav-left h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.nav-left p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.btn-top {
    background: white;
    color: black;
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-top-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-top-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Hero Full Section */
.hero-full {
    background-color: #01889F;
    /* Teal blue background */
    min-height: 125vh;
    /* Increased hero size to allow bigger image */
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg-text-wrapper {
    position: absolute;
    top: 28%;
    /* Shifted text slightly down */
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2vw 4vw;
    z-index: 1;
    /* Behind the character */

    /* Cinematic Bracket Expansion Box Logic */
    display: flex;
    justify-content: center;
    overflow: hidden;
    max-width: 15vw;
    /* Widened so "ADEX| D" is fully visible early on */
    opacity: 0;
    /* Waits for mouse click (3.5s delay), then completes expansion in 2.5s */
    animation: expandBrackets 2.5s ease-in-out 3.5s forwards;
}

@keyframes expandBrackets {
    0% {
        max-width: 15vw;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    4% {
        max-width: 17vw;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    }

    8% {
        max-width: 13vw;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9) rotate(-3deg);
    }

    12% {
        max-width: 16vw;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) rotate(1deg);
    }

    16% {
        max-width: 14vw;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
    }

    20% {
        max-width: 15vw;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    30% {
        max-width: 15vw;
        /* dramatic pause before opening */
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    100% {
        max-width: 100vw;
        /* slow cinematic reveal */
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

/* Animated Mouse Cursor for Click Effect */
.animated-mouse-cursor {
    position: absolute;
    width: 64px;
    height: 64px;
    z-index: 200;
    /* above brackets */
    top: 28%;
    /* Same as center text wrapper */
    left: 50%;
    opacity: 0;
    pointer-events: none;
    /* Total 4s animation with slight delay */
    animation: mouseClick 4s ease forwards 0.5s;
    transform-origin: top left;

    /* 3D Neon Glass effect */
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.5));
}

@keyframes mouseClick {
    0% {
        opacity: 0;
        transform: translate(25vw, 35vh) scale(1);
    }

    10% {
        opacity: 1;
        transform: translate(25vw, 35vh) scale(1);
    }

    60% {
        /* 2.9s: Reaches the space directly after X */
        transform: translate(1.4vw, -1vh) scale(1);
        opacity: 1;
    }

    70% {
        /* 3.3s: Mouse clicks down before the brackets explode */
        transform: translate(1.4vw, -1vh) scale(0.7);
        opacity: 1;
    }

    80% {
        /* 3.7s: Mouse releases as brackets expand outwards */
        transform: translate(1.4vw, -1vh) scale(1.1);
        opacity: 1;
    }

    100% {
        /* Mouse fades out safely below */
        transform: translate(1.4vw, 5vh) scale(1);
        opacity: 0;
    }
}

.hero-bg-text {
    font-size: 8vw;
    font-weight: 800;
    color: white;
    line-height: 0.9;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.6vw;
    word-spacing: 0.8vw;
}

.glowing-cursor {
    display: inline-block;
    color: #01889F;
    text-shadow: 0 0 10px #01889F, 0 0 20px #01889F, 0 0 30px #01889F;
    animation: blinkCursor 1.2s step-end infinite;
    font-weight: 300;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.corner {
    position: absolute;
    width: 2vw;
    height: 2vw;
    border: 0.3vw solid white;
}

.corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Character Photo (in front of text) */
.hero-character {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    height: 100vh;
    /* Increased picture size */
    display: flex;
    align-items: flex-end;
}

.hero-photo {
    height: 100%;
    max-height: 100vh;
    /* Increased picture size */
    object-fit: contain;
    object-position: bottom;
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);

    /* Cinematic Slide-Up Sequence - SLOWED DOWN BY 2 MORE SECONDS (3.5 -> 5.5) */
    transform: translateY(20vh);
    opacity: 0;
    animation: photoSlideUp 5.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes photoSlideUp {
    0% {
        transform: translateY(20vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animated Tools Sidebar */
.hero-tools-sidebar {
    position: absolute;
    left: 4vw;
    top: 60%;
    transform: translateY(-50%);
    width: 200px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    /* Delay it slightly after photo starts appearing */
    animation: fadeInSlideRight 1s ease 1.5s forwards;
}

@keyframes fadeInSlideRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.tool-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.tool-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tool-progress {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 4px;
    /* Animates from 0 width to target width */
    animation: fillBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

@keyframes fillBar {
    to {
        width: var(--target-width);
    }
}

/* Floating Tool Icons (Hero) */
.floating-icon-left,
.floating-icon-right {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.floating-icon-left {
    left: 5vw;
    top: 30%;
    width: 180px;
    animation: popOutBlurLeft 2.5s cubic-bezier(0.16, 1, 0.3, 1) 4.5s forwards,
        iconFloat 3.5s ease-in-out 7s infinite alternate,
        iconBlurPulse 4s ease-in-out 7s infinite alternate;
}

.floating-icon-left img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(1, 136, 159, 0.5));
    animation: imgBlurPulseLeft 4s ease-in-out 7s infinite alternate;
}

.floating-icon-right {
    right: 5vw;
    top: 32%;
    width: 160px;
    animation: popOutBlurRight 2.5s cubic-bezier(0.16, 1, 0.3, 1) 4.8s forwards,
        iconFloatRight 4s ease-in-out 7.3s infinite alternate;
}

.floating-icon-right img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(1, 136, 159, 0.4)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
    animation: imgBlurPulseRight 4s ease-in-out 7.3s infinite alternate;
}

/* Motion Blur Animations */
@keyframes popOutBlurLeft {
    0% {
        opacity: 0;
        transform: translate(-100px, 100px) scale(0.5) rotate(-25deg);
        filter: blur(25px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(-10deg);
        filter: blur(0px);
    }
}

@keyframes popOutBlurRight {
    0% {
        opacity: 0;
        transform: translate(100px, 100px) scale(0.5) rotate(25deg);
        filter: blur(25px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(15deg);
        filter: blur(0px);
    }
}

@keyframes iconFloat {
    100% {
        transform: rotate(-10deg) translateY(-10px);
    }
}

@keyframes iconFloatRight {
    100% {
        transform: rotate(18deg) translateY(12px);
    }
}

/* Soft blur breathing pulse on the floating images */
@keyframes imgBlurPulseLeft {
    0% {
        filter: drop-shadow(0 10px 20px rgba(1, 136, 159, 0.5)) blur(0px);
    }

    50% {
        filter: drop-shadow(0 10px 30px rgba(0, 229, 255, 0.7)) blur(3px);
    }

    100% {
        filter: drop-shadow(0 10px 20px rgba(1, 136, 159, 0.5)) blur(0px);
    }
}

@keyframes imgBlurPulseRight {
    0% {
        filter: drop-shadow(0 15px 35px rgba(1, 136, 159, 0.4)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.2)) blur(0px);
    }

    50% {
        filter: drop-shadow(0 15px 45px rgba(0, 229, 255, 0.8)) drop-shadow(0 0 40px rgba(0, 229, 255, 0.5)) blur(4px);
    }

    100% {
        filter: drop-shadow(0 15px 35px rgba(1, 136, 159, 0.4)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.2)) blur(0px);
    }
}

/* Hero Doodles & Sparks */
.hero-doodles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 100vh;
    z-index: 1;
    /* behind character */
}

.doodle {
    position: absolute;
    opacity: 0;
    transform: scale(0);
}

.doodle svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Combined animations (pop-in + continuous float/jiggle) */
/* Lightning bolt 1 — left side of character, mid-height */
.doodle-1 {
    top: 52%;
    left: 2%;
    width: 48px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.5s forwards, doodleFloatA 3s ease-in-out 5.3s infinite alternate;
}

.doodle-2 {
    top: 22%;
    right: 6%;
    width: 65px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5s forwards, doodleFloatB 4s ease-in-out 5.8s infinite alternate;
}

.doodle-3 {
    top: 50%;
    right: 3%;
    width: 38px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.8s forwards, doodleFloatA 2.5s ease-in-out 5.6s infinite alternate;
}

/* Spiral — bottom-right, away from Graphic Designer text */
.doodle-4 {
    bottom: 18%;
    right: 16%;
    width: 80px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5.2s forwards, doodleFloatB 3.5s ease-in-out 6s infinite alternate;
}

/* Plus sparkle — left, above the spiral */
.doodle-5 {
    bottom: 38%;
    left: 5%;
    width: 48px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.6s forwards, doodleFloatA 3s ease-in-out 5.4s infinite alternate;
}

/* Wavy line — lower-right of character */
.doodle-6 {
    bottom: 25%;
    right: 4%;
    width: 70px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5.5s forwards, doodleFloatB 2.8s ease-in-out 6.3s infinite alternate;
}

/* Lightning bolt 2 — right side of character, mid-height */
.doodle-7 {
    top: 48%;
    right: 2%;
    width: 40px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.7s forwards, doodleFloatA 2.2s ease-in-out 5.5s infinite alternate;
}

.doodle-8 {
    top: 45%;
    right: 14%;
    width: 22px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5.3s forwards, doodleFloatB 1.8s ease-in-out 6.1s infinite alternate;
}

.doodle-9 {
    bottom: 40%;
    left: 20%;
    width: 28px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5.8s forwards, doodleFloatA 2.6s ease-in-out 6.6s infinite alternate;
}

.doodle-10 {
    bottom: 12%;
    right: 28%;
    width: 45px;
    animation: doodleEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 6s forwards, doodleFloatB 3.2s ease-in-out 6.8s infinite alternate;
}

/* Floating text labels like reference image */
.doodle-label {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(1, 136, 159, 0.6), 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.doodle-label-1 {
    bottom: 16%;
    left: 3%;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    text-align: left;
    animation: labelEntry 1s cubic-bezier(0.16, 1, 0.3, 1) 5.2s forwards, doodleFloatB 5s ease-in-out 6.2s infinite alternate;
}

.doodle-label-2 {
    bottom: 35%;
    right: 5%;
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    color: #FF2D78;
    text-shadow: 0 0 20px rgba(255, 45, 120, 0.9), 0 0 40px rgba(255, 45, 120, 0.4);
    animation: labelEntry 1s cubic-bezier(0.16, 1, 0.3, 1) 4.9s forwards, doodleFloatA 4.5s ease-in-out 5.9s infinite alternate;
}

.doodle-label-3 {
    bottom: 22%;
    right: 4%;
    font-size: clamp(1rem, 2vw, 1.8rem);
    color: #FFB800;
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.8);
    animation: labelEntry 1s cubic-bezier(0.16, 1, 0.3, 1) 5.6s forwards, doodleFloatB 3.8s ease-in-out 6.6s infinite alternate;
}

@keyframes labelEntry {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    100% {
        opacity: 0.85;
        transform: translateY(0) scale(1);
    }
}

@keyframes doodleEntry {
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@keyframes doodleFloatA {
    100% {
        transform: scale(1) translateY(-15px) rotate(8deg);
    }
}

@keyframes doodleFloatB {
    100% {
        transform: scale(1) translateY(10px) rotate(-10deg);
    }
}

/* SVG Colors & Neon Drop Shadows */
.doodle-stroke-yellow {
    stroke: #FFB800;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.8));
}

.doodle-stroke-cyan {
    stroke: #01889F;
    filter: drop-shadow(0 0 10px rgba(1, 136, 159, 0.8));
}

.doodle-stroke-white {
    stroke: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.doodle-fill-cyan {
    fill: #01889F;
    filter: drop-shadow(0 0 10px rgba(1, 136, 159, 0.8));
}

/* Floating Tool Icons (Contact) */
.contact-floating-icon-left,
.contact-floating-icon-right {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.contact-floating-icon-left {
    left: -15px;
    top: 40px;
    opacity: 0.85;
    transform: rotate(12deg);
    animation: iconFloat 4s ease-in-out infinite alternate;
}

.contact-floating-icon-left img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(1, 136, 159, 0.6));
}

.contact-floating-icon-right {
    right: -15px;
    bottom: 40px;
    opacity: 0.9;
    transform: rotate(-18deg);
    animation: iconFloatRight 4.5s ease-in-out infinite alternate;
}

.contact-floating-icon-right img {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(1, 136, 159, 0.5));
}

/* Social Proof Section */
.social-proof-section {
    background: var(--card-bg);
    padding: 80px 20px;
    text-align: center;
}

.social-proof-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.laurel {
    width: 60px;
    height: 90px;
    flex-shrink: 0;
}

.proof-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
    object-fit: cover;
    opacity: 0;
    transform: scale(0);
    transition: none;
}

.avatar:first-child {
    margin-left: 0;
}

/* When section is revealed, pop avatars in with stagger */
.social-proof-section.active .avatar:nth-child(1) {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
}

.social-proof-section.active .avatar:nth-child(2) {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.25s forwards;
}

.social-proof-section.active .avatar:nth-child(3) {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.social-proof-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.side-stat-card {
    background: rgba(255, 255, 255, 0.05);
    /* very light subtle bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* subtle border */
    padding: 40px 50px;
    border-radius: 24px;
    text-align: center;
    flex-shrink: 0;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform-origin: center;
}

.side-stat-card h3 {
    font-size: 5.5rem;
    /* Massive, crazy big numbers */
    font-weight: 900;
    margin-bottom: 4px;
    color: #01889F;
    /* Teal accent */
    text-shadow: 0 0 20px rgba(1, 136, 159, 0.6);
    line-height: 1;
}

.side-stat-card p {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.stars {
    color: #E87040;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.social-proof-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.social-proof-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0;
}

/* Philosophy Section (Scroll-Locked) */
.philosophy-scroll-container {
    height: 300vh;
    /* Creates scrollable space for the effect */
    position: relative;
}

.philosophy-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.philosophy-sticky .badge {
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.philosophy-text {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: 860px;
    margin: 0;
}

.philosophy-text .word {
    color: #ddd;
    transition: color 0.15s ease;
    display: inline;
}

.philosophy-text .word.lit {
    color: #000;
}



.hero-bottom-fade {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 4;
}

.main-content-shift {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

/* Portfolio Showcase New Layout */
.portfolio-showcase {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: hidden;
    /* Make sure children don't ruin layout, but act inside this space */
}

@media (max-width: 900px) {
    .portfolio-showcase {
        height: auto;
        min-height: 800px;
    }

    .portfolio-scroll-wrapper {
        height: 600px !important;
        width: 100% !important;
        right: 0 !important;
        position: relative !important;
        transform: none !important;
        top: 0 !important;
    }

    .preview-content {
        position: relative !important;
        left: 20px !important;
        top: 40px !important;
        bottom: auto !important;
        transform: none !important;
    }
}

/* Left/Background Preview */
.portfolio-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-color: #1e1e1e;
    /* fallback */
    transition: background-image 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.portfolio-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    pointer-events: none;
}

.preview-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    max-width: 500px;
}

.preview-number {
    font-size: 8rem;
    font-weight: 800;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: -15px;
    letter-spacing: -2px;
}

.preview-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: #fff;
}

.preview-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 40px 0;
}

.preview-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.preview-cta svg {
    background: white;
    stroke: black;
    fill: none;
    border-radius: 50%;
    padding: 6px;
    width: 40px;
    height: 40px;
}

/* Right Scroll Wrapper */
.portfolio-scroll-wrapper {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 90%;
    z-index: 2;
    overflow: hidden;
    /* Soft gradient mask mimicking the screenshot fading out top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    cursor: grab;
    user-select: none;
}

.portfolio-scroll-wrapper:active {
    cursor: grabbing;
}

.portfolio-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 0;
}

.portfolio-thumb {
    position: relative;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, border 0.4s ease, opacity 0.4s ease;
    border: 2px solid transparent;
    /* Container for white border */
    opacity: 0.5;
}

.portfolio-thumb.active-thumb {
    border-color: white;
    opacity: 1;
    transform: scale(1.02);
}

.thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

/* Darker gradient overlay to make text in thumb readable like the image */
.portfolio-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.thumb-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 25px;
    gap: 20px;
    color: white;
}

.thumb-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumb-icon svg {
    background: white;
    stroke: black;
    fill: none;
    border-radius: 50%;
    padding: 6px;
    width: 40px;
    height: 40px;
}

.thumb-text {
    flex: 1;
}

.thumb-text h4 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.thumb-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* The giant floating numbers aligned right */
.thumb-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-item {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    border-radius: var(--border-radius-md);
    pointer-events: auto;
    /* Enable clicking */
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    background: var(--card-bg);
    padding: 4px;
    border-radius: var(--border-radius-sm);
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* Reviews Section - New Vertical Layout */
.reviews-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

@media (max-width: 900px) {
    .reviews-container {
        flex-direction: column;
        text-align: center;
    }
}

.reviews-left {
    flex: 1;
    max-width: 400px;
    padding-right: 20px;
}

.reviews-left h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-color);
}

.reviews-left p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.view-more-btn {
    background: linear-gradient(135deg, #01889F, #e87040);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(1, 136, 159, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 136, 159, 0.4);
}

.reviews-right {
    flex: 1.2;
    position: relative;
    height: 480px;
    width: 100%;
    overflow: hidden;
    /* gradient fade at top and bottom to make the infinite scroll smooth */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.reviews-scroll-wrapper {
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
}

.reviews-scroll-wrapper:active {
    cursor: grabbing;
}

.reviews-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.new-review-card {
    background: #171717;
    /* Matches bento card feel but slightly lighter/white in original */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.5;
    /* Default inactive state */
    transform: scale(0.95);
    pointer-events: none;
    /* Keep drag smooth */
}

/* We will assign this to the active center card dynamically or static right now styling */
.new-review-card.active-review {
    opacity: 1;
    transform: scale(1);
    background: #1e1e1e;
    border-left: 5px solid #01889F;
    /* The accent sidebar */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.new-review-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    /* padding container for active state */
}

.new-review-card.active-review img {
    border-color: #01889F;
    /* matching ring */
}

.review-content {
    flex: 1;
}

.review-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.review-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

.quote-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    line-height: 1;
    margin-top: -15px;
    font-weight: bold;
    transition: color 0.4s ease;
}

.new-review-card.active-review .quote-icon {
    color: #01889F;
    /* theme accent quotes */
}

/* GridX Contact Layout */
.gridx-contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    /* Aligns form and info centrally for perfect balance */
    padding: 0 40px;
    /* Pads both the left side (Mail/Socials) and right side (Form) uniformly */
}

.gridx-contact-sidebar {
    padding-top: 20px;
    padding-left: 20px;
}

.sidebar-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.contact-info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #171717;
    border: 1px solid #222;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-shrink: 0;
}

.info-content span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.social-circles {
    display: flex;
    gap: 16px;
}

.social-circle {
    width: 60px;
    height: 60px;
    background: #171717;
    border: 1px solid #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.social-circle:hover {
    background: #01889F;
    border-color: #01889F;
    transform: translateY(-2px);
}

.gridx-form-container {
    background: #131313;
    border: 1px solid #222;
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.gridx-form-container::before {
    content: '✦';
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--text-secondary);
    font-size: 2rem;
    opacity: 0.3;
}

.gridx-form-container h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    color: white;
}

.gridx-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gridx-form input,
.gridx-form textarea {
    width: 100%;
    padding: 20px 24px;
    background: #1A1A1A;
    border: 1px solid #222;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

.gridx-form input:focus,
.gridx-form textarea:focus {
    outline: none;
    border-color: #01889F;
    background: #222;
}

.gridx-form .submit-btn {
    margin-top: 10px;
    background: #2A2A2A;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 500;
}

.gridx-form .submit-btn:hover {
    background: #01889F;
}

/* Button */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    margin-top: 24px;
    transition: var(--transition);
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Floating Dock - Glassmorphism Style */
.floating-dock {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    /* Dark frosted glass like the reference */
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 10px 16px;
    border-radius: 100px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-dock ul {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
}

.floating-dock a {
    display: inline-block;
    padding: 10px 22px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-dock a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
}

.floating-dock a.active {
    background: rgba(1, 136, 159, 0.35);
    color: #00e5ff;
    box-shadow: 0 0 14px rgba(1, 136, 159, 0.35);
}

/* Scroll Revel Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- COMPREHENSIVE RESPONSIVE OVERHAUL --- */

@media (max-width: 1200px) {
    .container {
        padding: 40px 20px 100px;
    }
    
    .hero-bg-text {
        font-size: 10vw;
    }
}

@media (max-width: 1024px) {
    .side-stat-card {
        min-width: 200px;
        padding: 24px;
    }

    .side-stat-card h3 {
        font-size: 3rem;
    }

    .philosophy-text {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .container {
        gap: 16px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .col-span-2,
    .col-span-3 {
        grid-column: span 1;
    }

    /* Hero Responsive */
    .hero-full {
        min-height: 90vh;
        height: auto;
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-bg-text-wrapper {
        top: 35%;
        padding: 4vw 8vw;
        animation: none;
        max-width: 100vw;
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    .hero-bg-text {
        font-size: 15vw;
        letter-spacing: 0.1vw;
        white-space: normal;
        word-break: break-all;
    }

    .hero-photo {
        max-height: 60vh;
        position: relative;
        bottom: 0;
        margin-top: auto;
    }

    .hero-tools-sidebar,
    .floating-icon-left,
    .floating-icon-right,
    .animated-mouse-cursor {
        display: none !important;
    }

    .top-nav {
        top: 16px;
        width: 92%;
        padding: 12px 20px;
        animation-delay: 1s !important; /* Faster reveal on mobile */
    }

    .nav-center {
        display: none; /* Hide logo center to make room */
    }

    .nav-left h2 {
        font-size: 1rem;
    }

    .btn-top {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Social Proof */
    .social-proof-wrapper {
        flex-direction: column;
        padding: 40px 20px;
    }

    .side-stat-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .laurel {
        display: none;
    }

    /* Portfolio Showcase Mobile Fix */
    .portfolio-showcase {
        height: auto;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
        display: block;
    }

    .portfolio-preview {
        position: relative;
        height: 400px;
        width: 100%;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .preview-content {
        left: 24px;
        width: calc(100% - 48px);
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .preview-number {
        font-size: 4rem;
    }

    .preview-title {
        font-size: 2.2rem;
    }

    .portfolio-scroll-wrapper {
        position: relative;
        width: 100%;
        height: auto !important;
        right: auto;
        top: auto;
        transform: none;
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
    }

    .portfolio-scroll-track {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .portfolio-thumb {
        height: 120px;
        opacity: 1; /* Always visible on mobile */
    }

    .thumb-number {
        font-size: 2.5rem;
    }

    .thumb-text h4 {
        font-size: 1.1rem;
    }

    /* Philosophy */
    .philosophy-scroll-container {
        height: 200vh;
    }

    .philosophy-text {
        font-size: 1.8rem;
        padding: 0 20px;
    }

    /* Reviews */
    .reviews-container {
        flex-direction: column;
        padding: 0;
    }

    .reviews-left {
        text-align: center;
        margin-bottom: 40px;
    }

    .reviews-left h2 {
        font-size: 2.5rem;
    }

    /* Contact */
    .gridx-contact-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .gridx-form-container {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .gridx-form-container h2 {
        font-size: 2rem;
    }

    .sidebar-title {
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .hero-bg-text {
        font-size: 20vw;
    }

    .hero-bg-text-wrapper {
        width: 90%;
    }

    .top-nav {
        border-radius: 20px;
        padding: 12px 16px;
        width: 95%;
    }

    .nav-right {
        gap: 10px;
    }

    .btn-top-outline {
        display: none; /* Hide CV on very small mobile nav to save space */
    }

    .floating-dock {
        width: 95%;
        bottom: 12px;
        padding: 6px;
    }

    .floating-dock a {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .new-review-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        width: 100%;
        opacity: 1;
        transform: none;
    }

    .new-review-card img {
        margin: 0 auto;
    }

    .quote-icon {
        display: none;
    }

    .side-stat-card h3 {
        font-size: 2.5rem;
    }

    .icon-box, .social-circle {
        width: 48px;
        height: 48px;
    }
}

/* Fix for horizontal scroll issues globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}