:root {
  --deep-purple: #6c346cc8;
  --mid-purple: #962a82;
  --magenta: #d1358a;
  --pink: #e879b8;
/* --bg: #1c1035;
--surface: #261840;
--surface3: #3d2d62;
--surface2: #322252; */
  --bg: #0a0512;
  --surface: #14091c;
  --surface2: #1d1030;
  --surface3: #261540;
  --text: #d8c8e6;
  --text-dim: #9a87b0;
/* --text: #e8daf4;
--text-dim: #b8a8cc; */
  --white: #ffffff;
  --grad: linear-gradient(135deg, #632463, #962a82, #d1358a, #e879b8);
  --grad-h: linear-gradient(90deg, #632463, #d1358a, #e879b8);
  --new-req : linear-gradient(90deg,  #e879b840);
  --new-req-hover : linear-gradient(90deg ,  #e879b840);

  --border: rgba(210, 53, 138, 0.18);
  --border-glow: rgba(210, 53, 138, 0.5);
  --font: 'Vazirmatn', sans-serif;
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  direction: rtl;

  line-height: 1.8;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mid-purple); border-radius: 3px; }

/* ============ UTILITIES ============ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--magenta);
  border: 1px solid var(--border-glow);
  border-radius: 2rem;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(210,53,138,0.4); }
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: transparent;
  color: var(--pink);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-glow);
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(210,53,138,0.1); box-shadow: 0 0 16px rgba(210,53,138,0.25); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ NAVBAR ============ */
#navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(10, 5, 18, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  /* transition: background 0.3s; */
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text span:first-child { font-size: 1rem; font-weight: 700; color: var(--white); }
.nav-logo-text span:last-child { font-size: 0.65rem; font-weight: 400; color: var(--text-dim); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 0.3rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--pink); background: rgba(232,121,184,0.08); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.3rem;
  background: none;
  border: none;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(20, 9, 28, 0.97);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--pink); }
#mobile-menu .btn-primary { margin-top: 1rem; justify-content: center; }

/* ============ HERO ============ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(150,42,130,0.18) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99,36,99,0.15) 0%, transparent 55%),
              var(--bg);
}
.hero-halo {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  /* background: radial-gradient(circle, rgba(210,53,138,0.12) 0%, rgba(150,42,130,0.08) 40%, transparent 70%); */
     background: radial-gradient(circle, rgba(210,53,138,0.12) 0%, rgba(150,42,130,0.08) 40%, transparent 70%);
  animation: pulse-halo 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-halo-2 {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  /* border: 1px solid rgba(210,53,138,0.08); */
  border: 1px solid rgba(210,53,138,0.08);
  animation: pulse-halo 4s ease-in-out infinite 1s;
  pointer-events: none;
}


@keyframes pulse-halo {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.04); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.hero-content { order: 2; }
.hero-visual { order: 1; display: flex; justify-content: center; align-items: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--magenta);
  border: 1px solid var(--border-glow);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--magenta);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--magenta); color: var(--pink); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-svg-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-svg-wrap { animation: float-logo 6s ease-in-out infinite; }
}
@keyframes float-logo {
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
}

/* Brand PNG lockup — used in navbar / hero / footer */
.brand-logo-img {
  display: block;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(210,53,138,0.18));
}
.nav-logo .brand-logo-img { width: 132px; }
.hero-svg-wrap .brand-logo-img { width: 320px; max-width: 100%; }
.footer-logo-row .brand-logo-img {
  width: 140px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  filter: none;
}

/* ============ STATS ============ */
#stats {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(150,42,130,0.06), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat-item:last-child { border-left: none; }
.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}
.stat-label { font-size: 0.9rem; font-weight: 500; color: var(--text-dim); }

