/* ============================================
   ALCHEM CORPORATION - SHARED STYLES
   Centralized CSS for consistent design system
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES & DESIGN SYSTEM
   ============================================ */
:root {
    /* Navigation Colors */
    --nav-bar-color: #1E3A8A;
    --nav-bar-text-color: #FFFFFF;
    --nav-bar-shadow: rgba(30, 58, 138, 0.1);
    --nav-bar-hover-color: #2563EB;
    --nav-bar-hover-text-color: #FFFFFF;
    --navbar-height: 6rem; /* 96px - h-24 on mobile */
    
    /* Primary Color Palette */
    --navy-deep: #0F172A;
    --navy-dark: #1E293B;
    --navy-medium: #334155;
    --indigo-deep: #312E81;
    --indigo-dark: #3730A3;
    --indigo-medium: #4338CA;
    --indigo-light: #6366F1;
    --blue-deep: #1E3A8A;
    --blue-dark: #1D4ED8;
    --blue-medium: #2563EB;
    --blue-light: #3B82F6;
    --slate-dark: #1E293B;
    --slate-medium: #475569;
    --slate-light: #64748B;
    --gray-cool: #6B7280;
    
    /* Surface Colors */
    --surface-dark: #F1F5F9;
    --surface-light: #F8FAFC;
    --surface-white: #FFFFFF;
    
    /* Accent Colors */
    --accent-purple: #7C3AED;
    --accent-cyan: #0891B2;
    --accent-rose: #E11D48;
    --accent-rose-hover: #BE123C;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    
    /* Shadow System */
    --shadow-light: rgba(59, 130, 246, 0.1);
    --shadow-medium: rgba(30, 64, 175, 0.15);
    --shadow-dark: rgba(30, 58, 138, 0.25);
}

/* Professional Color Palette */
:root {
    /* Professional Design System */
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary: #64748B;
    --accent: #F59E0B;
    --surface: #F8FAFC;
    --surface-elevated: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
}

/* Responsive navbar height */
@media (min-width: 1024px) {
    :root {
        --navbar-height: 5rem; /* 80px - h-20 on desktop */
    }
}

/* ============================================
   GLOBAL STYLES & TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ============================================
   SHARED GRADIENT BACKGROUNDS
   ============================================ */
.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 50%, var(--indigo-deep) 100%);
}

.bg-gradient-indigo {
    background: linear-gradient(135deg, var(--indigo-medium) 0%, var(--blue-medium) 100%);
}

.bg-gradient-slate {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
}

.bg-gradient-complex {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--indigo-dark) 30%, var(--blue-dark) 70%, var(--indigo-medium) 100%);
    background-size: 400% 400%;
}

.bg-gradient-subtle {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

/* ============================================
   SHARED COMPONENT STYLES
   ============================================ */

/* Primary Card Style */
.card-primary {
    background: var(--surface-white);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.1), 0 8px 10px -6px rgba(30, 58, 138, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--indigo-medium), var(--blue-medium), var(--accent-cyan));
}

.card-primary:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.2), 0 15px 20px -8px rgba(30, 58, 138, 0.15);
}

/* Dark Card Style */
.card-dark {
    background: linear-gradient(135deg, var(--navy-dark), var(--slate-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.3);
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.card-dark:hover::after {
    left: 100%;
}

/* Indigo Card Style */
.card-indigo {
    background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo-medium) 100%);
    border: none;
    border-radius: 24px;
    box-shadow: 0 12px 30px -8px rgba(67, 56, 202, 0.4);
    color: white;
    transition: all 0.4s ease;
}

.card-indigo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px -10px rgba(67, 56, 202, 0.5);
}

/* Professional Card Styling */
.card-professional {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Enhanced Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
    border-radius: 8px;
}

/* ============================================
   INTERACTIVE EFFECTS
   ============================================ */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(67, 56, 202, 0.3);
}

/* ============================================
   GEOMETRIC SHAPES
   ============================================ */
