/* Custom Styles for Kreene Website */

/* Font Family */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Hero Gradient Animation */
.hero-gradient {
    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%; }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hero Phone Animation */
.hero-phone {
    animation: floatPhone 4s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Ken Burns Effect for Images */
.ken-burns {
    transition: transform 8s ease-out;
    will-change: transform;
}

.ken-burns:hover {
    transform: scale(1.1);
}

/* Tilt Card 3D Effect */
.tilt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* Feature Card Hover */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::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;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover .w-12,
.feature-card:hover .w-16 {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Timeline Line Animation */
.timeline-line {
    position: relative;
    overflow: hidden;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: timelineDraw 2s ease-out forwards;
}

@keyframes timelineDraw {
    to { left: 100%; }
}

/* Native Browser Scrolling */
html {
    scroll-behavior: auto;
}

/* CTA Button Hover Effect */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::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;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Progress Bar */
#scroll-progress {
    transition: width 0.1s ease-out;
}

/* Image Lazy Loading */
img {
    loading: lazy;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #16A085;
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #16A085, #14CDA8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #14CDA8, #16A085);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Parallax Effect */
.parallax {
    will-change: transform;
}

/* Stagger Animation Delay */
[data-aos-delay="0"] { transition-delay: 0ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="500"] { transition-delay: 500ms; }

/* Glass Morphism Effect */
.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);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #0D9488 0%, #16A34A 50%, #DB2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.text-gradient-trust {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-rose {
    background: linear-gradient(135deg, #DB2777 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Underline Animation */
.underline-animate {
    position: relative;
    text-decoration: none;
}

.underline-animate::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #16A085;
    transition: width 0.3s ease;
}

.underline-animate:hover::after {
    width: 100%;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

/* Table Row Hover */
tbody tr {
    transition: background-color 0.2s ease;
}

/* App Store Button Hover */
a[href*="app"]:hover,
a[href*="play"]:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Social Icon Hover */
footer a:hover {
    transform: scale(1.2) rotate(5deg);
    transition: transform 0.2s ease;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #16A085;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Tilt Animation for Gradient Glow */
@keyframes tilt {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(0.5deg);
    }
    75% {
        transform: rotate(-0.5deg);
    }
}

.animate-tilt {
    animation: tilt 10s infinite linear;
}

/* Print Styles */
@media print {
    nav, footer, .cta-button {
        display: none;
    }
}

/* Enhanced Visual Effects */

/* Gradient Backgrounds */
.gradient-mesh {
    background: 
        radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(22, 163, 74, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(219, 39, 119, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(13, 148, 136, 0.15) 0px, transparent 50%);
    background-size: 200% 200%;
    animation: gradientMesh 15s ease infinite;
}

@keyframes gradientMesh {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Glow Effects */
.glow-trust {
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.4), 0 0 40px rgba(13, 148, 136, 0.2);
}

.glow-green {
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.4), 0 0 40px rgba(22, 163, 74, 0.2);
}

.glow-rose {
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.4), 0 0 40px rgba(219, 39, 119, 0.2);
}

/* Enhanced Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Card 3D Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

/* Animated Border */
.animated-border {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0D9488, #16A34A, #DB2777) border-box;
    border: 2px solid transparent;
    border-radius: 12px;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #0D9488, #16A34A, #DB2777);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Floating Elements */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(2deg); 
    }
    66% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(13, 148, 136, 0.8), 0 0 60px rgba(13, 148, 136, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Section Dividers */
.section-divider {
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.5), transparent);
}

/* Enhanced Shadows */
.shadow-glow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(13, 148, 136, 0.1);
}

.shadow-glow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(13, 148, 136, 0.15);
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

.image-overlay img {
    transition: transform 0.5s ease;
}

.image-overlay:hover img {
    transform: scale(1.1);
}

/* Testimonial Card Enhancement */
.testimonial-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(13, 148, 136, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Stats Counter Enhancement */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0D9488, #16A34A, #DB2777);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

/* Smooth Scroll Enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading Skeleton */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
    }
}

/* ============================================
   CLEAN MINIMALISM - GRAFFITI/POP ART INSPIRED
   ============================================ */

/* Bold Graphic Shapes */
.graphic-shape {
    position: absolute;
    opacity: 0.08;
    mix-blend-mode: multiply;
}

.shape-circle {
    border-radius: 50%;
    background: currentColor;
}

.shape-square {
    background: currentColor;
    transform: rotate(45deg);
}

.shape-line {
    background: currentColor;
    height: 2px;
}

/* Clean Backgrounds - Minimal */
.bg-clean {
    background: #ffffff;
}

.bg-clean-alt {
    background: #f9fafb;
}

.bg-clean-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

/* Bold Typography Effects */
.text-bold-graphic {
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.text-outline {
    -webkit-text-stroke: 2px currentColor;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Pop Art Color Blocks */
.color-block {
    position: absolute;
    z-index: 0;
    opacity: 0.05;
}

.color-block-trust {
    background: #0D9488;
}

.color-block-green {
    background: #16A34A;
}

.color-block-rose {
    background: #DB2777;
}

/* Clean Card Styles */
.card-clean {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.card-clean:hover {
    border-color: #0D9488;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Minimal Section Dividers */
.section-divider-clean {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 0;
}

/* Clean Shadows - Minimal Depth */
.shadow-clean {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.shadow-clean-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Bold Accent Lines */
.accent-line {
    height: 4px;
    background: linear-gradient(90deg, #0D9488, #16A34A, #DB2777);
    width: 60px;
    margin: 0 auto;
}

.accent-line-vertical {
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, #0D9488, #16A34A, #DB2777);
    margin: 0 auto;
}

/* Bold Typography - Clean */
.text-bold-white {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Liquid Gradient Background */
.liquid-gradient {
    background: linear-gradient(
        135deg,
        rgba(13, 148, 136, 0.1) 0%,
        rgba(22, 163, 74, 0.1) 25%,
        rgba(219, 39, 119, 0.1) 50%,
        rgba(13, 148, 136, 0.1) 75%,
        rgba(22, 163, 74, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: liquidFlow 15s ease infinite;
}

@keyframes liquidFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Noise Texture Overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Clean Section Dividers */
.section-divider-clean {
    height: 80px;
    position: relative;
    overflow: hidden;
}

.section-divider-clean::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Enhanced Card Textures */
.card-texture {
    position: relative;
    overflow: hidden;
}

.card-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    background-size: 200% 200%, 100px 100px;
    pointer-events: none;
    opacity: 0.5;
}

/* Animated Border Gradient */
.animated-border-gradient {
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, #0D9488, #16A34A, #DB2777, #0D9488);
    background-size: 300% 300%;
    border-radius: 12px;
    animation: borderGradient 3s ease infinite;
}

@keyframes borderGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animated-border-gradient > * {
    background: white;
    border-radius: 10px;
}

/* Parallax Texture Layers */
.texture-layer-1 {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
    background-size: 400% 400%;
    animation: textureParallax1 20s ease infinite;
}

.texture-layer-2 {
    background-image: 
        radial-gradient(circle at 75% 75%, rgba(22, 163, 74, 0.08) 0%, transparent 50%);
    background-size: 300% 300%;
    animation: textureParallax2 25s ease infinite;
}

@keyframes textureParallax1 {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

@keyframes textureParallax2 {
    0%, 100% { background-position: 100% 100%; }
    50% { background-position: 0% 0%; }
}

/* Prevent Pinch and Zoom */
html, body {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Allow text selection for better UX */
p, span, a, h1, h2, h3, h4, h5, h6, li, td, th {
    -webkit-user-select: text;
    user-select: text;
}

