/* ============================================
   HOOSHYAR PARSI NEGAR - Premium Landing CSS
   ============================================ */

/* ====== Fonts ====== */
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansXFaNum-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansXFaNum-Regular.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary: #d4af37;
  --primary-light: #f4d03f;
  --primary-dark: #b8860b;
  --secondary: #1e40af;
  --secondary-light: #3b82f6;
  --accent: #06b6d4;
  --dark: #0a0e1a;
  --darker: #050810;
  --card: #0f1424;
  --card-hover: #151a2e;
  --text: #e5e7eb;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(212, 175, 55, 0.1);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #b8860b 100%);
  --gradient-blue: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
  --gradient-mix: linear-gradient(135deg, #d4af37 0%, #1e40af 100%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'IRANSansX', 'Vazirmatn', 'Tahoma', sans-serif;
  background: var(--darker);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--primary);
  color: var(--darker);
}

/* ====== Page Loader ====== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--darker);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  animation: loaderPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.5);
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.loader-text {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  width: 0;
  animation: loaderFill 1.5s ease-out forwards;
  border-radius: 10px;
}

@keyframes loaderFill {
  to { width: 100%; }
}

/* ====== Custom Cursor ====== */
.cursor,
.cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform 0.2s, width 0.3s, height 0.3s;
  display: none;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--primary);
  transform: translate(-50%, -50%);
  transition: transform 0.3s, width 0.3s, height 0.3s, background 0.3s;
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2);
}

.cursor-follower.hover {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .cursor, .cursor-follower { display: block; }
}

/* ====== Background Effects ====== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.5s ease-out;
  filter: blur(60px);
}

#particlesCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ====== Container ====== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ====== Typography ====== */
.section-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.08);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
}

.section-subtitle {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ====== Navbar ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(5, 8, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.logo-glow {
  position: absolute;
  inset: -4px;
  background: var(--gradient-gold);
  border-radius: 14px;
  opacity: 0.4;
  filter: blur(8px);
  z-index: 0;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s;
}

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

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
  transform: translateX(50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 30px;
}

.nav-cta {
  background: var(--gradient-gold);
  color: var(--darker) !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.nav-cta::before { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

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

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

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

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--darker);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f4d03f, #d4af37);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-3px);
}

.magnetic {
  transition: transform 0.2s;
}

/* ====== Hero Section ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--primary);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.title-line {
  display: block;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 2;
}

.hero-description strong {
  color: var(--primary);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  font-weight: 500;
  flex-basis: 100%;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 55, 0.2);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card-wrapper {
  position: relative;
  perspective: 1500px;
}

.hero-card-bg {
  position: absolute;
  inset: -20px;
  background: var(--gradient-mix);
  border-radius: 32px;
  opacity: 0.2;
  filter: blur(40px);
  animation: cardBgPulse 4s ease-in-out infinite;
}

@keyframes cardBgPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.05); }
}

.hero-card {
  background: linear-gradient(135deg, rgba(15, 20, 36, 0.95), rgba(10, 14, 26, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  padding: 0;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.card-dots {
  display: flex;
  gap: 0.4rem;
}

.card-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
}

.card-dots span:nth-child(1) { background: #ff5f57; opacity: 0.6; }
.card-dots span:nth-child(2) { background: #ffbd2e; opacity: 0.6; }
.card-dots span:nth-child(3) { background: #28ca42; opacity: 0.6; }

.card-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  font-family: monospace;
}

.card-body {
  padding: 2rem;
  text-align: center;
}

.card-icon-main {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  animation: float 4s ease-in-out infinite;
}

.card-icon-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card-body > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.progress-bars {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-item {
  font-size: 0.85rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  color: var(--text-dim);
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  width: 0;
  border-radius: 100px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

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

/* Floating Cards */
.floating-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(15, 20, 36, 0.95), rgba(10, 14, 26, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  animation: floatCard 5s ease-in-out infinite;
  z-index: 2;
}

.floating-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.floating-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.floating-card-1 {
  top: 5%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 25%;
  left: -15%;
  animation-delay: 1.5s;
}

.floating-card-3 {
  bottom: 5%;
  right: -8%;
  animation-delay: 3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 100px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 100px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* ====== Marquee Section ====== */
.marquee-section {
  padding: 2rem 0;
  background: var(--darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--darker));
}

.marquee-section::after {
  left: 0;
  background: linear-gradient(-90deg, transparent, var(--darker));
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  padding: 0 1.5rem;
}

.marquee-content span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.marquee-content span:hover {
  color: var(--primary);
}

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

/* ====== Section Base ====== */
.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.about-section {
  background: var(--darker);
}

.services-section {
  background: linear-gradient(180deg, var(--darker), var(--dark));
}

.process-section {
  background: var(--dark);
}

.portfolio-section {
  background: var(--darker);
}

.testimonials-section {
  background: linear-gradient(180deg, var(--darker), var(--dark));
}

.contact-section {
  background: var(--darker);
}

/* ====== About Section ====== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.about-image-glow {
  position: absolute;
  inset: -30px;
  background: var(--gradient-mix);
  border-radius: 32px;
  opacity: 0.2;
  filter: blur(50px);
  animation: aboutGlow 5s ease-in-out infinite;
}

@keyframes aboutGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.35; }
}

.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  background: var(--card);
  aspect-ratio: 1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gradient-gold);
  color: var(--darker);
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
  z-index: 2;
}

.exp-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.about-content p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 2;
  font-size: 1rem;
}

.about-content strong {
  color: var(--primary);
  font-weight: 700;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s;
}

.about-feature:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-gold);
  color: var(--darker);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.about-feature h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.about-feature p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-dim);
}

/* ====== Services Section ====== */
.service-category {
  margin-bottom: 4rem;
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-header-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(30, 64, 175, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.category-header-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05));
  pointer-events: none;
}

.category-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.category-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.category-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #fff;
}

