@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */

:root {
    --bg-color: #050816;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.07);
    --glass-bg: rgba(255, 255, 255, 0.01);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    /* Fonts */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    /* Category Accent Colors */
    --color-it: #06b6d4;
    /* Cyan */
    --color-app: #a855f7;
    /* Purple */
    --color-software: #f97316;
    /* Orange */
    --color-uiux: #10b981;
    /* Emerald */
    --color-cloud: #3b82f6;
    /* Blue */
    --color-ai: #ec4899;
    /* Pink */
}


/* --- RESET & BASICS --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}


/* --- SAAS TECH GRID BACKGROUND --- */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60px 60px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: -2;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}


/* --- SCROLLBAR --- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* --- CONTAINER & UTILITIES --- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
}


/* --- BACKGROUND GLOWS --- */

.background-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    animation: pulseBlob 25s infinite alternate ease-in-out;
}

.blob-left {
    width: 500px;
    height: 500px;
    background: var(--color-app);
    top: -150px;
    left: -150px;
}

.blob-right {
    width: 600px;
    height: 600px;
    background: var(--color-it);
    bottom: -200px;
    right: -200px;
    animation-duration: 30s;
    animation-delay: -5s;
}

@keyframes pulseBlob {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.04;
    }
    50% {
        transform: scale(1.08) translate(40px, -40px);
        opacity: 0.06;
    }
    100% {
        transform: scale(0.92) translate(-20px, 30px);
        opacity: 0.04;
    }
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.015) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

body:hover .mouse-glow {
    opacity: 1;
}


/* --- HEADER / NAVIGATION --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2.2rem 0;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--color-it);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-it);
}

nav ul {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

nav ul a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav ul a:hover {
    color: var(--text-color);
}

nav ul a:hover::after,
nav ul li.active a::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav ul li.active a {
    color: var(--text-color);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    height: 20px;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* --- HERO SECTION --- */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    text-align: left;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-it);
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-fill {
    background: white;
    color: black;
}

.btn-fill:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-link {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn-link:hover {
    background: var(--glass-highlight);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


/* --- CATEGORY PROGRESS NAV (STICKY SIDEBAR) --- */

.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
    position: relative;
    padding-bottom: 8rem;
}

.sidebar-sticky {
    position: sticky;
    top: 8rem;
    height: fit-content;
    padding: 1rem 0;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding-left: 1.2rem;
}

.sidebar-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-item.active a {
    color: white;
    transform: translateX(4px);
}

.sidebar-item.active a::before {
    background: var(--color-it);
    height: 14px;
    border-radius: 2px;
    transform: translateY(-50%) scaleX(1.5);
}


/* Category-specific indicator highlights */

.sidebar-item.it.active a::before {
    background: var(--color-it);
    box-shadow: 0 0 8px var(--color-it);
}

.sidebar-item.app.active a::before {
    background: var(--color-app);
    box-shadow: 0 0 8px var(--color-app);
}

.sidebar-item.software.active a::before {
    background: var(--color-software);
    box-shadow: 0 0 8px var(--color-software);
}

.sidebar-item.uiux.active a::before {
    background: var(--color-uiux);
    box-shadow: 0 0 8px var(--color-uiux);
}

.sidebar-item.cloud.active a::before {
    background: var(--color-cloud);
    box-shadow: 0 0 8px var(--color-cloud);
}

.sidebar-item.ai.active a::before {
    background: var(--color-ai);
    box-shadow: 0 0 8px var(--color-ai);
}


/* --- SERVICES CONTAINER --- */

.services-flow {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.category-group-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 4rem;
}

.category-group-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}


/* --- DETAILED SERVICE MODULE SECTION --- */

.service-module {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    padding: 5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    position: relative;
    align-items: center;
}

.service-module:last-child {
    border-bottom: none;
}

.service-module.alternate {
    direction: rtl;
    /* Triggers right-to-left block swap */
}

.service-module.alternate>* {
    direction: ltr;
    /* Keeps nested layout text reading normally */
}

.service-text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.service-visual-side {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


/* Meta details style */

.service-index {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.service-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.service-module:hover .service-title::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tech-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tech-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.03);
}

.btn-inquire {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-inquire svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-inquire:hover {
    color: white;
}

.service-module.it-sec .btn-inquire:hover {
    border-color: var(--color-it);
}

.service-module.app-sec .btn-inquire:hover {
    border-color: var(--color-app);
}

.service-module.software-sec .btn-inquire:hover {
    border-color: var(--color-software);
}

.service-module.uiux-sec .btn-inquire:hover {
    border-color: var(--color-uiux);
}

.service-module.cloud-sec .btn-inquire:hover {
    border-color: var(--color-cloud);
}

.service-module.ai-sec .btn-inquire:hover {
    border-color: var(--color-ai);
}

.btn-inquire:hover svg {
    transform: translateX(6px);
}


/* Content details style */

.service-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    color: white;
    font-weight: 500;
}

