/*
 * Majarra Labs - Main Stylesheet
 * Standalone PHP/MySQL site
 */

/* ===================================
   CSS Variables & Root Styles
=================================== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #22d3ee;
    --accent-light: #67e8f9;
    --accent-dark: #06b6d4;
    --dark: #0a0a0f;
    --dark-lighter: #12121a;
    --dark-medium: #1a1a24;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--accent) 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===================================
   Typography
=================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

.text-accent {
    color: var(--accent);
}

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

/* ===================================
   Layout & Containers
=================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1440px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.section-title {
    margin-bottom: 40px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===================================
   Background Elements
=================================== */
#space-canvas,
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation-delay: -10s;
}

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

/* ===================================
   Navigation
=================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.site-logo svg {
    width: 45px;
    height: 45px;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition-fast);
}

/* ===================================
   Buttons
=================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-medium);
    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: left 0.5s ease;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--text);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(99, 102, 241, 0.5);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

/* ===================================
   Cards
=================================== */
.card {
    background: var(--dark-lighter);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transition: var(--transition-medium);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.card-gradient {
    position: relative;
}

.card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition-medium);
}

.card-gradient:hover::before {
    opacity: 1;
}

/* ===================================
   Hero Section
=================================== */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 30px;
    animation: pulse-border 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
    50% { border-color: rgba(34, 211, 238, 0.6); }
}

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

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* AI Terminal */
.ai-terminal {
    background: var(--dark-lighter);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-md);
    padding: 24px 32px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: left;
    max-width: 550px;
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    max-height: 220px;
}

.ai-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27ca40; }

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: var(--accent);
    margin-right: 10px;
}

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

.terminal-output {
    color: var(--primary-light);
    padding-left: 20px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--accent);
    margin-left: 4px;
    animation: cursor-blink 1s step-end infinite;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

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

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===================================
   Services Section
=================================== */
.services-section {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

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

.service-card {
    padding: 40px;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    white-space: nowrap;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===================================
   Projects/Portfolio Section
=================================== */
.projects-section {
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    aspect-ratio: 16/10;
    transform-style: preserve-3d;
}

.project-card.featured {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-medium);
    transform: translateZ(1px);
    backface-visibility: hidden;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* ===================================
   Clients Section
=================================== */
.clients-section {
    background: var(--dark-lighter);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition-medium);
    max-width: 150px;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===================================
   Testimonials Section
=================================== */
.testimonials-section {
    background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.03) 50%, transparent 100%);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    padding: 40px;
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   Process/Timeline Section
=================================== */
.process-section {
    position: relative;
}

.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .process-content {
    text-align: left;
    padding-left: 80px;
    padding-right: 0;
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.process-content {
    width: 50%;
    padding-right: 80px;
    text-align: right;
}

.process-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process-description {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================================
   Team Section
=================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-grid-founders {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .team-grid-founders {
        grid-template-columns: 1fr;
    }
}

.team-card {
    text-align: center;
    padding: 40px 30px;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
    padding: 3px;
    background: var(--gradient-primary);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.team-social a:hover {
    background: var(--primary);
    color: white;
}

/* ===================================
   Contact Section
=================================== */
.contact-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--primary-light);
}

.contact-item-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3px;
}

.contact-item-text span {
    font-weight: 500;
}

.contact-form {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 22px;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-checkbox {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

.checkbox-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.form-group select option {
    background: var(--dark);
    color: var(--text);
}

/* ===================================
   Legal Pages (Privacy, Terms)
=================================== */
.legal-page {
    padding: 150px 0 100px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 20px 0 15px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px;
}

.legal-section {
    margin-bottom: 30px;
    padding: 0;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text);
}

.legal-section h3 {
    font-size: 1.1rem;
    margin: 25px 0 10px;
    color: var(--text-muted);
}

.legal-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.legal-section ul li {
    color: var(--text-muted);
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 120px 0 60px;
    }

    .legal-content {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }
}

/* ===================================
   Footer
=================================== */
.site-footer {
    background: var(--dark-lighter);
    padding: 80px 0 30px;
    position: relative;
    z-index: 10;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--text);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-column ul a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* ===================================
   Animations
=================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes - visible by default, enhanced by JS */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only hide if JS will animate */
.js-enabled .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .animate-on-scroll.animated,
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ===================================
   Responsive Styles
=================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }

    .process-step:nth-child(even) .process-content {
        text-align: left;
        padding-right: 0;
        padding-left: 0;
    }

    .process-number {
        left: 30px;
        transform: translateX(-50%);
    }

    .process-content {
        width: 100%;
        padding-left: 0;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta .btn {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .ai-terminal {
        padding: 20px;
        font-size: 0.8rem;
    }
}

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

    .btn {
        width: 100%;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .card {
        padding: 25px;
    }
}

/* ===================================
   Mobile Navigation
=================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    padding: 15px 30px;
    text-align: center;
    border: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 10px;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-nav.active .mobile-nav-close {
    opacity: 1;
    transform: rotate(0);
    transition-delay: 0.2s;
}

.mobile-nav-close:hover {
    color: var(--primary);
}

.mobile-nav-overlay {
    display: none;
}

/* ===================================
   Utility Classes
=================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===================================
   Enhanced Mobile Responsive Fixes
=================================== */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow on content elements */
p, h1, h2, h3, h4, h5, h6, span, a, li, td, th, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for media elements */
video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Note: overflow-x: hidden is set on html and body only to prevent scroll containers */

/* Hide decorative orbs on mobile to prevent overflow */
@media (max-width: 768px) {
    .gradient-orbs {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-stat {
        width: 100%;
        padding: 15px;
        background: rgba(99, 102, 241, 0.05);
        border-radius: var(--border-radius-md);
    }

    /* Section Headers Mobile */
    .section-header {
        padding: 0 10px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-description {
        font-size: 0.95rem;
    }

    .section-badge {
        font-size: 0.7rem;
    }

    /* Clients Grid Mobile */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .client-logo img {
        max-height: 40px;
    }

    /* Team Grid Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        padding: 30px 20px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }

    /* Process Section Mobile */
    .process-timeline::before {
        left: 20px;
    }

    .process-step,
    .process-step:nth-child(even) {
        padding-left: 60px;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 20px;
    }

    .process-title {
        font-size: 1.1rem;
    }

    .process-description {
        font-size: 0.9rem;
    }

    /* Contact Section Mobile */
    .contact-info {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px 18px;
        border-radius: 10px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Footer Mobile */
    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-column ul {
        gap: 10px;
    }

    .footer-column a {
        font-size: 0.9rem;
    }

    /* Cards Mobile */
    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-features li {
        font-size: 0.85rem;
    }

    /* Project Cards Mobile */
    .project-card {
        aspect-ratio: 4/3;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
        display: none;
    }

    .project-tech span {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* Testimonials Mobile */
    .testimonials-slider {
        overflow: hidden;
    }

    .testimonials-track {
        flex-direction: column;
        gap: 20px;
    }

    .testimonial-card {
        flex: none;
        width: 100%;
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* AI Terminal Mobile */
    .ai-terminal {
        padding: 15px;
        font-size: 0.75rem;
    }

    .terminal-line,
    .terminal-output {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.2;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.8rem;
    }

    /* Smaller grids */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .client-logo img {
        max-height: 30px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 24px;
    }

    /* Form elements */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Footer */
    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    /* Very small screens */
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .card {
        padding: 20px 15px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
