/* --- CORE VARIABLES --- */
:root {
    --primary: #0a5ed7;
    --primary-glow: rgba(10, 94, 215, 0.3);
    --bg-main: #f8fafd;
    --bg-card: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-main: #1a1d26;
    --text-muted: #64748b;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.06);
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #ffffff, var(--bg-main));
}

/* --- UTILITIES --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 8rem 0;
    position: relative;
}

.relative {
    position: relative;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-300 {
    max-width: 300px;
}

.width-100 {
    width: 100%;
}

.display-3 {
    font-size: 3.5rem;
}

.text-lg {
    font-size: 1.2rem;
}

h1,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--easing);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px -10px var(--primary-glow);
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px var(--primary-glow);
}

/* Glass Button (View All) */
.btn-outline-glass {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(10, 94, 215, 0.3);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
    transition: 0.3s;
    backdrop-filter: blur(5px);
    font-family: var(--font-body);
}

.btn-outline-glass:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-icon {
    font-family: sans-serif;
    font-style: normal;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text-main);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
}

.cursor-circle.active {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 94, 215, 0.05);
    border-color: var(--primary);
}

/* --- BACKGROUND GRAPHICS --- */
.bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 94, 215, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.shape-left {
    top: -200px;
    left: -200px;
}

.shape-right {
    bottom: -200px;
    right: -200px;
}

.bg-pattern {
    background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 10px 30px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

header.scrolled {
    top: 20px;
    width: 95%;
    padding: 8px 30px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Group */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding-right: 20px;
}

.logo-icon {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--font-heading);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    background: rgba(10, 94, 215, 0.05);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 50px;
    overflow: hidden;
}

.hero-bg-orb {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 94, 215, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    color: var(--text-main);
    opacity: 0;
    animation: fadeInUp 1s var(--easing) 0.5s forwards;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s var(--easing) 0.7s forwards;
    line-height: 1.7;
}

.hero-cta-wrapper {
    opacity: 0;
    animation: fadeInUp 1s var(--easing) 0.9s forwards;
}

/* 3D Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.isometric-stack {
    position: relative;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    animation: floatStack 6s ease-in-out infinite;
}

.iso-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.layer-1 {
    transform: translateZ(0px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.9));
    z-index: 1;
}

.grid-lines {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}

.layer-2 {
    transform: translateZ(80px);
    background: rgba(255, 255, 255, 0.25);
    z-index: 2;
    animation: breatheLayer 6s ease-in-out infinite 0.5s;
}

.code-decoration {
    width: 80%;
    transform: rotateZ(45deg);
}

.code-line {
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.1;
    margin-bottom: 8px;
    border-radius: 4px;
    animation: loadWidth 3s infinite alternate;
}

.layer-3 {
    transform: translateZ(160px);
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
    z-index: 3;
    animation: breatheLayer 6s ease-in-out infinite 1s;
}

.app-layer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: rotateZ(45deg);
}

.mobile-mockup {
    width: 100px;
    height: 180px;
    border: 4px solid #1a1d26;
    border-radius: 12px;
    background: white;
    position: absolute;
    top: -60px;
    left: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: floatPhone 4s ease-in-out infinite alternate;
}

.app-icon-main {
    font-size: 2rem;
    color: var(--primary);
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1d26;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    width: 130px;
    height: 42px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-badge:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 94, 215, 0.3);
}

.store-icon {
    font-size: 1.2rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-text span:first-child {
    font-size: 0.55rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.store-text span:last-child {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
}

/* Orbit */
.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(10, 94, 215, 0.2);
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 450px;
    height: 450px;
    animation: spinRight 20s linear infinite;
}

.ring-2 {
    width: 600px;
    height: 600px;
    animation: spinLeft 25s linear infinite;
}

.floater {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: counterSpin 20s linear infinite;
}

.floater-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floater-2 {
    bottom: 20%;
    right: 10%;
}

/* --- MARQUEE --- */
.tech-marquee {
    background: white;
    padding: 1.5rem 0;
    border-y: 1px solid var(--border-light);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: inline-block;
    margin: 0 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.6;
}

.separator {
    color: var(--primary);
    opacity: 0.3;
    margin: 0 1rem;
}

/* --- WHY APPSPINE --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-7px);
    box-shadow: 0 30px 60px rgba(10, 94, 215, 0.1);
}

.card-bg-graphic {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
}

/* --- INDUSTRY SECTION (ADVANCED) --- */
.industry-section {
    position: relative;
    overflow: hidden;
    background: #f8fafd;
    transition: background 0.5s ease;
    padding: 6rem 0;
}

.industry-bg-mesh {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, var(--active-color, rgba(10, 94, 215, 0.1)) 0%, transparent 70%);
    opacity: 0.6;
    transition: background 0.8s ease;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.industries-track-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem 4rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.industries-track-wrapper::-webkit-scrollbar {
    display: none;
}

.industries-track-wrapper.grid-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
    gap: 2rem;
}

