/* ═══════════════════════════════════════════════
   TERA HYPE — Integrated Technological Solutions
   Brand Colors: #35b6f2, #158dde, #444444, #c9c9c9
   Font: IBM Plex Sans Arabic + Syne (display)
   ═══════════════════════════════════════════════ */

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

:root {
  --blue-primary: #35b6f2;
  --blue-deep: #158dde;
  --dark: #444444;
  --gray-light: #c9c9c9;
  --white: #ffffff;
  --bg-dark: #0a1628;
  --font-display: 'Syne', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── DIAGONAL LINES BACKGROUND ─── */
.diagonal-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 8px,
    var(--blue-primary) 8px,
    var(--blue-primary) 9px
  );
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 3rem;
  border-bottom: 1px solid rgba(53, 182, 242, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo svg { height: 36px; width: auto; }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo-text span { color: var(--blue-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.6rem !important;
  border: 1px solid var(--blue-primary);
  border-radius: 100px;
  color: var(--blue-primary) !important;
  font-weight: 500 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--blue-primary);
  color: var(--white) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu open states */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(53, 182, 242, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-gradient-2 {
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(21, 141, 222, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(53, 182, 242, 0.08);
  border: 1px solid rgba(53, 182, 242, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--blue-primary);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--blue-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.15s ease both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-deep) 50%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  animation: fadeInUp 0.8s 0.45s ease both;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 24px rgba(53, 182, 242, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(53, 182, 242, 0.35);
}

.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

/* ─── HERO VISUAL (ORB) ─── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s 0.5s ease both;
}

.hero-orb {
  position: relative;
  width: 420px;
  height: 420px;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(53, 182, 242, 0.15);
  animation: orbit-spin 20s linear infinite;
}

.orb-ring:nth-child(1) { inset: 0; }
.orb-ring:nth-child(2) { inset: 40px; animation-duration: 15s; animation-direction: reverse; border-color: rgba(53, 182, 242, 0.1); }
.orb-ring:nth-child(3) { inset: 80px; animation-duration: 25s; border-color: rgba(53, 182, 242, 0.08); }

.orb-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--blue-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue-primary);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orb-center {
  position: absolute;
  inset: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(53, 182, 242, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.orb-center svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 30px rgba(53, 182, 242, 0.3));
}

/* ─── STATS BAR ─── */
.stats-bar {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: -2rem auto 0;
  padding: 0 3rem;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat-item {
  padding: 2.2rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(53, 182, 242, 0.04); }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue-primary), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

/* ─── SHARED SECTION STYLES ─── */
section { position: relative; z-index: 2; }

.section-pad {
  max-width: 1320px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 580px;
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  background: rgba(53, 182, 242, 0.04);
  border-color: rgba(53, 182, 242, 0.15);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(53, 182, 242, 0.08);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  color: var(--blue-primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--blue-primary);
  font-weight: 500;
  transition: gap 0.3s;
}

.service-card:hover .learn-more { gap: 0.7rem; }

/* ─── ABOUT / WHY US ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about-visual {
  position: relative;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(53, 182, 242, 0.06), rgba(21, 141, 222, 0.02));
  border: 1px solid rgba(53, 182, 242, 0.1);
}

.about-visual-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 14px,
    rgba(53, 182, 242, 0.05) 14px,
    rgba(53, 182, 242, 0.05) 15px
  );
}

.about-visual-logo {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-visual-logo svg { width: 64px; height: 64px; }

.about-visual-logo span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.about-visual-logo small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.about-float-card {
  position: absolute;
  top: 2rem;
  right: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 182, 242, 0.15);
  border-radius: 14px;
}

.about-float-card .value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.about-float-card .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.15rem;
}

.about-features { margin-top: 2rem; }

.about-feature {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.about-feature:last-child { border-bottom: none; }

.about-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(53, 182, 242, 0.08);
  border-radius: 10px;
  color: var(--blue-primary);
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about-feature p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ─── PROCESS ─── */
.process-section {
  background: rgba(53, 182, 242, 0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.process-card {
  padding: 2.5rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10, 22, 40, 0.5);
  position: relative;
  transition: all 0.4s;
}

.process-card:hover {
  border-color: rgba(53, 182, 242, 0.2);
  transform: translateY(-2px);
}

.process-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(53, 182, 242, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.process-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.4);
}

/* ─── TESTIMONIAL ─── */
.testimonial-container {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  position: relative;
  padding: 0 2rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: normal;
  color: var(--blue-primary);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-author {
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

/* ─── CTA SECTION ─── */
.cta-section { text-align: center; }

.cta-box {
  position: relative;
  padding: 5rem 3rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(53, 182, 242, 0.08), rgba(21, 141, 222, 0.04));
  border: 1px solid rgba(53, 182, 242, 0.12);
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 18px,
    rgba(53, 182, 242, 0.03) 18px,
    rgba(53, 182, 242, 0.03) 19px
  );
  pointer-events: none;
}

.cta-box .section-title,
.cta-box .section-desc,
.cta-box .btn-primary { position: relative; }

.cta-box .section-desc { margin: 0 auto 2rem; }

.cta-box .btn-primary {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.cta-highlight { color: var(--blue-primary); }

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 3rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand svg { width: 42px; height: 42px; margin-bottom: 0.8rem; }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 280px;
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.7);
}

.footer-col li { margin-bottom: 0.7rem; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--blue-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.footer-socials a:hover {
  background: rgba(53, 182, 242, 0.1);
  border-color: rgba(53, 182, 242, 0.3);
  color: var(--blue-primary);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 360px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.7rem 1.5rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 105;
  }

  .nav-links.show { display: flex; }

  .nav-links a {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
  }

  .mobile-toggle { display: flex; }
  .section-pad { padding: 4rem 1.5rem; }
  .hero-content { padding: 7rem 1.5rem 3rem; }
  .stats-bar { padding: 0 1.5rem; margin-top: -1rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-box { padding: 3rem 1.5rem; }
  .hero-actions { flex-direction: column; }
}