.service-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.service-bullets li {
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-bullets li strong {
    color: white;
    font-weight: 600;
    display: inline;
}

.bullet-icon {
    position: absolute;
    left: 0;
    top: 0.2rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-bullets li:hover {
    color: white;
    transform: translateX(4px);
}

.service-bullets li:hover .bullet-icon {
    transform: scale(1.15) rotate(5deg);
}


/* --- HIGH-FIDELITY SaaS VISUAL PREVIEWS --- */

.mock-panel {
    width: 100%;
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-module:hover .mock-panel {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.02);
}

.mock-header {
    background: rgba(13, 17, 30, 0.9);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-header .dots {
    display: flex;
    gap: 6px;
}

.mock-header .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mock-header .dots span:nth-child(1) {
    background: #ef4444;
}

.mock-header .dots span:nth-child(2) {
    background: #eab308;
}

.mock-header .dots span:nth-child(3) {
    background: #22c55e;
}

.mock-header .mock-title {
    margin: 0 auto 0 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
}

.mock-body {
    padding: 1.2rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #94a3b8;
}


/* 1. Code Editor */

.mock-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    background: #090c15;
}

.code-line {
    display: flex;
    gap: 0.8rem;
}

.code-num {
    color: #334155;
    text-align: right;
    width: 15px;
    user-select: none;
}

.c-tag {
    color: #f43f5e;
}

.c-attr {
    color: #f59e0b;
}

.c-val {
    color: #10b981;
}


/* 2. Database View */

.mock-db {
    gap: 1rem;
}

.db-schema {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.db-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    width: 130px;
    overflow: hidden;
}

.db-t-head {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
}

.db-t-row {
    padding: 0.4rem;
    font-size: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.db-t-row:last-child {
    border-bottom: none;
}

.db-relation {
    color: var(--color-it);
    font-weight: 700;
    animation: pulseRelation 2s infinite ease-in-out;
}

@keyframes pulseRelation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}


/* 3. Analytics Dashboard */

.mock-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stat-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.6rem;
    text-align: center;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-title);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mock-chart-container {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.chart-bar {
    flex: 1;
    background: var(--color-it);
    border-radius: 2px 2px 0 0;
    opacity: 0.8;
    animation: growBar 1.5s ease-out forwards;
}

@keyframes growBar {
    from {
        height: 0;
    }
}


/* 4. Terminal */

.mock-terminal {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    background: #080a12;
}

.terminal-line {
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-prompt {
    color: var(--color-it);
    font-weight: bold;
}

.terminal-cmd {
    color: white;
}

.terminal-out {
    color: var(--text-muted);
}

.terminal-success {
    color: #10b981;
}


/* 5. Mobile Phone Preview */

.mock-phone {
    width: 200px;
    height: 340px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: #080c18;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.service-module:hover .mock-phone {
    transform: translateY(-5px) rotate(2deg);
    border-color: rgba(255, 255, 255, 0.15);
}

.phone-screen {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

.phone-header {
    height: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.phone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}


/* 6. Kanban Board */

.mock-kanban {
    display: flex;
    gap: 0.6rem;
}

.kanban-col {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 120px;
}

.kanban-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.3rem;
}

.kanban-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 0.6rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kanban-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}


/* 7. Figma Interface */

.mock-figma {
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
    height: 140px;
    position: relative;
}

.figma-grid {
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 8. AI Chat mock */

.mock-chat {
    gap: 0.8rem;
    font-size: 0.75rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    line-height: 1.4;
}

.chat-bubble.user {
    background: var(--glass-highlight);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble.bot {
    background: rgba(236, 72, 153, 0.1);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}


/* --- HIGH-END DYNAMIC SCROLL REVEALS --- */


/* 1. Category Headers */

.category-group-header.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-group-header.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* 2. Hero Content */

.hero-content.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* 3. Alternating Text Slides */

.service-module.reveal .service-text-side {
    opacity: 0;
    transform: translateX(-45px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-module.reveal.alternate .service-text-side {
    transform: translateX(45px);
}

.service-module.reveal.active .service-text-side {
    opacity: 1;
    transform: translateX(0);
}


/* 4. Alternating 3D Rotative Visual Slides */

.service-module.reveal .service-visual-side {
    opacity: 0;
    transform: scale(0.92) rotate(3deg) translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-module.reveal.alternate .service-visual-side {
    transform: scale(0.92) rotate(-3deg) translateY(40px);
}

.service-module.reveal.active .service-visual-side {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
}


/* --- INQUIRY MODAL --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(5, 8, 22, 1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2.2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: white;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    background: white;
    color: black;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
    background: #e2e8f0;
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.success-message {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.success-message svg {
    color: var(--color-uiux);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}


/* --- FOOTER --- */

footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem;
    background: rgba(3, 5, 15, 0.6);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* --- MOBILE RESPONSIVE --- */

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sidebar-sticky {
        display: none;
    }
    .hero h1 {
        font-size: 3.8rem;
    }
    .service-module {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0;
    }
    .menu-btn {
        display: flex;
        z-index: 101;
    }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        z-index: 99;
        padding: 6rem 3rem;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 2.2rem;
    }
    nav ul a {
        font-size: 1.1rem;
    }
    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    .service-module,
    .service-module.alternate {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    .service-text-side {
        width: 100%;
    }
    .service-title {
        font-size: 2rem;
    }
    /* Disable slide-in offsets on mobile for better accessibility and readability */
    .service-module.reveal .service-text-side,
    .service-module.reveal.alternate .service-text-side,
    .service-module.reveal .service-visual-side,
    .service-module.reveal.alternate .service-visual-side {
        transform: translateY(20px) rotate(0deg) scale(1) !important;
    }
    .service-module.reveal.active .service-text-side,
    .service-module.reveal.active .service-visual-side {
        transform: translateY(0) rotate(0deg) scale(1) !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}