@font-face {
    font-family: 'SuisseIntl';
    src: url('fonts/SuisseIntl-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SuisseIntl';
    src: url('fonts/SuisseIntl-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SuisseIntl';
    src: url('fonts/SuisseIntl-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GeistMono';
    src: url('fonts/GeistMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GeistMono';
    src: url('fonts/GeistMono-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00ff66;
    /* Matching the 'lime' feel from help */
    --accent-gradient: linear-gradient(135deg, #00ff66 0%, #00cc52 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --section-padding: 120px 5%;
    --font-main: 'SuisseIntl', sans-serif;
    --font-mono: 'GeistMono', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    /* Subtle texture */
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea,
body.custom-cursor-enabled [role="button"] {
    cursor: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

.hero-title {
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: -0.05em;
    overflow: visible;
    line-height: 1;
    margin-bottom: 0.1em;
}

/* Larger glow for hero chars */
.hero-title .scroll-char {
    text-shadow:
        0 0 40px rgba(0, 255, 102, 0.7),
        0 0 100px rgba(0, 255, 102, 0.35),
        0 0 180px rgba(0, 255, 102, 0.15);
}

/* Shining Text Effect - per character */
.scroll-char {
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.6), 0 0 60px rgba(0, 255, 102, 0.3);
    animation: charShine 2s ease-in-out infinite alternate;
}

.scroll-char:nth-child(odd) {
    animation-delay: 0.3s;
}

.scroll-char:nth-child(3n) {
    animation-delay: 0.6s;
}

@keyframes charShine {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 102, 0.3), 0 0 40px rgba(0, 255, 102, 0.1);
        color: #ccc;
    }

    100% {
        text-shadow: 0 0 30px rgba(0, 255, 102, 0.8), 0 0 80px rgba(0, 255, 102, 0.4), 0 0 120px rgba(0, 255, 102, 0.2);
        color: #fff;
    }
}

.shining-text {
    background: linear-gradient(90deg, #fff, var(--accent-color), #fff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 3s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

@keyframes shineText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.shining-text-section {
    padding: 100px 5%;
    text-align: center;
    background: #000;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.scroll-animation-section {
    height: 400vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #000 !important;
    position: relative;
    z-index: 30;
    overflow: hidden;
    padding: 0 !important;
    min-height: auto !important;
}

.scroll-text-container {
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scroll-text-large {
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.9;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.scroll-text-sub {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    color: var(--accent-color);
    margin-top: 30px;
    opacity: 0;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.label-mono {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Split Text Animation Classes */
.char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.char {
    display: inline-block;
    will-change: transform;
}

/* Scroll Reveals */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.reveal-stats {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    left: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    display: block;
    height: clamp(36px, 5vw, 64px) !important;
    width: auto !important;
    max-width: min(42vw, 240px);
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(0, 255, 102, 0.18));
    animation: logoIntro 0.9s var(--ease-out-expo) both;
}

footer .logo img {
    height: clamp(34px, 4vw, 48px) !important;
    max-width: 180px;
    animation: none;
}

@keyframes logoIntro {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 500vh;
    /* increased to accommodate full animation */
    position: relative;
    background: transparent;
}

.hero-canvas-container {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    left: 0;
    z-index: 1;
}

#hero-canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    /* Place behind everything */
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    /* Remove default opacity/transform; each character will be animated */
    opacity: 1;
    transform: none;
    /* Ensure text is visible */
    color: var(--text-color);
}

/* Ensure characters start hidden for animation */
.scroll-char {
    opacity: 0;
    transform: translateY(50px);
    display: inline-block;
    will-change: opacity, transform;
}

.tagline-center {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent-color);
    text-shadow:
        0 0 10px rgba(0, 255, 102, 0.5),
        0 0 20px rgba(0, 255, 102, 0.3),
        0 0 40px rgba(0, 255, 102, 0.1);
    opacity: 1;
    /* will be animated per char */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 10;
}

/* Video Story Section */
.story-section {
    position: relative;
    padding: 0;
    z-index: 10;
    background: transparent;
}

.story-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    background: transparent;
}

.story-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    z-index: 5;
}

.story-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.story-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.story-video.active {
    opacity: 1;
}

.story-text-block {
    position: absolute;
    opacity: 0;
    transform: translateY(50px);
}

/* Final Video Section */
.final-video-section {
    padding: 0;
    background: #000;
}

.cinematic-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-container.expanded {
    transform: scale(1);
}

.final-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption-overlay {
    position: absolute;
    left: clamp(18px, 4vw, 56px);
    right: clamp(18px, 4vw, 56px);
    bottom: clamp(18px, 5vw, 56px);
    max-width: 720px;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.video-caption-kicker {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.video-caption-overlay h2 {
    font-size: clamp(1.3rem, 3vw, 2.4rem);
    margin-bottom: 8px;
    line-height: 1.1;
}

.video-caption-overlay p {
    color: #d6d6d6;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    line-height: 1.45;
}

.custom-cursor,
.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5000;
    transform: translate(-50%, -50%);
}

.custom-cursor {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #b5ffd4, var(--accent-color));
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.65);
}

.custom-cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 255, 102, 0.45);
    box-shadow: 0 0 22px rgba(0, 255, 102, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.custom-cursor-ring.is-hovering {
    transform: translate(-50%, -50%) scale(1.35);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 32px rgba(0, 255, 102, 0.5);
}

/* About, Services, etc. */
section {
    padding: var(--section-padding);
    min-height: auto;
    position: relative;
    z-index: 20;
    background: var(--bg-color);
    width: 100%;
}

#stats {
    min-height: auto;
    margin-bottom: 0;
}

/* About Cinematic Section */
.about-cinematic {
    padding: 90px 5% 130px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin: 20px 0 40px;
    line-height: 1.1;
    color: #fff;
}

.about-text p {
    font-size: 1.2rem;
    color: #aaa;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 50px;
}

.about-stats {
    display: flex;
    gap: 50px;
}

.stat-mini span {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.stat-mini label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #666;
}

.about-visual {
    position: relative;
    height: 600px;
}

.visual-frame {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.visual-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-color) 0%, transparent 40%);
    opacity: 0.05;
    filter: blur(60px);
    top: -50%;
    left: -50%;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    from { transform: translate(0, 0); }
    to { transform: translate(10%, 10%); }
}

/* Services Redesign: Professional/Enterprise */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 32px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
    opacity: 0.6;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 102, 0.35);
    background: rgba(0, 255, 102, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #ffffff;
}

.service-card p {
    color: #d0d0d0;
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.service-features li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.4;
}

.service-card:hover {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(0, 255, 102, 0.06));
    border-color: rgba(0, 255, 102, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 14px 34px rgba(0, 255, 102, 0.16);
}

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

.service-card:hover .service-features li {
    color: #aaa;
}

.service-card:hover .service-icon {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 255, 102, 0.35);
}

#services .service-card {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
}

