/* ========================================
   KORTEX & PRODEX - BASE STYLES
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Kortex Colors - Blue Tones */
    --kortex-primary: #1a365d;
    --kortex-secondary: #2d4663;
    --kortex-accent: #4299e1;
    --kortex-light: #90cdf4;
    
    /* Prodex Colors - Green Tones */
    --prodex-primary: #16A085;
    --prodex-secondary: #27AE60;
    --prodex-accent: #fbff00;
    --prodex-light: #E8F6F3;
    
    /* Light Theme Colors */
    --primary-light: #fefbf3;
    --secondary-light: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-light: rgba(255, 255, 255, 0.9);
    
    /* Gradients */
    --kortex-gradient: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.9) 0%, 
        rgba(45, 70, 99, 0.9) 50%,
        rgba(66, 153, 225, 0.9) 100%);
    --prodex-gradient: linear-gradient(135deg, 
        rgba(22, 160, 133, 0.9) 0%, 
        rgba(39, 174, 96, 0.9) 100%);
    --integration-gradient: linear-gradient(135deg, 
        rgba(241, 143, 1, 0.9) 0%, 
        rgba(243, 156, 18, 0.9) 100%);
    
    /* Light background gradients */
    --light-gradient: linear-gradient(135deg, 
        rgba(254, 251, 243, 0.95) 0%, 
        rgba(255, 249, 230, 0.95) 100%);
    
    /* Glass Effects */
    --glass-blur: 20px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== LIQUID GLASS EFFECT ========== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    transition: var(--transition) !important;
}

/* Force liquid glass to work on dropdowns */
.dropdown-menu.liquid-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
}

/* ========== NOISE TEXTURE ========== */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 70, 99, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(66, 153, 225, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #fefbf3 0%, #fff9e6 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-light);
    overflow-x: hidden;
    margin: 0 !important;
    padding-top: 0px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

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

.brand-kortex {
    background: var(--kortex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.brand-prodex {
    background: var(--prodex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========== BUTTONS ========== */
.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    text-decoration: none;
}

.btn-kortex {
    background: var(--kortex-gradient);
    color: white;
    border: none;
}

.btn-kortex:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.3);
}

.btn-prodex {
    background: var(--prodex-gradient);
    color: white;
    border: none;
}

.btn-prodex:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 160, 133, 0.3);
}

.btn-integration {
    background: var(--integration-gradient);
    color: white;
    border: none;
}

.btn-integration:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(241, 143, 1, 0.3);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--kortex-primary), var(--kortex-accent));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--kortex-accent), var(--kortex-primary));
}

/* ========== SELECTION STYLES ========== */
::selection {
    background: var(--kortex-light);
    color: var(--kortex-primary);
}

::-moz-selection {
    background: var(--kortex-light);
    color: var(--kortex-primary);
}
