/* Medicare Pharma - Premium Design System v1.0 */
/* Enterprise-Level Aesthetics & Glassmorphism */

:root {
    /* Premium Color Palette */
    --primary-dark: #0f172a;
    --primary-light: #f8fafc;
    --accent-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #9333ea;
    --accent-rose: #f43f5e;

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-tertiary: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(10px);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Shadows - Premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 20px 60px rgba(37, 99, 235, 0.3);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --letter-spacing-tight: -0.015em;
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.02em;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
    font-family: var(--font-body);
    color: #1f2937;
    line-height: 1.6;
}

/* Premium Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
}

p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    letter-spacing: var(--letter-spacing-normal);
}

/* Gradient Text */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Cards */
.card-premium {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.85);
}

.card-premium > * {
    position: relative;
    z-index: 2;
}

/* Premium Buttons */
.btn-premium {
    position: relative;
    padding: clamp(0.75rem, 1.5vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    font-size: clamp(0.9rem, 1vw, 1rem);
    letter-spacing: var(--letter-spacing-wide);
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.6);
}

.btn-secondary-gradient {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.6);
}

.btn-outline-premium {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline-premium:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-cyan);
}

/* Hero Section Premium */
.hero-premium {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(135deg, #f8fafc 0%, rgba(37, 99, 235, 0.05) 50%, rgba(16, 185, 129, 0.05) 100%);
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite 2s;
    z-index: 0;
}

/* Glassmorphism Sections */
.section-glass {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 4rem);
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

/* Premium Grid System */
.grid-premium {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-auto-flow: dense;
}

.grid-premium.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-premium.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-premium.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Advanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-30px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(15px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 1 !important;  /* Ensure visible - GSAP will handle animations */
    visibility: visible !important;
    transform: translateY(0);
    display: block !important;
    /* Disabled: CSS animation conflicts with GSAP. GSAP handles it in main.js */
    /* animation: slideUp 0.6s ease-out forwards; */
}

.animate-on-scroll * {
    opacity: 1 !important;
    visibility: visible !important;
}

.animate-on-scroll.delay-1 {
    animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    animation-delay: 0.3s;
}

/* Premium Feature Cards */
.feature-card-premium {
    position: relative;
    padding: clamp(2rem, 3vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: visible;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease-out;
    z-index: 0;
}

.feature-card-premium:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
}

.feature-card-premium:hover::before {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

/* Premium Icon Styling */
.icon-premium {
    width: clamp(3rem, 6vw, 5rem);
    height: clamp(3rem, 6vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
}

.feature-card-premium:hover .icon-premium {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

/* Ensure all feature card content is visible */
.feature-card-premium h3 {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.feature-card-premium p {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

/* Premium Section Headers */
.section-header-premium {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header-premium h2 {
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    opacity: 1 !important;
    visibility: visible !important;
}

.section-header-premium .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: var(--letter-spacing-wide);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Premium Divider */
.divider-premium {
    height: 3px;
    width: 60px;
    background: var(--gradient-primary);
    margin: clamp(1.5rem, 2vw, 2rem) auto;
    border-radius: 2px;
}

/* Luxury Stat Cards */
.stat-card-luxury {
    text-align: center;
    padding: clamp(2rem, 3vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-card-luxury:hover::before {
    opacity: 1;
}

.stat-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: var(--letter-spacing-tight);
}

/* Premium Testimonials */
.testimonial-premium {
    padding: clamp(2rem, 3vw, 3rem);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-premium:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.testimonial-stars {
    font-size: 1.3rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    letter-spacing: 0.25rem;
}

.testimonial-text {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: #374151;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.author-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Premium Info Cards */
.info-card-premium {
    padding: clamp(1.5rem, 2vw, 2.5rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-card-premium:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Premium Timeline */
.timeline-premium {
    position: relative;
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.timeline-premium::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: clamp(2rem, 3vw, 3rem);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(n+3) {
    animation-delay: calc(0.1s * (var(--index, 0) + 1));
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    padding: clamp(1.5rem, 2vw, 2.5rem);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

/* Premium Form Elements */
.form-group-premium {
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.form-group-premium label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    letter-spacing: var(--letter-spacing-wide);
}

.form-input-premium,
.form-select-premium,
.form-textarea-premium {
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 1.5vw, 1.25rem);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-input-premium:focus,
.form-select-premium:focus,
.form-textarea-premium:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Premium Badges */
.badge-premium {
    display: inline-block;
    padding: clamp(0.4rem, 0.8vw, 0.6rem) clamp(0.8rem, 1.5vw, 1.2rem);
    border-radius: 12px;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-wide);
    transition: all 0.3s ease;
}

.badge-primary-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.badge-secondary-gradient {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Premium Navigation */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(248, 250, 252, 0.4) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar-premium.scrolled {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.shimmer-loading {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Hover Lift Effect */
.lift-on-hover {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.lift-on-hover:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    padding: clamp(1.5rem, 2vw, 2.5rem);
    background: white;
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: 20px;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Premium Spacing */
.spacing-xs { padding: clamp(0.5rem, 1vw, 0.75rem); }
.spacing-sm { padding: clamp(1rem, 1.5vw, 1.25rem); }
.spacing-md { padding: clamp(1.5rem, 2vw, 2rem); }
.spacing-lg { padding: clamp(2rem, 3vw, 3rem); }
.spacing-xl { padding: clamp(3rem, 4vw, 4rem); }
.spacing-2xl { padding: clamp(4rem, 6vw, 6rem); }

/* Premium Gap System */
.gap-xs { gap: clamp(0.5rem, 1vw, 0.75rem); }
.gap-sm { gap: clamp(1rem, 1.5vw, 1.25rem); }
.gap-md { gap: clamp(1.5rem, 2vw, 2rem); }
.gap-lg { gap: clamp(2rem, 3vw, 3rem); }
.gap-xl { gap: clamp(3rem, 4vw, 4rem); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-premium::before,
    .hero-premium::after {
        width: 400px;
        height: 400px;
    }

    .timeline-premium::before {
        left: 15px;
    }

    .timeline-dot {
        left: 15px;
    }

    .timeline-content {
        margin-left: 50px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-light: #f8fafc;
        --glass-bg: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(255, 255, 255, 0.2);
    }

    body {
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
        color: #1f2937;
    }
}

/* Print Styles */
@media print {
    .navbar-premium,
    #whatsapp-button,
    #sticky-contact-bar,
    footer {
        display: none;
    }
}
