/* ============================================
   next tech - Custom Styles
   Clone of Antimatter AI website
   ============================================ */

/* CSS Variables - Dark Theme (Default) */
:root {
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --primary-gradient-hover: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    --bg-dark: #09090b;
    --bg-card: #111115;
    --bg-card-hover: #18181d;
    --bg-elevated: #1a1a1f;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --accent-green: #a855f7;
    --accent-cyan: #7c3aed;
    --accent-purple: #8b5cf6;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Theme transition */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6;
    --bg-elevated: #ffffff;
    --text-primary: #0f0f10;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --overlay-bg: rgba(255, 255, 255, 0.8);
}

/* Light theme specific overrides */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px var(--shadow-color);
}

[data-theme="light"] .nav-link {
    color: rgba(15, 15, 16, 0.7) !important;
}

[data-theme="light"] .nav-link:hover {
    color: var(--text-primary) !important;
}

[data-theme="light"] .logo-icon {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--primary-gradient) border-box;
}

[data-theme="light"] .footer-logo .logo-icon {
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                var(--primary-gradient) border-box;
}

[data-theme="light"] .btn-nav-cta {
    border-color: rgba(15, 15, 16, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .btn-nav-cta:hover {
    background: rgba(15, 15, 16, 0.05);
    border-color: rgba(15, 15, 16, 0.3);
}

[data-theme="light"] .btn-arrow {
    background: var(--text-primary);
}

[data-theme="light"] .btn-arrow svg {
    color: var(--bg-card);
}

[data-theme="light"] .hero-bg-text {
    color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-light-effect {
    background: radial-gradient(ellipse 60% 80% at 20% 30%, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 30%,
        transparent 70%);
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .card-inner {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
}

[data-theme="light"] .card-inner:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 40px var(--shadow-color);
}

[data-theme="light"] .swiper-slide-active .card-inner,
[data-theme="light"] .swiper-slide.is-active .card-inner,
[data-theme="light"] .card-inner.active {
    background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
}

[data-theme="light"] .card-number {
    color: rgba(15, 15, 16, 0.25);
}

[data-theme="light"] .card-desc {
    color: var(--text-secondary);
}

[data-theme="light"] .info-services h5,
[data-theme="light"] .info-tools h5 {
    color: var(--text-muted);
}

[data-theme="light"] .info-services span {
    color: var(--text-secondary);
}

[data-theme="light"] .tools-icons i {
    color: var(--text-muted);
}

[data-theme="light"] .testimonial-card {
    background: var(--bg-card);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="light"] .case-studies-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

[data-theme="light"] .image-placeholder {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.08) 100%);
}

[data-theme="light"] .tab-btn.active {
    color: white;
}

[data-theme="light"] .trusted-section {
    background: var(--bg-card);
}

[data-theme="light"] .logo-placeholder {
    background: var(--bg-dark);
    color: var(--text-secondary);
}

[data-theme="light"] .cta-bg .light-rays {
    background: 
        url('../images/Fadebg.png') bottom center no-repeat,
        radial-gradient(ellipse 80% 80% at 50% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

[data-theme="light"] .footer {
    background: var(--bg-card);
}

[data-theme="light"] .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

[data-theme="light"] .dropdown-item {
    color: var(--text-secondary);
}

[data-theme="light"] .dropdown-item:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .social-link {
    background: var(--bg-dark);
    border-color: var(--border-color);
}

[data-theme="light"] .social-link:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.theme-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Theme icons - controlled by JS for instant display */
.theme-toggle .theme-icon-light {
    display: none;
}

.theme-toggle .theme-icon-dark {
    display: block;
}

[data-theme="light"] .theme-toggle .theme-icon-light {
    display: block;
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
    display: none;
}

/* Base Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION - Antimatter Style
   ============================================ */
.navbar {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 0.85rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent;
    border-radius: 5px;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                var(--primary-gradient) border-box;
    color: #a855f7;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-transform: lowercase;
}

/* Center Nav Links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

/* CTA Button - Antimatter Style */
.btn-nav-cta {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.btn-arrow {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-arrow svg {
    width: 16px;
    height: 16px;
    color: var(--bg-dark);
}

.btn-nav-cta:hover .btn-arrow {
    transform: rotate(45deg);
}

/* Dropdown Menus */
.dropdown-menu {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION - Antimatter AI Style
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 40px;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Background Text - Large watermark */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.05em;
    user-select: none;
}

/* Light Effect - Top Left Glow */
.hero-light-effect {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse 60% 80% at 20% 30%, 
        rgba(100, 120, 255, 0.15) 0%, 
        rgba(80, 100, 200, 0.08) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Three.js Particle Sphere Container - FIXED, moves between Hero and Services */
.hero-sphere-container {
    position: fixed;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 45%;
    height: 70vh;
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease, width 0.5s ease;
}

#particle-sphere {
    width: 100%;
    height: 100%;
    pointer-events: auto;
    cursor: default;
}

/* Hero Container - Full Layout */
.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 140px);
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Hero Title Wrapper - Left aligned to avoid sphere overlap */
.hero-title-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    padding: 2rem 0;
    max-width: 60%;
    padding-left: 0;
}

/* Hero Title - with Italic styling */
.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-align: left;
}

.hero-title .word {
    display: inline;
}

.hero-title .word.italic {
    font-style: italic;
    font-weight: 300;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    display: block;
}

.title-line:nth-child(2) {
    padding-left: 1rem;
}

/* Hero Bottom Row */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 2rem;
    gap: 2rem;
}

/* Hero Left - Description & Button */
.hero-left {
    max-width: 500px;
}

/* Hero Description */
.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    font-weight: 300;
}

