/**
 * JSRdigi UI Enhancement Stylesheet
 * Brand Colors:
 * Primary: #0c3f54 (headers, primary buttons, icons, links)
 * Accent: #ff7a37 (CTA buttons, hover states, highlights)
 * Background: #ffffff (clean white)
 */

/* ===================================
   CSS Variables - Brand Colors
   =================================== */
:root {
    --brand-primary: #0c3f54;
    --brand-primary-light: #0f5570;
    --brand-primary-dark: #092e3f;
    --brand-accent: #ff7a37;
    --brand-accent-light: #ff9259;
    --brand-accent-dark: #e66625;
    --background: #ffffff;
    --text-dark: #0c3f54;
    --text-gray: #5a6670;
    --text-light: #8a9299;
    --border-color: #e5e8eb;
    --card-shadow: 0 4px 20px rgba(12, 63, 84, 0.08);
    --card-shadow-hover: 0 12px 40px rgba(12, 63, 84, 0.15);
}

/* ===================================
   Base Overrides
   =================================== */







html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Override Tailwind brand colors */
.text-\[\#0B4BE1\] { color: var(--brand-primary) !important; }
.text-\[\#0C1A40\] { color: var(--brand-primary) !important; }
.bg-\[\#0B4BE1\] { background-color: var(--brand-primary) !important; }
.bg-\[\#0C1A40\] { background-color: var(--brand-primary) !important; }
.border-\[\#0B4BE1\] { border-color: var(--brand-primary) !important; }
.text-\[\#E67E22\], .text-\[\#e67e22\] { color: var(--brand-accent) !important; }

/* ===================================
   Network/Spider Animation for Hero
   =================================== */
.network-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

/* ===================================
   Scroll Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===================================
   Card Styles - Polish
   =================================== */
.service-card,
.card,
[class*="rounded-2xl"][class*="bg-white"],
[class*="rounded-xl"][class*="bg-white"] {
    background: var(--background);
    border-radius: 16px !important;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.card:hover,
[class*="rounded-2xl"][class*="bg-white"]:hover,
[class*="rounded-xl"][class*="bg-white"]:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(12, 63, 84, 0.15);
}

/* Card icon styling */
.service-card .icon-wrapper,
[class*="bg-\[\#0B4BE1\]\/10"] {
    background: linear-gradient(135deg, rgba(12, 63, 84, 0.1), rgba(255, 122, 55, 0.05)) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper,
.group:hover [class*="bg-\[\#0B4BE1\]\/10"] {
    background: var(--brand-primary) !important;
    color: white !important;
    transform: scale(1.05);
}

/* ===================================
   Buttons - CTA Enhancement
   =================================== */
/* Primary CTA Button - Orange Accent */
.btn-cta,
a[href*="contact"][class*="bg-"] {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark)) !important;
    color: white !important;
    border: none !important;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 122, 55, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-cta:hover,
a[href*="contact"][class*="bg-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 55, 0.45);
}

.btn-cta::after,
a[href*="contact"][class*="bg-"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-cta:hover::after,
a[href*="contact"][class*="bg-"]:hover::after {
    opacity: 1;
}

/* Secondary Button */
.btn-secondary,
[class*="border-\[\#0B4BE1\]"] {
    border: 2px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    background: transparent !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
[class*="border-\[\#0B4BE1\]"]:hover {
    background: var(--brand-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===================================
   Links - Micro Interactions
   =================================== */
a {
    transition: color 0.2s ease;
}

a:not([class*="btn"]):hover {
    color: var(--brand-accent) !important;
}

/* Navigation links */
header nav a {
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* ===================================
   Header Enhancement
   =================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(12, 63, 84, 0.1);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat numbers gradient */
.stat-number {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===================================
   Section Styling
   =================================== */
section {
    position: relative;
}

/* Light section background */
.bg-\[\#F7F9FC\] {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%) !important;
}

/* ===================================
   Footer - Brand Primary
   =================================== */
footer {
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
}

footer a:hover {
    color: var(--brand-accent) !important;
}

/* ===================================
   Form Elements
   =================================== */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(12, 63, 84, 0.1) !important;
    outline: none;
}

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary-dark);
}

/* ===================================
   Selection
   =================================== */
::selection {
    background: rgba(12, 63, 84, 0.15);
    color: var(--brand-primary);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .service-card:hover,
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