/* Clients Marquee */
.clients-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 50px 0;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.client-logo {
    display: inline-block;
    padding: 0 50px;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.5;
}


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

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

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

input,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    color: #fff;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    padding: 20px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(0, 255, 102, 0.2);
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 102, 0.4);
    background: #fff;
    color: #000;
}

.site-footer {
    border-top: 1px solid var(--glass-border);
    background: #040404;
    padding: 80px 5% 28px;
}

.dev-credit-banner {
    min-height: auto;
    padding: 38px 5%;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 255, 102, 0.02), rgba(255, 255, 255, 0.01));
    border-top: 1px solid var(--glass-border);
}

.dev-credit-banner p {
    color: #bdbdbd;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.dev-credit-banner a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.site-footer h4 {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.16em;
    color: #9a9a9a;
    margin-bottom: 16px;
}

.site-footer a,
.site-footer p {
    display: block;
    color: #c9c9c9;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-about {
    max-width: 42ch;
    color: #9f9f9f !important;
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 26px;
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #838383;
}

.footer-dev-credit {
    margin-top: 8px !important;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    color: #9a9a9a !important;
    font-size: 0.82rem;
}

.footer-dev-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-dev-credit a:hover {
    color: #d7d7d7;
    border-color: rgba(0, 255, 102, 0.45);
}

/* Contact Form Revamp */
#contact {
    background: #000;
    padding: 150px 5%;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-info-side h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 40px;
}

.contact-method {
    margin-bottom: 40px;
}

.contact-method .label-mono {
    margin-bottom: 5px;
}

.contact-method p {
    font-size: 1.5rem;
    color: #fff;
}

.contact-form-side {
    background: var(--glass-bg);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .story-container {
        flex-direction: column;
    }

    .story-left {
        padding: 50px 5%;
        height: 50vh;
    }

    .story-right {
        height: 50vh;
    }

    .video-caption-overlay {
        max-width: none;
    }

    .contact-form-side {
        padding: 36px 24px;
    }

    .logo img {
        max-width: 56vw;
    }

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

    .site-footer {
        padding-top: 56px;
    }

}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        height: 400px;
    }

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

}

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

    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-cursor,
    .custom-cursor-ring {
        display: none !important;
    }
}
