/* ===== GRB – Groupe Ryaad Business ===== */
/* Design inspiré Cuberto – Animations premium */

:root {
  --blue: #38bdf8;
  --blue-dark: #0ea5e9;
  --blue-deep: #0369a1;
  --yellow: #fbbf24;
  --yellow-light: #fde68a;
  --green: #34d399;
  --dark: #050a14;
  --dark-2: #0d1526;
  --dark-3: #111d35;
  --gray: #8899aa;
  --gray-light: #c8d8e8;
  --white: #ffffff;
  --font: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== CURSOR ===== */
#cursor {
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.3s;
}

#cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(56,189,248,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover #cursor-follower { opacity: 1; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
  width: 120px;
  margin: 0 auto 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

.preloader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  border-radius: 2px;
  animation: loadBar 1.8s ease forwards;
}

@keyframes loadBar {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(56,189,248,0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 64px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--blue) !important;
  color: var(--dark) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover { background: var(--yellow) !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  background: var(--dark-2);
  border-top: 1px solid rgba(56,189,248,0.1);
  padding: 20px 40px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul { display: flex; flex-direction: column; gap: 16px; }
.nav-mobile a { font-size: 1.1rem; font-weight: 500; color: var(--gray-light); }
.nav-mobile a:hover { color: var(--blue); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-dark), transparent);
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--yellow), transparent);
  bottom: -100px; left: -100px;
  animation-delay: 3s;
}

.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--green), transparent);
  top: 50%; left: 40%;
  animation-delay: 5s;
  opacity: 0.12;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .line { display: block; overflow: hidden; }

.accent-text {
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 0 rgba(56,189,248,0.4);
}

.btn-primary:hover {
  background: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(251,191,36,0.3);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37,211,102,0.15);
  color: #25d366;
  border: 1px solid rgba(37,211,102,0.3);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
}

.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: rgba(37,211,102,0.25); transform: translateY(-3px); }

/* ===== HERO SCROLL ===== */
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ===== MARQUEE ===== */
.marquee-section {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(56,189,248,0.03);
}

.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.marquee-track span:nth-child(even) { color: var(--blue); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
section { padding: 120px 0; }

.section-header { margin-bottom: 72px; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ===== SERVICES ===== */
#services { background: var(--dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
  cursor: pointer;
}

.service-card:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-6px);
}

.service-hover-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56,189,248,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .service-hover-bg { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  color: var(--blue);
  margin-bottom: 24px;
}

.service-icon svg { width: 100%; height: 100%; }

.service-num {
  position: absolute;
  top: 32px; right: 40px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.3s;
}

.service-link svg { width: 18px; height: 18px; transition: transform 0.3s; }
.service-link:hover { gap: 12px; }
.service-link:hover svg { transform: translateX(4px); }

/* ===== WHY US ===== */
#why-us { background: var(--dark-2); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-desc {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 24px 0 40px;
}

.why-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.why-item:hover {
  border-color: rgba(56,189,248,0.2);
  transform: translateX(6px);
}

.why-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56,189,248,0.08);
  border-radius: 12px;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== STATS ===== */
#stats {
  background: var(--dark);
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item { position: relative; }

.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-item:last-child::after { display: none; }

.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
#cta-section { background: var(--dark-2); }

.cta-box {
  position: relative;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(251,191,36,0.05));
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 32px;
  padding: 80px;
  text-align: center;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbFloat 6s ease-in-out infinite;
}

.cta-box .section-tag { margin-bottom: 20px; }

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo { height: 72px; width: auto; margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--gray);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.footer-socials a svg { width: 18px; height: 18px; }
.footer-socials a:hover { background: var(--blue); color: var(--dark); border-color: var(--blue); }

.footer-links h5, .footer-contact h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--blue); }

.footer-contact p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-contact a { color: var(--blue); transition: color 0.3s; }
.footer-contact a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-card {
  opacity: 0;
  transform: translateY(30px);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== PAGE HEADER (inner pages) ===== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.page-hero-orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.1), transparent);
  top: -100px; right: -100px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  #hero { padding: 100px 20px 60px; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .cta-box { padding: 48px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #cursor, #cursor-follower { display: none; }
  body { cursor: auto; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::after { display: none; }
}
