/* ============================================
   ZentroFact - Welcome Page Premium Styles
   ============================================ */

/* Typography - Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --petrol: #28746b;
    --mint: #8FD3C3;
    --anthracite: #2E3A45;
    --cream: #F4F7F8;
    --coral: #F15B4E;
    
    /* Premium Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.12);
    --shadow-premium: 0 30px 60px rgba(0, 124, 145, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================
   Premium Buttons
   ============================================ */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--petrol) 0%, var(--mint) 100%);
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.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 var(--transition-slow);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
    background: linear-gradient(135deg, #006a7a 0%, #7bc4b0 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--petrol);
    background: white;
    border: 2px solid transparent;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--petrol);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--anthracite);
    background: rgba(0, 124, 145, 0.05);
    border: none;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(0, 124, 145, 0.1);
    transform: translateY(-1px);
}

/* ============================================
   Premium Cards
   ============================================ */
.card-premium {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(244, 247, 248, 1);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--petrol), var(--mint));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-premium);
    border-color: rgba(0, 124, 145, 0.2);
}

.card-feature {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--cream);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-feature::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 124, 145, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.card-feature:hover::after {
    opacity: 1;
}

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

.card-article {
    position: relative;
    background: white;
    border: 2px solid var(--cream);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 124, 145, 0.02) 0%, rgba(143, 211, 195, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card-article:hover {
    border-color: var(--petrol);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Glassmorphism
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(46, 58, 69, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Premium Icons
   ============================================ */
.icon-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--petrol) 0%, #006a7a 100%);
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

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

.icon-premium:hover::before {
    width: 300px;
    height: 300px;
}

.icon-premium:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-premium);
}

.icon-mint {
    background: linear-gradient(135deg, var(--mint) 0%, #7bc4b0 100%);
}

.icon-gradient {
    background: linear-gradient(135deg, var(--petrol) 0%, var(--mint) 100%);
}

/* ============================================
   Animated Backgrounds
   ============================================ */
.bg-gradient-animated {
    background: linear-gradient(135deg, var(--petrol) 0%, var(--mint) 50%, var(--petrol) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-pattern {
    position: relative;
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 124, 145, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(143, 211, 195, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   Parallax Elements
   ============================================ */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ============================================
   Hover Effects
   ============================================ */
.hover-lift-premium {
    transition: all var(--transition-base);
}

.hover-lift-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

.hover-glow {
    transition: all var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 124, 145, 0.4);
}

.hover-scale {
    transition: transform var(--transition-base);
}

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

/* ============================================
   Gradient Text
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--petrol) 0%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-white {
    background: linear-gradient(135deg, #F4F7F8 0%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ============================================
   Form Elements
   ============================================ */
.input-premium {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--anthracite);
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    outline: none;
}

.input-premium:focus {
    border-color: var(--petrol);
    box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.1);
    transform: translateY(-1px);
}

.textarea-premium {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--anthracite);
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    outline: none;
    resize: none;
}

.textarea-premium:focus {
    border-color: var(--petrol);
    box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.1);
    transform: translateY(-1px);
}

/* ============================================
   Navigation
   ============================================ */
.nav-premium {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--cream);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--anthracite);
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--petrol);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

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

.nav-link:hover {
    background: rgba(0, 124, 145, 0.1);
    color: var(--petrol);
}

/* ============================================
   Section Spacing
   ============================================ */
.section-premium {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.section-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 124, 145, 0.02));
    pointer-events: none;
}

/* ============================================
   Floating Elements
   ============================================ */
.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* ============================================
   Scroll Animations (AOS fallback)
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Badge/Tag Styles
   ============================================ */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(0, 124, 145, 0.1);
    color: var(--petrol);
}

.badge-mint {
    background: rgba(143, 211, 195, 0.2);
    color: var(--mint);
}

.badge-coral {
    background: rgba(241, 91, 78, 0.1);
    color: var(--coral);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-balance {
    text-wrap: balance;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* ============================================
   Image Animations
   ============================================ */
.hero-image {
    position: relative;
    animation: floatImage 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-base);
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 500;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

.animated-line {
    filter: drop-shadow(0 0 3px rgba(143, 211, 195, 0.5));
}

.illustration-container {
    position: relative;
}

/* Hero Image Container with Rounded Corners */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 2rem;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-container:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 50px rgba(40, 116, 107, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2rem;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.illustration-container:hover .hero-image {
    transform: scale(1.02);
    filter: brightness(1.05) drop-shadow(0 10px 30px rgba(40, 116, 107, 0.3));
}

/* Water Droplets */
.water-droplets {
    position: absolute;
    inset: 0;
    border-radius: 2.5rem;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.droplet {
    position: absolute;
    background: linear-gradient(135deg, rgba(143, 211, 195, 0.6) 0%, rgba(40, 116, 107, 0.4) 100%);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: dropletFloat 6s ease-in-out infinite;
    box-shadow: 0 8px 16px rgba(40, 116, 107, 0.2);
}

.droplet::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
}

.droplet-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.droplet-2 {
    width: 45px;
    height: 45px;
    top: 25%;
    right: 8%;
    animation-delay: 0.8s;
}

.droplet-3 {
    width: 55px;
    height: 55px;
    top: 50%;
    left: 3%;
    animation-delay: 1.6s;
}

.droplet-4 {
    width: 40px;
    height: 40px;
    top: 65%;
    right: 12%;
    animation-delay: 2.4s;
}

.droplet-5 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    left: 8%;
    animation-delay: 3.2s;
}

.droplet-6 {
    width: 35px;
    height: 35px;
    bottom: 8%;
    right: 5%;
    animation-delay: 4s;
}

.droplet-7 {
    width: 42px;
    height: 42px;
    top: 40%;
    right: 20%;
    animation-delay: 1.2s;
}

.droplet-8 {
    width: 38px;
    height: 38px;
    bottom: 25%;
    left: 15%;
    animation-delay: 2.8s;
}

@keyframes dropletFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) translateX(10px) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-25px) translateX(-5px) scale(1.05);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-10px) translateX(8px) scale(1.08);
        opacity: 0.85;
    }
}


/* Glow Effect on Hover */
.illustration-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(143, 211, 195, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.illustration-container:hover::after {
    opacity: 1;
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
    filter: brightness(1) saturate(1);
}

.feature-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
    box-shadow: var(--shadow-xl);
}

.image-float {
    animation: floatImage 8s ease-in-out infinite;
}

.image-slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.image-zoom {
    transition: transform var(--transition-slow);
}

.image-zoom:hover {
    transform: scale(1.1);
}

.image-glow {
    transition: filter var(--transition-base);
}

.image-glow:hover {
    filter: drop-shadow(0 0 20px rgba(0, 124, 145, 0.5));
}

.illustration-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.illustration-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 124, 145, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.stats-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: all var(--transition-base);
}

.stats-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 124, 145, 0.2);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .card-premium,
    .card-feature,
    .card-article {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
    
    .section-premium {
        padding: 4rem 0;
    }
    
    .icon-premium {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .hero-image {
        max-width: 100%;
        height: auto;
    }
    
    .hero-image-container {
        border-radius: 1.5rem;
    }
    
    .hero-image {
        border-radius: 1.5rem;
    }
    
    .droplet {
        width: 30px !important;
        height: 30px !important;
    }
    
    .droplet-1, .droplet-3, .droplet-5 {
        width: 35px !important;
        height: 35px !important;
    }
}

