:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --accent-color: #ff3366;
    --dark-color: #0a0e1a;
    --light-color: #ffffff;
    --gray-color: #6b7280;
    --surface-color: #1a1d29;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-3: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Light theme variables */
[data-theme="light"] {
    --dark-color: #ffffff;
    --light-color: #1a1d29;
    --surface-color: #f8fafc;
    --gray-color: #64748b;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Light theme specific overrides */
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .lang-select {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--light-color);
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path stroke="%23000000" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M2 2l3 3 3-3"/></svg>') !important;
    background-size: 10px 6px !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
}

[data-theme="light"] .lang-select option {
    background: var(--dark-color);
    color: var(--light-color);
}

[data-theme="light"] .bg-pattern {
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 100, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 51, 102, 0.05) 0%, transparent 50%);
}


[data-theme="light"] .mobile-menu-toggle span {
    background: var(--light-color);
}

[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-controls.mobile-controls {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Remove specific section backgrounds - handled by alternating pattern */

/* Keep code-snippet dark and vivid in light mode */
[data-theme="light"] .code-snippet {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 29, 41, 0.95) 100%);
    border: 1px solid rgba(0, 100, 255, 0.4);
    color: #ffffff;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 100, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .code-header {
    background: linear-gradient(90deg, rgba(0, 100, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%);
    border-bottom: 1px solid rgba(0, 100, 255, 0.3);
}

[data-theme="light"] .code-snippet code {
    color: #ffffff;
}

[data-theme="light"] .code-title {
    color: #9ca3af;
}

[data-theme="light"] .footer {
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Section alternating backgrounds */
section:nth-child(odd) {
    background: rgba(26, 29, 41, 0.6);
}

section:nth-child(even) {
    background: rgba(26, 29, 41, 0.1);
}

/* Light theme alternating backgrounds */
[data-theme="light"] section:nth-child(odd) {
    background: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] section:nth-child(even) {
    background: rgba(248, 250, 252, 0.1);
}

/* Service cards borders in light mode */
[data-theme="light"] .service-card {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* CTA button secondary in light mode */
[data-theme="light"] .cta-button.secondary {
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: var(--light-color);
}

/* Contact form inputs in light mode */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--light-color);
}

/* Tech items in light mode */
[data-theme="light"] .tech-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tech-item-detail {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Example cards in light mode */
[data-theme="light"] .example-card {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .example-preview {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .preview-map {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .preview-web {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .cta-content p {
    color: rgba(26, 29, 41, 0.9);
}

/* Feature items in light mode */
[data-theme="light"] .feature-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Standard items in light mode */
[data-theme="light"] .standard-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Methodology items (if not already defined) */
.methodology-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.methodology-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 100, 255, 0.3);
    box-shadow: var(--shadow-heavy);
}

.methodology-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--gradient-2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
}

/* Methodology items in light mode */
[data-theme="light"] .methodology-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 51, 102, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

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

.logo h1,
.logo h3 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop nav-links styling */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Hide mobile controls on desktop */
.nav-controls.mobile-controls {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.language-selector {
    margin-right: 0;
}

.lang-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--light-color);
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path stroke="%23ffffff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M2 2l3 3 3-3"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 10px 6px !important;
}

/* Force remove native select arrow */
.lang-select::-ms-expand {
    display: none;
}

.lang-select::-webkit-outer-spin-button,
.lang-select::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.1);
}

.lang-select option {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    margin-right: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon .sun-icon,
.theme-toggle-icon .moon-icon {
    position: absolute;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-toggle[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-2);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter {
    position: relative;
    overflow: hidden;
}

.typewriter::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-2);
    color: var(--light-color);
    box-shadow: var(--shadow-medium);
}

.cta-button.secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.tech-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-item.active {
    background: var(--gradient-2);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Section Styling */
.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 100, 255, 0.3);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    margin-bottom: 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Cube Animation */
.icon-3d {
    perspective: 200px;
}

.cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 4s linear infinite;
}