.category-info p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(15, 20, 36, 0.6), rgba(10, 14, 26, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(30, 64, 175, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #fff;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.service-features li {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  position: relative;
  padding-right: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 900;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-top: auto;
}

.service-link:hover {
  color: var(--primary-light);
  gap: 0.85rem;
}

.service-card-featured {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(30, 64, 175, 0.1));
  border-color: rgba(212, 175, 55, 0.3);
  position: relative;
}

.featured-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gradient-gold);
  color: var(--darker);
  padding: 0.4rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 0 0 20px 0;
  letter-spacing: 0.5px;
}

/* ====== Process Section ====== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s;
}

.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.process-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.4;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.process-step p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.process-line {
  position: absolute;
  top: 50%;
  left: -2rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.process-step:last-child .process-line {
  display: none;
}

/* ====== Portfolio Section ====== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.0), rgba(10, 14, 26, 0.4));
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-placeholder {
  transform: scale(1.1);
}

.gradient-1 { background: linear-gradient(135deg, #1e40af, #06b6d4); }
.gradient-2 { background: linear-gradient(135deg, #d4af37, #b8860b); }
.gradient-3 { background: linear-gradient(135deg, #06b6d4, #1e40af); }
.gradient-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-5 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.gradient-6 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(5, 8, 16, 0.98) 30%, rgba(5, 8, 16, 0.7) 70%, transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-visible .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-item--link:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
}

.portfolio-live-link {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  color: #fff;
  background: rgba(5, 8, 16, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.portfolio-item--link:hover .portfolio-live-link,
.portfolio-item--link:focus-visible .portfolio-live-link {
  color: var(--darker);
  background: var(--gradient-gold);
  border-color: transparent;
  transform: translateY(-2px);
}

.portfolio-image .portfolio-image-detail {
  position: absolute;
  inset-inline-start: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: 28%;
  height: 45%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(10, 14, 26, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.portfolio-image .portfolio-image-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.78) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.72;
}

.portfolio-image .portfolio-image-main--banner {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
}

.portfolio-image .portfolio-image-detail--logo {
  width: 40%;
  height: 25%;
  object-fit: contain;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
}

.portfolio-image .portfolio-image-detail--left {
  inset-inline-start: auto;
  inset-inline-end: 1rem;
}

.portfolio-item:hover .portfolio-image .portfolio-image-main--banner {
  transform: scale(1.03);
}

.portfolio-item:hover .portfolio-image .portfolio-image-backdrop {
  transform: scale(1.12);
}

.portfolio-item:hover .portfolio-image .portfolio-image-detail {
  transform: scale(1.04);
}

.portfolio-image-main--apadana {
  object-position: center 66%;
}

.portfolio-link-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: 0.65rem;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.portfolio-category {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--darker);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.portfolio-overlay h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.portfolio-overlay p {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ====== Testimonials ====== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-stars {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-dim);
  line-height: 2;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--darker);
  font-weight: 900;
  font-size: 0.95rem;
}

.author-name {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.author-role {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ====== Contact Section ====== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-info-card,
.contact-form-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before,
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.contact-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.contact-card-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-card-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.contact-item-modern:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(-5px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--darker);
  flex-shrink: 0;
}

.contact-item-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.contact-item-value {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  direction: ltr;
  text-align: right;
}

.contact-phone-row {
  gap: 0.75rem;
  cursor: default;
}

.contact-phone-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-phone-copy .contact-item-value {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  unicode-bidi: isolate;
}

.contact-phone-copy .contact-item-value:hover {
  color: var(--primary-light);
}

.contact-whatsapp-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 10px;
  color: #79efa0;
  background: rgba(37, 211, 102, 0.09);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-whatsapp-action:hover,
.contact-whatsapp-action:focus-visible {
  border-color: rgba(37, 211, 102, 0.65);
  background: rgba(37, 211, 102, 0.17);
  transform: translateY(-1px);
}

.contact-whatsapp-action:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

.contact-whatsapp-mark {
  display: grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #06200f;
  background: #4ee27e;
  direction: ltr;
  font-size: 0.54rem;
  font-weight: 900;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--gradient-gold);
  color: var(--darker);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-form-card > p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-group select option {
  background: var(--card);
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: var(--gradient-gold);
  color: var(--darker);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ====== Map Section ====== */
