/* ===== تكوين | تصميم متاجر إلكترونية ومواقع احترافية ===== */
/* ===== النمط: أحمر + أسود + أبيض ===== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --red: #E63946;
  --red-hover: #C1121F;
  --red-light: rgba(230,57,70,0.08);
  --red-glow: rgba(230,57,70,0.25);
  --black: #1A1A1A;
  --black-soft: #2B2B2B;
  --black-light: #3D3D3D;
  --dark-header: rgba(26,26,26,0.92);
  --dark-scrolled: rgba(26,26,26,0.98);
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-light: #E9ECEF;
  --gray: #6C757D;
  --gray-text: rgba(255,255,255,0.6);
  --gray-text-light: rgba(255,255,255,0.5);
  --border-light: rgba(255,255,255,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-red: 0 8px 30px rgba(230,57,70,0.25);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 14px;
  --radius-sm: 8px;

  /* تصميم الهيرو */
  --hero-height: 100vh;
  --header-height: 80px;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== PAGE WRAPPER ===== */
.page-wrapper { width: 100%; overflow-x: hidden; }

/* ============================================= */
/* ========== HEADER (محسّن) ========== */
/* ============================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.main-header.scrolled {
  background: var(--dark-scrolled);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo { flex-shrink: 0; }

.logo img { height: 70px; }

nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.5px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; left: 0; right: auto; }

.nav-links li a:hover,
.nav-links li a.active { color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  background: none;
  border: none;
  padding: 0.5rem;
}

/* ============================================= */
/* ========== HERO SECTION ========== */
/* ============================================= */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 40%, #2B2B2B 100%);
  min-height: var(--hero-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(230,57,70,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(230,57,70,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 30px;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -4px;
  text-shadow: 0 2px 40px rgba(230,57,70,0.15);
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gray-text);
  letter-spacing: 6px;
  margin-bottom: 30px;
}

.mobile-consultation { display: none; }

/* ===== CTA BOXES تحت الهيرو ===== */
.cta-boxes-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.cta-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  transition: var(--transition);
}

.cta-box:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
  border-color: rgba(230,57,70,0.3);
}

.cta-box .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--red);
  transition: var(--transition);
}

.cta-box:hover .icon {
  background: var(--red);
  color: var(--white);
  transform: scale(1.05);
}

.cta-box h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--gray-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Consultation Box ===== */
.consultation-box-link { display: block; position: relative; z-index: 2; margin: 10px auto 50px; max-width: 380px; width: 90%; }

.consultation-box {
  background: var(--red);
  border-radius: 60px;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
}

.consultation-box:hover {
  background: var(--red-hover);
  transform: scale(1.03);
  box-shadow: 0 12px 40px var(--red-glow);
}

.consultation-box .icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.consultation-content .consultation-title {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
}

.consultation-content .consultation-phone {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  direction: ltr;
}

/* ============================================= */
/* ========== SECTION COMMON ========== */
/* ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================= */
/* ========== SERVICES ========== */
/* ============================================= */
.services {
  padding: 90px 0;
  background: var(--off-white);
}

.services-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card-link { display:block;text-decoration:none;color:inherit; }
.service-card-link:hover { text-decoration:none;color:inherit; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

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

/* Image flip container */
.service-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--black-soft);
}

.service-image-flip {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-image-flip img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.service-image-front img { opacity: 1; z-index: 1; }
.service-image-back img { opacity: 0; z-index: 0; }

.service-card:hover .service-image-front img { opacity: 0; }
.service-card:hover .service-image-back img { opacity: 1; }

.service-icon {
  width: 55px;
  height: 55px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: 0 0 0 4px var(--white), var(--shadow-sm);
}

.service-card h3 {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 15px 20px 5px;
}

.service-card > p {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  padding: 0 20px 10px;
}

.service-features {
  padding: 0 20px 25px;
}

.service-features li {
  padding: 6px 0;
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ============================================= */
/* ========== CTA SECTION ========== */
/* ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  color: var(--white);
  text-align: center;
  padding: 70px 5%;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.cta-section p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  color: var(--red-hover);
}

/* ============================================= */
/* ========== HOW WE WORK ========== */
/* ============================================= */
.how-we-work-section {
  padding: 90px 0;
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.process-box {
  text-align: center;
  padding: 35px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.process-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--red-light);
  line-height: 1;
  margin-bottom: 10px;
}

.process-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.process-box p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================= */
/* ========== CLIENTS / COUNTRIES ========== */
/* ============================================= */
/* ============================================= */
.team-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:24px; }
.team-card { text-align:center;padding:20px;background:var(--white);border-radius:var(--radius);box-shadow:0 2px 12px rgba(0,0,0,0.06);transition:all 0.3s ease; }
.team-card:hover { transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,0.1); }
.team-img { width:120px;height:120px;border-radius:50%;overflow:hidden;margin:0 auto 12px;border:3px solid var(--off-white); }
.team-img img { width:100%;height:100%;object-fit:cover; }
.team-card h3 { font-size:1rem;font-weight:800;margin:0 0 4px; }
.team-card span { font-size:0.82rem;color:var(--red);font-weight:600; }

