/* Modern EcoScan Landing Page Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Grid pattern background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Modern gradient text */
.gradient-text-modern {
    background: linear-gradient(135deg, #4ade80, #3b82f6, #8b5cf6, #ef4444);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Neon glow effect */
.neon-glow {
    box-shadow: 
        0 0 20px rgba(74, 222, 128, 0.3),
        0 0 40px rgba(74, 222, 128, 0.2),
        0 0 60px rgba(74, 222, 128, 0.1);
    transition: all 0.3s ease;
}

.neon-glow:hover {
    box-shadow: 
        0 0 30px rgba(74, 222, 128, 0.4),
        0 0 60px rgba(74, 222, 128, 0.3),
        0 0 90px rgba(74, 222, 128, 0.2);
}

/* 3D Transform Effects */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* Modern buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modern::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-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

/* Floating animation enhanced */
@keyframes floatEnhanced {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotateX(5deg); 
    }
    50% { 
        transform: translateY(-20px) rotateX(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotateX(-5deg); 
    }
}

.float-enhanced {
    animation: floatEnhanced 8s ease-in-out infinite;
}

/* Modern card hover effects */
.modern-card {
    position: relative;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(74, 222, 128, 0.3);
}

/* Particle animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-5px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) translateX(-10px) scale(1.05);
        opacity: 0.8;
    }
}

.particle {
    animation: particleFloat 6s ease-in-out infinite;
}

/* Text reveal animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: textReveal 1s ease-out forwards;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4ade80, #22c55e);
    border-radius: 6px;
    border: 2px solid #1e293b;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

/* Aurora background effect */
@keyframes aurora {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
}

.aurora-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(74,222,128,0.1), 
        rgba(139,92,246,0.1), 
        rgba(59,130,246,0.1), 
        rgba(239,68,68,0.1)
    );
    animation: aurora 20s linear infinite;
    pointer-events: none;
}

/* Modern typography */
.font-modern {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Enhanced shadows */
.shadow-modern {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shadow-modern-lg {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Blob animation */
@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .modern-card {
        border-radius: 1.5rem;
        padding: 1.5rem;
    }
    
    .btn-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .text-reveal {
        animation-delay: 0.2s;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .glass {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects for feature cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Loading animation for statistics */
.stat-number {
    animation: fadeInUp 1s ease-out;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Modern navbar effects */
#navbar {
    background: rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#navbar.navbar-scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Image hover effects */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Card shadows */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating animation for hero elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for CTA buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Typing animation for hero text */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #4ade80; }
}

.typing-animation {
    overflow: hidden;
    border-right: .15em solid #4ade80;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4ade80;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glowing effect for important elements */
.glow {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom checkbox styles */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #4ade80;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background-color: #4ade80;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .text-responsive-lg {
        font-size: 1.5rem;
    }
    
    .text-responsive-xl {
        font-size: 2rem;
    }
    
    .text-responsive-2xl {
        font-size: 2.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive-lg {
        font-size: 1.75rem;
    }
    
    .text-responsive-xl {
        font-size: 2.25rem;
    }
    
    .text-responsive-2xl {
        font-size: 3rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive-lg {
        font-size: 2rem;
    }
    
    .text-responsive-xl {
        font-size: 2.5rem;
    }
    
    .text-responsive-2xl {
        font-size: 3.5rem;
    }
} 