/* ===================================
   SkyTic Landing Page Styles
   RTL Arabic, Dark/Light Theme Support
   =================================== */

/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
    /* Colors - Dark Theme (Default) */
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary-color: #6366f1;
    --accent-color: #a855f7;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-elevated: #475569;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Borders */
    --border-color: #334155;
    --border-light: #475569;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1060;
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --secondary-color: #4f46e5;
    --accent-color: #9333ea;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border-color: #e2e8f0;
    --border-light: #cbd5e1;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--spacing-lg);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--spacing-2xl);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-inline: var(--spacing-3xl);
    }
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section */
.section {
    padding-block: var(--spacing-4xl);
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding-block: 5rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding-block: 7rem;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 42rem;
    margin-inline: auto;
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

/* Reveal on Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background-color: transparent;
    transition: background-color var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--spacing-lg);
    gap: var(--spacing-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Cairo', sans-serif;
}

/* Nav Links */
.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-lg);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.1);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-base);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav Menu */
@media (max-width: 1023px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        flex-direction: column;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-base), opacity var(--transition-base);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background-color: var(--bg-tertiary);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus-visible {
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-white {
    background-color: white;
    color: var(--bg-primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

.btn-small {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .btn-primary {
        display: none;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    animation-delay: 7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    animation-delay: 14s;
}

@keyframes 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);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--spacing-4xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (min-width: 1024px) {
    .hero-content {
        text-align: right;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Illustration */
.hero-illustration {
    display: none;
}

@media (min-width: 768px) {
    .hero-illustration {
        display: block;
    }
}

.hero-svg {
    width: 100%;
    height: auto;
    color: var(--text-primary);
}

.floating-element {
    animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.pulse-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: pulseLine 3s ease-in-out infinite;
}

@keyframes pulseLine {
    0%, 100% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
    padding: var(--spacing-2xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===================================
   Cloud Feature Section
   =================================== */
.cloud-feature {
    background: var(--bg-primary);
}

.cloud-feature-layout {
    display: grid;
    gap: var(--spacing-4xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .cloud-feature-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.cloud-feature-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.cloud-features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.cloud-feature-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.cloud-feature-item:hover {
    transform: translateX(-8px);
    border-color: var(--primary-color);
}

.cloud-feature-item svg {
    flex-shrink: 0;
    color: var(--success-color);
}

.cloud-feature-item strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.cloud-feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Pipeline Diagram */
.cloud-feature-diagram {
    display: flex;
    justify-content: center;
}

.pipeline-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    color: var(--text-primary);
}

.pipeline-node circle {
    transition: all var(--transition-base);
}

.pipeline-node:hover circle {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.pipeline-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.pipeline-line[data-connect="1"] {
    animation-delay: 0.5s;
}

.pipeline-line[data-connect="2"] {
    animation-delay: 1s;
}

.pipeline-line[data-connect="3"] {
    animation-delay: 1.5s;
}

.pipeline-line[data-connect="4"] {
    animation-delay: 2s;
}

/* ===================================
   Work / Case Studies Section
   =================================== */
.work {
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    gap: var(--spacing-2xl);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.case-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.case-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-thumbnail-bg {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-thumbnail-bg {
    transform: scale(1.1);
}

.case-tag {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.case-content {
    padding: var(--spacing-2xl);
}

.case-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.case-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================================
   Clients Section
   =================================== */
.clients {
    background: var(--bg-primary);
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-4xl);
    padding: var(--spacing-3xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
}

.client-logo {
    color: var(--text-muted);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.client-logo:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: var(--spacing-xl);
    overflow: hidden;
    scroll-behavior: smooth;
}

.testimonial-card {
    min-width: 100%;
    padding: var(--spacing-3xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    quotes: '"' '"';
}

.testimonial-quote::before {
    content: open-quote;
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 0;
    margin-left: var(--spacing-sm);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.author-avatar {
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Testimonial Controls */
.testimonials-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.testimonial-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonial-dot.active {
    background: var(--primary-color);
    width: 30px;
}

/* ===================================
   Tech Stack Section
   =================================== */
.tech-stack {
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-xl);
}

.tech-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.tech-item svg {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.tech-item:hover svg {
    color: var(--primary-color);
}

.tech-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tech-item:hover .tech-label {
    color: var(--primary-color);
}

/* Tooltip */
.tech-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tech-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ===================================
   CTA Band
   =================================== */
.cta-band {
    background: var(--gradient-primary);
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-lg);
    color: white;
}

.cta-text {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    margin-bottom: var(--spacing-2xl);
    max-width: 48rem;
    margin-inline: auto;
    opacity: 0.95;
}

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

.contact-layout {
    display: grid;
    gap: var(--spacing-4xl);
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: none;
    font-size: 0.875rem;
    color: var(--error-color);
}

.form-group.error .form-input {
    border-color: var(--error-color);
}

.form-group.error .form-error {
    display: block;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.info-card {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.info-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    color: var(--primary-color);
}

.info-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.info-text {
    color: var(--text-secondary);
}

.info-link {
    color: var(--primary-color);
    font-weight: 600;
}

.info-link:hover {
    text-decoration: underline;
}

.map-placeholder {
    margin-top: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
}

.footer-legal a {
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.separator {
    color: var(--text-muted);
}

/* ===================================
   Modal
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
}

.modal-container {
    position: relative;
    z-index: var(--z-modal);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--error-color);
}

.modal-body {
    padding: var(--spacing-2xl);
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 767px) {
    .section {
        padding-block: var(--spacing-3xl);
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .hero {
        min-height: auto;
        padding-bottom: var(--spacing-4xl);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-blob,
    .floating-element,
    .pulse-line,
    .pipeline-line {
        animation: none !important;
    }
}
.case-thumbnail-bg{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
