/**
 * Alkhair Aldaem Pharmaceuticals - Main Stylesheet
 * Modern, Premium Pharmaceutical Website Design
 * @version 1.0
 * @author DuCore Technologies
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES & THEME
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
    /* Brand Colors - Alkhair Aldaem (Teal to Green - Same as Admin) */
    --primary: #1B8B9A;
    --primary-dark: #156E7A;
    --primary-light: #2AA8B8;
    --primary-glow: rgba(27, 139, 154, 0.3);

    --secondary: #2ECC71;
    --secondary-dark: #27AE60;
    --secondary-light: #58D68D;

    --accent: #27AE60;
    --accent-dark: #1E8449;
    --accent-light: #52BE80;

    /* Backgrounds */
    --bg-dark: #0a0f1a;
    --bg-darker: #060a12;
    --bg-surface: #111827;
    --bg-surface-2: #1f2937;
    --bg-card: rgba(17, 24, 39, 0.8);

    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);

    /* Gradients - Teal to Green (Brand Match Admin) */
    --gradient-primary: linear-gradient(135deg, #1B8B9A 0%, #2ECC71 100%);
    --gradient-secondary: linear-gradient(135deg, #2ECC71 0%, #1B8B9A 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', var(--font-sans);

    /* Header */
    --header-height: 80px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* RTL Support */
body.is-rtl {
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color-hover);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
}

.header.scroll-header {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Hamburger button (3-line → X morphing) ─────────────────── */
.nav-close {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 1100;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(27,139,154,0.15);
    border-color: rgba(27,139,154,0.4);
}

/* Three-bar hamburger using spans */
.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                width 0.25s ease;
    transform-origin: center;
}

/* Active state: morph to X */
.nav-toggle.is-open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-btn {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.lang-switcher-btn:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
}

/* Lang code badge (replaces flag emoji) */
.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: rgba(27, 139, 154, 0.15);
    border: 1px solid rgba(27, 139, 154, 0.3);
    border-radius: 4px;
    font-family: var(--font-body);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 320px;
        max-width: 85vw;
        background: rgba(10, 15, 26, 0.85);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 60px;
        transform: translateX(-110%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.show-menu {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .nav-menu.show-menu .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.show-menu .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.show-menu .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.show-menu .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.show-menu .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.show-menu .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.show-menu .nav-item:nth-child(6) { transition-delay: 0.35s; }

    .nav-link {
        display: block;
        font-size: 1.25rem;
        font-weight: 500;
        padding: 14px 20px;
        border-radius: var(--radius-md);
        color: var(--text-secondary);
        letter-spacing: 0.3px;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        background: linear-gradient(90deg, rgba(27, 139, 154, 0.1) 0%, transparent 100%);
        border-left-color: var(--primary);
    }

    .nav-close {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .lang-switcher {
        margin: 0;
        margin-left: auto;
        order: 2;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Hero Video Background */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(27, 139, 154, 0.3) 50%,
            rgba(15, 23, 42, 0.95) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 20s ease-in-out infinite;
}

.hero-blob-1 {
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
}

.hero-blob-2 {
    bottom: 10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.2);
    animation-delay: -7s;
}

.hero-blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    animation-delay: -14s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(30px, 10px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.hero-card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-xl);
}

.hero-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-card p {
    color: var(--text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.stats {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION STYLING
   ═══════════════════════════════════════════════════════════════════════════════ */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: var(--transition-base);
}

.about-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
}

.value-item h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION - Modern Card Design
   ═══════════════════════════════════════════════════════════════════════════════ */
.products {
    background: var(--bg-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, var(--primary) 50%, var(--secondary) 60%, transparent 70%);
    -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;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 139, 154, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: 24px 24px 0;
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card:hover .card-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.card-body {
    padding: 16px 24px;
    position: relative;
    z-index: 1;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.card-footer {
    padding: 0 24px 24px;
    position: relative;
    z-index: 1;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.4) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .product-image img {
    transform: scale(1.08);
}

.product-icon {
    font-size: 4rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.card:hover .product-icon {
    transform: scale(1.1);
    color: var(--secondary);
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEAM SECTION - Modern Card Design
   ═══════════════════════════════════════════════════════════════════════════════ */
.team {
    background: var(--bg-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, var(--primary) 50%, var(--secondary) 60%, transparent 70%);
    -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;
    opacity: 0;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 139, 154, 0.2);
}

.team-card:hover::before {
    opacity: 1;
}

.team-photo {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    overflow: hidden;
}

.team-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(27, 139, 154, 0.15) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(27, 139, 154, 0.3);
}

.team-info {
    padding: 24px;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-position {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
}

.team-department {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.team-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-contact a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.team-contact a:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CAREERS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.careers {
    background: var(--bg-surface);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.contact {
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: var(--transition-base);
}

.contact-card:hover {
    border-color: var(--primary);
}

.contact-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(27, 139, 154, 0.12);
    border-radius: 6px;
    flex-shrink: 0;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

.contact-card a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-card {
        flex: 1 1 calc(33% - 8px);
        min-width: 160px;
        padding: 14px 16px;
    }
}

@media (max-width: 640px) {
    .contact-grid {
        gap: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .contact-card {
        flex: 1 1 100%;
        padding: 14px 16px;
    }

    .contact-card h3 {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .contact-card p,
    .contact-card a {
        font-size: 13px;
    }

    .contact-icon {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    .contact-form-wrapper {
        padding: 20px 16px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    border-color: var(--secondary);
}

.notification.error {
    border-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════════ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE UI/UX ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Global Mobile Polish ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
}

/* ── Hero Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ── Stats Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .stats {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-card {
        padding: 20px 12px;
    }
}

/* ── About Cards Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 36px;
    }

    .about-card {
        padding: 24px;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    .about-card p {
        font-size: 14px;
    }
}

/* ── Contact Section Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-grid {
        gap: 30px;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-card {
        flex: 1 1 100%;
        padding: 24px;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card p,
    .contact-card a {
        font-size: 14px;
        word-break: break-word;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
    }

    /* Bigger touch targets for forms */
    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* prevents zoom on iOS */
        border-radius: var(--radius-md);
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .btn-block {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}

/* ── Footer Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 24px;
    }

    .footer-grid {
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-brand .footer-logo {
        height: 40px;
    }

    .footer-brand h3 {
        font-size: 1.1rem;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 14px;
    }

    .footer-contact li {
        gap: 10px;
        margin-bottom: 12px;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }
}

/* ── WhatsApp & Chat Toggle Mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .notification {
        left: 16px;
        right: 16px;
        bottom: 80px;
        text-align: center;
    }
}

/* ── Team Section Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ── Careers Section Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Language Switcher Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .lang-dropdown {
        right: -20px;
        min-width: 180px;
    }
}

/* ── Products Grid Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .products-grid {
        gap: 16px;
    }
}