/* Custom styles for Gift Pharma */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary-dark: #1e3a5f;      /* Slate Blue Dark */
    --color-primary: #2c5282;           /* Slate Blue Medium */
    --color-primary-light: #ebf8ff;      /* Light background blue */
    --color-accent: #e53e3e;            /* Crimson Red (from logo G) */
    --color-accent-hover: #c53030;      /* Darker Red */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sticky Header styling helper */
.header-scrolled {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(226, 232, 240, 0.8);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Subtle overlay pattern */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
}

/* ==========================================
   SCROLL REVEAL FRAMEWORK
   ========================================== */

/* Base classes for scroll elements */
.reveal {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, clip-path;
}

/* Modifier Directions */
.reveal-fade-up {
    transform: translateY(40px);
}

.reveal-fade-down {
    transform: translateY(-40px);
}

.reveal-fade-left {
    transform: translateX(-40px);
}

.reveal-fade-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.94);
}

/* High-End Scanning Mask reveal for pharmaceutical images */
.reveal-image-reveal {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.05); /* Slight zoom out while revealing */
}

/* Active Class triggered by Observer */
.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.reveal-image-reveal.reveal-active {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

/* ==========================================
   STAGGERED DELAY UTILITIES
   ========================================== */
.delay-50  { transition-delay: 50ms !important; }
.delay-100 { transition-delay: 100ms !important; }
.delay-150 { transition-delay: 150ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-250 { transition-delay: 250ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-350 { transition-delay: 350ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-450 { transition-delay: 450ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; }
.delay-800 { transition-delay: 800ms !important; }

/* ==========================================
   CARD HOVER EFFECTS
   ========================================== */
.hover-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    border-color: rgba(44, 82, 130, 0.2);
}

/* Pulse highlight for interactive icons on cards */
.hover-card:hover .icon-box {
    transform: scale(1.1) rotate(2deg);
    background-color: var(--color-accent);
    color: #ffffff !important;
}

.icon-box {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   INTERACTIVE BUTTON GRAPHICS
   ========================================== */
.btn-arrow-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover .btn-arrow-icon, 
button:hover .btn-arrow-icon {
    transform: translateX(4px);
}

/* ==========================================
   ADDITIONAL EFFECTS: MARQUEE & HOTSPOTS & PROGRESS
   ========================================== */

/* Horizontal Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* Interactive Map Hotspots */
.hotspot-pulse {
    animation: hotspot-pulse-anim 2s infinite;
}
@keyframes hotspot-pulse-anim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(229, 62, 62, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
    }
}

/* Progress Bars */
.progress-track-fill {
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   ACCESSIBILITY: RESPECT PREFERS REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-fade-up,
    .reveal-fade-down,
    .reveal-fade-left,
    .reveal-fade-right,
    .reveal-scale,
    .reveal-image-reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }

    .hover-card:hover {
        transform: none !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    }

    .btn-arrow-icon {
        transform: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   NAVBAR LOGO ZOOM / CROP EFFECT
   ========================================== */
#navbar-logo-container {
    height: 80px; /* matches h-20 */
    width: 144px; /* default for mobile */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar-logo {
    height: 160px; /* default for mobile (zoom factor: 2.0x) */
    width: 160px;
    max-width: none;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    #navbar-logo-container {
        width: 176px; /* tablet/desktop */
    }
    #navbar-logo {
        height: 208px; /* zoom factor: 2.6x */
        width: 208px;
    }
}

/* Scrolled state */
.header-scrolled #navbar-logo-container {
    height: 64px; /* matches h-16 */
    width: 128px; /* default for mobile */
}

.header-scrolled #navbar-logo {
    height: 144px; /* default for mobile */
    width: 144px;
}

@media (min-width: 768px) {
    .header-scrolled #navbar-logo-container {
        width: 144px; /* tablet/desktop */
    }
    .header-scrolled #navbar-logo {
        height: 160px;
        width: 160px;
    }
}

