/* Custom Styles for NEXEN Website - Dark/Cyber Theme */

:root {
    --bg-dark: #050A14;
    --bg-card: #0A1124;
    --primary: #0D3B66; /* Keep as legacy or deep blue foundation */
    --accent-cyan: #00F0FF;
    --accent-green: #00FF9D;
    --accent-purple: #BC13FE;
    --text-main: #F4F4F4;
    --text-muted: #A0AEC0;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Cairo', sans-serif; /* Default Arabic font */
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(10, 17, 36, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Neon Text Effects */
.text-glow-cyan {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.text-glow-green {
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Badge/Icon Pulse */
.hero-glow {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.2); }
    50% { box-shadow: 0 0 60px rgba(0, 240, 255, 0.4); }
}

/* Gradient Borders/Text */
.gradient-text-main {
    background: linear-gradient(135deg, #FFF 0%, #A0AEC0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Service & Pricing Cards */
.tech-card {
    background: linear-gradient(180deg, rgba(16, 25, 45, 0.8) 0%, rgba(10, 17, 36, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px -10px rgba(0, 240, 255, 0.15);
}

.tech-card:hover::before {
    transform: translateX(100%);
}

.tech-card .icon-box {
    background: rgba(255, 255, 255, 0.03);
    transition: 0.4s;
}

.tech-card:hover .icon-box.cyan {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1A2642;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Buttons */
.btn-cyber {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-cyber::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-cyber:hover::after {
    height: 100%;
}

/* Helper Classes */
.font-english {
    font-family: 'Montserrat', sans-serif;
    direction: ltr;
}

.space-x-reverse > * + * {
    margin-right: 0.75rem;
    margin-left: 0;
}

[dir="rtl"] .space-x-reverse > * + * {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Global Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    font-size: 32px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