.face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    opacity: 0.8;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.face.front { transform: translateZ(30px); }
.face.back { transform: translateZ(-30px) rotateY(180deg); }
.face.right { transform: rotateY(90deg) translateZ(30px); }
.face.left { transform: rotateY(-90deg) translateZ(30px); }
.face.top { transform: rotateX(90deg) translateZ(30px); }
.face.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Map Icon Animation */
.icon-map {
    position: relative;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.grid-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

.grid-dot:nth-child(odd) {
    animation-delay: 0.5s;
}

.map-pin {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: pinBounce 2s infinite;
}

@keyframes mapPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pinBounce {
    0%, 100% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.2); }
}

/* Process Flow Animation */
.process-flow {
    display: flex;
    align-items: center;
    gap: 15px;
}

.node {
    width: 20px;
    height: 20px;
    background: var(--gradient-2);
    border-radius: 50%;
    position: relative;
    animation: nodeGlow 3s infinite;
}

.node:nth-child(odd) {
    animation-delay: 1s;
}

.connection {
    width: 30px;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.connection::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    animation: flowAnimation 2s infinite;
}

@keyframes nodeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 100, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 100, 255, 1); }
}

@keyframes flowAnimation {
    0% { left: -100%; }
    100% { left: 100%; }
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.service-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-tech {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-tech li {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-family: var(--font-mono);
}

/* About Section */
.about {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    line-height: 1.8;
}

.about-description strong {
    color: var(--secondary-color);
}

.about-description em {
    color: var(--accent-color);
    font-style: normal;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

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

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

.code-snippet {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 29, 41, 0.9) 100%);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 100, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(90deg, rgba(0, 100, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 100, 255, 0.2);
    backdrop-filter: blur(10px);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.code-dots span:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.code-dots span:nth-child(1) { 
    background: linear-gradient(135deg, #ff6b6b, #ff5f57);
    box-shadow: 0 2px 8px rgba(255, 95, 87, 0.3);
}
.code-dots span:nth-child(2) { 
    background: linear-gradient(135deg, #ffd93d, #ffbd2e);
    box-shadow: 0 2px 8px rgba(255, 189, 46, 0.3);
}
.code-dots span:nth-child(3) { 
    background: linear-gradient(135deg, #6bcf7f, #28ca42);
    box-shadow: 0 2px 8px rgba(40, 202, 66, 0.3);
}

.code-title {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
}

.code-line {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.keyword { color: #ff79c6; }
.variable { color: #8be9fd; }
.function { color: #50fa7b; }
.property { color: #ffb86c; }
.string { color: #f1fa8c; }

/* Contact Section */
.contact {
    padding: 120px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-color);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--light-color);
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-color);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-2);
    border: none;
    border-radius: 50px;
    color: var(--light-color);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover .btn-effect {
    left: 100%;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand p {
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--light-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-controls:not(.mobile-controls) {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-controls.mobile-controls {
        display: flex;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active .nav-controls.mobile-controls {
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services,
    .about,
    .contact {
        padding: 80px 0;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 4px;
}

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

/* Contact Form Styles */
.contact-form {
    position: relative;
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.2);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: "⚠️";
    font-size: 0.875rem;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInUp 0.3s ease;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.success::before {
    content: "✅";
    font-size: 1.2rem;
}

.form-message.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--accent-color);
}

.form-message.error::before {
    content: "❌";
    font-size: 1.2rem;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* Form field improvements */
.form-group {
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form input:valid,
.contact-form textarea:valid {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Firebase Status Indicator */
.firebase-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.firebase-status.connected {
    background: rgba(34, 197, 94, 0.8);
}

.firebase-status.error {
    background: rgba(255, 51, 102, 0.8);
}

/* Service Detail Pages */
.service-detail-hero {
    padding: 140px 0 80px;
    background: rgba(26, 29, 41, 0.5);
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    margin: 0 0.5rem;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-detail-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.service-capabilities h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-capabilities ul {
    list-style: none;
}

.service-capabilities li {
    padding: 0.8rem 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 2rem;
}

.service-capabilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.rotating-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.icon-3d.large .cube {
    width: 120px;
    height: 120px;
}

.icon-3d.large .face {
    width: 120px;
    height: 120px;
}

.icon-3d.large .face.front { transform: translateZ(60px); }
.icon-3d.large .face.back { transform: translateZ(-60px) rotateY(180deg); }
.icon-3d.large .face.right { transform: rotateY(90deg) translateZ(60px); }
.icon-3d.large .face.left { transform: rotateY(-90deg) translateZ(60px); }
.icon-3d.large .face.top { transform: rotateX(90deg) translateZ(60px); }
.icon-3d.large .face.bottom { transform: rotateX(-90deg) translateZ(60px); }

/* Examples Section */
.examples-section {
    padding: 120px 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.example-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 100, 255, 0.3);
    box-shadow: var(--shadow-heavy);
}

.example-preview {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-3d {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Mesh Grid Animation */
.mesh-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-line {
    position: absolute;
    background: var(--gradient-2);
    opacity: 0.3;
}

.grid-line:nth-child(1) {
    width: 80%;
    height: 2px;
    top: 25%;
    animation: gridPulse 3s infinite;
}

.grid-line:nth-child(2) {
    width: 80%;
    height: 2px;
    top: 50%;
    animation: gridPulse 3s infinite 0.5s;
}

.grid-line:nth-child(3) {
    width: 2px;
    height: 60%;
    left: 30%;
    animation: gridPulse 3s infinite 1s;
}

.grid-line:nth-child(4) {
    width: 2px;
    height: 60%;
    right: 30%;
    animation: gridPulse 3s infinite 1.5s;
}

.floating-object {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: floatObject 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes floatObject {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Architecture Scene */
.architecture-scene {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    gap: 10px;
    padding: 20px;
}

.building {
    background: var(--gradient-2);
    border-radius: 3px 3px 0 0;
    animation: buildingGrow 2s ease-in-out infinite alternate;
}

.building:nth-child(1) {
    width: 30px;
    height: 80px;
    animation-delay: 0s;
}

.building:nth-child(2) {
    width: 25px;
    height: 120px;
    animation-delay: 0.3s;
}

.building:nth-child(3) {
    width: 35px;
    height: 100px;
    animation-delay: 0.6s;
}

@keyframes buildingGrow {
    0% { transform: scaleY(0.8); opacity: 0.6; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* Game Scene */
.game-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.character {
    width: 30px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 15px 15px 5px 5px;
    animation: characterJump 2s ease-in-out infinite;
    z-index: 2;
}

.platform {
    position: absolute;
    bottom: 20px;
    width: 80%;
    height: 15px;
    background: var(--secondary-color);
    border-radius: 7px;
}

.collectible {
    position: absolute;
    top: 30%;
    right: 25%;
    width: 20px;
    height: 20px;
    background: var(--gradient-2);
    border-radius: 50%;
    animation: collectibleSpin 3s linear infinite;
}

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

@keyframes collectibleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Data Visualization */
.data-viz {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-point {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: dataPointPulse 2s ease-in-out infinite;
}

.data-point:nth-child(1) {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.data-point:nth-child(2) {
    top: 60%;
    left: 50%;
    animation-delay: 0.5s;
}

.data-point:nth-child(3) {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
}

.data-connection {
    position: absolute;
    width: 60%;
    height: 2px;
    background: var(--gradient-2);
    top: 45%;
    left: 20%;
    transform: rotate(15deg);
    animation: connectionFlow 3s ease-in-out infinite;
}

@keyframes dataPointPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

@keyframes connectionFlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.example-content {
    padding: 2rem;
}

.example-content h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.example-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.example-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.example-tech span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 100, 255, 0.1);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-family: var(--font-mono);
}

/* Technologies Section */
.technologies-section {
    padding: 120px 0;
    background: rgba(26, 29, 41, 0.5);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.tech-category h3 {
    color: var(--light-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item-detail {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tech-item-detail:hover {
    border-color: rgba(0, 100, 255, 0.3);
    transform: translateX(5px);
}

.tech-name {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tech-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-1);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design for Service Pages */
@media (max-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-detail-title {
        font-size: 2.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Map Service Specific Styles */
.icon-map.large {
    transform: scale(1.5);
}

.icon-map.large .map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.icon-map.large .grid-dot {
    width: 12px;
    height: 12px;
}

.icon-map.large .map-pin {
    width: 30px;
    height: 30px;
}

/* Map Preview Animations */
.preview-map {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1d29 100%);
}

/* Logistics Map */
.logistics-map {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.route-line {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
    transform: translateY(-50%);
}

.route-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: var(--light-color);
    border-radius: 2px;
    animation: routeProgress 4s ease-in-out infinite;
}

.delivery-point {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: deliveryPulse 2s ease-in-out infinite;
}

.delivery-point.start {
    left: 10%;
    background: var(--secondary-color);
    animation-delay: 0s;
}

.delivery-point.middle {
    left: 50%;
    background: var(--accent-color);
    animation-delay: 1s;
}

.delivery-point.end {
    right: 10%;
    background: var(--secondary-color);
    animation-delay: 2s;
}

.moving-truck {
    position: absolute;
    top: 40%;
    left: 5%;
    width: 20px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 3px;
    animation: truckMovement 4s ease-in-out infinite;
}

.moving-truck::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid var(--accent-color);
}

@keyframes routeProgress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; }
}

@keyframes deliveryPulse {
    0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    50% { transform: translateY(-50%) scale(1.3); box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

@keyframes truckMovement {
    0% { left: 5%; }
    25% { left: 45%; }
    50% { left: 45%; }
    75% { left: 85%; }
    100% { left: 85%; }
}

/* Urban Planning */
.urban-planning {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 10px;
}

.zone {
    border-radius: 3px;
    animation: zoneGrow 3s ease-in-out infinite;
}

.zone.residential {
    background: var(--secondary-color);
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    animation-delay: 0s;
}

.zone.commercial {
    background: var(--accent-color);
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    animation-delay: 0.5s;
}

.zone.industrial {
    background: var(--gradient-2);
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    animation-delay: 1s;
}

.infrastructure.road {
    background: rgba(255, 255, 255, 0.3);
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    height: 3px;
    align-self: center;
    animation: roadTraffic 2s linear infinite;
}

.infrastructure.park {
    background: #50fa7b;
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    border-radius: 50%;
    animation-delay: 1.5s;
}

@keyframes zoneGrow {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes roadTraffic {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Environmental Map */
.environmental-map {
    position: relative;
    width: 100%;
    height: 100%;
}

.sensor-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.sensor {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: sensorBlink 3s ease-in-out infinite;
}

.sensor.active {
    top: 20%;
    left: 20%;
    background: var(--secondary-color);
    animation-delay: 0s;
}

.sensor.warning {
    top: 30%;
    right: 25%;
    background: #ffbd2e;
    animation-delay: 0.5s;
}

.sensor.normal {
    bottom: 30%;
    left: 30%;
    background: #50fa7b;
    animation-delay: 1s;
}

.sensor.critical {
    bottom: 20%;
    right: 20%;
    background: var(--accent-color);
    animation-delay: 1.5s;
}

.pollution-cloud {
    position: absolute;
    top: 40%;
    left: 40%;
    width: 40px;
    height: 25px;
    background: rgba(255, 51, 102, 0.3);
    border-radius: 15px;
    animation: cloudDrift 6s ease-in-out infinite;
}

.pollution-cloud::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 10px;
    width: 20px;
    height: 15px;
    background: rgba(255, 51, 102, 0.2);
    border-radius: 10px;
}

@keyframes sensorBlink {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px currentColor; }
    50% { transform: scale(1.2); box-shadow: 0 0 15px currentColor; }
}

@keyframes cloudDrift {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(5px) translateY(5px); }
    75% { transform: translateX(-5px) translateY(-2px); }
}

/* Tourism Map */
.tourism-map {
    position: relative;
    width: 100%;
    height: 100%;
}

.poi {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    animation: poiHighlight 4s ease-in-out infinite;
}

.poi.monument {
    top: 25%;
    left: 30%;
    background: var(--secondary-color);
    animation-delay: 0s;
}

.poi.monument::after {
    content: '🏛️';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}

.poi.restaurant {
    top: 60%;
    right: 30%;
    background: var(--accent-color);
    animation-delay: 1s;
}

.poi.restaurant::after {
    content: '🍴';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}

.poi.hotel {
    bottom: 25%;
    left: 25%;
    background: #ffbd2e;
    animation-delay: 2s;
}

/* RGPD Consent Styles */
.rgpd-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 10000;
    transition: bottom 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.rgpd-banner.show {
    bottom: 0;
}

.rgpd-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rgpd-text {
    flex: 1;
}

.rgpd-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.rgpd-text p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rgpd-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rgpd-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rgpd-btn-necessary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rgpd-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rgpd-btn-all {
    background: var(--gradient-2);
    color: white;
}

.rgpd-btn-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.rgpd-btn-settings {
    background: transparent;
    color: var(--gray-color);
    text-decoration: underline;
}

.rgpd-btn-settings:hover {
    color: var(--light-color);
}

/* RGPD Modal */
.rgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.rgpd-modal-content {
    background: var(--surface-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rgpd-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rgpd-modal-header h3 {
    margin: 0;
    color: var(--light-color);
    font-size: 1.3rem;
}

.rgpd-close {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rgpd-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.rgpd-modal-body {
    padding: 2rem;
}

.rgpd-category {
    margin-bottom: 2rem;
}

.rgpd-category:last-child {
    margin-bottom: 0;
}

.rgpd-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rgpd-category h4 {
    margin: 0;
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.rgpd-category p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.rgpd-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.rgpd-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rgpd-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rgpd-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--gray-color);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .rgpd-slider {
    background: var(--gradient-2);
    border-color: var(--primary-color);
}

input:checked + .rgpd-slider:before {
    transform: translateX(26px);
    background-color: white;
}

input:disabled + .rgpd-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.rgpd-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.rgpd-btn-save {
    background: var(--gradient-2);
    color: white;
}

/* RGPD Form Consent */
.rgpd-consent {
    margin: 1.5rem 0;
}

.rgpd-consent.form-group {
    display: block;
    grid-template-columns: none;
}

.rgpd-consent-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-color);
}

.rgpd-consent-checkbox {
    margin: 0;
    width: auto;
    flex-shrink: 0;
}

.rgpd-checkmark {
    flex-shrink: 0;
}

.rgpd-consent-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.rgpd-policy-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.rgpd-policy-link:hover {
    color: var(--secondary-color);
}

.rgpd-error {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 8px;
    color: #ff6b9d;
    font-size: 0.9rem;
}

/* Responsive RGPD */
@media (max-width: 768px) {
    .rgpd-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .rgpd-actions {
        justify-content: center;
    }
    
    .rgpd-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .rgpd-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .rgpd-modal-header,
    .rgpd-modal-body,
    .rgpd-modal-footer {
        padding: 1rem 1.5rem;
    }
}

.poi.hotel::after {
    content: '🏨';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}

.tourist-path {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 50%;
    height: 40%;
    border: 2px dashed var(--gradient-2);
    border-radius: 10px;
    animation: pathTrace 5s ease-in-out infinite;
}

.user-location {
    position: absolute;
    bottom: 30%;
    right: 40%;
    width: 12px;
    height: 12px;
    background: var(--light-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: userPulse 2s ease-in-out infinite;
}

@keyframes poiHighlight {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
    25% { transform: scale(1.2); box-shadow: 0 0 15px rgba(0, 212, 255, 0.8); }
}

@keyframes pathTrace {
    0%, 100% { border-color: rgba(0, 212, 255, 0.3); }
    50% { border-color: rgba(0, 212, 255, 1); }
}

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

/* Features Section */
.features-section {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 100, 255, 0.3);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: featureFloat 3s ease-in-out infinite;
}

.feature-item:nth-child(odd) .feature-icon {
    animation-delay: 0.5s;
}

.feature-item h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

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

/* Web Development Icon Animation */
.icon-web {
    position: relative;
    perspective: 200px;
}

.web-layers {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer {
    position: absolute;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: layerFloat 4s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.layer.frontend {
    width: 70px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--secondary-color);
    z-index: 3;
    animation-delay: 0s;
}

.layer.backend {
    width: 60px;
    height: 45px;
    background: rgba(255, 51, 102, 0.2);
    border: 2px solid var(--accent-color);
    transform: translateY(10px) translateZ(-20px);
    z-index: 2;
    animation-delay: 0.5s;
}

.layer.mobile {
    width: 35px;
    height: 60px;
    background: rgba(80, 250, 123, 0.2);
    border: 2px solid #50fa7b;
    transform: translateX(25px) translateZ(-10px);
    z-index: 1;
    animation-delay: 1s;
    border-radius: 12px;
}

.code-bracket {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: bold;
    animation: codeGlow 2s ease-in-out infinite;
}

.server-icon {
    font-size: 18px;
    animation: serverSpin 3s linear infinite;
}

.mobile-frame {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    width: 20px;
    height: 35px;
    background: var(--gradient-2);
    border-radius: 3px;
    animation: screenPulse 2s ease-in-out infinite;
}

@keyframes layerFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}

@keyframes codeGlow {
    0%, 100% { 
        color: var(--secondary-color); 
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    50% { 
        color: var(--light-color); 
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

@keyframes serverSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes screenPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Grid adjustment for 4 services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Web Development Preview Animations */
.preview-web {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1d29 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SPA Demo */
.browser-frame {
    width: 90%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.browser-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
}

.browser-dots {
    display: flex;
    gap: 4px;
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.url-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 8px;
    color: var(--gray-color);
}

.browser-content {
    height: calc(100% - 30px);
    padding: 10px;
}

.component-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.component {
    height: 25px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    animation: componentLoad 3s ease-in-out infinite;
}

.component.active {
    background: var(--gradient-2);
    animation-delay: 0s;
}

.component:nth-child(2) { animation-delay: 0.5s; }
.component:nth-child(3) { animation-delay: 1s; }

@keyframes componentLoad {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* PWA Demo */
.device-mockup {
    width: 120px;
    height: 160px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
}

.device-screen {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon {
    font-size: 16px;
}

.app-title {
    color: var(--secondary-color);
    font-size: 10px;
    font-weight: bold;
}

.offline-indicator {
    font-size: 12px;
    animation: offlineBlink 2s ease-in-out infinite;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-content .feature-item {
    height: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: featurePulse 3s ease-in-out infinite;
}

.app-content .feature-item.active {
    background: var(--gradient-2);
    animation-delay: 0s;
}

.app-content .feature-item:nth-child(2) { animation-delay: 1s; }
.app-content .feature-item:nth-child(3) { animation-delay: 2s; }

.app-content .feature-icon {
    font-size: 12px;
}

@keyframes offlineBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes featurePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* API Demo */
.api-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.client-request, .server-response {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 8px;
    color: var(--secondary-color);
}

.request-arrow, .response-arrow {
    font-size: 12px;
    animation: arrowMove 2s ease-in-out infinite;
}

.server-processing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-box {
    width: 60px;
    height: 40px;
    background: rgba(255, 51, 102, 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.api-endpoint {
    font-size: 8px;
    color: var(--accent-color);
    font-weight: bold;
}

.processing-indicator {
    width: 20px;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: processing 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes processing {
    0%, 100% { width: 10px; opacity: 0.5; }
    50% { width: 30px; opacity: 1; }
}

/* Hybrid Demo */
.multi-platform {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
}

.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    animation: platformPulse 4s ease-in-out infinite;
}

.platform.web { animation-delay: 0s; }
.platform.mobile { animation-delay: 1s; }
.platform.desktop { animation-delay: 2s; }

.platform-icon {
    font-size: 16px;
}

.platform-label {
    font-size: 8px;
    color: var(--gray-color);
}

.shared-code {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: var(--gradient-2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--light-color);
    animation: codeShare 3s ease-in-out infinite;
}

@keyframes platformPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    33% { transform: scale(1.1); opacity: 1; }
}

@keyframes codeShare {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Standards Section */
.standards-section {
    padding: 120px 0;
    background: rgba(26, 29, 41, 0.5);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.standard-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.standard-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 100, 255, 0.3);
    box-shadow: var(--shadow-heavy);
}

.standard-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: standardFloat 3s ease-in-out infinite;
}

.standard-item:nth-child(even) .standard-icon {
    animation-delay: 0.5s;
}

.standard-item h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.standard-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

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

/* Large icon version for service pages */
.icon-web.large {
    transform: scale(1.5);
}