/* Custom Styles for ClearReach Landing Page */

:root {
    --primary-color: #14b8a6;
    --primary-dark: #0d9488;
    --secondary-color: #0ea5e9;
    --dark-bg: #1e293b;
    --light-gray: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

* {
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR
   ============================================ */

/* Add padding to hero sections to account for fixed navbar */
#hero, #hero-alt {
    padding-top: 80px;
}

/* ============================================
   HERO SECTION - PREMIUM ANIMATIONS
   ============================================ */

/* Hero Gradient Blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.8) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: floatBlob1 25s ease-in-out infinite;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: floatBlob2 30s ease-in-out infinite;
}

.hero-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: floatBlob3 20s ease-in-out infinite;
}

@keyframes floatBlob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 60px) scale(0.9);
    }
}

@keyframes floatBlob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-60px, 40px) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(40px, -50px) scale(0.95) rotate(240deg);
    }
}

@keyframes floatBlob3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 70px) scale(1.2);
    }
}

/* Hero Content Animations */
.hero-headline-1 {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.3s forwards;
}

.hero-headline-2 {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.6s forwards;
}

.hero-subtext {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: scaleUpFade 0.6s ease-out 1.3s forwards;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Hero Visual Cards - Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.8s ease-out forwards;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.hero-card:hover {
    transform: translateY(-8px) !important;
}

.hero-card:hover .glass-card {
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.4);
    border-color: rgba(20, 184, 166, 0.4);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered card animations */
.hero-card-laptop {
    animation-delay: 0.5s;
}

.hero-card-reviews {
    animation-delay: 0.8s;
    animation: cardEntrance 0.8s ease-out 0.8s forwards, floatCard 6s ease-in-out 1.6s infinite;
}

.hero-card-whatsapp {
    animation-delay: 1.1s;
    animation: cardEntrance 0.8s ease-out 1.1s forwards, floatCard 7s ease-in-out 1.9s infinite;
}

.hero-card-ai {
    animation-delay: 1.4s;
    animation: cardEntrance 0.8s ease-out 1.4s forwards, floatCard 5s ease-in-out 2.2s infinite;
}

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

/* Parallax effect will be added via JavaScript */
.hero-card.parallax-active {
    transition: transform 0.1s ease-out;
}

/* ============================================
   ALTERNATIVE HERO SECTION - IMAGE BASED
   ============================================ */

#hero-alt {
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-alt-headline {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

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

.hero-image-card {
    opacity: 0;
    transform: translateY(40px);
    animation: cardSlideUp 0.8s ease-out forwards;
}

.hero-image-card:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-image-card:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-image-card:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-image-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-image-card:hover {
    transform: translateY(-8px);
}

.hero-image-card img {
    will-change: transform;
}

.btn-secondary-alt {
    background: white;
    color: #0d9488;
    border: 2px solid #0d9488;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.btn-secondary-alt:hover {
    background: #0d9488;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* Image overlay animations */
.hero-image-card .absolute {
    transition: all 0.4s ease;
}

.hero-image-card:hover .absolute.bottom-0 {
    transform: translateY(-5px);
}

/* Responsive adjustments for alternative hero */
@media (max-width: 768px) {
    #hero-alt {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero-image-card img {
        height: 320px;
    }
}

/* Hide alternative hero by default - you can toggle between the two */
/* Uncomment one of these to switch between hero sections */
/* #hero { display: none; } */  /* Hide first hero */
/* #hero-alt { display: none; } */  /* Hide alternative hero */

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: #0d9488;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.4);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.2);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(360deg);
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
}

/* Timeline */
.timeline-line {
    display: none;
}

@media (min-width: 768px) {
    .timeline-line {
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, #14b8a6, #0d9488);
        transform: translateX(-50%);
        box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
    }
}

.step-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .step-card {
        grid-template-columns: 1fr auto 1fr;
    }
    
    .step-card:nth-child(even) .step-content {
        order: -1;
        text-align: right;
    }
}

.step-number {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid white;
}

.step-card:hover .step-number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.6);
}

.step-content {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.step-card:hover .step-content {
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.2);
    transform: scale(1.02);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid transparent;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(20, 184, 166, 0.1);
    font-family: Georgia, serif;
    line-height: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.2);
}

.stars {
    color: #fbbf24;
    display: flex;
    gap: 2px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Container Max Width */
.container {
    max-width: 1200px;
}

/* Section Spacing */
section {
    position: relative;
}

/* Improved Readability */
p {
    line-height: 1.7;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

/* Focus States for Accessibility */
a:focus, button:focus {
    outline: 3px solid #14b8a6;
    outline-offset: 3px;
}

/* Selection Color */
::selection {
    background-color: #14b8a6;
    color: white;
}

::-moz-selection {
    background-color: #14b8a6;
    color: white;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* Loading State */
body {
    opacity: 0;
    animation: bodyFadeIn 0.6s ease forwards;
}

@keyframes bodyFadeIn {
    to { opacity: 1; }
}

/* Prevent FOUC */
.no-js {
    opacity: 1 !important;
}

/* Print Styles */
@media print {
    .animated-bg,
    .btn,
    nav {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .service-card,
    .feature-card,
    .testimonial-card,
    .step-content {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