.offers-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px; }
.offer-card { background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,0.07);position:relative;transition:all 0.3s ease; }
.offer-card:hover { transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,0.12); }
.offer-badge { position:absolute;top:12px;right:12px;background:var(--red);color:white;padding:5px 14px;border-radius:20px;font-size:0.8rem;font-weight:800;z-index:2; }
.offer-img { height:180px;overflow:hidden; }
.offer-img img { width:100%;height:100%;object-fit:cover;object-position:top;transition:transform 0.3s; }
.offer-video { position:relative;padding-bottom:56.25%;height:0;overflow:hidden;background:var(--black); }
.offer-video iframe { position:absolute;top:0;left:0;width:100%;height:100%; }
.offer-card:hover .offer-img img { transform:scale(1.05); }
.offer-info { padding:18px 20px;text-align:right; }
.offer-info h3 { font-size:1.05rem;font-weight:800;margin:0 0 6px; }
.offer-info p { font-size:0.85rem;color:var(--gray);margin:0 0 10px;line-height:1.7; }
.offer-details-btn { display:inline-block;font-size:0.8rem;color:var(--red);font-weight:700;text-decoration:none; }
.offer-details-btn:hover { text-decoration:underline; }

.clients-worldwide {
  padding: 90px 0;
  background: var(--black);
  color: var(--white);
}

.clients-worldwide .section-header h2 { color: var(--white); }
.clients-worldwide .section-header p { color: var(--gray-text); }

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.country-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition);
}

.country-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
}

.flag-icon {
  width: 90px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  margin: 0 auto 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.country-name {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.country-desc {
  color: var(--gray-text);
  font-size: 0.82rem;
}

.special-country { grid-column: span 2; }

/* ============================================= */
/* ========== PORTFOLIO ========== */
/* ============================================= */
.portfolio {
  padding: 90px 0;
  background: var(--off-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(230,57,70,0.9) 0%, rgba(230,57,70,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* ============================================= */
/* ========== FINAL CTA ========== */
/* ============================================= */
.final-cta {
  background: linear-gradient(135deg, #0D0D0D, var(--black));
  color: var(--white);
  text-align: center;
  padding: 80px 5%;
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  color: var(--gray-text);
  font-size: 1.05rem;
  margin-bottom: 35px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================= */
/* ========== FOOTER ========== */
/* ============================================= */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-column ul li { margin-bottom: 10px; }

.footer-column ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-column ul li a::before {
  content: '←';
  color: var(--red);
  opacity: 0;
  transition: var(--transition);
}

.footer-column ul li a:hover::before { opacity: 1; }
.footer-column ul li a:hover { color: var(--red); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--red);
  color: var(--white);
}

/* Contact Form in Footer */
.contact-form .form-group { margin-bottom: 12px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: right;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.08);
}

.contact-form textarea { resize: vertical; min-height: 80px; }

.contact-form button {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover { background: var(--red-hover); }

.copyright {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 25px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

/* ============================================= */
/* ========== MOBILE APP NAV ========== */
/* ============================================= */
.mobile-app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(26,26,26,0.97);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-light);
  display: none;
}

.app-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 5px 10px;
  transition: var(--transition);
}

.app-nav-item i { font-size: 1.2rem; }

.app-nav-item.active { color: var(--red); }

.app-nav-item.consultation i,
.app-nav-item.contact i {
  color: var(--red);
}

.app-nav-item:hover { color: var(--red); }

/* ============================================= */
/* ========== PAGE HERO (inner pages) ========== */
/* ============================================= */
.page-hero {
  background: linear-gradient(135deg, #0D0D0D, var(--black));
  color: var(--white);
  text-align: center;
  padding: 140px 20px 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(230,57,70,0.1) 0%, transparent 50%);
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--gray-text);
  max-width: 500px;
  margin: 10px auto 0;
  position: relative;
  z-index: 1;
}

/* ============================================= */
/* ========== ALERTS ========== */
/* ============================================= */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================= */
/* ========== APP-LIKE ADDITIONS ========== */
/* ============================================= */

/* Reusable responsive two-column grid */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr; }
}

/* Contact info card (dark) */
.contact-info-card {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .contact-info-card { padding: 1.8rem; }
}

/* Contact form light (for contact.php) */
.contact-form-light {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-form-light input,
.contact-form-light textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  text-align: right;
  transition: var(--transition);
  background: var(--off-white);
  color: var(--black);
}

.contact-form-light input:focus,
.contact-form-light textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.contact-form-light textarea {
  height: 130px;
  resize: vertical;
}

.contact-form-light button {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form-light button:hover {
  background: var(--red-hover);
}

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-question { width:100%;display:flex;justify-content:space-between;align-items:center;padding:18px 0;background:none;border:none;cursor:pointer;font-family:inherit;font-size:1rem;font-weight:700;color:var(--black);text-align:right; }
.faq-question i { transition:transform 0.3s ease;color:var(--red); }
.faq-item.active .faq-question i { transform:rotate(180deg); }
.faq-answer { max-height:0;overflow:hidden;transition:max-height 0.35s ease,padding 0.35s ease;padding:0; }
.faq-item.active .faq-answer { max-height:400px;padding:0 0 18px; }
.faq-answer p { color:var(--gray);line-height:1.9;font-size:0.95rem;margin:0; }

/* Blog category filter pills */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.category-filter a {
  display: inline-block;
  padding: 8px 22px;
  font-size: 0.9rem;
  color: white;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
}

.category-filter a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Splash Screen */
/* Hide header on scroll down */
.main-header.hide-header {
  transform: translateY(-100%);
}

/* Back to Top */
#back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(230,57,70,0.5);
}

/* Ripple Animation */
@keyframes rippleAnim {
  to { transform: scale(10); opacity: 0; }
}

/* Page transition */
body {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Typing cursor blink */
@keyframes blink {
  0%, 100% { border-color: var(--red); }
  50% { border-color: transparent; }
}

.hero-content h2 {
  animation: blink 0.8s step-end infinite;
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .main-header { padding-top: env(safe-area-inset-top); }
  .mobile-app-nav { padding-bottom: env(safe-area-inset-bottom); }
}

/* Better mobile nav */
@media (max-width: 768px) {
  .app-nav-items { padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px)); }
  .app-nav-item { padding: 8px 12px; min-width: 50px; }
  .app-nav-item i { font-size: 1.3rem; }
  .app-nav-item span { font-size: 0.65rem; }
  #ai-chat { bottom: 75px; left: 15px; }
  #back-to-top { bottom: 80px; right: 15px; width: 42px; height: 42px; }
}

