/*
Theme Name: Revix Agency
Theme URI: https://revixagency.com
Author: Revix Agency
Author URI: https://revixagency.com
Description: A premium digital agency theme for Revix — Web Development, E-Commerce & Marketing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revix
*/

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #2D2D2D;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2D2D2D;
  border-radius: 4px;
}

/* ===== NAVBAR ===== */
.navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid rgba(45, 45, 45, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .top-bar {
  max-height: 0;
  overflow: hidden;
  border: none;
  opacity: 0;
  padding: 0;
}

.navbar.scrolled .nav-link {
  color: #2D2D2D !important;
}

.navbar.scrolled .nav-link:hover {
  color: #E23744 !important;
}

.navbar.scrolled .logo-text {
  color: #2D2D2D !important;
}

.navbar.scrolled .top-util-link {
  color: #2D2D2D !important;
}

.top-bar {
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  max-height: 50px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.top-util-link {
  color: #555;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.top-util-link:hover {
  color: #E23744;
}

.segment-divider {
  width: 1px;
  height: 16px;
  background: #ddd;
}

.nav-link-main {
  position: relative;
}

.nav-link-main::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #E23744;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link-main:hover::after {
  transform: scaleX(1);
}

/* ===== HERO ===== */
.hero-section {
  background:
    radial-gradient(circle at 80% -10%, rgba(226, 55, 68, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 0% 110%, rgba(45, 45, 45, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #FAFAFA 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ===== GLOBAL SECTION GRADIENTS ===== */
#about {
  background: radial-gradient(circle at 0% 100%, rgba(45, 45, 45, 0.02) 0%, transparent 40%),
    #ffffff;
}

#services {
  background: radial-gradient(circle at 100% 50%, rgba(226, 55, 68, 0.03) 0%, transparent 60%),
    #F4F4F2;
}

#testimonials {
  background: radial-gradient(circle at 0% 0%, rgba(226, 55, 68, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(45, 45, 45, 0.03) 0%, transparent 50%),
    #F9FAFB;
}

#faq {
  background: radial-gradient(circle at 50% -20%, rgba(226, 55, 68, 0.03) 0%, transparent 50%),
    #FBFBFC;
}

/* ===== TRUSTED STRIP / MARQUEE ===== */
.trusted-strip {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.trusted-logo {
  opacity: 0.35;
  transition: opacity 0.3s;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #2D2D2D;
}

.trusted-logo:hover {
  opacity: 0.7;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  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);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ===== ABOUT IMAGES ===== */
.about-images {
  position: relative;
}

.about-img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.about-img:hover {
  transform: scale(1.03);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  transition: all 0.5s ease;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  transform: translateY(-5px);
}

/* ===== TESTIMONIALS ===== */
.testimonial-track {
  display: flex;
  gap: 2.5rem;
  will-change: transform;
}

.testimonial-card-v2 {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .testimonial-card-v2 {
    flex: 0 0 calc(33.333% - 1.667rem);
  }
}

.testimonial-nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(13, 13, 13, 0.08);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0D0D0D;
}

.testimonial-nav-btn:hover:not(:disabled) {
  background: #E23744;
  border-color: #E23744;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(226, 55, 68, 0.2);
}

.testimonial-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: #0D0D0D;
  position: relative;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(226, 55, 68, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.cta-heading {
  line-height: 1;
  letter-spacing: -0.03em;
}

.btn-premium-primary {
  background: #E23744;
  color: white;
  padding: 1.15rem 3rem;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(226, 55, 68, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(226, 55, 68, 0.25);
  background: #c82e3a;
}

.btn-premium-ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 1.15rem 3rem;
  border-radius: 100px;
  font-weight: 700;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: white;
}

.faq-item.active {
  background: #F9FAFB;
  border-color: #E5E7EB;
}

.faq-item.active .faq-question {
  color: #E23744;
}

.faq-question {
  cursor: pointer;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #2D2D2D;
  transition: all 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 2rem 1.5rem;
  color: rgba(45, 45, 45, 0.65);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #E23744;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

/* FAQ Bottom Banner */
.faq-cta-banner {
  background: #2D2D2D;
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(226, 55, 68, 0.1) 0%, transparent 70%);
  transform: rotate(45deg);
}

.btn-contact-white {
  background: white;
  color: #2D2D2D;
  padding: 0.85rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-contact-white:hover {
  background: #E23744;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(226, 55, 68, 0.2);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu.open body {
  overflow: hidden;
}

/* ===== FOOTER ===== */
.footer-link {
  color: #999;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-link:hover {
  color: #E23744;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.3s;
}

.social-icon:hover {
  border-color: #E23744;
  color: #E23744;
}

/* ===== MEGA MENU (Desktop) ===== */
.mega-nav-item {
  position: static;
}

.mega-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  top: 100px;
  background: white;
  box-shadow: 0 12px 48px rgba(0,0,0,0.10);
  border-top: 1px solid rgba(45,45,45,0.06);
  border-bottom: 1px solid rgba(45,45,45,0.06);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1), transform 0.22s cubic-bezier(0.16,1,0.3,1);
}

.mega-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
}

.mega-col {
  padding-right: 2.5rem;
  border-right: 1px solid rgba(45,45,45,0.06);
  margin-right: 2.5rem;
}

.mega-col:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.mega-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(45,45,45,0.35);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.mega-webdev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.5rem;
}

