/* ===== MODERN STYLE FOR PLAɳ MAEŠTRɸ ===== */

/* CSS Variables */
:root {
    --primary-color: #1F2937; /* Dark blue background */
    --secondary-color: #F59E0B; /* Bright yellow/orange */
    --success-color: #10b981;
    --info-color: #06B6D4; /* Cyan blue */
    --warning-color: #F59E0B; /* Yellow/orange */
    --danger-color: #ef4444;
    --dark-color: #1F2937; /* Dark blue */
    --light-color: #F8FAFC; /* Light gray */
    --gradient-primary: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%); /* Cyan to blue */
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #F97316 100%); /* Yellow to orange */
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #F97316 100%); /* Yellow gradient */
    --gradient-dark: linear-gradient(135deg, #1F2937 0%, #374151 100%); /* Dark gradient */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    display: flex;
    gap: 0.5rem;
}

.spinner > div {
    width: 1rem;
    height: 1rem;
    background-color: white;
    border-radius: 100%;
    display: inline-block;
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Header */
.navbar {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    transform: scale(0.9);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.header-actions .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #253c41 0%, #15376d 50%, #202d40 100%);
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(30, 64, 175, 0.1) 100%);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-subtitle strong {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Hero Illustration Styles */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
}

/* Imagen real de las personas */
.real-people-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.real-people-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.real-people-image:hover img {
    transform: scale(1.02);
}



/* Elementos decorativos flotantes */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
    background: var(--info-color);
}

.floating-icon-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
    background: var(--success-color);
}

@keyframes float-laptop-original {
    0%, 100% {
        transform: perspective(1000px) rotateX(10deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateX(10deg) translateY(-20px);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

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

/* Features Section */
.features-section {
    background: var(--dark-color);
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 0;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e5e7eb' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #9CA3AF;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: #9CA3AF;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--dark-color);
    position: relative;
}

.about-content {
    padding-right: 2rem;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 500;
    color: white;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Ecosystem Section */
.ecosystem-section {
    background: var(--dark-color);
    position: relative;
}

.ecosystem-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ecosystem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.ecosystem-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.ecosystem-card:hover img {
    transform: scale(1.05);
}

.ecosystem-card .card-body {
    padding: 1.5rem;
}

.ecosystem-card h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.ecosystem-card p {
    color: #9CA3AF;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ecosystem-card .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.ecosystem-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Final CTA Section */
.final-cta-section {
    background: var(--gradient-secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.final-cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    background: var(--secondary-color);
    border: none;
    color: var(--dark-color);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

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

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ocultar navbar en móviles */
    .navbar {
        display: none !important;
    }
    
    /* Ajustar hero section para que ocupe toda la pantalla sin navbar */
    .hero-section {
        padding-top: 0;
        padding-bottom: 0;
        min-height: 100vh;
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .features-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-title,
    .final-cta-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .header-actions {
        margin-top: 1rem;
        text-align: center;
    }
    
    .hero-illustration {
        min-height: 300px;
        margin-top: 2rem;
    }
    
    .floating-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .floating-icon-1 {
        top: 10%;
        left: 5%;
    }
    
    .floating-icon-2 {
        top: 20%;
        right: 10%;
    }
    
    .floating-icon-3 {
        bottom: 15%;
        left: 10%;
    }
}

@media (max-width: 576px) {
    /* Asegurar que navbar esté oculta en pantallas muy pequeñas */
    .navbar {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-stats .row {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    /* Ajustar espaciado del hero en pantallas muy pequeñas */
    .hero-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .features-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
}

/* Animations */
@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);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* ===== PARALLAX EFFECTS ===== */

/* Parallax Sections */
.parallax-section {
    position: relative;
    overflow: hidden;
}

/* Parallax Backgrounds */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translateY(0);
    will-change: transform;
}

/* Hero Section Parallax */
.hero-section .parallax-bg {
    background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    background-attachment: fixed;
}

/* Features Section Parallax */
.features-bg {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* About Section Parallax */
.about-bg {
    background-image: 
        linear-gradient(45deg, rgba(16, 185, 129, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(16, 185, 129, 0.03) 25%, transparent 25%);
    background-size: 60px 60px;
    background-attachment: fixed;
}

/* CTA Section Parallax */
.cta-bg {
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    background-attachment: fixed;
}

/* Ecosystem Section Parallax */
.ecosystem-bg {
    background-image: 
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* Final CTA Section Parallax */
.final-cta-bg {
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Parallax Content */
.parallax-content {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    will-change: transform;
}

/* Floating Elements Animation */
.floating-icon {
    animation: float 6s ease-in-out infinite;
}

.floating-icon-1 {
    animation-delay: 0s;
}

.floating-icon-2 {
    animation-delay: 2s;
}

.floating-icon-3 {
    animation-delay: 4s;
}

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

/* Enhanced Parallax for Hero Elements */
.hero-illustration {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Parallax Scroll Indicators */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parallax-section:hover::before {
    opacity: 1;
}

/* Smooth Parallax Transitions */
.parallax-bg,
.parallax-content {
    transition: transform 0.1s ease-out;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
        transform: none !important;
    }
    
    .parallax-content {
        transform: none !important;
    }
    
    .floating-icon {
        animation: none;
    }
}

/* High Performance Parallax */
.parallax-section {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Parallax Depth Layers */
.parallax-bg[data-speed="0.1"] { z-index: -5; }
.parallax-bg[data-speed="0.2"] { z-index: -4; }
.parallax-bg[data-speed="0.3"] { z-index: -3; }
.parallax-bg[data-speed="0.4"] { z-index: -2; }
.parallax-bg[data-speed="0.5"] { z-index: -1; }

/* Enhanced Visual Effects */
.parallax-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Parallax In-View Effects */
.parallax-section.in-view .parallax-bg {
    opacity: 1;
    transform: scale(1.02);
    transition: all 0.8s ease-out;
}

.parallax-section.in-view .parallax-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Initial State for Parallax Elements */
.parallax-bg {
    opacity: 0.8;
    transform: scale(1);
    transition: all 0.8s ease-out;
}

.parallax-content {
    opacity: 0.9;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Enhanced Hero Section Parallax */
.hero-section .parallax-bg {
    background-image: 
        linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%),
        radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Parallax Depth Perception */
.parallax-section:nth-child(odd) .parallax-bg {
    transform: translateZ(-10px);
}

.parallax-section:nth-child(even) .parallax-bg {
    transform: translateZ(-5px);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Floating Elements */
.floating-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.floating-icon:hover {
    filter: drop-shadow(0 8px 16px rgba(245, 158, 11, 0.3));
    transform: scale(1.2) rotate(360deg);
}

/* Parallax Performance Optimizations */
.parallax-section {
    contain: layout style paint;
}

.parallax-bg {
    contain: layout style paint;
    will-change: transform;
}

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

::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F59E0B, #06B6D4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #F97316, #3B82F6);
}

/* Parallax Loading States */
.parallax-section.loading {
    opacity: 0.7;
}

.parallax-section.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
    
    .parallax-bg {
        background-attachment: scroll;
        transform: none !important;
    }
    
    .parallax-content {
        transform: none !important;
        opacity: 1;
    }
    
    /* Disable complex animations on mobile */
    .floating-icon {
        animation: none;
        transform: none;
    }
    
    /* Optimize mobile performance */
    .parallax-section {
        contain: none;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .parallax-bg {
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg,
    .parallax-content,
    .floating-icon {
        animation: none;
        transition: none;
        transform: none;
    }
    
    .parallax-section {
        background-attachment: scroll;
    }
}
