/* 
   Arkan Law Firm & Notary Services - Premium Minimalist Stylesheet
   Created: July 2026
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    --primary: #035568;
    --primary-light: #7aa4ac;
    --primary-dark: #01323f;
    --accent: #C5A85A;
    --accent-light: #dfc277;
    --accent-dark: #a1853f;
    --bg-light: #F2F6F8;
    --text-primary: #334155;
    --text-charcoal: #0F172A;
    --text-muted: #64748B;
    --border-soft: rgba(226, 232, 240, 0.8);
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* Custom Base Configurations */
html {
    scroll-behavior: smooth;
    min-height: 100vh;
    direction: rtl;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* English/Number Fonts */
.font-en, [lang="en"] {
    font-family: var(--font-en);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

@keyframes liquid-drift-1 {
    0%, 100% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    33% { transform: translate(60px, -80px) scale(1.2) rotate(120deg); }
    66% { transform: translate(-40px, 50px) scale(0.85) rotate(240deg); }
}

@keyframes liquid-drift-2 {
    0%, 100% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    50% { transform: translate(-80px, 60px) scale(1.25) rotate(-180deg); }
}

@keyframes liquid-drift-3 {
    0%, 100% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    40% { transform: translate(50px, 70px) scale(0.9) rotate(90deg); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

.animate-liquid-1 {
    animation: liquid-drift-1 18s ease-in-out infinite;
}

.animate-liquid-2 {
    animation: liquid-drift-2 22s ease-in-out infinite;
}

.animate-liquid-3 {
    animation: liquid-drift-3 26s ease-in-out infinite;
}

/* Scroll Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Glassmorphism Classes (Liquid Glass System) */
.glass-nav-liquid {
    background: rgba(1, 27, 34, 0.45);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 15px 35px -10px rgba(0, 0, 0, 0.3), 
        0 1px 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav-liquid.scrolled {
    background: rgba(1, 27, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 12px 25px -10px rgba(0, 0, 0, 0.4), 
        0 1px 1px 0 rgba(255, 255, 255, 0.08) inset;
    transform: translateY(2px) scale(0.985);
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 
        0 10px 40px -10px rgba(13, 82, 60, 0.08), 
        0 1px 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.glass-card-dark {
    background: rgba(13, 82, 60, 0.04);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(13, 82, 60, 0.08);
    box-shadow: 
        0 10px 40px -10px rgba(13, 82, 60, 0.05), 
        0 1px 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* 3D Parallax Tilt Utilities */
.perspective-container {
    perspective: 1200px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.tilt-card > * {
    transform: translateZ(30px);
}


/* Interactive Elements */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    right: 0;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Dynamic Glowing Light Beams for Minimalist Premium Feel */
.glowing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.blob-green {
    background: radial-gradient(circle, rgba(3, 85, 104, 0.28) 0%, rgba(3, 85, 104, 0) 70%);
}

.blob-gold {
    background: radial-gradient(circle, rgba(197, 168, 90, 0.24) 0%, rgba(197, 168, 90, 0) 70%);
}

/* Slider & Custom Form Controls */
input[type="range"] {
    accent-color: var(--primary);
}

/* Global Form Inputs Text Color Fix */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    color: #1e293b;
}

/* Notary Estimator UI Elements */
.step-dot {
    background-color: #04252c !important;
    z-index: 10;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
}

.step-dot.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.step-dot.completed {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

/* Custom transitions */
.transition-slow {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button & Card Special Hover Actions */
.premium-btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(13, 82, 60, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 82, 60, 0.3);
}

.premium-btn-secondary {
    border: 1px solid var(--accent);
    color: var(--text-charcoal);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-btn-secondary:hover {
    background: rgba(197, 168, 90, 0.08);
    transform: translateY(-2px);
}

.premium-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    border-color: rgba(197, 168, 90, 0.3);
    box-shadow: 0 20px 25px -5px rgba(13, 82, 60, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    transform: translateY(-4px);
}

/* Services Hub Tabs & Search */
.tab-btn {
    position: relative;
    color: var(--text-muted);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    border-radius: 9999px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active::after {
    width: 100%;
}

.search-container {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 82, 60, 0.08);
}

/* Infinite logo marquee animation */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Floating WhatsApp pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 37, 44, 0.4), 0 10px 30px -10px rgba(4, 37, 44, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 10px 30px -10px rgba(4, 37, 44, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 30px -10px rgba(4, 37, 44, 0.3);
    }
}
.animate-whatsapp-pulse {
    animation: whatsapp-pulse 2s infinite;
}



/* Infinite logo marquee animation (4 sets) */
.marquee-track-4 {
    display: flex;
    width: max-content;
    animation: marquee-4 35s linear infinite;
    gap: 0;
}
.marquee-track-4:hover {
    animation-play-state: paused;
}
@keyframes marquee-4 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}