@tailwind base;
@tailwind components;
@tailwind utilities;

/* ═══════════════════════════════════════════
   DEVLIB PREMIUM DESIGN SYSTEM v2.0
   Modern · Creative · Professional
   ═══════════════════════════════════════════ */

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ── Selection ── */
::selection {
    background: rgba(255, 107, 43, 0.2);
    color: #1a365d;
}

/* ═══════ SCROLL ANIMATIONS ═══════ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ═══════ GLASSMORPHISM ═══════ */
@layer utilities {
    .glass {
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .glass-white {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
    .glass-dark {
        background: rgba(3, 7, 18, 0.8);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    .glass-accent {
        background: rgba(255, 107, 43, 0.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 107, 43, 0.15);
    }
}

/* ═══════ GRADIENT TEXT ═══════ */
@layer utilities {
    .gradient-text {
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .text-gradient-primary {
        background-image: linear-gradient(135deg, #1a365d, #3b82f6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .text-gradient-accent {
        background-image: linear-gradient(135deg, #ff6b2b, #fb923c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .text-gradient-hero {
        background-image: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.7));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* ═══════ TEXT SHIMMER EFFECT ═══════ */
.text-shimmer {
    background: linear-gradient(
        120deg,
        #1a365d 0%,
        #3b82f6 25%,
        #ff6b2b 50%,
        #3b82f6 75%,
        #1a365d 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
    to { background-position: 200% center; }
}

/* ═══════ CARD SYSTEM ═══════ */

/* Basic card */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.12), 0 10px 20px rgba(26, 54, 93, 0.08);
}

/* Elevated card */
.card-elevated {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 10px 30px rgba(26, 54, 93, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-elevated:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 60px rgba(26, 54, 93, 0.15), 0 15px 30px rgba(26, 54, 93, 0.1);
}

/* Premium glow card */
.card-premium {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(255,107,43,0.3), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 107, 43, 0.1), 0 10px 30px rgba(26, 54, 93, 0.1);
}
.card-premium:hover::before {
    opacity: 1;
}

/* Neon Glow Card */
.card-glow {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-glow:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 20px rgba(255, 107, 43, 0.15),
        0 0 40px rgba(255, 107, 43, 0.08),
        0 20px 40px rgba(26, 54, 93, 0.1);
}

/* Interactive 3D tilt card */
.card-tilt {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
}
.card-tilt:hover {
    box-shadow: 0 30px 60px rgba(26, 54, 93, 0.15);
}

/* Legacy card-hover support */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.12);
}

/* ═══════ IMAGE EFFECTS ═══════ */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
    transform: scale(1.08);
}

.img-overlay {
    position: relative;
    overflow: hidden;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3,7,18,0.7) 0%, transparent 60%);
    transition: opacity 0.4s ease;
}

/* Ken Burns Effect */
.img-ken-burns img {
    animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}

/* ═══════ HERO STYLES ═══════ */
.hero-gradient {
    background: linear-gradient(135deg, #030712 0%, #0c1b33 30%, #1a365d 70%, #0f2441 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(at 20% 80%, rgba(255,107,43,0.15) 0, transparent 50%),
        radial-gradient(at 80% 20%, rgba(59,130,246,0.12) 0, transparent 50%),
        radial-gradient(at 50% 50%, rgba(26,54,93,0.3) 0, transparent 70%);
    pointer-events: none;
}

/* Hero particle dots */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 107, 43, 0.3);
    animation: particleFloat 8s ease-in-out infinite;
}
.hero-particles .particle:nth-child(2n) {
    background: rgba(59, 130, 246, 0.2);
    animation-duration: 12s;
    animation-delay: -3s;
}
.hero-particles .particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.1);
    animation-duration: 10s;
    animation-delay: -5s;
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-100px) translateX(30px); }
}

/* ═══════ NAVBAR ═══════ */
.nav-transparent {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-solid {
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-blur {
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Nav link animated underline */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b2b, #fb923c);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b2b, #fb923c, #ff6b2b);
    background-size: 200% auto;
    animation: shimmerText 3s linear infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(255, 107, 43, 0.5);
}

/* Reading Progress Bar for articles */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a365d, #3b82f6);
    z-index: 9999;
    transition: width 0.05s linear;
}

/* ═══════ SECTION DIVIDERS ═══════ */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #ff6b2b, #fb923c);
    border-radius: 2px;
    position: relative;
}
.section-divider::after {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    width: 8px;
    height: 4px;
    background: rgba(255, 107, 43, 0.3);
    border-radius: 2px;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.section-dark {
    background: linear-gradient(180deg, #030712, #0c1b33);
    position: relative;
}
.section-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,43,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ═══════ BUTTONS ═══════ */
.btn-primary {
    background: linear-gradient(135deg, #1a365d, #0f2441);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, #ff6b2b, #ea5a1b);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 43, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Glow Button */
.btn-glow {
    background: linear-gradient(135deg, #ff6b2b, #ea5a1b);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 15px rgba(255, 107, 43, 0.4),
        0 0 30px rgba(255, 107, 43, 0.2),
        0 10px 30px rgba(255, 107, 43, 0.3);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: #1a365d;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}
.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}
.btn-ghost:hover::before {
    border-color: #ff6b2b;
}
.btn-ghost:hover {
    color: #ff6b2b;
    transform: translateY(-2px);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.7s ease;
}
.btn-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* ═══════ TYPOGRAPHY ═══════ */
.text-display {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-overline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Animated underline link */
.link-underline {
    position: relative;
    display: inline-block;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b2b, #fb923c);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-underline:hover::after {
    width: 100%;
}

/* ═══════ LIGHTBOX ═══════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════ SCROLLBAR ═══════ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

/* ═══════ FORM ELEMENTS ═══════ */
.input-float {
    position: relative;
}
.input-float input,
.input-float textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}
.input-float input:focus,
.input-float textarea:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 4px rgba(26,54,93,0.1);
    outline: none;
}
.input-float label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
}
.input-float textarea ~ label {
    top: 1rem;
    transform: translateY(0);
}
.input-float input:focus ~ label,
.input-float input:not(:placeholder-shown) ~ label,
.input-float textarea:focus ~ label,
.input-float textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #1a365d;
    font-weight: 600;
}

/* Premium input with glow on focus */
.input-premium {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #fafbfd;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.input-premium:focus {
    border-color: #ff6b2b;
    background: white;
    outline: none;
    box-shadow:
        0 0 0 4px rgba(255, 107, 43, 0.08),
        0 4px 20px rgba(255, 107, 43, 0.05);
}

/* ═══════ PAGINATION ═══════ */
.pagination-wrapper nav span,
.pagination-wrapper nav a {
    border-radius: 0.5rem !important;
}

/* ═══════ DECORATIVE ═══════ */
.dot-pattern {
    background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.line-pattern {
    background-image: repeating-linear-gradient(
        90deg,
        rgba(203,213,225,0.3) 0px,
        rgba(203,213,225,0.3) 1px,
        transparent 1px,
        transparent 80px
    );
}

/* Cross-hatch pattern */
.cross-pattern {
    background-image:
        linear-gradient(45deg, rgba(203,213,225,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(203,213,225,0.1) 25%, transparent 25%);
    background-size: 40px 40px;
}

/* Grid pattern */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ═══════ BACK TO TOP ═══════ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1a365d, #0f2441);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.4);
}

/* ═══════ FLOATING WHATSAPP BUTTON ═══════ */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.floating-wa-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: waFloat 3s ease-in-out infinite;
}
.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.floating-wa-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: waPulse 2s ease-in-out infinite;
}
@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes waPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0; }
}