/* ============ ABOUT ============ */
#about { padding: 7rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--white); margin-bottom: 1.2rem; line-height: 1.4; }
.about-content p { font-size: 0.95rem; color: var(--text); line-height: 2; margin-bottom: 1rem; }
.about-bullets { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}
.about-bullets li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  margin-top: 0.65rem;
  flex-shrink: 0;
}
.about-visual { display: flex; justify-content: center; align-items: center; }

/* ============ SERVICES ============ */
#services { padding: 7rem 0; background: var(--surface); text-align: justify;}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--white); margin-bottom: 0.75rem; line-height: 1.4; }
.section-header p { font-size: 0.95rem; color: var(--text-dim); max-width: 540px; margin: 0 auto; line-height: 1.9; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.2rem 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 2px;
  background: var(--grad-h);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: 0 12px 40px rgba(210,53,138,0.15); }
.service-card:hover::after { opacity: 1; }
.service-icon { margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 2; }
.service-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--magenta);
  border: 1px solid var(--border-glow);
  border-radius: 2rem;
  padding: 0.2rem 0.7rem;
}

/* ============ INDUSTRIES ============ */
#industries { padding: 7rem 0; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.industry-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}
.industry-item:hover { transform: translateY(-3px); border-color: var(--border-glow); box-shadow: 0 8px 28px rgba(210,53,138,0.12); }
.industry-icon { margin-bottom: 0.75rem; display: flex; justify-content: center; }
.industry-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ============ PROJECTS ============ */
#projects { padding: 7rem 0; background: var(--surface); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.project-tile {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  cursor: pointer;
}
.project-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.project-tile:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,18,0.9) 0%, rgba(99,36,99,0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}
.project-tile:hover .project-overlay { opacity: 1; }
.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  background: rgba(210,53,138,0.15);
  border: 1px solid var(--border-glow);
  border-radius: 2rem;
  padding: 0.2rem 0.65rem;
  display: inline-block;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}
.project-name { font-size: 0.9rem; font-weight: 700; color: var(--white); line-height: 1.4; }

/* ============ WHY US ============ */
#whyus { padding: 7rem 0; }
.whyus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.why-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--border-glow); box-shadow: 0 10px 32px rgba(210,53,138,0.12); }
.why-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 0.6rem;
  background: rgba(210,53,138,0.1);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.why-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.9; }

/* ============ PARTNERS ============ */
#partners { padding: 7rem 0; background: var(--surface); }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.partner-box {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.25s, color 0.25s;
}
.partner-box:hover { border-color: var(--border-glow); color: var(--pink); }

/* ============ CONTACT ============ */
#contact { padding: 7rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-form-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2.5rem;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.contact-form-wrap p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 2rem; line-height: 1.8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  direction: rtl;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(209,53,138,0.15);
}
.form-group select option { background: var(--surface2); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 0.8rem; margin-top: 0.5rem; }

.contact-info h3 { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.contact-info p { font-size: 0.9rem; color: var(--text-dim); line-height: 2; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 0.5rem;
  background: rgba(210,53,138,0.1);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-text { display: flex; flex-direction: column; }
.contact-item-text strong { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.15rem; }
.contact-item-text span { font-size: 0.9rem; color: var(--white); font-weight: 500; direction: ltr; text-align: right; }

/* ============ TOAST ============ */
/* ============ TOAST ============ */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(6rem);
  background: var(--surface2);
  border: 1px solid var(--border-glow);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(210,53,138,0.3);
  z-index: 9999;
  transition: transform 0.4s, opacity 0.4s, visibility 0.4s;
  

  opacity: 0;
  visibility: hidden;
}

#toast.show {
  transform: translateX(-50%) translateY(0);

  opacity: 1;
  visibility: visible;
}

/* ============ SECTION DIVIDER ============ */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mid-purple), var(--magenta), var(--mid-purple), transparent);
  opacity: 0.3;
}

