/* ===== QUANTUM STUDIOS - STYLES ===== */

/* --- Custom Font --- */
@font-face {
    font-family: 'Quantum';
    src: url('Branding/Quantum.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg-primary: #060610;
    --bg-secondary: #0a0a18;
    --bg-card: #0d0d1f;
    --bg-card-hover: #111130;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --deepblue: #1e3a8a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: rgba(37, 99, 235, 0.15);
    --glow-blue: rgba(37, 99, 235, 0.4);
    --glow-cyan: rgba(34, 211, 238, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Particle Canvas --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 6, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--text-primary) !important;
    border-radius: var(--radius-xl) !important;
    padding: 10px 24px !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.nav-cta:hover {
    box-shadow: 0 0 30px var(--glow-blue);
    transform: translateY(-1px);
}

/* Nav toggle hidden in landing mode */

/* --- Hero Section (Landing Mode) --- */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 80px 24px 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(6, 6, 16, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    flex-shrink: 0;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--cyan-400);
    margin-bottom: 20px;
    background: rgba(37, 99, 235, 0.06);
}

/* --- Hero Orbits Wrapper --- */
.hero-orbits-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    max-width: 900px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

/* Orbit ring animations */
.orbit {
    fill: none;
    opacity: 0;
    animation: orbitFadeIn 1.5s ease-out forwards;
}

.orbit-1 {
    transform: rotate(-20deg);
    transform-origin: 350px 200px;
    animation-delay: 0.2s;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: orbitDraw 2s ease-out 0.2s forwards, orbitSpin1 25s linear 2.2s infinite;
}

.orbit-2 {
    transform: rotate(15deg);
    transform-origin: 350px 200px;
    animation-delay: 0.5s;
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
    animation: orbitDraw 2s ease-out 0.5s forwards, orbitSpin2 30s linear 2.5s infinite;
}

.orbit-3 {
    transform: rotate(-8deg);
    transform-origin: 350px 200px;
    animation-delay: 0.8s;
    stroke-dasharray: 950;
    stroke-dashoffset: 950;
    animation: orbitDraw 2s ease-out 0.8s forwards, orbitSpin3 20s linear 2.8s infinite;
}

@keyframes orbitDraw {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes orbitSpin1 {
    0% { transform: rotate(-20deg); }
    100% { transform: rotate(340deg); }
}

@keyframes orbitSpin2 {
    0% { transform: rotate(15deg); }
    100% { transform: rotate(-345deg); }
}

@keyframes orbitSpin3 {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(352deg); }
}

/* Orbit particles (glowing dots on the orbits) */
.orbit-particle {
    filter: blur(0.5px);
    opacity: 0;
    animation: particleFadeIn 0.5s ease-out forwards;
}

.orbit-particle-1 {
    animation-delay: 1.5s;
    filter: drop-shadow(0 0 6px #60a5fa) drop-shadow(0 0 12px #3b82f6);
}

.orbit-particle-2 {
    animation-delay: 2s;
    filter: drop-shadow(0 0 5px #22d3ee) drop-shadow(0 0 10px #06b6d4);
}

.orbit-particle-3 {
    animation-delay: 1.8s;
    filter: drop-shadow(0 0 4px #67e8f9) drop-shadow(0 0 8px #22d3ee);
}

@keyframes particleFadeIn {
    to { opacity: 1; }
}

/* Title sits on top of orbits */
.hero-title {
    font-family: 'Quantum', 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--cyan-400) 50%, var(--cyan-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-secondary:hover {
    border-color: var(--blue-500);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

/* --- Scroll Indicator (hidden in landing mode) --- */
.hero-scroll-indicator {
    display: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--blue-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Landing Clients (inside hero) --- */
.landing-clients {
    width: 100vw;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 32px;
    z-index: 2;
}

.landing-clients-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

/* --- Sections --- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cyan-400);
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(37, 99, 235, 0.06);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-description strong {
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-400), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cyan-400);
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    font-weight: 500;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
}

.portfolio-card--large {
    grid-column: span 2;
}

.portfolio-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-card-inner {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.12);
}

.portfolio-card--large .portfolio-card-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.portfolio-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-card--large .portfolio-image {
    height: 100%;
    min-height: 300px;
}

.portfolio-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 16, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image-overlay {
    opacity: 1;
}

.portfolio-icon {
    width: 56px;
    height: 56px;
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    padding: 16px;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-icon {
    transform: scale(1);
}

.portfolio-info {
    padding: 28px;
}

.portfolio-client {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan-400);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 8px 0 12px;
    line-height: 1.3;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-400);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* --- Clients Section --- */
.clients {
    overflow: hidden;
}

.clients-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 48px;
    flex-shrink: 0;
    padding-right: 48px;
    animation: marquee 30s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

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

.client-logo-item {
    flex-shrink: 0;
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    padding: 8px 20px;
    transition: var(--transition);
    color: var(--text-tertiary);
}

.client-svg {
    width: 100%;
    height: 100%;
}

.client-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: var(--transition);
}

/* For logos with non-transparent backgrounds (JPG) */
.client-logo-img[src$=".jpg"],
.client-logo-img[src$=".jpeg"] {
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* Logos with white/opaque backgrounds - blend mode removes white bg */
.client-logo-item--blend .client-logo-img {
    filter: invert(1) brightness(2);
    mix-blend-mode: screen;
    opacity: 0.75;
}

/* Logos already prepared (no filter needed, show as-is) */
.client-logo-item--nofilter .client-logo-img {
    filter: none;
    opacity: 0.7;
}
.client-logo-item--nofilter:hover .client-logo-img {
    opacity: 1;
}

/* Square/stacked logos - need more height */
.client-logo-item--square {
    width: 120px;
    height: 70px;
    padding: 4px;
}

.client-logo-item:hover .client-logo-img {
    opacity: 1;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent);
    transition: var(--transition-slow);
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.service-card:hover::before {
    transform: scale(1.5);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(34, 211, 238, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue-400);
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    background: var(--bg-secondary);
}

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

.contact-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 20px 0 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--blue-400);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: var(--transition);
    background: var(--bg-card);
}

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

.social-link:hover {
    border-color: var(--blue-500);
    color: var(--blue-400);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 0.95rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--cyan-400);
    letter-spacing: 1px;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    transition: var(--transition);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 8px;
}

/* --- Footer --- */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-bottom {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--blue-500);
    color: var(--blue-400);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered children */
.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.portfolio-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.portfolio-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.portfolio-grid .reveal:nth-child(5) { transition-delay: 0.25s; }

/* --- Orb decoration --- */
.section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.about::before {
    top: -150px;
    right: -200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
}

.portfolio::before {
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.05), transparent 70%);
}

.services::before {
    top: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04), transparent 70%);
}

