/* Solvex Pharmaceuticals Custom CSS & Reference Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-sans: 'Outfit', 'Sofia Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Colors */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #090d16;

    --color-blue-50: #eef2ff;
    --color-blue-100: #e0e7ff;
    --color-blue-600: #00AFEF;
    --color-blue-700: #3E4095;

    --color-cyan-50: #e0f2fe;
    --color-cyan-500: #00AFEF;

    --color-brand-dark: #3E4095;
    --color-brand-light: #00AFEF;

    --color-teal-50: #f0fdfa;
    --color-teal-600: #0d9488;

    --color-red-50: #fef2f2;
    --color-red-100: #fee2e2;
    --color-red-600: #dc2626;

    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* Container */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Preloader */
#solvex-preloader {
    position: fixed;
    inset: 0;
    background-color: var(--color-slate-950);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#solvex-preloader.hidden-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--color-blue-600);
    border-right-color: var(--color-cyan-500);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.loader-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.loader-tagline {
    font-size: 0.95rem;
    color: var(--color-slate-400);
    margin-bottom: 1.5rem;
}

.loader-progress-bar {
    width: 180px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-blue-600), var(--color-cyan-500));
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Header & Nav Capsule */
.header-sticky {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.header-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    min-width: 0;
    max-width: calc(100vw - 2rem);
}

.brand-logo img {
    height: 44px !important;
    width: auto;
    max-width: 210px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-slate-900);
    letter-spacing: -0.02em;
    min-width: 0;
}

.brand-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-cyan-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--color-slate-100);
    padding: 0.25rem;
    border-radius: var(--radius-full);
}

.nav-link-item {
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.nav-link-item:hover, .nav-link-item.active {
    color: var(--color-slate-900);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: 0;
}

.lang-selector-pill {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-slate-700);
    background-color: var(--color-slate-100);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: #ffffff;
    border-color: var(--color-slate-300);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 0.35rem;
    min-width: 140px;
    display: none;
    flex-direction: column;
    z-index: 101;
}

.lang-dropdown.open {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    border-radius: var(--radius-xl);
    transition: background 0.15s ease;
}

.lang-option:hover, .lang-option.active {
    background-color: var(--color-blue-50);
    color: var(--color-blue-600);
}

.contact-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #00AFEF, #3E4095);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 175, 239, 0.25);
    transition: all 0.25s ease;
}

.contact-nav-btn:hover {
    background: linear-gradient(135deg, #3E4095, #00AFEF);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 175, 239, 0.4);
}

.mobile-menu-toggle {
    display: none;
    padding: 0.5rem;
    color: var(--color-slate-800);
    background: transparent;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.mission-cards-grid {
    min-width: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #eff6ff, #f8fafc 48%, #ecfeff);
    overflow: hidden;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
                      linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    pointer-events: none;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-blue-600);
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--color-slate-900);
}

.hero-heading-gradient {
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-cyan-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead-text {
    font-size: 1.15rem;
    color: var(--color-slate-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 36rem;
}

.hero-support-text {
    font-size: 0.95rem;
    color: var(--color-slate-500);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-btn-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #00AFEF, #3E4095);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px -4px rgba(0, 175, 239, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(62, 64, 149, 0.5);
}

.btn-secondary-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-slate-800);
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-secondary-white:hover {
    background-color: var(--color-slate-50);
    border-color: var(--color-slate-300);
    transform: translateY(-1px);
}

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-feature-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-slate-700);
}

.hero-feature-badge svg {
    color: var(--color-blue-600);
}

/* Hero Right Image & Floating Drops */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.floating-drop {
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* About Section */
.about-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #ffffff;
}

.stat-card {
    padding: 1.25rem 1.5rem;
    background-color: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-2xl);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-blue-600);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-slate-600);
}

.vision-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.85) 58%, rgba(13, 148, 136, 0.78));
    color: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.vision-quote-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.vision-quote-text {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Mission Section */
.mission-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 55%, #ffffff 100%);
    position: relative;
}

.mission-panel {
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-3xl);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--color-slate-950);
    color: #ffffff;
}

.contact-card-dark {
    background-color: var(--color-slate-900);
    border: 1px solid var(--color-slate-800);
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
}

.form-control-dark {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    transition: all 0.2s ease;
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--color-blue-600);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-label-dark {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-slate-300);
    margin-bottom: 0.4rem;
}

/* Product Card */
.product-card {
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-card-image-panel {
    position: relative;
    padding: 2rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    overflow: hidden;
}

.metallic-3d-loop {
    display: none;
}

.product-card:hover .metallic-3d-loop {
    transform: rotate(-15deg) skewX(10deg) scale(1.08);
}

.product-card-img {
    max-height: 220px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

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

.product-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-btn-details {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--color-slate-900);
    border-radius: var(--radius-full);
    text-align: center;
    margin-top: auto;
    transition: all 0.25s ease;
}

.product-card:hover .product-btn-details {
    background-color: var(--color-blue-600);
}

/* Footer */
.footer-public {
    background-color: #ffffff;
    border-top: 1px solid var(--color-slate-200);
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

/* Responsive Grid Rules */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-heading { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .nav-links-desktop { display: none; }
    .mobile-menu-toggle { display: block; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-12 { grid-template-columns: 1fr; }
    .grid-12 > * { grid-column: 1 / -1 !important; }
    .hero-section { padding-top: 6.5rem; text-align: center; }
    .hero-btn-row { justify-content: center; }
    .hero-badges-row { justify-content: center; gap: 0.75rem !important; }
    .container-custom { padding-left: 1rem; padding-right: 1rem; }
    .header-sticky { top: 0.75rem; }
    .header-container {
        padding: 0.55rem 0.65rem 0.55rem 0.8rem;
        gap: 0.55rem;
        max-width: calc(100vw - 1.5rem);
    }
    .brand-logo { flex: 1 1 auto; }
    .brand-logo img {
        height: 42px !important;
        max-width: 165px;
    }
    .header-right-actions { gap: 0.4rem; }
    .contact-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .lang-btn {
        padding: 0.55rem 0.75rem;
    }
    .hero-heading,
    .hero-heading > div,
    section h1,
    section h2 {
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .hero-heading > div {
        font-size: clamp(2.15rem, 11vw, 3.25rem) !important;
        line-height: 1.12 !important;
    }
    .mission-cards-grid {
        grid-template-columns: 1fr !important;
        overflow: visible;
        padding-bottom: 0;
        max-width: 100%;
    }
    .mission-cards-grid > div {
        min-width: 0;
        width: 100%;
    }
    .contact-section form > div:first-of-type {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        border-radius: 1.6rem;
        max-width: calc(100vw - 1rem);
        padding: 0.5rem 0.55rem 0.5rem 0.7rem;
    }
    .brand-logo img {
        height: 38px !important;
        max-width: 158px;
    }
    .contact-nav-btn {
        display: none;
    }
    .lang-btn { padding: 0.5rem 0.65rem; }
    .mobile-menu-toggle { padding: 0.4rem; }
    section h1 { font-size: 2.1rem !important; }
    section h2 { font-size: 2rem !important; }
    .mission-cards-grid {
        grid-template-columns: 1fr !important;
    }
    .mission-cards-grid > div {
        min-width: 0;
    }
    .product-card-image-panel {
        height: 245px;
    }
}

/* Mobile Navigation Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.open .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-slate-200);
}

.mobile-drawer-close-btn {
    background: none;
    border: none;
    color: var(--color-slate-600);
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-slate-800);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: var(--color-slate-100);
    color: var(--color-blue-600);
}