.industry-card {
    min-width: 350px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    filter: blur(60px);
    opacity: 0.3;
    transition: 0.3s;
    pointer-events: none;
}

.industry-card:hover .card-glow {
    opacity: 0.6;
}

.ind-visual {
    margin-bottom: 1.5rem;
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ind-3d-icon {
    font-size: 3rem;
    z-index: 2;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.industry-card:hover .ind-3d-icon {
    transform: scale(1.1);
}

.visual-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    animation: pulseRing 3s infinite;
}

.ind-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.ind-pitch {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ind-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ind-tags span {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    transition: 0.3s;
}

.industry-card:hover .ind-tags span {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.track-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
    border-radius: 2px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.1s linear;
}

.grid-mode+.track-progress {
    opacity: 0;
}

/* --- SERVICES (ALTERNATING ROWS) --- */
.service-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--easing);
}

.service-row.in-view {
    opacity: 1;
    transform: translateY(0);
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(10, 94, 215, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primary);
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.visual-card {
    width: 350px;
    height: 250px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.service-row:hover .visual-card {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(10, 94, 215, 0.15);
}

/* Service Graphics */
.mobile-card {
    background: #f0f4ff;
}

.screen-content {
    width: 120px;
    height: 200px;
    background: white;
    border: 4px solid #333;
    border-radius: 15px;
    position: relative;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-header {
    height: 15px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.app-item {
    height: 30px;
    background: #eee;
    margin-bottom: 8px;
    border-radius: 4px;
    width: 100%;
}

.app-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-1 {
    top: 20px;
    right: 20px;
    animation: floatStack 4s infinite;
}

.badge-2 {
    bottom: 20px;
    left: 20px;
    animation: floatStack 5s infinite reverse;
}

.web-card {
    background: #fff5f0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
}

.browser-header {
    width: 100%;
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.browser-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.web-hero {
    width: 100%;
    height: 60px;
    background: #e0e0e0;
    border-radius: 6px;
}

.web-grid {
    display: flex;
    gap: 10px;
}

.web-grid span {
    flex: 1;
    height: 40px;
    background: #eee;
    border-radius: 4px;
}

.crm-card {
    background: #f0fff4;
    align-items: flex-end;
    padding-bottom: 40px;
    gap: 15px;
}

.chart-bar {
    width: 40px;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transition: 0.3s;
}

.bar-1 {
    height: 60px;
}

.bar-2 {
    height: 90px;
}

.bar-3 {
    height: 120px;
    background: #00ff88;
    opacity: 1;
}

.service-row:hover .bar-1 {
    height: 80px;
}

.service-row:hover .bar-2 {
    height: 110px;
}

.floating-stat {
    position: absolute;
    top: 30px;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-card {
    background: #fdf0ff;
}

.ai-brain {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
}

.n1 {
    top: 0;
    left: 20px;
}

.n2 {
    bottom: 10px;
    right: 10px;
}

.n3 {
    top: 40px;
    left: 60px;
}

.connections {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.design-card {
    background: #fff0f5;
}

.palette {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-right: -20px;
    z-index: 2;
}

.wireframe-box {
    width: 120px;
    height: 80px;
    border: 2px dashed #999;
    background: white;
    border-radius: 8px;
}

.cursor-pointer {
    font-size: 2rem;
    position: absolute;
    bottom: 40px;
    right: 80px;
    animation: floatStack 3s infinite;
}

.maint-card {
    background: #f0f8ff;
    flex-direction: column;
    gap: 15px;
}

.shield-icon {
    font-size: 4rem;
}

.status-pill {
    background: #d1fae5;
    color: #065f46;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- TECH STACK STYLES --- */
#tech-stack {
    background: #f8fafd;
    overflow: hidden;
}

.tech-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 94, 215, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 94, 215, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.tech-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Adjusted width */
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.tech-group {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-group:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.tech-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.group-icon {
    font-size: 1.5rem;
}

.tech-group h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
}

.tech-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns for cinematic grid */
    gap: 1.5rem;
    width: 100%;
}

.tech-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    /* The Cinematic Float */
    animation: floatIcon 4s ease-in-out infinite;
}

/* Staggered Animation Timing */
.delay-1 {
    animation-delay: 0s;
}

.delay-2 {
    animation-delay: 1.5s;
}

.delay-3 {
    animation-delay: 3s;
}

.tech-card img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    transition: 0.3s;
}

.tech-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tech-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(10, 94, 215, 0.15);
}

.tech-card:hover img {
    transform: scale(1.1);
}

.tech-card:hover span {
    color: var(--primary);
}

/* Keyframes for Floating Effect */
@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .tech-cards-wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-card {
        padding: 0.8rem;
    }

    .tech-card img {
        height: 35px;
        width: 35px;
    }
}

/* --- ENGAGEMENT MODELS --- */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.model-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}

.model-card:hover,
.model-card.highlight {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.model-card.highlight {
    background: rgba(10, 94, 215, 0.03);
}

/* --- PROCESS SECTION (CIRCUIT BOARD) --- */
.process-section {
    background: #0b0d11;
    /* Dark background for contrast */
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle background grid */
.process-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The Central Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.scroll-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* JS will update this */
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: height 0.1s linear;
}

/* Steps (Rows) */
.process-step {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 6rem;
    opacity: 0;
    transition: all 0.8s ease;
}

/* Step Markers (The Circles on the line) */
.step-marker {
    position: absolute;
    left: 50%;
    width: 50px;
    height: 50px;
    background: #0b0d11;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    z-index: 2;
    transition: 0.3s;
}

.process-step.in-view .step-marker {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Alternate Sides */
.process-step.left {
    flex-direction: row-reverse;
}

.process-step.right {
    flex-direction: row;
}

.process-step.left .process-card {
    margin-right: 50%;
    transform: translateX(-50px);
}

.process-step.right .process-card {
    margin-left: 50%;
    transform: translateX(50px);
}

/* The Cards */
.process-card {
    width: 45%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.process-step.in-view {
    opacity: 1;
}

.process-step.in-view .process-card {
    transform: translateX(0);
}

/* Hover Effects */
.process-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    transform: translateY(-5px) !important;
}

/* Inner Content */
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-tags span {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(10, 94, 215, 0.15);
    color: #4dabf7;
    /* Lighter blue for dark bg */
    border-radius: 15px;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .step-marker {
        left: 30px;
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .process-step {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 60px;
        margin-bottom: 4rem;
    }

    .process-step.left,
    .process-step.right {
        flex-direction: column;
    }

    .process-step.left .process-card,
    .process-step.right .process-card {
        width: 100%;
        margin: 0;
        transform: translateY(20px);
    }

    .process-step.in-view .process-card {
        transform: translateY(0);
    }
}

/* --- CONTACT --- */
.cta-section {
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(10, 94, 215, 0.08) 0%, transparent 60%);
}

.bg-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.form-wrap {
    max-width: 550px;
    margin: 3rem auto 0;
    text-align: left;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--primary);
}

.input-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
}

/* --- CREATIVE DARK FOOTER --- */
footer {
    background-color: #0b0d11;
    color: #ffffff;
    padding: 6rem 0 0 0;
    position: relative;
    overflow: hidden;
    border-top: none;
    margin-top: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.footer-brand-col {
    flex: 1;
}

.footer-cta-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.footer-email-link {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-email-link:hover {
    color: var(--primary);
}

.arrow-icon {
    font-size: 0.5em;
    margin-left: 15px;
    opacity: 0;
    transform: translateX(-20px) translateY(20px);
    transition: all 0.4s var(--easing);
}

.footer-email-link:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.footer-phone {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.footer-phone a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-phone a:hover {
    color: var(--primary);
}

.dot-indicator {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulseDot 2s infinite;
}

.footer-nav-grid {
    display: flex;
    gap: 6rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 1rem;
}

.hover-underline {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s var(--easing);
}

.hover-underline:hover::after {
    width: 100%;
}

.hover-underline:hover {
    color: var(--primary);
}

.footer-bottom-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    transition: 0.3s;
}

.legal-links a:hover {
    color: white;
}

.big-footer-text {
    position: absolute;
    bottom: -3%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18vw;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes floatStack {

    0%,
    100% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(0);
    }

    50% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(30px);
    }
}

@keyframes breatheLayer {

    0%,
    100% {
        transform: translateZ(80px);
    }

    50% {
        transform: translateZ(100px);
    }
}

@keyframes loadWidth {
    0% {
        width: 30%;
    }

    100% {
        width: 90%;
    }
}

@keyframes spinRight {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes counterSpin {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes floatPhone {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulseDot {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .engagement-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {

    /* Services Responsive */
    .service-row,
    .service-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 5rem;
    }

    .service-text {
        order: 2;
    }

    .service-visual {
        order: 1;
        width: 100%;
    }

    .visual-card {
        width: 100%;
        max-width: 350px;
    }

    .icon-wrapper {
        margin: 0 auto 1.5rem auto;
    }

    .service-list li {
        padding-left: 0;
        text-align: center;
    }

    .service-list li::before {
        display: none;
    }

    /* Footer Responsive */
    .footer-top {
        flex-direction: column;
        gap: 4rem;
    }

    .footer-nav-grid {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-email-link {
        font-size: 2.5rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding-bottom: 6rem;
    }

    .legal-links a {
        margin-left: 0;
        margin-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        width: 95%;
        padding: 8px 15px;
        top: 15px;
    }

    .nav-inner ul {
        display: none;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .form-wrap {
        padding: 1.5rem;
    }

    .logo-icon {
        height: 28px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    /* Tech Stack Mobile */
    .tech-grid-container {
        grid-template-columns: 1fr;
    }

    .tech-group {
        align-items: flex-start;
    }

    .tech-cards-wrap {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Industries Mobile */
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .industry-card {
        min-width: 300px;
    }

    .industries-track-wrapper.grid-mode {
        grid-template-columns: 1fr;
    }

    .btn-outline-glass {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tech-cards-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}