/* Modern Sleek Professional Design System */
/* ICare Life Medical Devices - Custom Styles */

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

/* ============================================
   MODERN TYPOGRAPHY
   ============================================ */
@supports (font-variation-settings: normal) {
    body {
        font-optical-sizing: auto;
    }
}

/* ============================================
   HERO & BACKGROUND SECTIONS
   ============================================ */
.hero-parallax,
.cta-parallax {
    position: relative;
    overflow: hidden;
}

.hero-bg,
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}

@media (min-width: 1024px) {
    .hero-parallax .hero-bg {
        background-position: left center !important;
    }
}

/* Modern gradient overlays */
.hero-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-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);
}

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

/* Stagger animation delays */
.fade-in-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.fade-in-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.fade-in-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.fade-in-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   MODERN CARDS & COMPONENTS
   ============================================ */
.modern-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.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .modern-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark .modern-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================ */
.modern-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-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;
}

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

.modern-btn:active {
    transform: scale(0.98);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-menu a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066cc, #00a8e8);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-image {
    overflow: hidden;
    position: relative;
}

.product-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* ============================================
   PARTNER LOGOS
   ============================================ */
.partner-logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.modern-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2),
                0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.dark .modern-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3),
                0 4px 12px rgba(0, 102, 204, 0.2);
}

/* ============================================
   STATS & NUMBERS
   ============================================ */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-number {
    animation: countUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   SCROLL INDICATORS
   ============================================ */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 640px) {
    .text-8xl {
        font-size: 3rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }
    
    .text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }
    
    .text-6xl {
        font-size: 2rem;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */
img {
    transition: opacity 0.4s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #0066cc 0%, #00a8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

.dark .shadow-glow {
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Modern divider */
.modern-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.3), transparent);
}

.dark .modern-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 168, 232, 0.3), transparent);
}