/* Hero CTA Button - Antimatter Style */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Button - Gradient border style */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    color: #fff;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

/* Hero Stats - Bottom of hero */
/* Hero Stats - Right side bottom */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hero-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-stat-number {
    display: flex;
    align-items: baseline;
}

.hero-stat-number .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-stat-number .stat-suffix {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    font-weight: 300;
}

/* ============================================
   STATS SECTION (Legacy - hidden)
   ============================================ */
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Rolling Number Animation */
.rolling-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.digit-slot {
    height: 1.1em;
    overflow: hidden;
    position: relative;
}

.digit-reel {
    display: flex;
    flex-direction: column;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.digit-reel span {
    display: block;
    height: 1.1em;
    line-height: 1.1;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.digit-slot.animated .digit-reel {
    animation: digitSpin 0.15s linear;
}

@keyframes digitSpin {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

.stat-plus,
.stat-percent {
    font-size: 2rem;
    vertical-align: top;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-text {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* ============================================
   SERVICES SECTION - ANTIMATTER STYLE
   ============================================ */
#service-section {
    position: relative;
}

.services-section {
    padding: 120px 0 80px;
    background: var(--bg-dark);
    position: relative;
    min-height: 100vh;
    overflow: visible;
}

/* Main row for Bootstrap grid */
.services-main-row {
    position: relative;
    min-height: 550px;
}

.projects-main-row {
    position: relative;
    min-height: 600px;
}

/* Projects Model Column (4 cols) */
.projects-model-col {
    position: relative;
    z-index: 20;
}

/* Projects Model Area */
.projects-model-area {
    position: relative;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Projects Content Column (8 cols) */
.projects-content-col {
    position: relative;
    z-index: 10;
}

/* Left Model Column (4 cols) */
.services-model-col {
    position: relative;
    z-index: 20;
}

/* Model Area - centered with cards */
.services-model-area {
    position: relative;
    height: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Cards Column (8 cols) */
.services-cards-col {
    position: relative;
    z-index: 5;
    margin-left: -100px; /* Cards go behind the model */
}

/* Fade mask for cards going behind model */
.services-cards-wrapper {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
}

.services-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    padding: 0 1rem;
}

.services-header .section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -1px;
    line-height: 1.2;
    white-space: nowrap;
}

.services-header .section-title .title-word:first-child {
    color: var(--text-primary);
    font-style: italic;
}

.title-word {
    display: inline;
    margin-right: 0.3em;
}

.services-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 450px;
    line-height: 1.6;
    font-weight: 300;
    text-align: right;
    margin: 0;
}

/* Mobile Navigation - Hidden on desktop */

/* Mobile Navigation */
.mobile-slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-slider-nav {
        display: none;
    }
}

.slider-btn-mobile {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.slider-btn-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.slider-btn-mobile.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.slider-btn-mobile svg {
    width: 28px;
    height: 28px;
}

/* Swiper Styles */
.services-swiper {
    overflow: visible !important;
    width: 100%;
    padding-left: 80px;
}

.services-swiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.services-swiper .swiper-slide {
    width: 320px;
    height: auto;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1280px) {
    .services-swiper .swiper-slide {
        width: 350px;
    }
}

@media (min-width: 1536px) {
    .services-swiper .swiper-slide {
        width: 380px;
    }
}

/* Service Card */
.service-card {
    height: 100%;
    width: 100%;
}

.card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s ease;
}

.card-link:hover {
    transform: scale(1.02);
}

.card-inner {
    position: relative;
    height: 480px;
    padding: 1.75rem;
    border: 1px solid rgba(113, 113, 122, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
}

.card-inner:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

/* Active card */
.swiper-slide-active .card-inner,
.swiper-slide.is-active .card-inner,
.card-inner.active {
    background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

/* Card Background - hidden */
.card-bg {
    display: none;
}

/* Card Glow - simplified */
.card-glow {
    display: none;
}

/* Card Content Wrapper */
.card-content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Arrow */
.card-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.card-arrow svg {
    width: 100%;
    height: 100%;
}

.swiper-slide-active .card-arrow,
.swiper-slide.is-active .card-arrow,
.card-inner.active .card-arrow,
.card-link:hover .card-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Grotesk', sans-serif;
}

.swiper-slide-active .card-number,
.swiper-slide.is-active .card-number,
.card-inner.active .card-number {
    color: rgba(255, 255, 255, 0.6);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

@media (min-width: 1536px) {
    .card-title {
        font-size: 1.6rem;
    }
}

/* Card Body - always visible */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.card-title-hidden {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

@media (min-width: 1536px) {
    .card-title-hidden {
        font-size: 1.6rem;
    }
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.swiper-slide-active .card-desc,
.swiper-slide.is-active .card-desc,
.card-inner.active .card-desc {
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1536px) {
    .card-desc {
        font-size: 1rem;
    }
}

/* Card Info */
.card-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.swiper-slide-active .card-info,
.swiper-slide.is-active .card-info,
.card-inner.active .card-info {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.info-services h5,
.info-tools h5 {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.swiper-slide-active .info-services h5,
.swiper-slide.is-active .info-services h5,
.card-inner.active .info-services h5,
.swiper-slide-active .info-tools h5,
.swiper-slide.is-active .info-tools h5,
.card-inner.active .info-tools h5 {
    color: rgba(255, 255, 255, 0.6);
}

.info-services {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.info-services span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.swiper-slide-active .info-services span,
.swiper-slide.is-active .info-services span,
.card-inner.active .info-services span {
    color: rgba(255, 255, 255, 0.85);
}

.info-tools {
    flex-shrink: 0;
}

.tools-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 0.6rem;
}

.tools-icons i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.swiper-slide-active .tools-icons i,
.swiper-slide.is-active .tools-icons i,
.card-inner.active .tools-icons i {
    color: rgba(255, 255, 255, 0.85);
}

.tools-icons i:hover {
    transform: scale(1.1);
}

/* Swiper Pagination */
.swiper-pagination {
    position: static !important;
    display: flex;
    gap: 0.5rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent-green);
    width: 24px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-layout {
        flex-direction: column;
    }
    
    .services-model-area {
        display: none; /* Hide on mobile, sphere stays in hero position */
    }
    
    .projects-model-col {
        display: none; /* Hide on mobile */
    }
    
    .projects-content-col {
        width: 100%;
    }
    
    .services-content {
        width: 100%;
        padding: 0 1rem;
    }
    
    .services-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-sphere-container {
        position: absolute !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        opacity: 0.4;
    }
}

@media (max-width: 640px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-layout {
        padding: 0 1rem;
    }
    
    .card-inner {
        height: 500px;
        padding: 1.5rem;
    }
    
    .services-model-area {
        min-height: 200px;
    }
    
    .model-glow {
        width: 250px;
        height: 250px;
    }
}

/* Legacy section styles for other sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.title-number {
    display: block;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CASE STUDIES SECTION
   ============================================ */
.case-studies-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.case-studies-tabs {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: var(--bg-dark);
}

.tab-number {
    font-weight: 600;
    opacity: 0.7;
}

.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.case-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.case-link:hover .case-image .image-placeholder {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.case-preview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.case-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(168, 85, 247, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.image-placeholder i {
    font-size: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-placeholder span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.3;
    max-height: 2.6em;
}

.case-info {
    padding: 2rem 0;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.case-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em;
}

.case-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6.8em;
}

.case-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.case-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.result-value {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Projects Slider Styles */
.projects-slider-wrapper {
    margin-top: 3rem;
    position: relative;
}



.projects-swiper-main .swiper-slide {
    height: auto;
}

.projects-nav-next,
.projects-nav-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.projects-nav-next:hover,
.projects-nav-prev:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--bg-dark);
}

.projects-nav-next::after,
.projects-nav-prev::after {
    font-size: 1.2rem;
    font-weight: 700;
}

.projects-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: 0 !important;
}

.projects-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-secondary);
    opacity: 0.3;
    transition: var(--transition-fast);
}

.projects-pagination .swiper-pagination-bullet-active {
    background: var(--accent-primary);
    opacity: 1;
    width: 24px;
    border-radius: 6px;
}

/* Projects Cards Slider */
.projects-cards-slider-wrapper {
    margin-top: 2rem;
    position: relative;
    padding: 2rem 0;
}

.projects-cards-slider-wrapper .container {
    padding: 0 60px;
    position: relative;
}

.projects-cards-swiper {
    overflow: visible;
    padding-bottom: 20px;
}

.projects-cards-swiper .swiper-slide {
    width: 300px;
    height: auto;
}

.project-mini-card {
    height: 100%;
    width: 100%;
}

.project-mini-card .card-inner {
    height: 400px;
    width: 300px;
}

.project-all-card .card-inner {
    cursor: pointer;
}

.project-all-card .card-inner:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.projects-cards-nav-next,
.projects-cards-nav-prev {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition-fast);
    top: 50%;
    margin-top: -22.5px;
}

.projects-cards-nav-next:hover,
.projects-cards-nav-prev:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--bg-dark);
}

.projects-cards-nav-next::after,
.projects-cards-nav-prev::after {
    font-size: 1rem;
    font-weight: 700;
}

.projects-cards-nav-next {
    right: 0;
}

.projects-cards-nav-prev {
    left: 0;
}

@media (max-width: 768px) {
    .projects-cards-slider-wrapper {
        padding: 0 50px;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .project-card-icon i {
        font-size: 1.5rem;
    }
    
    .project-card-title {
        font-size: 1.1rem;
    }
    
    .project-card-description {
        font-size: 0.9rem;
    }
    
    .projects-cards-nav-next,
    .projects-cards-nav-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .case-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-info {
        padding: 1rem 0;
    }
    
    .case-info h3 {
        font-size: 1.5rem;
        -webkit-line-clamp: 2;
        max-height: 3em;
    }
    
    .case-info p {
        -webkit-line-clamp: 3;
        max-height: 5.1em;
        font-size: 1rem;
    }
    
    .case-number {
        font-size: 2rem;
    }
    
    .image-placeholder span {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }
    
    .projects-nav-next,
    .projects-nav-prev {
        width: 40px;
        height: 40px;
    }
    
    .projects-nav-next::after,
    .projects-nav-prev::after {
        font-size: 1rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 50;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.quote-icon {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot:hover {
    background: var(--text-muted);
}

.dot.active {
    background: var(--primary-gradient);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   TRUSTED SECTION
   ============================================ */
.trusted-section {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trusted-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    width: 100%;
    text-align: center;
}

.logo-placeholder:hover {
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-bg .light-rays {
    background: 
        url('../images/Fadebg.png') bottom center no-repeat,
        radial-gradient(ellipse 80% 80% at 50% 100%, rgba(100, 80, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 30% 100%, rgba(80, 60, 180, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 70% 100%, rgba(120, 100, 220, 0.1) 0%, transparent 40%);
    background-size: contain, auto, auto, auto;
    transform: translateX(-50%) rotate(180deg);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-decoration: none;
    transition: var(--transition-normal);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.3);
}

.cta-buttons .btn i {
    transition: var(--transition-fast);
}

.cta-buttons .btn:hover i {
    transform: translateX(5px);
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--accent-green);
}

.contact-link i {
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 200;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-logo .logo-icon {
    font-size: 0.95rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid transparent;
    border-radius: 5px;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                var(--primary-gradient) border-box;
    color: #a855f7;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 280px;
}

.footer-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-location i {
    color: var(--accent-purple);
}

.footer-clock {
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-clock i {
    color: var(--accent-purple);
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trusted-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .case-preview {
        grid-template-columns: 1fr;
    }
    
    .case-image {
        order: -1;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .hero-bg-text {
        font-size: 3rem;
    }
    
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title-wrapper {
        max-width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
        text-align: center;
    }
    
    .title-line:nth-child(2) {
        padding-left: 0;
    }
    
    .hero-description {
        font-size: 0.95rem;
        max-width: 100%;
        text-align: center;
        margin: 0 auto 1.5rem;
    }
    
    .btn-hero {
        margin: 0 auto;
    }
    
    .hero-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-stat {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-stat-number .stat-value {
        font-size: 1.75rem;
    }
    
    .title-line:nth-child(2) {
        padding-left: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .trusted-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand .logo-text {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .trusted-logos {
        grid-template-columns: 1fr;
    }
    
    .cta-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

/* ============================================
   ENHANCED RESPONSIVE - TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-sphere-container {
        width: 40% !important;
        right: 5% !important;
        opacity: 0.8;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-title-wrapper {
        max-width: 55%;
    }
    
    /* Services */
    .services-cards-col {
        margin-left: -50px;
    }
    
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .services-subtitle {
        text-align: left;
        max-width: 100%;
    }
    
    /* Case Studies */
    .case-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-image {
        height: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ============================================
   ENHANCED RESPONSIVE - MOBILE LARGE (768px)
   ============================================ */
@media (max-width: 768px) {
    /* Global */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Navigation - Mobile */
    .navbar {
        padding: 0.5rem 1rem;
        background: rgba(10, 10, 15, 0.95) !important;
    }
    
    .navbar > .container {
        padding: 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand .logo-text {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        padding: 1.5rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid var(--border-color);
        border-top: none;
        margin-top: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Hide center nav on mobile - show in collapse */
    .nav-center {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* Hide right nav button - show in collapse */
    .nav-right {
        margin-top: 1rem;
        width: 100%;
    }
    
    .nav-right .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Dropdown on mobile */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    /* CTA Button wrapper mobile */
    .nav-cta-wrapper {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-cta-wrapper .btn-nav-cta {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero Section - Mobile */
    .hero-section {
        padding-top: 70px !important;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-sphere-container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 100% !important;
        height: 50vh !important;
        opacity: 0.25;
        z-index: 1;
        pointer-events: none;
    }
    
    .hero-container {
        padding: 0 1rem;
        z-index: 10;
        min-height: auto;
    }
    
    .hero-title-wrapper {
        max-width: 100%;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .title-line {
        justify-content: center;
    }
    
    .title-line:nth-child(2) {
        padding-left: 0 !important;
    }
    
    .hero-description {
        text-align: center;
        max-width: 100%;
        font-size: 0.95rem;
    }
    
    .hero-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .hero-left {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Services Section - Mobile */
    .services-section {
        padding: 60px 0;
    }
    
    .services-main-row {
        flex-direction: column;
    }
    
    .services-model-col {
        display: none;
    }
    
    .services-cards-col {
        margin-left: 0;
        width: 100%;
    }
    
    .services-cards-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
    
    .services-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .services-title-block .section-title {
        white-space: normal;
        text-align: center;
    }
    
    .services-subtitle {
        text-align: center;
        max-width: 100%;
    }
    
    .card-inner {
        height: auto;
        min-height: 450px;
    }
    
    .card-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Mobile Navigation for slider */
    .mobile-slider-nav {
        display: flex !important;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Case Studies */
    .case-info h3 {
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-slider {
        padding: 0 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Trusted Section */
    .trusted-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .logo-item {
        padding: 1rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col h4 {
        margin-bottom: 1rem;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   ENHANCED RESPONSIVE - MOBILE SMALL (480px)
   ============================================ */
@media (max-width: 480px) {
    /* Particle Sphere - reduce for performance */
    #particle-sphere {
        opacity: 0.4;
    }
    
    .hero-sphere-container {
        height: 50vh !important;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.5rem;
    }
    
    .gradient-text {
        font-size: inherit;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-stat-number .stat-value {
        font-size: 1.5rem;
    }
    
    /* Services Cards */
    .card-inner {
        padding: 1.25rem;
        min-height: 400px;
    }
    
    .card-number {
        font-size: 0.8rem;
    }
    
    .card-title-hidden {
        font-size: 1.25rem;
    }
    
    .card-desc {
        font-size: 0.85rem;
    }
    
    .info-services span {
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-brand-text {
        font-size: 1.25rem;
    }
    
    .footer-col p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient Border Animation */
@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan), var(--accent-purple), var(--accent-green));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientBorder 4s ease infinite;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to { left: 100%; }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

/* Text Shine Effect */
.text-shine {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-green) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left center;
}

/* ============================================
   LENIS SMOOTH SCROLL
   ============================================ */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ============================================
   ENHANCED VISUAL EFFECTS
   ============================================ */

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Glow */
.neon-glow {
    text-shadow: 
        0 0 5px var(--accent-green),
        0 0 10px var(--accent-green),
        0 0 20px var(--accent-green),
        0 0 40px var(--accent-green);
}

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, #0a0a0f, #111118, #1a1a2e, #0a0a0f);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

/* Border Gradient Animation */
.border-gradient {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan), var(--accent-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Shine Effect on Hover */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.shine-effect:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ============================================
   LIGHT THEME - Additional Overrides
   ============================================ */

/* Stats Section */
[data-theme="light"] .stats-section {
    background: var(--bg-card);
}

[data-theme="light"] .rolling-number,
[data-theme="light"] .stat-plus,
[data-theme="light"] .stat-percent,
[data-theme="light"] .stat-text,
[data-theme="light"] .digit-reel span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Section */
[data-theme="light"] .services-section {
    background: var(--bg-dark);
}

[data-theme="light"] .services-header .section-title .title-word:first-child {
    color: var(--text-primary);
}

[data-theme="light"] .services-subtitle {
    color: var(--text-secondary);
}

/* Quote Icon */
[data-theme="light"] .quote-icon {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Process Section (About page) */
[data-theme="light"] .process-content {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="light"] .process-timeline::before {
    background: var(--border-color);
}

/* Value Cards (About page) */
[data-theme="light"] .value-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="light"] .value-card:hover {
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Team Cards */
[data-theme="light"] .team-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* Tech Items */
[data-theme="light"] .tech-item {
    background: var(--bg-card);
}

/* AI Lab Page */
[data-theme="light"] .ai-service-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="light"] .ai-case-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="light"] .ai-model-card {
    background: var(--bg-card);
}

[data-theme="light"] .ai-faq-item {
    background: var(--bg-card);
}

[data-theme="light"] .ai-neural-bg {
    opacity: 0.08;
}

[data-theme="light"] .ai-hero-bg {
    background: 
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

/* Contact Page */
[data-theme="light"] .contact-form-wrapper {
    background: var(--bg-card);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="light"] .form-control {
    background: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .form-control:focus {
    background: white;
}

[data-theme="light"] .form-select {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .form-select option {
    background: white;
    color: var(--text-primary);
}

[data-theme="light"] .quick-contact-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="light"] .faq-preview-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="light"] .contact-social-link {
    background: var(--bg-dark);
}

/* Scrollbar Light Theme */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Selection Light Theme */
[data-theme="light"] ::selection {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

/* Glass Effect Light Theme */
[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hover Effects Light Theme */
[data-theme="light"] .hover-lift:hover {
    box-shadow: 0 20px 40px var(--shadow-color);
}

/* Mobile Navigation Light Theme */
@media (max-width: 768px) {
    [data-theme="light"] .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    [data-theme="light"] .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-color: var(--border-color);
    }
    
    [data-theme="light"] .navbar-nav .nav-link:hover {
        background: var(--bg-dark);
    }
}

/* Smooth Theme Transition */
body,
.navbar,
.card-inner,
.service-card,
.testimonial-card,
.footer,
.btn-nav-cta,
.nav-link,
.form-control,
.form-select {
    transition: var(--theme-transition);
}


