/* Token Engine - Brand Theme CSS */
/* Primary: Dark Blue #0A1931, Secondary: Teal #2EC4B6 */

:root {
    /* Brand Colors */
    --te-primary: #0A1931;
    --te-primary-light: #122347;
    --te-primary-dark: #060f1f;
    --te-secondary: #2EC4B6;
    --te-secondary-light: #4dd4c7;
    --te-secondary-dark: #229a8f;
    
    /* Semantic Colors */
    --te-background: #ffffff;
    --te-background-alt: #f8fafc;
    --te-foreground: #0f172a;
    --te-foreground-muted: #64748b;
    --te-border: #e2e8f0;
    
    /* Dark Mode */
    --te-dark-bg: #0A1931;
    --te-dark-bg-alt: #122347;
    --te-dark-fg: #f8fafc;
    --te-dark-fg-muted: #94a3b8;
    --te-dark-border: #1e3a5f;
    
    /* Spacing */
    --te-spacing-xs: 0.25rem;
    --te-spacing-sm: 0.5rem;
    --te-spacing-md: 1rem;
    --te-spacing-lg: 1.5rem;
    --te-spacing-xl: 2rem;
    --te-spacing-2xl: 3rem;
    --te-spacing-3xl: 4rem;
    
    /* Typography */
    --te-font-display: 'Playfair Display', Georgia, serif;
    --te-font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --te-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Border Radius */
    --te-radius-sm: 0.375rem;
    --te-radius-md: 0.5rem;
    --te-radius-lg: 0.75rem;
    --te-radius-xl: 1rem;
    --te-radius-2xl: 1.5rem;
    --te-radius-full: 9999px;
    
    /* Shadows */
    --te-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --te-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --te-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --te-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --te-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --te-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --te-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --te-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--te-font-sans);
    line-height: 1.6;
    color: var(--te-foreground);
    background-color: var(--te-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--te-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--te-primary);
}

.display-text {
    font-family: var(--te-font-display);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(46, 196, 182, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(46, 196, 182, 0.5);
    }
}

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

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Initially hidden for animation */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    opacity: 1;
}

/* Hero Section Styles */
.hero-gradient {
    background: linear-gradient(135deg, var(--te-primary) 0%, var(--te-primary-light) 50%, var(--te-primary) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

.hero-pattern {
    background-color: var(--te-primary); /* Ensure dark background */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(46, 196, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(46, 196, 182, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232EC4B6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Combined hero styles - ensure dark background when both classes are used */
.hero-gradient.hero-pattern {
    background-color: var(--te-primary) !important;
    background-image: 
        linear-gradient(135deg, var(--te-primary) 0%, var(--te-primary-light) 50%, var(--te-primary) 100%),
        radial-gradient(circle at 25% 25%, rgba(46, 196, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(46, 196, 182, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232EC4B6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 200% 200%, 100% 100%, 100% 100%, 60px 60px;
    animation: gradient-shift 15s ease infinite;
    color: white !important; /* Ensure text is white on dark background */
}

/* Ensure all text in hero section is white */
.hero-gradient.hero-pattern h1,
.hero-gradient.hero-pattern h2,
.hero-gradient.hero-pattern h3,
.hero-gradient.hero-pattern p,
.hero-gradient.hero-pattern span,
.hero-gradient.hero-pattern a:not(.btn-primary) {
    color: white !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--te-secondary);
    color: var(--te-primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--te-radius-lg);
    transition: all var(--te-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--te-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--te-shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--te-secondary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--te-radius-lg);
    border: 2px solid var(--te-secondary);
    transition: all var(--te-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--te-secondary);
    color: var(--te-primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--te-radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--te-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--te-radius-xl);
    box-shadow: var(--te-shadow);
    border: 1px solid var(--te-border);
    transition: all var(--te-transition);
    overflow: hidden;
}

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

.card-dark {
    background: var(--te-primary-light);
    border-color: var(--te-dark-border);
    color: var(--te-dark-fg);
}

/* Feature Icons */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--te-secondary) 0%, var(--te-secondary-dark) 100%);
    border-radius: var(--te-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--te-border) 50%, transparent 100%);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--te-secondary) 0%, var(--te-secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-selector select {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: var(--te-radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--te-transition);
}

.lang-selector select option {
    background: var(--te-primary);
    color: white;
}

.lang-selector select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.lang-selector::after {
    content: '▼';
    font-size: 0.6rem;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, var(--te-background-alt) 0%, white 100%);
    border: 1px solid var(--te-border);
    border-radius: var(--te-radius-2xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--te-secondary) 0%, var(--te-secondary-light) 100%);
}

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

.consulting-item {
    background: white;
    border: 1px solid var(--te-border);
    border-radius: var(--te-radius-xl);
    padding: 1.5rem;
    transition: all var(--te-transition);
}

.consulting-item:hover {
    border-color: var(--te-secondary);
    box-shadow: 0 0 0 1px var(--te-secondary);
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--te-primary) 0%, var(--te-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--te-secondary);
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--te-border);
    border-radius: var(--te-radius-lg);
    font-family: var(--te-font-sans);
    font-size: 1rem;
    transition: all var(--te-transition);
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--te-secondary);
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--te-primary);
    color: var(--te-dark-fg-muted);
}

.footer a {
    color: var(--te-dark-fg-muted);
    text-decoration: none;
    transition: color var(--te-transition);
}

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

.footer-heading {
    color: white;
    font-family: var(--te-font-sans);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Mobile Navigation */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--te-primary);
    z-index: 100;
    flex-direction: column;
    padding: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--te-dark-border);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: all var(--te-transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--te-secondary);
    z-index: 1000;
    transition: width 50ms linear;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--te-secondary);
    color: var(--te-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--te-transition);
    z-index: 100;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--te-shadow-lg);
}

/* Smooth Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}

/* Dark Section */
.dark-section {
    background: var(--te-primary);
    color: var(--te-dark-fg);
}

.dark-section h1,
.dark-section h2,
.dark-section h3 {
    color: white;
}

.dark-section p {
    color: var(--te-dark-fg-muted);
}

/* Image Overlay Text */
.image-overlay {
    position: relative;
}

.image-overlay .overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(10, 25, 49, 0.9) 0%, rgba(10, 25, 49, 0.4) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
}

