/* 
 * INVIVO - Professional Pharmaceutical Website
 * Custom Stylesheet
 */

/* ========================================
   CSS VARIABLES - EASY CUSTOMIZATION
   ======================================== */
:root {
    /* Primary Colors - Professional Blue Palette */
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #0069d9;
    
    /* Secondary Colors - Accent Purple/Red */
    --secondary-color: #6f42c1;
    --accent-color: #dc3545;
    
    /* Neutral Colors */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #6f42c1 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 86, 179, 0.9) 0%, rgba(111, 66, 193, 0.9) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    
    /* Font Families */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-brand img {
    height: 50px;
    margin-right: 15px;
    transition: var(--transition-fast);
}

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

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.05);
}

/* ========================================
   HERO SLIDER SECTION
   ======================================== */
.hero-slider-section {
    margin-top: 76px; /* Account for fixed navbar */
    position: relative;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.85) 0%, rgba(111, 66, 193, 0.85) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.carousel-caption-custom h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.carousel-caption-custom p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

.carousel-caption-custom .lead {
    font-size: 1.4rem;
    font-weight: 300;
}

.carousel-caption-custom .h4 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.carousel-caption-custom .h5 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 0.5rem;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: 2px solid white;
    background-color: transparent;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.carousel-indicators .active {
    background-color: white;
    opacity: 1;
}

/* Slide Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay-1 {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.animate-slide-up-delay-3 {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.animate-slide-up-delay-4 {
    animation: slideUp 0.8s ease-out 0.9s both;
}

.animate-slide-up-delay-5 {
    animation: slideUp 0.8s ease-out 1.2s both;
}

/* Button Styles for Slider */
.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-color: var(--accent-color);
    color: white;
}

/* Legacy Hero Section (for other pages) */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
    padding: 120px 0 80px;
    margin-top: 76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-style: italic;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ========================================
   CARDS & FEATURES
   ======================================== */
.feature-card,
.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover,
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon,
.info-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h4,
.info-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p,
.info-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 60px 0;
}

.problem-card {
    background: white;
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.problem-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */
.vision-mission-section {
    background: var(--bg-light);
}

.vision-card,
.mission-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
}

.vision-card h3,
.mission-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.vision-card h3 i,
.mission-card h3 i {
    margin-right: 15px;
    font-size: 2.5rem;
}

/* ========================================
   ADVANTAGES LIST
   ======================================== */
.advantages-list {
    list-style: none;
    padding: 0;
}

.advantages-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: var(--transition-fast);
}

.advantages-list li:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.advantages-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-info-card {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-info-item i {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: white;
}

.contact-info-item div h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-item div p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-light);
}

.footer p,
.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

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

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Carousel/Slider */
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption-custom {
        padding: 1rem;
    }
    
    .carousel-caption-custom .display-4 {
        font-size: 1.8rem;
    }
    
    .carousel-caption-custom .lead {
        font-size: 1.1rem;
    }
    
    .carousel-caption-custom .h4 {
        font-size: 1.2rem;
    }
    
    .carousel-caption-custom .h5 {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
    
    /* Other Elements */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .contact-form,
    .contact-info-card,
    .vision-card,
    .mission-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption-custom .display-4 {
        font-size: 1.5rem;
    }
    
    .carousel-caption-custom .lead {
        font-size: 1rem;
    }
    
    .carousel-caption-custom .h4,
    .carousel-caption-custom .h5 {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-hero {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .feature-card,
    .info-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .feature-card,
    .info-card {
        margin-bottom: 1.5rem;
    }
}

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

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 15px;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Loading Animation */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   ENHANCED HOMEPAGE STYLES
   ======================================== */

/* Badge Enhancements */
.badge {
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Gradient Feature Icon Enhancements */
.feature-icon {
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon,
.scroll-animate:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Colorful INVIVO Branding */
.section-title span {
    font-weight: 800;
    display: inline-block;
    transition: var(--transition-fast);
}

.section-title span:hover {
    transform: scale(1.1);
}

/* Enhanced Display Headers in Slider */
.carousel-caption-custom .display-3 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Icon Grid in Slider */
.carousel-caption-custom .fa-2x {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    transition: var(--transition-fast);
}

.carousel-caption-custom .fa-2x:hover {
    transform: scale(1.2);
}

/* Alert Enhancement for Market Updates */
.alert-info {
    background: linear-gradient(135deg, #d4f1f9 0%, #e8f7fc 100%);
    border-left: 4px solid #0dcaf0;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.alert-info .fas {
    color: #0dcaf0;
}

/* Feature Card Hover Effects */
.feature-card {
    transition: var(--transition-medium);
}

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

/* Responsive Adjustments for New Styles */
@media (max-width: 768px) {
    .carousel-caption-custom .display-3 {
        font-size: 2rem;
    }
    
    .badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .carousel-caption-custom .fa-2x {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption-custom .display-3 {
        font-size: 1.6rem;
    }
    
    .badge {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
    }
}