/* ========================================
   Yepez AIS LLC - Modern Website Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --deep-void: #0a0a0b;
    --charcoal: #141416;
    --soft-white: #fafafa;
    --muted-gray: #9ca3af;
    --dark-gray: #6b7280;
    
    --electric-coral: #ff6b4a;
    --warm-amber: #f59e0b;
    --golden: #ffd700;
    --glow-coral: rgba(255, 107, 74, 0.3);
    --glow-amber: rgba(245, 158, 11, 0.3);
    
    --success: #22c55e;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 600ms;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--soft-white);
    background-color: var(--deep-void);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--soft-white);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    color: var(--muted-gray);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--electric-coral);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--electric-coral) 0%, var(--warm-amber) 50%, var(--golden) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--electric-coral), var(--warm-amber));
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--deep-void);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-gray);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-link:hover {
    color: var(--soft-white);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--electric-coral);
    color: var(--deep-void);
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.nav-cta:hover {
    background: var(--warm-amber);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--glow-coral);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 74, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 70%),
        var(--deep-void);
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
    will-change: transform;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 107, 74, 0.15);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.1);
    bottom: -100px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 215, 0, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--electric-coral);
    margin-bottom: var(--space-xl);
    animation: fade-in-up 0.6s var(--ease-smooth) 0.1s both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--electric-coral);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    margin-bottom: var(--space-lg);
    animation: fade-in-up 0.6s var(--ease-smooth) 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto var(--space-2xl);
    animation: fade-in-up 0.6s var(--ease-smooth) 0.3s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fade-in-up 0.6s var(--ease-smooth) 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    animation: fade-in-up 0.6s var(--ease-smooth) 0.5s both;
}

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--soft-white);
    margin-bottom: var(--space-xs);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--muted-gray);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fade-in 1s var(--ease-smooth) 1s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--muted-gray), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--duration-fast) var(--ease-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--electric-coral);
    color: var(--deep-void);
    border: none;
}

.btn-primary:hover {
    background: var(--warm-amber);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-coral);
}

.btn-secondary {
    background: transparent;
    color: var(--soft-white);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--soft-white);
}

.btn-arrow {
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--deep-void);
}

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

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--charcoal);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all var(--duration-normal) var(--ease-smooth);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-coral), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 74, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 74, 0.1);
}

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 74, 0.1);
    border-radius: 16px;
    margin-bottom: var(--space-lg);
}

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

.service-description {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

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

.service-features li {
    position: relative;
    padding-left: var(--space-lg);
    font-size: 0.9375rem;
    color: var(--muted-gray);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--electric-coral);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--charcoal);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    max-width: 500px;
}

.testimonial {
    display: none;
}

.feature-list {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 74, 0.1);
    border-radius: 50%;
    color: var(--electric-coral);
    font-weight: 700;
    flex-shrink: 0;
}

.quote-mark {
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    font-size: 4rem;
    line-height: 1;
    color: var(--electric-coral);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--soft-white);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.quote-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--soft-white);
}

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

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

.tech-grid {
    position: relative;
    width: 350px;
    height: 350px;
}

.tech-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--deep-void);
    border: 1px solid var(--electric-coral);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--electric-coral);
    box-shadow: 0 0 20px rgba(255, 107, 74, 0.2);
}

.node-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 32%; left: 5%; }
.node-3 { top: 32%; right: 5%; }
.node-4 { bottom: 32%; left: 5%; }
.node-5 { bottom: 32%; right: 5%; }

.tech-connections {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.connections-svg {
    width: 100%;
    height: 100%;
}

.connection-line {
    stroke: var(--electric-coral);
    stroke-width: 1;
    stroke-dasharray: 5 5;
    opacity: 0.3;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -100; }
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: var(--space-4xl) 0;
    background: var(--deep-void);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.process-step {
    position: relative;
    padding: var(--space-2xl);
    background: var(--charcoal);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--electric-coral), var(--warm-amber));
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-void);
}

.step-title {
    margin-bottom: var(--space-md);
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -24px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-coral), transparent);
    transform: translateY(-50%);
    opacity: 0.3;
}

.process-step:last-child .step-connector {
    display: none;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: var(--space-4xl) 0;
}

.cta-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-3xl);
    background: var(--charcoal);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
}

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

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    max-width: 550px;
    margin: 0 auto var(--space-xl);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: var(--space-md);
    width: 100%;
}

.contact-form input {
    flex: 1;
    min-width: 0;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--soft-white);
    font-size: 1rem;
    transition: border-color var(--duration-normal);
}

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

.contact-form input:focus {
    outline: none;
    border-color: var(--electric-coral);
}

.form-captcha {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 107, 74, 0.1);
    border-radius: 8px;
}

.form-captcha span {
    color: var(--muted-gray);
    font-size: 0.9rem;
}

.form-captcha input {
    width: 100px;
    text-align: center;
}

.btn.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 74, 0.15);
    top: -200px;
    left: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.1);
    bottom: -100px;
    right: -50px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--charcoal);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--soft-white);
    margin-bottom: var(--space-lg);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    font-size: 0.9375rem;
    color: var(--muted-gray);
}

.footer-nav a:hover {
    color: var(--electric-coral);
}

.footer-email {
    display: block;
    font-size: 1rem;
    color: var(--electric-coral);
    margin-bottom: var(--space-md);
}

.footer-email:hover {
    color: var(--warm-amber);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--muted-gray);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.social-link:hover {
    background: rgba(255, 107, 74, 0.1);
    border-color: var(--electric-coral);
    color: var(--electric-coral);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-gray);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .tech-grid {
        width: 280px;
        height: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .step-connector {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .cta-wrapper {
        padding: var(--space-xl);
    }
}

/* ========================================
   Animations - Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================
   Smooth Scrolling
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}