/* ============ FOOTER ============ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-top-rule {
  height: 3px;
  background: var(--grad);
  width: 100%;
  margin-bottom: 3.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 1.2rem; }
.footer-col p { font-size: 0.83rem; color: var(--text-dim); line-height: 2; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a { font-size: 0.83rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--pink); }
.footer-logo-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-text span:first-child { font-size: 0.9rem; font-weight: 700; color: var(--white); }
.footer-logo-text span:last-child { font-size: 0.65rem; color: var(--text-dim); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.social-row { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 0.4rem;
  background: var(--surface3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.social-btn:hover { border-color: var(--border-glow); background: rgba(210,53,138,0.1); }

/* ============ RESPONSIVE ============ */
/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */

/* --- 1. LARGE TABLETS & SMALL LAPTOPS (1024px) --- */
@media (max-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 2. TABLETS & LARGE PHONES (768px) --- */
@media (max-width: 768px) {
  /* Navigation & Hero */
  .nav-links, .nav-right .btn-primary { display: none; }
  #hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-content { order: 1; text-align: center; }
  .hero-visual { order: 2; }
  .hero-chips { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-svg-wrap { width: 240px; height: auto; }
  .hero-svg-wrap .brand-logo-img { width: 220px; }

  /* Grids: Switched to 2 columns to prevent cards from being crushed */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-left: none; }
  .stat-item:nth-child(odd) { border-left: 1px solid var(--border); }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  /* Shrink Card Contents so 2 columns look perfect */
  .service-card { padding: 1.5rem 1.2rem; }
  .service-card h3 { font-size: 1.1rem; }
  .service-card p { font-size: 0.85rem; }

  .why-card { padding: 1.5rem 1.2rem; }
  .why-icon-wrap { width: 40px; height: 40px; }
  .why-icon-wrap svg { width: 22px; height: 22px; }
  .why-card h4 { font-size: 1rem; }
  .why-card p { font-size: 0.8rem; }

  .project-overlay { padding: 1rem; }
  .project-name { font-size: 0.9rem; }
  .project-cat { font-size: 0.75rem; }

  /* Layout basics */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .container { padding: 0 1.2rem; }
}

/* --- 3. MOBILE PHONES (480px) --- */
@media (max-width: 480px) {
  /* Projects and Stats keep 2 columns, but are optimized for small screens */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  /* Text-heavy cards drop to 1 column so they remain readable */
  .services-grid { grid-template-columns: 1fr; }
  .whyus-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(4,1fr); }

  /* Maximum reduction for 2-column mobile project tiles */
  .project-overlay { padding: 0.6rem; }
  .project-name { font-size: 0.75rem; }
  .project-cat { font-size: 0.65rem; }
}

/* @media (max-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn-primary { display: none; }
  #hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-content { order: 1; text-align: center; }
  .hero-visual { order: 2; }
  .hero-chips { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-svg-wrap { width: 240px; height: auto; }
.hero-svg-wrap .brand-logo-img { width: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-left: none; }
  .stat-item:nth-child(odd) { border-left: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .container { padding: 0 1.2rem; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-left: none; }
} */
.transparent-logo {
    /* This blends the image with the background, making white disappear */
    mix-blend-mode: multiply;
    background-color: #f2f2f400;
    
    /* Optional: If the white is slightly off-white, you can boost contrast
    filter: contrast(1.1);  */
}
/* Light theme */
body.light {
  --bg: #faf7fd;
  --surface: #f0eaf8;
  --surface2: #e8dff5;
  --surface3: #ddd0f0;
  --text: #1a0f2e;
  --text-dim: #4a3868;
  --white: #0d0820;
  --border: rgba(150, 42, 130, 0.2);
  --border-glow: rgba(150, 42, 130, 0.45);
}

body.light #navbar {
  background: rgba(250, 247, 253, 0.217);
  border-bottom: 1px solid var(--border);
}

body.light #mobile-menu {
  background: rgba(250, 247, 253, 0.41);
}

body.light .nav-logo-text span:first-child {
  color: var(--text);
}