.floating-wa-label {
    background: white;
    color: #128c7e;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    white-space: nowrap;
    animation: fadeIn 0.5s ease forwards;
}

/* ═══════ MEGA MENU ═══════ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.mega-menu.is-open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ═══════ PULSE BADGE ═══════ */
.badge-pulse {
    position: relative;
}
.badge-pulse::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: currentColor;
    opacity: 0.3;
    animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* ═══════ RIBBON BADGE ═══════ */
.ribbon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 90px;
    height: 90px;
    overflow: hidden;
    z-index: 10;
}
.ribbon span {
    position: absolute;
    display: block;
    width: 150px;
    padding: 6px 0;
    background: linear-gradient(135deg, #ff6b2b, #ea5a1b);
    box-shadow: 0 3px 10px rgba(255, 107, 43, 0.3);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    right: -32px;
    top: 22px;
    transform: rotate(45deg);
}

/* ═══════ SERVICES SHOWCASE CARD ═══════ */
.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--service-color-1, #ff6b2b), var(--service-color-2, #fb923c));
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 30px 60px rgba(26, 54, 93, 0.12),
        0 10px 30px rgba(26, 54, 93, 0.08);
}
.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ═══════ TESTIMONIAL STYLES ═══════ */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.06);
    transition: all 0.4s ease;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(255, 107, 43, 0.1);
    line-height: 1;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.1);
}

/* ═══════ MARQUEE / PARTNER LOGOS ═══════ */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fafbfd, transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fafbfd, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}
.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    padding: 0.75rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.65;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.12);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════ TIMELINE ═══════ */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ff6b2b, #1a365d, rgba(26,54,93,0.1));
}
.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid #ff6b2b;
    z-index: 1;
    transition: all 0.3s ease;
}
.timeline-item:hover::before {
    background: #ff6b2b;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 107, 43, 0.2);
}

/* ═══════ TABS ═══════ */
.tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.tab-btn:hover {
    color: #1a365d;
}
.tab-btn.active {
    color: #ff6b2b;
    border-bottom-color: #ff6b2b;
}

/* ═══════ PROGRESS BAR ═══════ */
.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b2b, #fb923c);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmerBar 2s linear infinite;
}
@keyframes shimmerBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ═══════ MOBILE DRAWER ═══════ */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(180deg, #030712, #0c1b33);
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ═══════ COUNTER ANIMATION ═══════ */
.counter-number {
    display: inline-block;
    transition: transform 0.3s ease;
}
.counter-number.counting {
    animation: countPulse 0.2s ease;
}
@keyframes countPulse {
    50% { transform: scale(1.05); }
}

/* ═══════ TAG CHIPS ═══════ */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.tag-chip-primary {
    background: rgba(26, 54, 93, 0.08);
    color: #1a365d;
}
.tag-chip-primary:hover, .tag-chip-primary.active {
    background: #1a365d;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}
.tag-chip-accent {
    background: rgba(255, 107, 43, 0.08);
    color: #ff6b2b;
}
.tag-chip-accent:hover, .tag-chip-accent.active {
    background: #ff6b2b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.2);
}

/* ═══════ SKELETON LOADING ═══════ */
.skeleton {
    background: linear-gradient(
        90deg,
        #f1f5f9 25%,
        #e2e8f0 50%,
        #f1f5f9 75%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}
@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════ TOOLTIP ═══════ */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 0.375rem 0.75rem;
    background: #030712;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 50;
}
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ═══════ MARQUEE ANIMATION ═══════ */
.marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-inner {
    display: flex;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════ TYPEWRITER CURSOR ═══════ */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #ff6b2b;
    margin-left: 2px;
    animation: cursorBlink 0.8s ease-in-out infinite;
    vertical-align: text-bottom;
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ═══════ INLINE ANIMATION KEYFRAMES ═══════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes textReveal {
    from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-up { animation: fadeUp 0.8s ease forwards; }
