/* ============================================================
   JESPHER TECH — MODERN UPGRADE LAYER  (modern.css)
   Loads AFTER style.css + accessibility.css. Selectively
   overrides to give the site a more premium, distinctive feel
   without changing any HTML structure.
   ------------------------------------------------------------
   Direction: deep ink canvas, electric-violet primary, a warm
   amber spark accent (the "signature" that breaks the generic
   blue/purple/cyan tech-template look), richer depth, softer
   glass, springier micro-interactions, refined typography.
   ============================================================ */

/* ─── 1. Palette: DARK BLUE base + teal & amber accents ───── */
:root {
    --bg-base:      #FFFFFF;
    --bg-surface:   #F4F7FB;
    --bg-card:      #FFFFFF;
    --bg-glass:     rgba(10, 37, 64, 0.05);

    /* Dark blue leads; teal + amber are the lively accents */
    --primary:      #0A2540;          /* dark blue */
    --primary-glow: rgba(10, 37, 64, 0.22);
    --navy:         #0A2540;
    --black:        #0B0B0F;
    --teal:         #0EA5B7;           /* fresh accent */
    --teal-glow:    rgba(14, 165, 183, 0.30);
    --cyan:         #0EA5B7;
    --cyan-glow:    rgba(14, 165, 183, 0.28);
    --purple:       #15396B;
    --purple-glow:  rgba(21, 57, 107, 0.22);
    --amber:        #F5A524;           /* warm spark accent */
    --amber-glow:   rgba(245, 165, 36, 0.32);
    --green:        #10B981;
    --green-glow:   rgba(16, 185, 129, 0.25);

    --text:         #0B0B0F;           /* near-black body text */
    --text-light:   #2B3A4B;
    --text-muted:   #5B6B7D;
    --border:       rgba(11, 11, 15, 0.12);
    --border-glow:  rgba(14, 165, 183, 0.45);

    /* Navy → teal makes buttons & icons feel alive without losing the brand */
    --gradient-main: linear-gradient(135deg, #0A2540 0%, #155E75 55%, #0EA5B7 100%);
    --gradient-cyan: linear-gradient(135deg, #0EA5B7 0%, #155E75 100%);
    --gradient-warm: linear-gradient(135deg, #F5A524 0%, #FB7185 100%);
    --gradient-card: linear-gradient(150deg, rgba(14,165,183,0.06) 0%, rgba(10,37,64,0.04) 100%);
    /* Headings: deep navy → black, high contrast on white */
    --gradient-heading: linear-gradient(135deg, #0A2540 0%, #103C5A 60%, #0B0B0F 100%);

    --shadow-card: 0 1px 3px rgba(11,11,15,0.06), 0 14px 38px -16px rgba(10,37,64,0.18);
    --shadow-glow: 0 0 0 1px var(--border-glow), 0 14px 40px -8px var(--teal-glow);

    --transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius: 18px;
}

/* Smoother global type rendering + tighter display tracking */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.1px;
}

/* ─── 2. Ambient atmosphere behind the whole page ─────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 12% 0%, rgba(10, 37, 64,0.14) 0%, transparent 60%),
        radial-gradient(50% 45% at 92% 12%, rgba(21, 57, 107,0.10) 0%, transparent 60%),
        radial-gradient(45% 40% at 50% 100%, rgba(10, 37, 64,0.07) 0%, transparent 60%);
    animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(0,-18px,0) scale(1.04); }
}
body:not(.dark-mode)::before { opacity: 0.55; }

/* subtle film-grain to kill banding in the gradients */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── 3. Header — floating pill nav feel ──────────────────── */
header {
    background: color-mix(in srgb, var(--bg-base) 55%, transparent);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
header.scrolled,
header:hover {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 40px -20px rgba(0,0,0,0.7);
}

/* nav links get an animated underline */
.nav-links a {
    position: relative;
    transition: color .25s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    height: 2px; width: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-spring);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--text); }

/* ─── 4. Hero — mesh glow + amber spark in the badge ──────── */
.hero::after {
    background:
        radial-gradient(circle at 22% 42%, rgba(10, 37, 64,0.20) 0%, transparent 46%),
        radial-gradient(circle at 80% 28%, rgba(21, 57, 107,0.14) 0%, transparent 46%),
        radial-gradient(circle at 62% 86%, rgba(10, 37, 64,0.10) 0%, transparent 40%);
}

.hero-badge {
    background: rgba(10, 37, 64,0.10);
    border-color: rgba(10, 37, 64,0.28);
    color: #15396B;
    backdrop-filter: blur(8px);
}
.hero-badge-dot {
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber-glow);
}

.hero h1 { letter-spacing: -1.5px; }

/* the typewriter line now reads in the warm signature tone */
.typewriter, .typewriter-cursor { color: var(--amber); }
.typewriter-cursor { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }

/* gradient text gets a slow shimmer */
.hero h1 .gradient-text,
.section-title h2,
.stat-number,
.logo-full {
    background: var(--gradient-heading);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* ─── 5. Buttons — glassier + amber primary on hover sheen ── */
.btn {
    border-radius: 14px;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease-spring), box-shadow .3s ease, filter .3s ease;
}
.btn-primary {
    background: var(--gradient-main);
    box-shadow: 0 8px 28px -8px var(--primary-glow);
}
/* moving sheen */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.btn-primary:hover::after { left: 140%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px -8px var(--primary-glow), 0 0 24px -4px var(--amber-glow);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}

/* ─── 6. Section labels — tiny amber tick ─────────────────── */
.section-label {
    color: #15396B;
    background: rgba(10, 37, 64,0.09);
    border-color: rgba(10, 37, 64,0.18);
    position: relative;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber-glow);
    vertical-align: middle;
}

