/* ============================================
   Nile View Mart FZC LLC - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0a2540;
  --primary-light: #0f3460;
  --accent: #00d4aa;
  --accent-hover: #00b894;
  --accent-alt: #6c5ce7;
  --text-dark: #1a1a2e;
  --text-body: #4a4a6a;
  --text-light: #7a7a9a;
  --bg-white: #ffffff;
  --bg-light: #f7f8fc;
  --bg-card: #ffffff;
  --border: #e8eaf0;
  --shadow-sm: 0 2px 8px rgba(10,37,64,0.06);
  --shadow-md: 0 8px 30px rgba(10,37,64,0.08);
  --shadow-lg: 0 20px 60px rgba(10,37,64,0.12);
  --shadow-accent: 0 8px 30px rgba(0,212,170,0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Tajawal', 'Cairo', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

html[lang="ar"] body,
body[dir="rtl"] {
  font-family: var(--font-arabic);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang="ar"] .section-label {
  letter-spacing: 0;
}

html[lang="ar"] .section-label::before {
  margin-inline-end: 10px;
}

/* RTL layout corrections */
[dir="rtl"] .footer-col a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .service-overview-link { flex-direction: row; }
[dir="rtl"] .service-overview-link span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .btn svg { margin-inline-start: 0; margin-inline-end: 2px; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-desc { margin-right: 0; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .category-header { flex-direction: row-reverse; }
[dir="rtl"] .category-number { margin-inline-end: 0; }
[dir="rtl"] .section-label { text-align: right; }
[dir="rtl"] .hero-badge { text-align: right; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(0,212,170,0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(0,212,170,0.25);
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 650px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,212,170,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 1001;
}

.logo-img-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  line-height: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header.scrolled .logo-img-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.header.menu-open .logo-img-wrap {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
}

.header.scrolled .logo { color: var(--primary); }
.header.menu-open .logo { color: #fff !important; }

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  margin-right: 4px;
}

.header.scrolled .lang-toggle {
  color: var(--primary);
  background: var(--bg-light);
  border-color: var(--border);
}

.header.scrolled .lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

[dir="rtl"] .lang-toggle { margin-right: 0; margin-left: 4px; }
.header.menu-open .lang-toggle { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }

/* Footer logo */
.footer .logo-img-wrap {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.header.scrolled .nav a { color: var(--text-body); }
.nav a:hover,
.nav a.active { color: var(--accent); }

.nav-cta {
  margin-left: 12px;
}

.header.transparent .nav-cta .btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.header.transparent .nav-cta .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.header.scrolled .nav-cta .btn {
  background: var(--accent);
  color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
  padding: 4px 0;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: all var(--transition);
  transform-origin: center;
}

.header.scrolled .menu-toggle span { background: var(--primary); }
.menu-toggle.active span { background: #fff !important; }
.header.menu-open .logo { color: #fff !important; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0,212,170,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(108,92,231,0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,37,64,1) 0%, rgba(15,52,96,1) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0,212,170,0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-duration: 22s; animation-delay: -3s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 50%; top: 30%; animation-duration: 16s; animation-delay: -5s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-duration: 20s; animation-delay: -8s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 85%; top: 15%; animation-duration: 24s; animation-delay: -2s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 40%; top: 80%; animation-duration: 19s; animation-delay: -7s; }
.particle:nth-child(7) { left: 60%; top: 50%; animation-duration: 21s; animation-delay: -4s; width: 6px; height: 6px; background: rgba(108,92,231,0.2); }
.particle:nth-child(8) { left: 15%; top: 45%; animation-duration: 17s; animation-delay: -6s; width: 3px; height: 3px; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(30px, -40px) scale(1.2); opacity: 0.7; }
  50% { transform: translate(-20px, -80px) scale(0.8); opacity: 0.5; }
  75% { transform: translate(40px, -40px) scale(1.1); opacity: 0.6; }
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
  opacity: 0.6;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(0,212,170,0.2);
  top: 10%;
  right: 10%;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(108,92,231,0.15);
  bottom: 10%;
  left: 10%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  background: rgba(0,212,170,0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 20px); }
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
}

.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto; }

/* --- Why Choose Us --- */
.why-choose {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.why-card {
  background: var(--bg-card);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(0,212,170,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.why-card:hover .why-card-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.why-card h3 { margin-bottom: 12px; }

.why-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Services Overview --- */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.service-overview-card {
  background: var(--bg-card);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-overview-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 22px;
  transition: all var(--transition);
}

.service-overview-card:hover .service-overview-icon {
  transform: scale(1.08) rotate(-3deg);
}

.service-overview-card h3 { margin-bottom: 12px; }
.service-overview-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.service-overview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  transition: all var(--transition);
}

.service-overview-link:hover { gap: 10px; }

/* --- Transform Section --- */
.transform-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.transform-section .section-title { color: #fff; }
.transform-section .section-desc { color: rgba(255,255,255,0.7); }
.transform-section .section-label { color: var(--accent); }
.transform-section .section-label::before { background: var(--accent); }

.transform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.transform-item {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.transform-item:hover {
  background: rgba(0,212,170,0.08);
  border-color: rgba(0,212,170,0.2);
  transform: translateY(-4px);
}

.transform-item-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.transform-item h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.transform-item p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

/* --- Tech Section --- */
.tech-section { background: var(--bg-light); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.tech-card {
  background: var(--bg-card);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tech-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,212,170,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.tech-card h3 { margin-bottom: 10px; }
.tech-card p {
  color: var(--text-body);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.page-hero {
  background: var(--primary);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,212,170,0.08) 0%, transparent 70%);
}

.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero .section-desc { color: rgba(255,255,255,0.65); position: relative; z-index: 1; }

.services-categories {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-category {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.category-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.category-header h2 {
  font-size: 1.5rem;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(0,212,170,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.service-card:hover .service-card-icon {
  background: var(--accent);
  color: #fff;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.service-card .service-alt {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.service-card p {
  color: var(--text-body);
  font-size: 0.93rem;
  line-height: 1.7;
  flex: 1;
}

.service-card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.platform-tag {
  padding: 4px 12px;
  background: rgba(0,212,170,0.08);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: 18px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}

.about-intro-text h2 { margin-bottom: 20px; }
.about-intro-text p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-visual {
  position: relative;
}

.about-visual-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: rgba(0,212,170,0.15);
  border-radius: 50%;
  filter: blur(40px);
}

.about-visual-card h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about-visual-card p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.value-card {
  background: var(--bg-card);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(0,212,170,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.value-card h3 { margin-bottom: 10px; }
.value-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Approach Section */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.approach-step {
  text-align: center;
  padding: 32px 16px;
  position: relative;
}

.approach-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.approach-step:hover .approach-step-number {
  transform: scale(1.15);
  box-shadow: var(--shadow-accent);
}

.approach-step h4 { font-size: 1rem; margin-bottom: 6px; }
.approach-step p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(0,212,170,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

.contact-form-card {
  background: var(--bg-card);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   LEGAL PAGES (Terms & Privacy)
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--text-dark);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.legal-content ul li {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav.open { transform: translateX(0); }

  .nav a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.3rem;
    padding: 12px 24px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .nav-cta .btn {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
  }

  .menu-toggle { display: flex; }

  .hero { min-height: auto; padding: 140px 0 80px; }

  .section { padding: 70px 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .why-grid,
  .services-overview-grid,
  .tech-grid,
  .values-grid,
  .service-items { grid-template-columns: 1fr; }

  .transform-grid { grid-template-columns: repeat(2, 1fr); }

  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .contact-form-card,
  .contact-info-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .transform-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }

  h1 { font-size: 2rem; }
}
