:root {
    --rty-navy: #0c1464;
    --rty-navy-dark: #070b3c;
    --rty-navy-mid: #142288;
    --rty-blue: #0a58ed;
    --rty-blue-hover: #0044cc;
    --rty-red: #e61923;
    --rty-red-bright: #ff3845;
    --rty-purple: #240468;
    --rty-text: #1e293b;
    --rty-muted: #526075;
    --rty-border: #e5eaf3;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Nunito', system-ui, -apple-system, sans-serif;
    color: var(--rty-text);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.24;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--rty-red), #3b82f6, #22d3ee);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Top Utility Bar */
.rty-topbar {
    background: linear-gradient(90deg, #070b3c 0%, #0c1464 50%, #091054 100%);
    color: #ffffff;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rty-topbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rty-topbar a:hover {
    color: #ffffff;
}

/* Sticky Navbar & Mega Menu */
.rty-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(12, 20, 100, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.rty-header.scrolled {
    box-shadow: 0 12px 32px rgba(12, 20, 100, 0.14);
}

.rty-nav-link {
    position: relative;
    color: #111827;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.65rem 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.rty-nav-link::after {
    content: '';
    position: absolute;
    left: 0.78rem;
    right: 0.78rem;
    bottom: 0.22rem;
    height: 2px;
    background: linear-gradient(90deg, var(--rty-blue), var(--rty-red));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.rty-nav-link:hover,
.rty-nav-link.active {
    color: var(--rty-blue);
}

.rty-nav-link:hover::after,
.rty-nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown & Mega Menu */
.rty-has-dropdown {
    position: relative;
}

.rty-has-megamenu {
    position: static;
}

.rty-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #091054;
    color: #ffffff;
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 24px 48px rgba(8, 13, 71, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    border-top: 3px solid var(--rty-red);
}

.rty-megamenu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1280px, calc(100vw - 2rem));
    background: #091054;
    color: #ffffff;
    border-radius: 0 0 18px 18px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 30px 60px rgba(8, 13, 71, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 14px);
    transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    border-top: 3px solid var(--rty-red);
}

.rty-has-dropdown:hover > .rty-dropdown-panel,
.rty-has-dropdown:focus-within > .rty-dropdown-panel,
.rty-has-dropdown.open > .rty-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.rty-has-megamenu:hover > .rty-megamenu-panel,
.rty-has-megamenu:focus-within > .rty-megamenu-panel,
.rty-has-megamenu.open > .rty-megamenu-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.rty-mega-col-title {
    background: linear-gradient(90deg, var(--rty-red), #c8141d);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.52rem 0.75rem;
    border-radius: 7px;
    margin-bottom: 0.65rem;
    letter-spacing: 0.02em;
}

.rty-mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.83rem;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.rty-mega-item:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    transform: translateX(4px);
}

.rty-popular-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.14rem 0.52rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
    background: rgba(230, 25, 35, 0.35);
    flex-shrink: 0;
}

/* Primary Pill Button with Shimmer */
.rty-btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0a58ed, #2563eb);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    padding: 0.78rem 1.8rem;
    border-radius: 9999px;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(10, 88, 237, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

@media (max-width: 639px) {
    .rty-btn-primary.hidden,
    .rty-header-cta {
        display: none;
    }
}

.rty-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 45%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(25deg);
    transition: left 0.55s ease;
}

.rty-btn-primary:hover::after {
    left: 130%;
}

.rty-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 34px rgba(10, 88, 237, 0.45);
    background: linear-gradient(135deg, #0044cc, #0a58ed);
}

/* Hero Section + Animated Gradient Blobs */
.rty-hero {
    position: relative;
    background: linear-gradient(135deg, #080d4d 0%, #14248a 52%, #0c1464 100%);
    color: #ffffff;
    overflow: hidden;
}

.rty-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 70%);
    animation: blobPulse 9s ease-in-out infinite;
    pointer-events: none;
}

.rty-hero::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 25, 35, 0.2), transparent 70%);
    animation: blobPulse 11s ease-in-out 2s infinite;
    pointer-events: none;
}

#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.48;
}

/* Animated Gradient Headline Accent */
.rty-text-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #93c5fd 45%, #f87171 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

/* Tech Stack Marquee */
.rty-marquee-wrap {
    overflow: hidden;
    position: relative;
    background: #080e4d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rty-marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

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

/* Floating & Keyframe Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatSubtle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.6deg); }
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.12) translate(16px, -12px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.animate-float-delayed {
    animation: floatSubtle 4.8s ease-in-out 0.8s infinite;
}

.animate-float-alt {
    animation: floatSlow 6.2s ease-in-out 1.4s infinite;
}

.animate-float-reverse {
    animation: floatSubtle 5.2s ease-in-out 2.1s infinite;
}

.animate-pulse-ring {
    animation: pulseRing 2.4s infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left {
    transform: translateX(-28px);
}

.reveal.reveal-right {
    transform: translateX(28px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Modern Service & Industry Cards with Hover Glow Bar */
.rty-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(12, 20, 100, 0.08);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.rty-card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rty-blue), var(--rty-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.rty-card-glow:hover::before {
    transform: scaleX(1);
}

.rty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 56px rgba(12, 20, 100, 0.16);
}

.rty-card-gradient {
    background: linear-gradient(160deg, #e11d48 0%, #7c3aed 48%, #240468 100%);
    color: #ffffff;
}

.rty-card:hover .rty-card-icon {
    transform: scale(1.12) rotate(-4deg);
}

.rty-card-icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Work Process Tabs & Animated Progress */
.rty-process-tab {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rty-process-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.rty-process-tab.active {
    background: linear-gradient(135deg, var(--rty-red), #b91c1c);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(230, 25, 35, 0.42);
    transform: translateY(-4px);
}

.rty-process-panel {
    animation: fadeSlideUp 0.35s ease;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Category Headers */
.rty-footer-heading {
    background: linear-gradient(90deg, var(--rty-red), #c8141d);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border-radius: 7px;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .reveal.reveal-left,
    .reveal.reveal-right {
        transform: translateY(20px);
    }
}

@media (max-width: 639px) {
    .rty-btn-primary {
        padding: 0.72rem 1.25rem;
        font-size: 0.82rem;
        line-height: 1.3;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (hover: none) {
    .rty-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-float, .animate-float-delayed, .animate-pulse-ring, .rty-marquee-track, .rty-text-gradient {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Rich Content Typography for Services, Solutions & Blogs */
.rty-prose h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rty-navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.rty-prose h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rty-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

.rty-prose p {
    color: #334155;
    line-height: 1.78;
    margin-bottom: 1rem;
}

.rty-prose ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 0.65rem;
}

.rty-prose ul li {
    position: relative;
    padding: 0.65rem 0.9rem 0.65rem 2.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #1e293b;
    font-size: 0.94rem;
}

.rty-prose ul li::before {
    content: '✓';
    position: absolute;
    left: 0.85rem;
    top: 0.65rem;
    color: #0a58ed;
    font-weight: 800;
}

.rty-prose a {
    color: var(--rty-blue);
    font-weight: 600;
    text-decoration: underline;
}