.map-section {
  background: var(--darker);
  padding-bottom: 6rem;
}

.map-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

.map-overlay {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(15, 20, 36, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 320px;
  z-index: 2;
}

.map-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.map-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.map-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.map-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.8rem;
  padding: 0.55rem 0.85rem;
  color: var(--darker);
  background: var(--gradient-gold);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.map-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.32);
}

/* ====== Footer ====== */
.footer {
  background: linear-gradient(180deg, var(--dark), var(--darker));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 1.5rem 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.5;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-logo h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-logo span {
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.footer-about p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

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

.footer-social {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s;
}

.footer-social:hover {
  background: var(--gradient-gold);
  color: var(--darker);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-column h5 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-gold);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-column a:hover {
  color: var(--primary);
  padding-right: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-contact span {
  flex-shrink: 0;
}

.footer-contact li > span:last-child {
  min-width: 0;
  flex-shrink: 1;
  overflow-wrap: anywhere;
}

.footer-contact .footer-contact-details {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  min-width: 0;
}

.footer-contact-details > a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.footer-contact .footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 28px;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 999px;
  color: #75e99a;
  background: rgba(37, 211, 102, 0.08);
  font-size: 0.76rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.footer-contact .footer-whatsapp-link:hover {
  padding-right: 0.5rem;
  border-color: rgba(37, 211, 102, 0.5);
  color: #a6f5bd;
  background: rgba(37, 211, 102, 0.14);
}

.footer-whatsapp-mark {
  font-size: 0.6rem;
  font-weight: 900;
  direction: ltr;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: var(--primary);
  font-weight: 700;
}

/* ====== Back to top ====== */
.back-to-top {
  position: fixed;
  bottom: 7rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-gold);
  color: var(--darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* ====== Floating Actions ====== */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  position: relative;
}

.float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0.4;
  animation: ripple 1.5s infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-btn {
  background: #25D366;
}

.whatsapp-btn::before { background: #25D366; }

.phone-btn {
  background: var(--gradient-gold);
  color: var(--darker);
}

.phone-btn::before { background: var(--primary); }

.float-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Floating contact buttons open compact, accessible number pickers. */
.floating-action-group {
  position: relative;
  flex: 0 0 auto;
}

.floating-action-group.is-open {
  z-index: 1000;
}

.floating-actions .float-btn {
  padding: 0;
  border: 0;
  cursor: pointer;
}

.floating-actions .float-btn svg {
  position: relative;
  z-index: 1;
}

.floating-actions .float-btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
}

.floating-contact-menu {
  position: absolute;
  z-index: 2;
  left: calc(100% + 0.75rem);
  right: auto;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: min(320px, calc(100vw - 5rem));
  padding: 0.55rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 16px;
  background: rgba(12, 17, 30, 0.97);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42), 0 0 22px rgba(212, 175, 55, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.floating-contact-menu[hidden] {
  display: none !important;
}

.floating-contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  min-height: 56px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  color: var(--text);
  text-align: right;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.floating-contact-option:hover,
.floating-contact-option:focus-visible {
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(-2px);
}

.floating-contact-option:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.floating-contact-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
}

.floating-contact-copy strong {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.floating-contact-copy small {
  color: var(--text-muted);
  direction: ltr;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  unicode-bidi: isolate;
}

.floating-contact-arrow {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--primary-light);
  background: rgba(212, 175, 55, 0.1);
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .floating-contact-menu {
    left: auto;
    right: calc(100% + 0.75rem);
  }

  .floating-contact-option {
    min-height: 52px;
    padding: 0.6rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn::before { animation: none; }
  .floating-contact-option { transition: none; }
}

/* ====== AOS (Animate on Scroll) ====== */
[data-aos] {
  opacity: 0;
  transition: opacity 0.8s, transform 0.8s;
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Keep portfolio details visible and usable on touch screens without hover. */
@media (hover: none) {
  .portfolio-overlay {
    padding: 1.15rem;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(5, 8, 16, 0.98) 25%, rgba(5, 8, 16, 0.78) 75%, transparent);
  }
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { max-width: 380px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-card-1, .floating-card-3 { right: -5%; }
  .floating-card-2 { left: -5%; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    width: 85%;
    max-width: 360px;
    height: 100vh;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    align-items: stretch;
  }
  .nav-menu.active { right: 0; }
  .nav-menu .nav-link {
    padding: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }
  .nav-menu .nav-cta {
    margin-top: 1rem;
    justify-content: center;
  }
  .menu-toggle { display: flex; }

  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .stat-item { flex: 0 0 30%; text-align: center; flex-direction: column; align-items: center; }

  .category-header-modern {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .category-info { flex-direction: column; text-align: center; }
  .category-number { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-line { display: none; }
  .portfolio-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .floating-card { display: none; }
  .map-overlay { position: static; max-width: 100%; margin: 1rem; }

  .floating-actions { bottom: 1rem; left: 1rem; }
  .float-btn { width: 50px; height: 50px; }
  .back-to-top { bottom: 6rem; left: 1rem; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .logo-title { font-size: 0.95rem; }
  .logo-subtitle { font-size: 0.6rem; }
  .logo-wrapper { width: 42px; height: 42px; }
  .section-title { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
}

/* ====== Mobile / PWA refinements ====== */
html {
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
iframe,
video {
  max-width: 100%;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

[hidden],
.menu-backdrop[hidden],
.nav-install-button[hidden] {
  display: none !important;
}

.back-to-top { bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
.floating-actions { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }

.menu-backdrop {
  display: none;
  border: 0;
}

.nav-install-item {
  display: none;
}

.nav-install-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  color: var(--primary-light);
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-install-button:active {
  transform: scale(0.98);
  background: rgba(212, 175, 55, 0.14);
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .about-grid { gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-wrapper { gap: 1.25rem; }
  .footer-grid { gap: 2rem; }
}

/* Switch to a drawer before the desktop navigation gets crowded. */
@media (max-width: 900px) {
  .floating-card,
  .scroll-indicator { display: none; }

  .navbar {
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
  }

  .navbar.scrolled {
    padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.4rem;
  }

  .nav-container {
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: min(88vw, 360px);
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu li { width: 100%; }

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.7rem 0.85rem;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .nav-menu .nav-cta {
    width: 100%;
    min-height: 48px;
    margin-top: 0.45rem;
    justify-content: center;
  }

  .nav-install-item { display: block; }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .menu-backdrop[hidden] { display: none !important; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: calc(74px + env(safe-area-inset-top, 0px)); }
  .bg-glow { display: none; }
  #particlesCanvas { opacity: 0.35; }

  .navbar {
    padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.4rem;
  }

  .navbar.scrolled {
    padding-top: calc(0.3rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.3rem;
  }

  .logo { gap: 0.55rem; }
  .logo-wrapper { width: 42px; height: 42px; }
  .logo-title { font-size: 0.92rem; }
  .logo-subtitle { font-size: 0.54rem; letter-spacing: 1px; }
  .menu-toggle span { width: 22px; }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-start;
    padding: calc(6.25rem + env(safe-area-inset-top, 0px)) 1rem 2.75rem;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .hero-content,
  .hero-visual,
  .container,
  .section {
    min-width: 0;
  }

  .hero-badge {
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.73rem;
    line-height: 1.55;
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.6vw, 2.65rem);
    line-height: 1.38;
    letter-spacing: 0;
    margin-bottom: 1rem;
  }

  .hero-description {
    max-width: 620px;
    margin: 0 auto 1.4rem;
    font-size: 0.93rem;
    line-height: 1.9;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 440px;
    margin: 0 auto 1.65rem;
    gap: 0.7rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 1.25rem;
  }

  .stat-item {
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
    flex: initial;
    text-align: center;
  }

  .stat-number { font-size: clamp(1.55rem, 6vw, 2.05rem); }
  .stat-suffix { font-size: 1rem; }

  .stat-label {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: 0.7rem;
    line-height: 1.45;
    flex-basis: auto;
    white-space: normal;
  }

  .stat-divider,
  .scroll-indicator,
  .floating-card {
    display: none;
  }

  .hero-visual { max-width: 540px; margin-inline: auto; }
  .hero-card-bg { inset: -8px; filter: blur(28px); }
  .hero-card { border-radius: 18px; }
  .card-header { padding: 0.9rem 1rem; }
  .card-body { padding: clamp(1rem, 5vw, 1.5rem); }
  .card-icon-main { width: 68px; height: 68px; border-radius: 16px; }
  .card-body h3 { font-size: 1.2rem; }
  .card-body > p { margin-bottom: 1.35rem; font-size: 0.88rem; }

  .marquee-section { padding: 1rem 0; }
  .marquee-content { gap: 1.5rem; padding-inline: 1rem; }
  .marquee-content span { font-size: 0.86rem; }
  .marquee-section::before,
  .marquee-section::after { width: 36px; }

  .section { padding: 3.75rem 0; }
  .section > .container,
  .map-section > .container,
  .footer > .container { padding-inline: 1rem; }
  .section-header { margin-bottom: 2.25rem; }
  .section-tag { padding: 0.4rem 0.85rem; font-size: 0.76rem; }
  .section-title { font-size: clamp(1.55rem, 6.4vw, 2.15rem); line-height: 1.45; }
  .section-subtitle { font-size: 0.9rem; line-height: 1.8; }

  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .about-image-wrapper { width: min(82vw, 320px); max-width: 100%; }
  .about-image { border-radius: 18px; }
  .experience-badge { left: 0.25rem; bottom: -0.5rem; padding: 0.85rem 1rem; border-radius: 14px; }
  .exp-number { font-size: 1.5rem; }
  .exp-text { font-size: 0.72rem; }
  .about-content p { font-size: 0.92rem; line-height: 1.9; }
  .about-features { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
  .about-feature { padding: 0.85rem; }

  .service-category { margin-bottom: 2.6rem; }
  .category-header-modern {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    text-align: right;
  }
  .category-number { font-size: 1.7rem; }
  .category-info {
    min-width: 0;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    text-align: right;
  }
  .category-icon-wrap { width: 46px; height: 46px; border-radius: 12px; font-size: 1.35rem; }
  .category-info h3 { font-size: 0.97rem; line-height: 1.55; }
  .category-info p { font-size: 0.73rem; line-height: 1.65; }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .service-card { padding: 1.25rem; border-radius: 16px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 1rem; font-size: 1.4rem; }
  .service-card h4 { font-size: 1.08rem; line-height: 1.6; }
  .service-card p { font-size: 0.88rem; line-height: 1.85; }
  .service-features { margin: 0.8rem 0 1rem; }
  .service-features li { font-size: 0.83rem; }
  .featured-ribbon { font-size: 0.67rem; padding: 0.35rem 0.85rem; }

  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .process-step { padding: 1.35rem 0.85rem; border-radius: 16px; }
  .process-number { top: 0.75rem; left: 0.75rem; font-size: 0.95rem; }
  .process-icon { width: 58px; height: 58px; margin-bottom: 0.85rem; font-size: 1.5rem; }
  .process-step h4 { font-size: 0.95rem; line-height: 1.6; }
  .process-step p { font-size: 0.78rem; line-height: 1.75; }
  .process-line { display: none; }

  .portfolio-grid,
  .testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .portfolio-item { border-radius: 16px; aspect-ratio: 4 / 3; }
  .portfolio-overlay { padding: 1rem; opacity: 1; transform: translateY(0); }
  .portfolio-overlay h4 { font-size: 0.98rem; line-height: 1.5; }
  .portfolio-overlay p { font-size: 0.78rem; line-height: 1.65; }
  .portfolio-link-hint { margin-top: 0.45rem; font-size: 0.72rem; }
  .portfolio-live-link { top: 0.75rem; inset-inline-start: 0.75rem; padding: 0.38rem 0.6rem; font-size: 0.67rem; }
  .portfolio-image .portfolio-image-detail { inset-inline-start: 0.75rem; bottom: 0.75rem; width: 31%; height: 42%; border-radius: 11px; }
  .portfolio-image .portfolio-image-detail--left { inset-inline-start: auto; inset-inline-end: 0.75rem; }
  .portfolio-image .portfolio-image-detail--logo { width: 40%; height: 25%; }
  .testimonial-card { padding: 1.25rem; border-radius: 16px; }
  .testimonial-text { font-size: 0.88rem; line-height: 1.85; }
  .author-avatar { width: 42px; height: 42px; }

  .contact-wrapper { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .contact-info-card,
  .contact-form-card { min-width: 0; padding: 1.25rem; border-radius: 18px; }
  .contact-card-header { margin-bottom: 1.25rem; padding-bottom: 1.25rem; }
  .contact-logo { width: 64px; height: 64px; border-radius: 16px; }
  .contact-card-header h3 { font-size: 1.2rem; }
  .contact-list { gap: 0.7rem; margin-bottom: 1.25rem; }
  .contact-item-modern { align-items: flex-start; gap: 0.7rem; padding: 0.8rem; border-radius: 12px; }
  .contact-item-modern > div:last-child { min-width: 0; }
  .contact-item-icon { width: 40px; height: 40px; border-radius: 10px; }
  .contact-item-value { direction: rtl; text-align: right; font-size: 0.88rem; line-height: 1.65; overflow-wrap: anywhere; }
  .contact-item-modern[href^="tel:"] .contact-item-value { direction: ltr; unicode-bidi: isolate; text-align: right; }
  .contact-socials { gap: 0.55rem; padding-top: 1.1rem; }
  .social-btn { width: 42px; height: 42px; }
  .contact-form-card h3 { font-size: 1.35rem; }
  .contact-form-card > p { margin-bottom: 1.25rem; font-size: 0.88rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-group { margin-bottom: 0.9rem; }
  .form-group label { font-size: 0.84rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { min-height: 48px; padding: 0.75rem 0.9rem; font-size: 16px; border-radius: 10px; }
  .form-group textarea { min-height: 118px; }
  .submit-btn { min-height: 50px; padding: 0.8rem; font-size: 0.95rem; }

  .map-section { padding-bottom: 3.5rem; }
  .map-wrapper { border-radius: 16px; }
  .map-wrapper iframe { height: clamp(240px, 70vw, 320px); }
  .map-overlay { position: relative; inset: auto; max-width: none; margin: 0; padding: 1rem; border: 0; border-top: 1px solid rgba(212, 175, 55, 0.18); border-radius: 0; }
  .map-logo { width: 48px; height: 48px; margin-bottom: 0.65rem; }
  .map-info h4 { font-size: 1rem; }
  .map-info p { font-size: 0.8rem; line-height: 1.7; }
  .map-directions { width: 100%; }

  .footer { padding: 3rem 0 calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.75rem; }
  .footer-about p { font-size: 0.87rem; }
  .footer-column h5 { margin-bottom: 0.9rem; }
  .footer-contact li { font-size: 0.84rem; overflow-wrap: anywhere; }
  .footer-bottom { padding-top: 1rem; font-size: 0.75rem; line-height: 1.7; }

  .floating-actions {
    left: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.45rem;
  }
  .float-btn { width: 46px; height: 46px; }
  .back-to-top {
    left: 0.75rem;
    bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 540px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-step { padding: 1.25rem 1rem; }
  .process-icon { width: 54px; height: 54px; }
}

@media (max-width: 380px) {
  .nav-container { padding-inline: 0.75rem; }
  .logo { gap: 0.45rem; }
  .logo-wrapper { width: 38px; height: 38px; }
  .logo-title { font-size: 0.84rem; }
  .logo-subtitle { font-size: 0.48rem; letter-spacing: 0.8px; }
  .hero { padding-inline: 0.85rem; }
  .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.05rem); }
  .hero-badge { font-size: 0.68rem; }
  .hero-description { font-size: 0.88rem; }
  .stat-number { font-size: 1.45rem; }
  .stat-label { font-size: 0.64rem; }
  .section > .container,
  .map-section > .container,
  .footer > .container { padding-inline: 0.85rem; }
  .category-header-modern { gap: 0.45rem; padding: 0.8rem; }
  .category-number { font-size: 1.45rem; }
  .category-icon-wrap { width: 40px; height: 40px; font-size: 1.2rem; }
  .category-info { gap: 0.45rem; }
  .category-info h3 { font-size: 0.86rem; }
  .category-info p { font-size: 0.68rem; }
  .portfolio-overlay { padding: 0.85rem; }
  .portfolio-overlay h4 { font-size: 0.9rem; }
  .portfolio-overlay p { font-size: 0.73rem; }
  .contact-info-card,
  .contact-form-card { padding: 1rem; }
  .floating-actions { left: 0.55rem; }
  .float-btn { width: 44px; height: 44px; }
  .back-to-top { left: 0.55rem; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 2rem; }
  .hero-container { gap: 1.25rem; }
  .hero-visual { max-width: 500px; }
  .scroll-indicator { display: none; }
}

/* ====== Services: clearer hierarchy, quick category navigation, and balanced cards ====== */
.services-section .section-header {
  margin-bottom: 2.25rem;
}

.services-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1160px;
  margin: 0 auto 3.5rem;
}

.services-navigation-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(17, 23, 40, 0.96), rgba(10, 14, 26, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.services-navigation-item:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(17, 23, 40, 0.96));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.services-nav-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--primary-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
}

.services-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.services-nav-copy strong {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.services-nav-copy small {
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.4;
}

.services-navigation-item > svg {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.services-navigation-item:hover > svg {
  transform: translateX(-3px);
}

.service-category {
  position: relative;
  scroll-margin-top: 110px;
  margin-bottom: 4rem;
  padding-bottom: 0.35rem;
}

.service-category:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1.7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.16), transparent);
}

.category-header-modern {
  gap: 1.2rem;
  margin-bottom: 1.75rem;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(105deg, rgba(212, 175, 55, 0.09), rgba(15, 20, 36, 0.94) 50%, rgba(30, 64, 175, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.19);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.025);
}

.category-header-modern::before {
  top: 50%;
  right: 0;
  width: 4px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 0 6px 6px 0;
  background: var(--gradient-gold);
  opacity: 0.9;
}

.category-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  color: var(--primary-light);
  -webkit-text-fill-color: var(--primary-light);
  background: rgba(212, 175, 55, 0.1);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.category-info { min-width: 0; }
.category-icon-wrap { width: 56px; height: 56px; border-radius: 16px; font-size: 1.55rem; }
.category-info h3 { font-size: 1.25rem; line-height: 1.5; }
.category-info p { font-size: 0.88rem; line-height: 1.7; }

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.15rem;
}

#service-cat-development .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 940px;
  margin-inline: auto;
}

#service-cat-network .services-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin-inline: auto;
}

.services-section .service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(18, 24, 42, 0.94), rgba(9, 13, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 21px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.17), inset 0 1px rgba(255, 255, 255, 0.025);
}

.services-section .service-card::before {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 55%);
  border-radius: inherit;
}

.services-section .service-card::after {
  content: '';
  position: absolute;
  top: -70px;
  inset-inline-end: -55px;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.services-section .service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.04);
}

.services-section .service-card:hover::after {
  opacity: 0.9;
  transform: scale(1.12);
}

.services-section .service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(30, 64, 175, 0.16));
  border-color: rgba(212, 175, 55, 0.23);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.services-section .service-card h4 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
  line-height: 1.6;
}

.services-section .service-card p {
  flex-grow: 1;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.9;
}

.services-section .service-link {
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0.45rem 0;
  position: relative;
  z-index: 2;
}

.services-section .service-link svg {
  transform: scaleX(-1);
  transition: transform 0.25s ease;
}

.services-section .service-link:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.services-section .service-card-featured {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.13), rgba(16, 22, 38, 0.97) 62%, rgba(30, 64, 175, 0.08));
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.09), inset 0 1px rgba(255, 255, 255, 0.05);
}

.services-section .service-card-featured::after {
  background: radial-gradient(circle, rgba(244, 208, 63, 0.2), transparent 70%);
  opacity: 0.7;
}

#service-cat-network .service-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon desc" "icon link";
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.2rem;
  min-height: 180px;
}

#service-cat-network .service-icon { grid-area: icon; width: 60px; height: 60px; margin: 0; }
#service-cat-network .service-card h4 { grid-area: title; margin: 0; }
#service-cat-network .service-card p { grid-area: desc; margin: 0; }
#service-cat-network .service-link { grid-area: link; justify-self: start; margin-top: 0.2rem; }

@media (max-width: 1024px) {
  .services-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    gap: 0.75rem;
    margin-bottom: 3rem;
  }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #service-cat-development .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .services-section .section-header { margin-bottom: 1.5rem; }
  .services-navigation { gap: 0.65rem; margin-bottom: 2.5rem; }
  .services-navigation-item { gap: 0.55rem; padding: 0.8rem; border-radius: 14px; }
  .services-nav-number { width: 34px; height: 34px; border-radius: 10px; font-size: 0.8rem; }
  .services-nav-copy strong { font-size: 0.76rem; }
  .services-nav-copy small { font-size: 0.64rem; }
  .services-navigation-item > svg { width: 15px; height: 15px; }

  .service-category { margin-bottom: 2.8rem; padding-bottom: 0.15rem; }
  .service-category:not(:last-child)::after { bottom: -1.3rem; }
  .category-header-modern { gap: 0.7rem; margin-bottom: 1rem; padding: 1rem; border-radius: 17px; }
  .category-number { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; font-size: 0.95rem; }
  .category-icon-wrap { width: 44px; height: 44px; border-radius: 12px; font-size: 1.25rem; }
  .category-info { gap: 0.65rem; }
  .category-info h3 { font-size: 0.94rem; line-height: 1.55; }
  .category-info p { font-size: 0.73rem; line-height: 1.6; }

  .services-grid,
  #service-cat-development .services-grid { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .services-section .service-card { padding: 1.25rem; border-radius: 17px; }
  .services-section .service-card h4 { font-size: 1.03rem; }
  .services-section .service-card p { font-size: 0.86rem; line-height: 1.85; }
  .services-section .service-icon { width: 50px; height: 50px; margin-bottom: 0.9rem; border-radius: 14px; font-size: 1.4rem; }
  .services-section .service-link { min-height: 44px; }

  #service-cat-network .service-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 0.85rem;
    min-height: 0;
  }
  #service-cat-network .service-icon { width: 48px; height: 48px; }
}

@media (max-width: 380px) {
  .services-navigation-item { grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem; padding: 0.7rem 0.6rem; }
  .services-navigation-item > svg { display: none; }
  .services-nav-number { width: 30px; height: 30px; font-size: 0.72rem; }
  .services-nav-copy strong { font-size: 0.72rem; }
  .services-nav-copy small { font-size: 0.6rem; }
  .category-header-modern { gap: 0.5rem; padding: 0.85rem; }
  .category-number { width: 36px; height: 36px; min-width: 36px; font-size: 0.82rem; }
  .category-icon-wrap { width: 40px; height: 40px; font-size: 1.12rem; }
  .category-info { gap: 0.45rem; }
  .category-info h3 { font-size: 0.85rem; }
  .category-info p { font-size: 0.67rem; }
  #service-cat-network .service-card { grid-template-columns: 42px minmax(0, 1fr); column-gap: 0.7rem; }
  #service-cat-network .service-icon { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Prevent off-canvas overflow and keep contact actions inside the mobile viewport. */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .floating-actions {
    left: auto;
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    width: max-content;
    max-width: calc(100vw - 1.1rem);
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .float-btn { flex: 0 0 auto; }

  .back-to-top {
    left: auto;
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
  }
}