.shape-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape-arrow {
    clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Page Animations */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-professional {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Animation Classes */
.animate-slide-left { animation: slideInLeft 0.8s ease-out; }
.animate-slide-right { animation: slideInRight 0.8s ease-out; }
.animate-fade-up { animation: fadeInUp 0.8s ease-out; }
.animate-scale-in { animation: scaleIn 0.6s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-gradient { animation: gradientShift 4s ease infinite; }
.animate-fade-in { animation: fadeIn 0.8s ease-in-out; }
.animate-slide-in { animation: slideIn 0.4s ease-out; }
.animate-pulse-pro { animation: pulse-professional 2s infinite; }

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--indigo-medium), var(--blue-medium), transparent);
    margin: 4rem 0;
    border-radius: 1px;
}

.zigzag-divider {
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--indigo-medium) 0px,
        var(--indigo-medium) 10px,
        var(--blue-medium) 10px,
        var(--blue-medium) 20px
    );
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
    
    .mobile-reposition-1 {
        top: 30px !important;
        left: 20% !important;
    }
    
    .mobile-reposition-2 {
        bottom: 50px !important;
        right: 25% !important;
    }
    
    .mobile-reposition-3 {
        bottom: 30px !important;
        left: 25% !important;
    }
}

/* ========== Contact Form Styles ========== */
/* Form Focus Effects */
.form-group:focus-within label {
    color: #2563eb;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Anti-Spam Protection Styles */
/* Honeypot field - completely hidden from users */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;    opacity: 0 !important;
    pointer-events: none !important;
}