/* --- Custom Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s ease-out, opacity 0.3s;
    transform: translate(-50%, -50%);
}

/* --- Form Success State --- */
.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.form-success h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */

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

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

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

    .portfolio-card--large .portfolio-image {
        min-height: 220px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        letter-spacing: -1px;
    }

    .hero-orbits {
        width: 150%;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cursor-glow {
        display: none;
    }

    .hero {
        padding: 70px 16px 100px;
    }

    .landing-clients {
        padding-bottom: 20px;
    }

    .client-logo-item {
        width: 140px;
        height: 55px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 12px 90px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-logo-text {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.2rem, 7vw, 4rem);
    }

    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .landing-clients-label {
        font-size: 0.6rem;
        margin-bottom: 10px;
    }

    .client-logo-item {
        width: 120px;
        height: 48px;
        padding: 6px 10px;
    }

    .marquee-track {
        gap: 24px;
    }
}

/* --- Language Switcher --- */
.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    gap: 6px;
}

.lang-btn:hover {
    border-color: var(--blue-500);
    color: var(--text-primary);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.15);
}

.lang-flag {
    font-size: 0.8rem;
    line-height: 1;
}

/* Mobile lang switcher no longer needed in landing mode */

/* --- i18n transition --- */
[data-i18n] {
    transition: opacity 0.2s ease;
}

[data-i18n].i18n-changing {
    opacity: 0;
}