/* ============================================= */
/* ========== RESPONSIVE ========== */
/* ============================================= */

/* Large screens */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 100%;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 5%;
    gap: 0;
    border-top: 1px solid var(--border-light);
  }

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

  .nav-links li { border-bottom: 1px solid var(--border-light); }
  .nav-links li:last-child { border: none; }
  .nav-links li a { padding: 1rem 0; display: block; }

  .hamburger { display: block; }

  .hero-content h1 { font-size: 3.8rem; }
  .hero-content h2 { font-size: 1.3rem; letter-spacing: 4px; }

  .cta-boxes-container { grid-template-columns: 1fr; max-width: 450px; }

  .mobile-consultation { display: block; margin-top: 20px; }

  .mobile-consultation-btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
  }

  /* Inner pages mobile improvements */
  .page-hero { padding: 120px 20px 50px; }
  .page-hero h1 { font-size: 2.2rem; word-break: break-word; }
  .page-hero p { font-size: 0.95rem; }

  .services, .portfolio, .clients-worldwide, .how-we-work-section, .cta-section { padding: 50px 0; }
  .section-header { margin-bottom: 35px; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.95rem; }

  /* Blog single content */
  .services [itemprop="articleBody"] { font-size: 1rem !important; line-height: 1.9 !important; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid article p { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }

  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .special-country { grid-column: span 2; }

  .footer-content { grid-template-columns: 1fr; }

  /* Mobile category filter - grid 3 columns */
  .category-filter { display: grid; grid-template-columns: repeat(3, 1fr); justify-content: end; gap: 6px; margin-bottom: 1.5rem; }
  .category-filter a { text-align: center; padding: 8px 6px; font-size: 0.78rem; }

  .mobile-app-nav { display: block; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 3.2rem; letter-spacing: -2px; }
  .hero-content h2 { font-size: 1.1rem; letter-spacing: 3px; }

  .logo img { height: 55px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .special-country { grid-column: span 2; }

  .cta-section h2,
  .final-cta h2 { font-size: 1.5rem; }

  .page-hero { padding: 100px 15px 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.9rem; }

  .sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
.breadcrumb { max-width:1200px;margin:0 auto;padding:100px 15px 0;font-size:0.85rem;color:var(--gray);text-align:right; }
.breadcrumb a { color:var(--gray);text-decoration:none; }
.breadcrumb a:hover { color:var(--red); }
.breadcrumb span { color:var(--black);font-weight:700; }

.services, .portfolio, .clients-worldwide, .how-we-work-section, .cta-section { padding: 40px 0; }
  .section-header { margin-bottom: 25px; }
  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.9rem; }
}
