/* ===================================
   OnlyPharma - Main Stylesheet
   Futuristic Pharmaceutical Design
   =================================== */

/* === ROOT VARIABLES === */
:root {
    /* Colors */
    --primary-color: #1976D2;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --secondary-color: #00BCD4;
    --accent-color: #9C27B0;
    --accent-magenta: #E91E63;
    --dark-bg: #0A1929;
    --dark-bg-light: #132F4C;
    --dark-bg-lighter: #1E3A5F;
    --light-text: #FFFFFF;
    --gray-text: #B0BEC5;
    --success-color: #4CAF50;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1976D2 0%, #00BCD4 100%);
    --gradient-accent: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
    --gradient-dark: linear-gradient(180deg, #0A1929 0%, #132F4C 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 188, 212, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 188, 212, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 188, 212, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 188, 212, 0.25);
    --glow-primary: 0 0 20px rgba(25, 118, 210, 0.5);
    --glow-secondary: 0 0 20px rgba(0, 188, 212, 0.5);
    --glow-accent: 0 0 20px rgba(156, 39, 176, 0.5);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 3rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-color: var(--secondary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 188, 212, 0.2);
    box-shadow: var(--glow-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-light {
    background: var(--light-text);
    color: var(--dark-bg);
}

.btn-light:hover {
    background: var(--secondary-color);
    color: var(--light-text);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* === HEADER & NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 25, 41, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-text);
}

.logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(var(--glow-primary));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--gray-text);
    transition: var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: rgba(19, 47, 76, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray-text);
}

.dropdown-menu li a:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--secondary-color);
}

.btn-cta-nav {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--light-text) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-cta-nav:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6);
    }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#moleculesCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-text);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* === SECTIONS === */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-text);
}

/* === CATEGORIES SECTION === */
.categories-section {
    background: var(--gradient-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg), var(--glow-secondary);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--glow-primary);
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--gray-text);
    position: relative;
    z-index: 1;
}

.category-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-xl), var(--glow-secondary);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.product-badge.popular {
    background: var(--gradient-accent);
}

.product-badge.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

/* === BENEFITS GRID === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--glow-primary);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* === TESTIMONIALS === */
.testimonials-section {
    background: var(--gradient-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* === CTA SECTION === */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* === FOOTER === */
.footer {
    background: rgba(10, 25, 41, 0.98);
    border-top: 1px solid rgba(0, 188, 212, 0.2);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-description {
    color: var(--gray-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--glow-secondary);
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--light-text);
}

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

.footer-col ul li a {
    color: var(--gray-text);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 188, 212, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-text);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background: rgba(19, 47, 76, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        border-top: 1px solid rgba(0, 188, 212, 0.2);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .products-grid,
    .categories-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}