/**
 * IYA MEDICAL - PREMIUM VISUAL SYSTEM
 * A visual masterpiece for cutting-edge medical care
 */

/* ============================================
   CSS VARIABLES - EXPANDED COLOR PALETTE
============================================ */
:root {
    /* Primary Colors */
    --iya-deep-navy: #0a1628;
    --iya-navy: #0c4a6e;
    --iya-teal: #0891b2;
    --iya-cyan: #06b6d4;
    --iya-light-cyan: #22d3ee;

    /* Accent Colors - Vibrant */
    --iya-magenta: #d946ef;
    --iya-purple: #8b5cf6;
    --iya-violet: #a855f7;
    --iya-coral: #f97316;
    --iya-gold: #f59e0b;
    --iya-pink: #ec4899;
    --iya-hot-pink: #ff1493;

    /* Neutrals */
    --iya-white: #ffffff;
    --iya-gray-50: #f8fafc;
    --iya-gray-100: #f1f5f9;
    --iya-gray-200: #e2e8f0;
    --iya-gray-600: #475569;
    --iya-gray-800: #1e293b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--iya-teal) 0%, var(--iya-purple) 50%, var(--iya-magenta) 100%);
    --gradient-button: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #f97316 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0c4a6e 25%, #0e7490 50%, #0891b2 75%, #164e63 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(217, 70, 239, 0.4), rgba(249, 115, 22, 0.4));

    /* Shadows */
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.4);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.4);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================
   GLOBAL ENHANCEMENTS
============================================ */
body {
    background-color: var(--iya-white);
    color: var(--iya-gray-800);
    overflow-x: hidden;
}

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

/* Selection styling */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--iya-gray-800);
}

/* ============================================
   PREMIUM BUTTON STYLES
============================================ */
.btn-iya-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-button);
    background-size: 200% 200%;
    color: var(--iya-white);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow-purple), 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: gradientShimmer 3s ease-in-out infinite;
}

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

.btn-iya-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-iya-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.6), 0 20px 50px rgba(0, 0, 0, 0.3);
    color: var(--iya-white);
}

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

.btn-iya-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--iya-teal);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--iya-teal);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-iya-secondary:hover {
    background: var(--iya-teal);
    color: var(--iya-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

/* Glassmorphism button variant */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--iya-white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--iya-white);
}

/* ============================================
   PREMIUM CARDS
============================================ */
.card-iya {
    background: var(--iya-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-iya::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

/* Glassmorphism card */
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

/* Gradient border card */
.card-gradient-border {
    background: var(--iya-white);
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================
   SECTION BACKGROUNDS
============================================ */
.section-gradient-subtle {
    background: linear-gradient(180deg, var(--iya-gray-50) 0%, var(--iya-white) 100%);
}

.section-gradient-mesh {
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        var(--iya-white);
}

.section-dots {
    background-image: radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-lines {
    background-image:
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   SECTION DIVIDERS
============================================ */
.divider-wave {
    height: 100px;
    width: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,100 720,0 1080,60 C1260,90 1380,50 1440,40 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

.divider-wave-gradient {
    height: 120px;
    width: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cdefs%3E%3ClinearGradient id='wg' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' style='stop-color:%238b5cf6'/%3E%3Cstop offset='50%25' style='stop-color:%23d946ef'/%3E%3Cstop offset='100%25' style='stop-color:%23f97316'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23wg)' fill-opacity='0.1' d='M0,60 C240,120 480,0 720,60 C960,120 1200,0 1440,60 L1440,0 L0,0 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top center;
    background-size: cover;
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.heading-accent {
    position: relative;
    display: inline-block;
}

.heading-accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ============================================
   ICONS WITH GLOW
============================================ */
.icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: var(--iya-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-purple);
    transition: all 0.3s ease;
}

.icon-glow:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

/* ============================================
   SCROLL ANIMATIONS (AOS Enhancement)
============================================ */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade up with glow */
.aos-fade-glow {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.aos-fade-glow.aos-animate {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ============================================
   FOOTER ENHANCEMENT
============================================ */
.main-footer {
    background: var(--gradient-hero) !important;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 90% 10%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   HOVER EFFECTS
============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow-purple);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* ============================================
   LOADING ANIMATIONS
============================================ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--iya-gray-100) 25%, var(--iya-gray-50) 50%, var(--iya-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.backdrop-blur {
    backdrop-filter: blur(20px);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glow-purple {
    box-shadow: var(--shadow-glow-purple);
}

.glow-cyan {
    box-shadow: var(--shadow-glow-cyan);
}

/* ============================================
   PAGE HEADERS (Non-Home Pages)
============================================ */
.page-header {
    position: relative;
    min-height: 400px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    animation: gradientShiftSlow 15s ease-in-out infinite;
}

@keyframes gradientShiftSlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.page-header .header-text {
    position: relative;
    z-index: 10;
}

.page-header .header-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--iya-white);
    margin-bottom: 15px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.page-header .header-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Wave divider for page headers */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,100 720,0 1080,60 C1260,90 1380,50 1440,40 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 767px) {
    .btn-iya-primary,
    .btn-iya-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .card-iya {
        padding: 20px;
    }

    .page-header {
        min-height: 300px;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
    .iya-hero,
    .page-header {
        background: var(--iya-teal) !important;
        min-height: auto !important;
    }

    .hero-bg-layers,
    .hero-wave-divider,
    #heroCanvas {
        display: none !important;
    }
}
