@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --accent-2: #ec4899;
    --accent-3: #f59e0b;
    --accent-4: #10b981;
    --success: #10b981;
    --light: #f8fafc;
    --dark: #0a0a0f;
    --gray-100: #1a1a2e;
    --gray-200: #16213e;
    --gray-300: #1f2937;
    --gray-400: #374151;
    --gray-500: #4b5563;
    --gray-600: #6b7280;
    --gray-700: #9ca3af;
    --gray-800: #d1d5db;
    --gray-900: #f3f4f6;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --gradient-4: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.4) 0%, transparent 60%);
    --gradient-glow-2: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.3) 0%, transparent 60%);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --body-bg: #0a0a0f;
    --text-color: #fff;
    --text-muted: #9ca3af;
    --card-bg: #1a1a2e;
    --card-border: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    --light: #0a0a0f;
    --dark: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    --gradient-glow-2: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.15) 0%, transparent 60%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --body-bg: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    background: var(--body-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 56px;
}

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 20s infinite ease-in-out;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    opacity: 0.4;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -150px;
    left: -100px;
    opacity: 0.3;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.95); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

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

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .header {
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header.scrolled {
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    transition: var(--transition);
}

.logo:hover img {
    filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.9));
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--gray-400);
    font-weight: 500;
    border-radius: 10px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    background: var(--gray-100);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 15px;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.theme-toggle:hover i {
    color: #fff;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark);
    padding: 120px 0 80px;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 40%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3D Hero Cards - Circular Layout */
.hero-3d-section {
    position: absolute;
    right: 18%;
    top: 46%;
    transform: translateY(-46%);
    width: 500px;
    height: 500px;
    z-index: 5;
    animation: rotateCircle 30s linear infinite;
}

@keyframes rotateCircle {
    from { transform: translateY(-46%) rotate(0deg); }
    to { transform: translateY(-46%) rotate(360deg); }
}

.hero-3d-section:hover {
    animation-play-state: paused;
}

.hero-card-3d {
    position: absolute;
    width: 130px !important;
    height: 130px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-card-3d:hover {
    transform: scale(1.25);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.25);
    z-index: 10;
}

.hero-card-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.hero-card-3d h4 {
    font-size: 0.75rem;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Circular positions */
.hero-card-1 { top: 0; left: 50%; transform: translateX(-50%); }
.hero-card-2 { top: 12%; right: 5%; }
.hero-card-3 { top: 38%; right: 0; }
.hero-card-4 { top: 65%; right: 5%; }
.hero-card-5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.hero-card-6 { top: 65%; left: 5%; }
.hero-card-7 { top: 38%; left: 0; }
.hero-card-8 { top: 12%; left: 5%; }
.hero-card-9 { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.hero-card-3d:hover {
    transform: scale(1.25) !important;
}

.hero-card-1:hover, .hero-card-5:hover { transform: translateX(-50%) scale(1.25) !important; }
.hero-card-3:hover, .hero-card-7:hover { transform: translateY(-50%) scale(1.25) !important; }
.hero-card-9:hover { transform: translate(-50%, -50%) scale(1.25) !important; }

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 18px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Cards */
.services .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 45px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-1);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray-500);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    gap: 18px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
    height: 550px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 32px;
    backdrop-filter: blur(20px);
    animation: floatCard 7s infinite ease-in-out;
}

.floating-card-1 { top: 5%; left: 5%; animation-delay: 0s; }
.floating-card-2 { top: 40%; right: 0%; animation-delay: -2.5s; }
.floating-card-3 { bottom: 5%; left: 15%; animation-delay: -5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateY(-6deg); }
    50% { transform: translateY(-25px) rotateY(6deg); }
}

.floating-card-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.floating-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.floating-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--gray-500);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
}

.feature-item i {
    width: 26px;
    height: 26px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-brand-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 42px;
    box-shadow: var(--shadow-card);
}

.about-brand-logo {
    width: 180px;
    max-width: 100%;
    margin-bottom: 28px;
}

.about-brand-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-brand-copy h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-brand-copy p {
    color: var(--gray-500);
    margin-bottom: 28px;
    font-size: 1rem;
}

.about-brand-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-brand-metrics div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.about-brand-metrics strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.about-brand-metrics span {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Inner Page Header Showcase */
.page-header-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 48px;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 1;
}

.page-header-copy h1,
.page-header-copy p,
.page-header-copy .breadcrumb {
    position: relative;
    z-index: 1;
}

.page-header-copy .breadcrumb {
    justify-content: flex-start;
}

.page-header-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.showcase-card {
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.showcase-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}

.showcase-card h4 {
    margin: 16px 0 8px;
    font-size: 1.05rem;
}

.showcase-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-theme="light"] .showcase-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1024px) {
    .page-header-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .page-header-copy .breadcrumb {
        justify-content: center;
    }

    .page-header-showcase {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-card {
        min-height: auto;
    }
}

/* Stats Section */
.stats {
    background: var(--gradient-dark);
    padding: 90px 0;
    position: relative;
}

.stats .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    text-align: center;
    padding: 45px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-15px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
}

.stat-box .icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 22px;
}

.stat-box .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box .label {
    color: var(--gray-500);
    font-size: 1rem;
}

/* 3D Portfolio Gallery */
.portfolio-gallery {
    perspective: 1500px;
    transform-style: preserve-3d;
    padding: 40px 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 35px;
    transform-style: preserve-3d;
    animation: scrollGallery 35s linear infinite;
    width: fit-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-item {
    flex-shrink: 0;
    width: 420px;
    transform-style: preserve-3d;
}

.gallery-inner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    overflow: hidden;
    transition: var(--transition);
    transform: translateZ(0);
}

