/* Custom Styles for Vinci AI Website */
/* Updated Color Scheme: Lila #7C3AED, Marine-Blau #2563EB, Akzent #A78BFA */

/* ============================================
   LOCAL FONTS - DSGVO-konform (no Google Fonts)
   ============================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin_latin-ext-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin_latin-ext-800.woff2') format('woff2');
}

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-purple: #7C3AED;
    --secondary-blue: #2563EB;
    --accent-light: #A78BFA;

    /* Backgrounds */
    --dark-bg: #0A0E27;
    --darker-bg: #050714;
    --card-bg: #0F1729;

    /* Text */
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --text-light-gray: #CBD5E1;

    /* Accents */
    --success-green: #10B981;
    --error-red: #EF4444;

    /* Glows */
    --glow-purple: rgba(124, 58, 237, 0.5);
    --glow-purple-intense: rgba(124, 58, 237, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0E27;
}

::-webkit-scrollbar-thumb {
    background: #7C3AED;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A78BFA;
}

/* Selection */
::selection {
    background: #7C3AED;
    color: white;
}

/* Header Styles */
.header-scrolled {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #7C3AED 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

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

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button Glow Effect */
.button-glow {
    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.4),
        0 0 15px rgba(124, 58, 237, 0.6);
}

/* Animated Background Elements */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-float 8s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Fade-in animations for scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Process Steps Timeline */
.process-step {
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 60px;
    width: 2px;
    height: calc(100% + 24px);
    background: linear-gradient(180deg, #7C3AED 0%, transparent 100%);
}

.process-step:last-child::before {
    display: none;
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-image {
    transition: transform 0.3s ease;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Form Styles */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #7C3AED;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link Hover Effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Icon Containers */
.icon-container {
    position: relative;
}

.icon-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.icon-container:hover::before {
    opacity: 0.2;
}

/* Statistics Counter Animation */
.stat-number {
    display: inline-block;
}

/* Purple Glow Effect */
.purple-glow {
    box-shadow:
        0 0 20px rgba(124, 58, 237, 0.3),
        0 0 40px rgba(124, 58, 237, 0.15);
}

.purple-glow:hover {
    box-shadow:
        0 0 30px rgba(124, 58, 237, 0.5),
        0 0 60px rgba(124, 58, 237, 0.25);
}

/* Intense Glow */
.glow-purple-intense {
    box-shadow:
        0 0 20px rgba(124, 58, 237, 0.5),
        0 0 40px rgba(124, 58, 237, 0.3),
        0 0 60px rgba(124, 58, 237, 0.1);
}

/* Tech Lines Animation */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #7C3AED, transparent);
    height: 1px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tech-line.active {
    opacity: 1;
    animation: tech-pulse 2s ease-in-out infinite;
}

@keyframes tech-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Problem/Solution Transform Section */
.transform-section {
    position: relative;
}

.transform-arrow {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #7C3AED);
}

.transform-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: #7C3AED;
}

/* Vertical Timeline */
.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #0A0E27 0%, #7C3AED 20%, #7C3AED 80%, #0A0E27 100%);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #7C3AED;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    transition: all 0.3s ease;
}

.timeline-dot.active {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.8);
}

.timeline-card {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-card.right {
    transform: translateX(30px);
}

.timeline-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Tool Logo Grid */
.tool-logo {
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.tool-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.tool-logo-glow {
    position: relative;
}

.tool-logo-glow::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.tool-logo-glow:hover::after {
    opacity: 1;
}

/* Hero Split Layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Hero Tech Network Visualization */
.hero-visualization {
    position: relative;
    width: 100%;
    height: 500px;
    background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15), transparent);
}

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

/* Hero Canvas Animation */
.hero-canvas {
    border-radius: 16px;
    display: block;
}

@media (max-width: 1023px) {
    .hero-canvas {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-canvas {
        width: 100% !important;
        max-width: 500px;
    }
}

.network-node {
    fill: #7C3AED;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.7));
}

.network-node-secondary {
    fill: #2563EB;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.6));
}

.network-node-accent {
    fill: #A78BFA;
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.6));
}

.network-line {
    stroke: #2563EB;
    stroke-width: 2;
    opacity: 0.6;
}

.network-line-accent {
    stroke: #7C3AED;
    stroke-width: 1.5;
    opacity: 0.4;
}

/* Network Animation */
@keyframes node-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes line-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.9));
    }
}

.node-animate {
    animation: node-float 4s ease-in-out infinite;
}