/* ─── 7. Cards — deeper glass, spring lift, glow edge ─────── */
.card, .service-card, .portfolio-item, .testimonial-card, .stat-item {
    border-radius: var(--radius);
}
.card {
    background: var(--bg-card);
    box-shadow: 0 0 0 1px var(--border);
    transition: transform .4s var(--ease-spring), box-shadow .4s ease, border-color .4s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), 0 26px 50px -18px rgba(0,0,0,0.6);
}
.card-icon {
    background: rgba(10, 37, 64,0.12);
    border-color: rgba(10, 37, 64,0.22);
    transition: transform .4s var(--ease-spring), background .3s ease, box-shadow .3s ease;
}
.card:hover .card-icon {
    transform: translateY(-2px) scale(1.06) rotate(-3deg);
    background: rgba(10, 37, 64,0.22);
    box-shadow: 0 0 24px var(--primary-glow);
}
.card i, .card .card-icon i { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── 8. Stats — animated top accent + amber on hover ─────── */
.stats-grid { border-radius: var(--radius); }
.stat-item::before { background: var(--gradient-main); }
.stat-item:hover { background: rgba(10, 37, 64,0.06); }
.stat-item:hover .stat-number { filter: drop-shadow(0 0 14px var(--primary-glow)); }

/* ─── 9. Services — gradient icon tiles get warm edge ─────── */
.service-icon { box-shadow: 0 6px 20px -6px var(--primary-glow); }
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 28px -6px var(--primary-glow), 0 0 18px -4px var(--amber-glow);
}
.service-features li::before { content: '→'; color: var(--amber); font-weight: 700; }
.service-button {
    background: rgba(10, 37, 64,0.10);
    color: #15396B;
    border-color: rgba(10, 37, 64,0.25);
}
.service-button:hover { background: var(--gradient-main); color:#fff; }

/* ─── 10. Portfolio — richer image overlay + zoom ─────────── */
.portfolio-item { transition: transform .45s var(--ease-spring), box-shadow .45s ease; }
.portfolio-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.portfolio-image::after {
    background: linear-gradient(180deg, transparent 40%, rgba(7,6,13,0.85) 100%);
}
.portfolio-item:hover .portfolio-image img { transform: scale(1.08); }
.portfolio-link:first-child { background: var(--gradient-main); color:#fff; border:none; }
.portfolio-link:first-child:hover { box-shadow: 0 6px 20px -6px var(--primary-glow); }

/* ─── 11. Testimonials — quote mark + warm stars ──────────── */
.testimonial-card { position: relative; overflow: hidden; }
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -18px; right: 14px;
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.10;
}
.testimonial-stars i { color: var(--amber); filter: drop-shadow(0 0 4px var(--amber-glow)); }
.author-avatar { background: var(--gradient-main) !important; box-shadow: 0 4px 14px -4px var(--primary-glow); }

/* ─── 12. FAQ — smoother open state accent ────────────────── */
.faq-item { border-radius: 14px; transition: border-color .3s ease, background .3s ease; }
.faq-item:hover { border-color: var(--border-glow); }
.faq-question i { color: var(--amber); transition: transform .35s var(--ease-spring); }

/* ─── 13. Contact — warm accent on the headline ───────────── */
.contact-hero-accent { background: var(--gradient-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-hero-label { color: var(--amber); }
.contact-info-card { transition: transform .35s var(--ease-spring), border-color .3s ease, background .3s ease; }
.contact-info-card:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.contact-info-card-icon { background: rgba(10, 37, 64,0.12) !important; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(10, 37, 64,0.18) !important;
    outline: none;
}
.contact-submit-btn { background: var(--gradient-main); }

/* ─── 14. Footer + floating WhatsApp polish ───────────────── */
.social-links a { transition: transform .3s var(--ease-spring), color .3s ease, background .3s ease; }
.social-links a:hover { transform: translateY(-3px); color: var(--amber); }
.footer-links a:hover { color: var(--primary); }
.whatsapp-float { box-shadow: 0 10px 30px -6px rgba(46,230,166,0.5); }
.whatsapp-float::after {
    content:''; position:absolute; inset:0; border-radius:inherit;
    box-shadow: 0 0 0 0 rgba(46,230,166,0.5);
    animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple {
    0%   { box-shadow: 0 0 0 0 rgba(46,230,166,0.45); }
    100% { box-shadow: 0 0 0 22px rgba(46,230,166,0); }
}

/* ─── 15. Preloader — match the new violet/amber palette ──── */
.pl-name span { color: var(--amber); }
.orbit-dot { background: var(--amber) !important; box-shadow: 0 0 12px var(--amber-glow) !important; }

/* ─── 16. Custom scrollbar + selection ────────────────────── */
::selection { background: rgba(10, 37, 64,0.35); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--cyan));
    border-radius: 10px;
    border: 3px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* ─── 17. Accessibility: respect reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero h1 .gradient-text,
    .section-title h2,
    .stat-number,
    .logo-full,
    .whatsapp-float::after { animation: none !important; }
    * { scroll-behavior: auto !important; }
}

/* ════════════════════════════════════════════════════════════
   FIX: service-icon tiles must show a SOLID white glyph.
   The generic ".card i { background-clip:text; color:transparent }"
   was making the icon invisible against the gradient tile.
   ════════════════════════════════════════════════════════════ */
.service-icon {
    background: var(--gradient-main) !important;
    box-shadow: 0 6px 18px -4px var(--primary-glow);
}
.service-card .service-icon i,
.card .service-icon i,
.service-icon i {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
}

/* The "Why Choose Us" feature cards: keep gradient-filled glyph,
   but ensure it actually renders (fallback solid colour if clip fails) */
.features .card-icon {
    background: var(--gradient-main) !important;
    border: none !important;
}
.features .card-icon i {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════
   ACCENT BLEND — tasteful pops of teal & amber on the navy base.
   Kept light so the design stays clean and professional.
   ════════════════════════════════════════════════════════════ */

/* Soft ambient color wash behind the whole page */
body::before {
    background:
        radial-gradient(55% 45% at 10% 0%,  rgba(14,165,183,0.10) 0%, transparent 60%),
        radial-gradient(50% 40% at 92% 8%,  rgba(10,37,64,0.08)  0%, transparent 60%),
        radial-gradient(45% 40% at 50% 100%, rgba(245,165,36,0.06) 0%, transparent 60%) !important;
    opacity: 1 !important;
}

/* Section eyebrow labels — teal text + amber tick dot */
.section-label {
    color: #0E7C8A !important;
    background: rgba(14,165,183,0.08) !important;
    border: 1px solid rgba(14,165,183,0.22) !important;
}
.section-label::before {
    background: var(--amber) !important;
    box-shadow: 0 0 8px var(--amber-glow);
}

/* Hero badge — teal accent + amber pulse dot */
.hero-badge {
    color: #0E7C8A !important;
    background: rgba(14,165,183,0.08) !important;
    border-color: rgba(14,165,183,0.28) !important;
}
.hero-badge-dot { background: var(--amber) !important; box-shadow: 0 0 10px var(--amber-glow); }

/* The animated hero word reads in the warm amber signature tone */
.typewriter, .typewriter-cursor { color: var(--amber) !important; }
.typewriter-cursor { background: var(--amber) !important; box-shadow: 0 0 8px var(--amber-glow); }

/* "Next-Gen" gradient word — navy → teal so the hero has life */
.hero h1 .gradient-text {
    background: linear-gradient(120deg, #0A2540 0%, #0EA5B7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Card hover lifts get a teal edge + soft glow */
.card:hover,
.service-card:hover,
.price-card:hover,
.portfolio-item:hover {
    border-color: rgba(14,165,183,0.40) !important;
    box-shadow: 0 14px 36px -14px rgba(10,37,64,0.22), 0 0 0 1px rgba(14,165,183,0.30) !important;
}

/* Stat numbers in vivid navy→teal */
.stat-number {
    background: linear-gradient(120deg, #0A2540 0%, #0EA5B7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Service list bullets + portfolio tag accents in teal/amber */
.service-features li::before { color: var(--amber) !important; }
.portfolio-tech span {
    border-color: rgba(14,165,183,0.30) !important;
    color: #0E7C8A !important;
}

/* Active nav underline + service tab use the lively gradient */
.nav-links a.active::after { background: var(--gradient-main) !important; }

/* Price "POPULAR" badge gets the warm spark */
.price-card.featured { border-color: rgba(14,165,183,0.45) !important; }
.price-card.featured::before { background: var(--gradient-warm) !important; }

/* Price amounts in teal for a pop against navy headings */
.price-row .pr-amount { color: #0E7C8A !important; }

/* FAQ open question + chevron tinted teal */
.faq-item.active .faq-question,
.faq-question:hover { color: #0E7C8A !important; }

/* Footer top hairline accent */
footer { border-top: 3px solid transparent; border-image: var(--gradient-main) 1; }