.gallery-inner:hover {
    transform: translateY(-25px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
}

.gallery-image {
    width: 100%;
    height: 290px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-inner:hover .gallery-image {
    transform: scale(1.12);
}

.gallery-content {
    padding: 30px;
}

.gallery-category {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 14px;
}

.gallery-content h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.gallery-content p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

/* Testimonials */
.testimonials {
    background: var(--gradient-dark);
}

.testimonials .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 38px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-12px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-info h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.testimonial-info span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--gray-400);
    font-style: italic;
    margin-bottom: 22px;
    line-height: 1.85;
}

.testimonial-rating {
    color: var(--accent-3);
}

/* CTA Section */
.cta {
    background: var(--gradient-dark);
    text-align: center;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.cta::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 400px;
    height: 400px;
    background: var(--gradient-glow-2);
    border-radius: 50%;
    filter: blur(100px);
    transform: translateY(-50%);
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 42px;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
    background: var(--gradient-1);
    color: #fff;
    padding: 18px 42px;
    font-size: 1.1rem;
    border: none;
}

.cta .btn:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background: var(--gradient-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 2.3rem;
    margin-bottom: 22px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 42px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(12px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.contact-item i {
    width: 55px;
    height: 55px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 48px;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    color: var(--gray-400);
    margin-bottom: 12px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.05);
}

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

.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #050508;
    padding: 90px 0 35px;
    border-top: 1px solid var(--card-border);
}

[data-theme="light"] .footer {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--gray-500);
    margin-top: 22px;
    max-width: 320px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 25px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-5px);
}

.footer-links h4 {
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Page Header */
.page-header {
    padding: 190px 0 100px;
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--primary-light);
}

.breadcrumb span {
    margin: 0 12px;
    color: var(--gray-600);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card-3d {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 42px;
    transition: var(--transition);
}

.card-3d:hover {
    transform: translateY(-18px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 28px;
}

.card-3d h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.card-3d p {
    color: var(--gray-500);
    margin-bottom: 22px;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .about-content { grid-template-columns: 1fr; gap: 50px; }
    .about-visual { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
    .hero-3d-section { display: none; }
}

@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
    .stats .row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 30px; }
    .stats .row { grid-template-columns: 1fr; }
    .about-brand-card { padding: 28px; }
    .about-brand-metrics { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: 100%; }
    .footer-social { justify-content: center; }
}

@media (max-width: 1024px) {
    .container { padding: 0 32px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gradient-1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* Products Section */
.products .product-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
}

.products .product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.products .product-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.products .product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.products .product-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Tech Expertise Section */
.tech-expertise .tech-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
}

.tech-expertise .tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.tech-expertise .tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.tech-expertise .tech-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Industries Section */
.industries .industry-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.industries .industry-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.industries .industry-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 20px;
}

.industries .industry-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.industries .industry-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.industries .client-distribution {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 40px;
}

.industries .region-stat {
    padding: 20px;
}

.industries .region-percentage {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.industries .region-name {
    font-size: 1.2rem;
    color: var(--gray-500);
    font-weight: 600;
}

/* Light Theme Overrides */
[data-theme="light"] body {
    color: var(--gray-700);
}

[data-theme="light"] .hero,
[data-theme="light"] .stats,
[data-theme="light"] .testimonials,
[data-theme="light"] .contact-section,
[data-theme="light"] .cta,
[data-theme="light"] .page-header,
[data-theme="light"] .section {
    background-color: var(--body-bg);
}

[data-theme="light"] .service-card,
[data-theme="light"] .stat-box,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .contact-item,
[data-theme="light"] .contact-form,
[data-theme="light"] .floating-card,
[data-theme="light"] .gallery-inner,
[data-theme="light"] .products .product-card,
[data-theme="light"] .tech-expertise .tech-card,
[data-theme="light"] .industries .industry-card,
[data-theme="light"] .industries .client-distribution {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .stat-box:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .contact-item:hover,
[data-theme="light"] .gallery-inner:hover,
[data-theme="light"] .products .product-card:hover,
[data-theme="light"] .tech-expertise .tech-card:hover,
[data-theme="light"] .industries .industry-card:hover {
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.14);
}

[data-theme="light"] .feature-item,
[data-theme="light"] .testimonial-text,
[data-theme="light"] .nav-link,
[data-theme="light"] .service-card p,
[data-theme="light"] .about-text p,
[data-theme="light"] .stat-box .label,
[data-theme="light"] .gallery-content p,
[data-theme="light"] .testimonial-info span,
[data-theme="light"] .contact-info > p,
[data-theme="light"] .contact-item p,
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .products .product-card p,
[data-theme="light"] .tech-expertise .tech-card p,
[data-theme="light"] .industries .industry-card p,
[data-theme="light"] .industries .region-name {
    color: var(--gray-600);
}

[data-theme="light"] .form-group label {
    color: var(--gray-700);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border-color: var(--gray-300);
    color: var(--gray-900);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: var(--gray-500);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: #ffffff;
}

[data-theme="light"] .footer-social a {
    background: #ffffff;
    border-color: var(--gray-300);
}

[data-theme="light"] .cta {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

[data-theme="light"] .cta p {
    color: var(--gray-700);
}

[data-theme="light"] .hero-3d-section {
    filter: drop-shadow(0 18px 40px rgba(99, 102, 241, 0.12));
}

[data-theme="light"] .hero-card-3d {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .hero-card-3d h4 {
    color: var(--gray-900);
}

[data-theme="light"] .hero-card-3d:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 28px 55px rgba(99, 102, 241, 0.22);
}