body.light .nav-links a:hover {
  background: rgba(232, 121, 184, 0.15);
}

body.light #hamburger span {
  background: var(--text);
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(209,53,138,.4);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--magenta); }
.contact-map {
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 12px;
}

.contact-map iframe {
  display: block;
  width: 100%;
}


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%); */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-cat {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gallery-name {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin: 0 auto 2.2rem auto;
  max-width: 900px;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .45rem 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.gallery-tab:hover {
  color: var(--pink);
  border-color: var(--border-glow);
}

.gallery-tab.active {
  color: var(--white);
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(210, 53, 138, 0.35);
  transform: translateY(-1px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: .8rem;
  max-width: 800px;   /* shrinks overall grid width */
  margin: 0 auto;
}

.gallery-item {
  transition: opacity .35s ease, transform .35s ease;
}

.gallery-item.gallery-hidden {
  display: none;
}

@media (max-width: 768px) {
  .gallery-filters {
    gap: .5rem;
  }
  .gallery-tab {
    font-size: .75rem;
    padding: .4rem .9rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  aspect-ratio: 1/1;   /* square, smaller tiles */
  cursor: pointer;
}
.gallery-overlay {
  padding: .7rem;
}

.gallery-cat {
  font-size: .65rem;
}

.gallery-name {
  font-size: .8rem;
}


body.light .project-name,
body.light .gallery-name {
  color: #ffffff !important; 
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Adds a subtle shadow for maximum contrast over any image */
}

/* Make category tags pop with your brand magenta/pink gradient colors */
body.light .project-cat,
body.light .gallery-cat {
  color: #e879b8 !important; /* Bright, punchy pink (uses your pink brand tone) */
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.878);
}


/* Make gallery images look clickable */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Modal styling */
/* Creates a full-screen background behind your 80% modal */

.image-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000;
    
    /* Set size to 80% of the window */
    width: 95%;
    height: 95%;
    
    /* Center it perfectly on the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: rgba(114, 114, 114, 0.445);
    border-radius: 15px; /* Optional: Adds rounded corners to the dark box */
    
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Class added via JS to show modal */

    .image-modal.show {
        display: flex;
        opacity: 1;
        backdrop-filter: blur(10px); /* This is the line that adds the blur */
        -webkit-backdrop-filter: blur(5px); /* For Safari compatibility */
    }

.modal-content {
    max-width: 70%;
    /* calc(100% - 80px) tells the image to take up the full modal height MINUS 80px for the text */
    max-height: calc(100% - 80px); 
    border-radius: 8px;
    object-fit: contain;
}


/* New styles for the text below the image */
.modal-caption {
    text-align: center;
    color: #fff;
    margin-top: 15px;
    padding-bottom: 100px; /* Adds a nice cushion at the bottom */
}

#modalCat {
    display: block;
    font-size: 14px;
    color: var(--mid-purple); /* Uses your existing variable */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
        text-shadow: rgba(0, 0, 0, 0.88) 0px 1px 2px;
 
}

#modalName {

    font-size: 22px;
    margin: 0;
    font-weight: 500;
    padding: 10px;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--pink); /* Uses your existing CSS variable */
}


/* Scroll to Top Button */
#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: var(--primary-color, #8c00b3); /* Uses your site's blue or fallback */
    color: white; 
    cursor: pointer; 
    padding: 12px; 
    border-radius: 50%; /* Makes it circular */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
/*Captcha box*/
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.captcha-box label {
    font-weight: bold;
    direction: rtl;
}

.captcha-box input[type="number"] {
    width: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.captcha-box button {
   font-family: var(--font);
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--new-req) ; 
    color: #000000;
}

.captcha-box button:hover {
    background:  var(--new-req-hover) ; 
}
/* Class added by JS to show the button */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background-color: var(--secondary-color, #c862e4);
    transform: scale(1.1); /* Slight zoom on hover */
}