.line-animate {
    animation: line-pulse 3s ease-in-out infinite;
}

.glow-animate {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Scroll Down Arrow Animation */
@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.scroll-arrow {
    animation: bounce-arrow 2s ease-in-out infinite;
}

/* Cyber Background */
.cyber-bg {
    position: relative;
    background: #0A0E27;
    overflow: hidden;
}

.cyber-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Circuit Lines */
.circuit-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #7C3AED, transparent);
    height: 2px;
    animation: circuit-flow 3s linear infinite;
}

@keyframes circuit-flow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Problem/Solution Cards */
.problem-card {
    background: #0F1729;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.solution-card {
    background: #0F1729;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.15),
        0 0 20px rgba(124, 58, 237, 0.1);
}

/* Center Logo Glow */
.center-logo-glow {
    position: relative;
}

.center-logo-glow::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: logo-glow-pulse 3s ease-in-out infinite;
}

@keyframes logo-glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.connection-line {
    stroke: #7C3AED;
    stroke-width: 2;
    fill: none;
    opacity: 0.5;
    stroke-dasharray: 5, 5;
    animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -100;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-card {
        margin-left: 50px;
        transform: translateX(0);
    }

    .timeline-card.right {
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }

    .service-card {
        border: 2px solid white;
    }
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: #7C3AED;
    color: white;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Touch-friendly targets */
@media (pointer: coarse) {
    button,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Progressive line glow */
.progress-line {
    background: linear-gradient(180deg, #7C3AED 0%, transparent 100%);
    transition: height 0.3s ease;
}

/* Logo Hover Effect */
.logo-hover {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-hover:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.5));
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   Only applies to screens 768px and below.
   Desktop (769px+) remains completely unchanged.

   Breakpoints tested:
   - 375px (iPhone SE)
   - 390px (iPhone 12/13/14)
   - 428px (iPhone Pro Max)
   - 768px (iPad)
   ========================================================================== */

@media (max-width: 768px) {

    /* ===========================================
       GLOBAL MOBILE RESETS
       =========================================== */
    html, body {
        overflow-x: hidden;
        width: 100%;
        -webkit-text-size-adjust: 100%;
    }

    /* Prevent horizontal scroll from any element */
    * {
        max-width: 100vw;
    }

    /* ===========================================
       HEADER & NAVIGATION
       =========================================== */
    #header {
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Mobile menu styling */
    #mobile-menu {
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 1rem;
    }

    #mobile-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Hamburger button touch target */
    #mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Logo size on mobile */
    header .logo-hover {
        height: 2.5rem;
    }

    /* ===========================================
       TYPOGRAPHY
       =========================================== */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    h4 {
        font-size: 1rem;
    }

    /* Paragraph text */
    p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    section p.text-lg,
    section p.text-xl {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Text size utilities */
    .text-3xl {
        font-size: 1.5rem !important;
    }

    .text-4xl {
        font-size: 1.75rem !important;
    }

    .text-5xl {
        font-size: 2rem !important;
    }

    .text-xl {
        font-size: 1.125rem !important;
    }

    /* ===========================================
       SECTIONS & LAYOUT
       =========================================== */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    section.pt-32 {
        padding-top: 5rem;
    }

    section.pb-20,
    section.py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    section.min-h-screen {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    /* Container padding */
    .max-w-7xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ===========================================
       HERO SECTION - Mobile Background Animation
       =========================================== */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Hero grid container - relative for absolute positioning of canvas */
    .grid.lg\:grid-cols-2 {
        position: relative;
        min-height: 70vh;
    }

    /* Hero text content - on top with z-index */
    .grid.lg\:grid-cols-2 > .text-left {
        position: relative;
        z-index: 10;
        text-align: center;
    }

    /* Hero canvas container - absolute positioned behind text */
    .grid.lg\:grid-cols-2 > .relative.flex {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0.4;
        pointer-events: none;
    }

    /* Hero canvas - full size background */
    .hero-canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover;
    }

    /* Hero text alignment */
    section .text-left {
        text-align: center;
    }

    section .items-start {
        align-items: center;
    }

    /* Hide scroll indicator on mobile */
    .scroll-arrow,
    .animate-bounce-slow {
        display: none !important;
    }

    /* ===========================================
       BUTTONS & CTA
       =========================================== */
    /* Touch-friendly button sizing (min 48px) */
    .button-glow,
    a[class*="rounded-full"],
    button[class*="rounded-full"],
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Button container - stack vertically */
    .flex.flex-col.sm\:flex-row,
    .flex.sm\:flex-row {
        flex-direction: column;
        width: 100%;
    }

    .flex.flex-col.sm\:flex-row > a,
    .flex.flex-col.sm\:flex-row > button,
    .flex.sm\:flex-row > a,
    .flex.sm\:flex-row > button {
        width: 100%;
    }

    /* Gap for stacked buttons */
    .flex.gap-4 {
        gap: 0.75rem;
    }

    /* ===========================================
       TRANSFORMATION SECTION
       =========================================== */
    .transformation-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* Hide SVG connection lines on mobile */
    .lines-svg {
        display: none !important;
    }

    /* Center logo */
    .center-logo-image {
        width: 160px;
    }

    .center-logo-wrapper {
        margin: 1.5rem 0;
    }

    .center-logo-wrapper::before {
        width: 240px;
        height: 180px;
    }

    /* Problem/Solution cards */
    .problem-card,
    .solution-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .problem-card .flex.items-start,
    .solution-card .flex.items-start {
        gap: 0.75rem;
    }

    .problem-card h4,
    .solution-card h4 {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }

    .problem-card p,
    .solution-card p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    /* Icon in cards */
    .problem-card .w-10,
    .solution-card .w-10 {
        width: 2.25rem;
        height: 2.25rem;
        flex-shrink: 0;
    }

    /* Transformation grid on mobile - natural order: Problems → Logo → Solutions */
    #transformation-grid {
        display: flex;
        flex-direction: column;
    }

    /* ===========================================
       GRIDS & CARDS
       =========================================== */
    /* Service cards grid */
    .grid.md\:grid-cols-2.lg\:grid-cols-4,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Two column grids */
    .grid.lg\:grid-cols-2,
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Three column grids */
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Four column grids */
    .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Service card styling */
    .purple-glow,
    .service-card,
    a[class*="rounded-2xl"].group {
        padding: 1.25rem;
    }

    /* Card icons */
    .w-14.h-14 {
        width: 2.75rem;
        height: 2.75rem;
    }

    .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }

    /* ===========================================
       SERVICES.HTML - SERVICE DETAILS
       =========================================== */
    /* Service detail sections */
    .mb-24 {
        margin-bottom: 2.5rem;
    }

    /* Reverse order fix for alternating layouts */
    .lg\:order-1,
    .lg\:order-2 {
        order: unset;
    }

    /* Service detail card */
    .bg-primary-light\/50.rounded-2xl.p-8 {
        padding: 1.25rem;
    }

    /* Aspect video in service cards */
    .aspect-video {
        aspect-ratio: 16 / 10;
    }

    .aspect-video svg {
        width: 4rem;
        height: 4rem;
    }

    /* List items in service details */
    ul.space-y-3 li {
        font-size: 0.9375rem;
    }

    /* System logo tags */
    .flex.flex-wrap.gap-3 span {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* ===========================================
       SERVICES.HTML - TIMELINE
       =========================================== */
    /* Hide desktop timeline line */
    .relative > .absolute.left-1\/2.transform.-translate-x-1\/2.w-1 {
        display: none;
    }

    /* Timeline dots */
    .hidden.md\:flex.absolute.left-1\/2 {
        display: none !important;
    }

    /* Timeline cards - full width */
    .md\:w-1\/2 {
        width: 100%;
    }

    .md\:pr-12,
    .md\:pl-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .md\:text-right {
        text-align: left;
    }

    /* Timeline step spacing */
    .relative.mb-16.md\:mb-24 {
        margin-bottom: 1.5rem;
    }

    /* Timeline card content */
    .bg-primary-light\/50.rounded-2xl.p-8.border {
        padding: 1.25rem;
    }

    /* Step badge and duration layout */
    .flex.items-center.justify-between.mb-4 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .md\:flex-row-reverse {
        flex-direction: row;
    }

    /* ===========================================
       ABOUT.HTML - TOOL LOGOS
       =========================================== */
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .tool-logo-glow {
        padding: 1rem;
    }

    .tool-logo-glow .w-12 {
        width: 2.25rem;
        height: 2.25rem;
    }

    .tool-logo-glow span {
        font-size: 0.75rem;
    }

    /* ===========================================
       CONTACT.HTML - FAQ
       =========================================== */
    .faq-item {
        margin-bottom: 0.5rem;
    }

    .faq-question {
        padding: 1rem;
        min-height: 48px;
        font-size: 0.9375rem;
    }

    .faq-question span {
        padding-right: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.875rem;
    }

    /* Contact cards */
    .space-y-8 > a,
    .space-y-8 > div {
        padding: 1rem;
    }

    .space-y-8 .w-14 {
        width: 2.75rem;
        height: 2.75rem;
    }

    /* ===========================================
       FOOTER
       =========================================== */
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer .md\:col-span-2 {
        grid-column: span 1;
    }

    /* Footer logo */
    footer .h-10 {
        height: 2rem;
    }

    /* Footer description */
    footer p.text-gray-400 {
        font-size: 0.875rem;
    }

    /* Footer links */
    footer ul.space-y-2 li {
        font-size: 0.875rem;
    }

    footer ul.space-y-2 a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Footer bottom bar */
    footer .border-t.mt-12 {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    footer .flex.flex-col.md\:flex-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    footer .flex.space-x-6 {
        justify-content: center;
    }

    /* ===========================================
       IMAGES & MEDIA
       =========================================== */
    img, video, canvas, svg, iframe {
        max-width: 100%;
        height: auto;
    }

    /* ===========================================
       BACKGROUND ELEMENTS
       =========================================== */
    .bg-blob,
    .absolute.w-96 {
        width: 150px;
        height: 150px;
        filter: blur(50px);
        opacity: 0.5;
    }

    /* Circuit pattern - reduce intensity */
    .circuit-pattern {
        opacity: 0.3;
    }

    /* ===========================================
       SPACING UTILITIES
       =========================================== */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .py-16 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .mb-16 {
        margin-bottom: 2rem;
    }

    .mb-12 {
        margin-bottom: 1.5rem;
    }

    .mb-10 {
        margin-bottom: 1.25rem;
    }

    .mb-8 {
        margin-bottom: 1rem;
    }

    .gap-16 {
        gap: 2rem;
    }

    .gap-12 {
        gap: 1.5rem;
    }

    .gap-8 {
        gap: 1rem;
    }

    .gap-6 {
        gap: 0.75rem;
    }

    .space-x-8 {
        gap: 1rem;
    }

    /* ===========================================
       PROCESS STEPS
       =========================================== */
    .process-step::before {
        left: 20px;
        height: calc(100% + 16px);
    }

    /* ===========================================
       ACCESSIBILITY
       =========================================== */
    /* Ensure all interactive elements are touch-friendly */
    a, button, input, select, textarea, [role="button"] {
        min-height: 44px;
    }

    /* Focus states */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid #7C3AED;
        outline-offset: 2px;
    }
}

/* ===========================================
   MEDIUM MOBILE (428px - iPhone Pro Max)
   =========================================== */
@media (max-width: 428px) {
    h1 {
        font-size: 1.625rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    /* Slightly smaller buttons */
    .button-glow,
    a[class*="rounded-full"] {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Card padding */
    .problem-card,
    .solution-card {
        padding: 0.875rem;
    }

    .center-logo-image {
        width: 140px;
    }
}

/* ===========================================
   SMALL MOBILE (375px - iPhone SE)
   =========================================== */
@media (max-width: 375px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.875rem;
    }

    .center-logo-image {
        width: 120px;
    }

    /* Tool logos: 2 columns on very small screens */
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reduce card padding further */
    .problem-card,
    .solution-card {
        padding: 0.75rem;
    }

    .problem-card h4,
    .solution-card h4 {
        font-size: 0.875rem;
    }

    .problem-card p,
    .solution-card p {
        font-size: 0.75rem;
    }

    /* Smaller buttons */
    .button-glow,
    a[class*="rounded-full"] {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    /* Container padding */
    .max-w-7xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* FAQ text */
    .faq-question span {
        font-size: 0.875rem;
    }

    .faq-answer {
        font-size: 0.8125rem;
    }

    /* Footer */
    footer p.text-gray-400 {
        font-size: 0.8125rem;
    }
}

/* ===========================================
   TABLET PORTRAIT (768px)
   =========================================== */
@media (min-width: 481px) and (max-width: 768px) {
    /* Two-column grids for tablets */
    .grid.md\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Larger buttons on tablet */
    .button-glow,
    a[class*="rounded-full"] {
        width: auto;
        min-width: 200px;
    }

    /* Button container - horizontal on tablet */
    .flex.flex-col.sm\:flex-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .flex.flex-col.sm\:flex-row > a,
    .flex.flex-col.sm\:flex-row > button {
        width: auto;
    }

    /* Tool logos - 3 columns on tablet */
    .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