.mega-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s;
  margin-bottom: 2px;
}

.mega-link:hover {
  background: #F4F4F2;
}

.mega-link-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2D2D2D;
  line-height: 1.2;
  transition: color 0.18s;
}

.mega-link:hover .mega-link-title {
  color: #E23744;
}

.mega-link-desc {
  font-size: 0.75rem;
  color: rgba(45,45,45,0.42);
  line-height: 1.3;
  margin-top: 2px;
}

.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 48;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.mega-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mega-nav-item.open .mega-chevron {
  transform: rotate(180deg);
}

/* ===== MOBILE SERVICES SUB-PANEL ===== */
.mobile-about-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 1000;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.mobile-about-panel.visible {
  display: flex;
}

.mobile-about-panel.open {
  transform: translateX(0);
}

.mobile-about-link {
  display: block;
  text-decoration: none;
}

/* ===== BENEFIT CARDS ===== */
.benefit-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ===== DELAY HELPERS ===== */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

/* ===== COUNTER ===== */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ===== HERO IMAGE SLIDER ===== */
.hero-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: none;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== MARQUEE ===== */
.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  will-change: transform;
}

.marquee-track .trusted-logo {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== ABOUT PAGE SPECIFIC STYLES ===== */

/* About Hero */
.about-hero {
  background:
    radial-gradient(circle at 90% -10%, rgba(226, 55, 68, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 10% 110%, rgba(45, 45, 45, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #FAFAFA 100%);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

/* Stat cards */
.stat-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(226,55,68,0.3) 20%, rgba(226,55,68,0.3) 80%, transparent);
  transform: translateX(-50%);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: #E23744;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(226,55,68,0.2);
  flex-shrink: 0;
}

/* Team cards */
.team-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.team-card:hover .team-img {
  transform: scale(1.06);
}
.team-img {
  transition: transform 0.6s cubic-bezier(0.165,0.84,0.44,1);
}

.team-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(45,45,45,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2D2D2D;
  font-size: 0.75rem;
  transition: all 0.3s;
  text-decoration: none;
}
.team-social a:hover {
  background: #E23744;
  border-color: #E23744;
  color: white;
}

/* Value cards */
.value-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 2rem;
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  border-color: rgba(226,55,68,0.15);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(226,55,68,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E23744;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.value-card:hover .value-icon {
  background: #E23744;
  color: white;
}

/* About section backgrounds */
#about-mission {
  background: radial-gradient(circle at 100% 50%, rgba(226,55,68,0.03) 0%, transparent 60%), #F4F4F2;
}
#about-values {
  background: radial-gradient(circle at 0% 0%, rgba(226,55,68,0.04) 0%, transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(45,45,45,0.03) 0%, transparent 50%),
              #F9FAFB;
}

/* Brand strip */
.brand-strip {
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Process steps */
.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.process-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(226,55,68,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #E23744;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(226,55,68,0.08);
  transition: all 0.3s;
}
.process-step:hover .process-number {
  background: #E23744;
  color: white;
  border-color: #E23744;
}

/* Awards ribbon */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(226,55,68,0.06);
  border: 1px solid rgba(226,55,68,0.15);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #E23744;
}

/* ===== SERVICE PAGE SPECIFIC ===== */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.service-tab-link { flex-shrink: 0; }