/* CAPTCHA styling */
.captcha-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.captcha-question {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-input {
    width: 100px !important;
    text-align: center;
    font-weight: bold;
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    font-size: 1.125rem !important;
}

.captcha-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

/* Mobile Responsive Design for Contact Form */
@media (max-width: 768px) {
    /* Mobile Form Optimizations */
    .mobile-form-container { margin: 0 !important; border-radius: 0.75rem !important; }
    .mobile-form-header { padding: 1.5rem !important; text-align: center; }
    .mobile-form-header h2 { font-size: 1.75rem !important; line-height: 1.2 !important; }
    .mobile-form-header p { font-size: 0.8rem !important; margin-top: 0.5rem !important; }
    .mobile-form-content { padding: 1.25rem !important; }
    .mobile-form-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .mobile-form-input { font-size: 1rem !important; padding: 0.875rem 1rem !important; }
    .mobile-form-label { font-size: 1rem !important; margin-bottom: 0.5rem !important; }
    .mobile-form-button { font-size: 1.125rem !important; padding: 1rem 1.5rem !important; }
    .mobile-clear-button { padding: 0.75rem 1.25rem !important; font-size: 0.9rem !important; }
    .mobile-contacts-spacing { gap: 1rem !important; }
    .mobile-contact-card { padding: 1.25rem !important; }
    
    /* Mobile CAPTCHA Optimizations */
    .captcha-container { padding: 0.75rem !important; }
    .captcha-question { font-size: 0.9rem !important; }
    .captcha-input { width: 80px !important; font-size: 1rem !important; }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .xs-mobile-padding { padding-left: 1rem !important; padding-right: 1rem !important; }
    .xs-mobile-form-header { padding: 1.25rem !important; }
    .xs-mobile-form-header h2 { font-size: 1.75rem !important; }
    .xs-mobile-form-content { padding: 1rem !important; }
    .xs-mobile-form-input { padding: 0.75rem !important; }
    
    /* Extra small mobile CAPTCHA */
    .captcha-input { width: 70px !important; font-size: 0.9rem !important; }
    .captcha-question { font-size: 0.8rem !important; }
}

/* ============================================
   NAVIGATION COMPONENTS
   ============================================ */

/* Primary Navbar */
.navbar-primary {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to right, #1E3A8A, #1E40AF, #1E3A8A);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
    transition: all 0.5s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: white;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn:hover {
    color: #DBEAFE;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.4), rgba(67, 56, 202, 0.4));
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #60A5FA;
}

/* Desktop Navigation Links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

@media (min-width: 1280px) {
    .nav-link {
        font-size: 1rem;
    }
}

.nav-link:hover {
    color: #DBEAFE;
    background-color: rgba(30, 58, 138, 0.3);
}

.nav-link-active {
    background-color: rgba(30, 58, 138, 0.4);
    color: #DBEAFE;
}

.nav-link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #93C5FD;
    transition: width 0.3s ease;
}

.nav-link:hover .nav-link-underline {
    width: 100%;
}

.nav-link-active .nav-link-underline {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #1E3A8A, #1E40AF, #1E3A8A);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(29, 78, 216, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

/* Mobile Menu Visibility States */
.mobile-menu.opacity-100 {
    opacity: 1;
}

.mobile-menu.opacity-0 {
    opacity: 0;
}

.mobile-menu.visible {
    visibility: visible;
}

.mobile-menu.invisible {
    visibility: hidden;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 0;
    color: white;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    color: #DBEAFE;
    background-color: rgba(30, 58, 138, 0.3);
}

.mobile-menu-link-active {
    background-color: rgba(30, 58, 138, 0.4);
    color: #DBEAFE;
}

/* ============================================
   FOOTER COMPONENTS
   ============================================ */

.footer-primary {
    background: linear-gradient(to bottom, #1E3A8A, #172554);
    color: white;
    position: relative;
    z-index: 20;
    margin-top: auto;
}

.footer-heading {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 640px) {
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .footer-heading {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .footer-heading {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }
}

.footer-link {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: #DBEAFE;
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .footer-link {
        justify-content: flex-start;
    }
}

.footer-link:hover {
    color: white;
}

.footer-link-active {
    color: white;
    font-weight: 600;
}

.footer-link-icon {
    margin-right: 0.75rem;
    color: #60A5FA;
    margin-top: 0.25rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.footer-link:hover .footer-link-icon {
    color: white;
}

.footer-link-text {
    transition: margin-left 0.2s ease;
}

.footer-link:hover .footer-link-text {
    margin-left: 0.5rem;
}

.footer-contact-icon {
    margin-right: 0.25rem;
    color: #60A5FA;
    margin-top: 0.125rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
    font-size: 7px;
}

@media (min-width: 640px) {
    .footer-contact-icon {
        margin-right: 0.5rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .footer-contact-icon {
        margin-right: 0.625rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .footer-contact-icon {
        margin-right: 0.75rem;
        margin-top: 0.25rem;
        font-size: 0.875rem;
    }
}

.social-link {
    background-color: rgba(255, 255, 255, 0.1);
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .social-link {
        width: 1.75rem;
        height: 1.75rem;
    }
}

@media (min-width: 768px) {
    .social-link {
        width: 2rem;
        height: 2rem;
    }
}

@media (min-width: 1024px) {
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ============================================
   PAGE LAYOUT COMPONENTS
   ============================================ */

.page-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow-x: hidden;
    padding-top: 6rem; /* Account for fixed navbar */
}

@media (min-width: 1024px) {
    .page-container {
        padding-top: 5rem;
    }
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 70%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.services-section {
    padding: 4rem 0 6rem 0;
    background: linear-gradient(to bottom, #111827, #1E3A8A);
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .services-section {
        padding: 6rem 0;
    }
}

.icon-gradient-primary {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--indigo-dark) 30%, var(--blue-dark) 70%, var(--indigo-medium) 100%);
    background-size: 400% 400%;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: gradientShift 4s ease infinite;
    transition: all 0.3s ease;
}

.icon-gradient-primary:hover {
    transform: translateY(-8px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== Products Page Styles ========== */
/* Professional Color Palette */
:root {
    /* Professional Design System */
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary: #64748B;
    --accent: #F59E0B;
    --surface: #F8FAFC;
    --surface-elevated: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
}

/* Product Page Animations */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-professional {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.animate-slide-in { animation: slideIn 0.4s ease-out; }
.animate-pulse-pro { animation: pulse-professional 2s infinite; }

/* Professional Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-2px);
}

/* Professional Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.bg-gradient-surface {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
}
