/* =========================================
   GRAMSPAQ - WORLD CLASS (BUG-FREE) UI
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@500;700;800&display=swap');

:root {
  --brand-purple: #3d3185;
  --brand-dark: #28205c; 
  --brand-darker: #1a153a;
  --accent-cyan: #00e5ff;
  --text-dark: #111111;
  --text-gray: #666666;
  --white: #ffffff;
}

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

html, body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important; /* STRICT LOCK on horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

/* --- ENGINEERING TEXTURES --- */
.tech-blueprint {
  background-color: var(--brand-darker);
  background-image: linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

/* --- CLEAN 3D PANELS (No buggy blurs) --- */
.glass-3d {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}
.glass-3d-light {
  background: var(--white);
  border: 1px solid #eeeeee;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.title-font { font-family: 'Syne', sans-serif; text-transform: uppercase; font-weight: 800; }

/* --- HEADER --- */
header { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 15px 5vw; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #eeeeee; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.logo img { height: 45px; position: relative; z-index: 1002; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-family: 'Syne', sans-serif; text-decoration: none; color: var(--brand-purple); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-cyan); }

.menu-btn { display: none; font-size: 1.8rem; color: var(--brand-purple); cursor: pointer; z-index: 1002; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--brand-darker); z-index: 1001; display: flex; flex-direction: column; justify-content: center; padding: 5vw; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-links { list-style: none; }
.mobile-links li { margin: 20px 0; text-align: left; }
.mobile-links a { font-family: 'Syne', sans-serif; font-size: 1.8rem; color: var(--white); text-decoration: none; text-transform: uppercase; font-weight: 800; display: block; }
.mobile-links span { display: block; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--accent-cyan); font-weight: 400; text-transform: none; margin-top: 5px; }
.mobile-contact { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: var(--white); }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 5vw 60px; color: var(--white); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.8); }
.hero-subtitle { font-size: 1.1rem; max-width: 600px; color: #f0f0f0; border-left: 3px solid var(--accent-cyan); padding-left: 20px; margin-bottom: 40px; line-height: 1.6; }

.btn-solid { display: inline-flex; align-items: center; gap: 15px; background: var(--white); color: var(--brand-dark); padding: 15px 35px; font-family: 'Syne', sans-serif; font-weight: 800; text-transform: uppercase; text-decoration: none; border-radius: 6px; transition: transform 0.3s; }
.btn-solid:hover { transform: translateY(-3px); background: #f0f0f0; }

/* --- HIGH-END SECTIONS --- */
.section-pad { padding: 90px 5vw; width: 100%; overflow: hidden; }
.bg-light { background: #f9fafb; }
.section-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; color: var(--brand-purple); line-height: 1.2; }
.tech-blueprint .section-title { color: var(--white); }
.section-desc { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin: 0 auto; line-height: 1.6; }
.tech-blueprint .section-desc { color: #dddddd; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* Services Layout */
.service-list { display: flex; flex-direction: column; gap: 40px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; text-decoration: none; color: inherit; transition: transform 0.3s; overflow: hidden; }
.service-row:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); }
.s-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.s-content h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--brand-purple); line-height: 1.3; }
.s-content p { color: var(--text-gray); font-size: 1rem; line-height: 1.6; margin-bottom: 25px; }
.read-more { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: var(--white); display: inline-flex; align-items: center; gap: 8px; background: var(--brand-dark); padding: 12px 20px; border-radius: 4px; width: fit-content; transition: 0.3s; }
.service-row:hover .read-more { background: var(--accent-cyan); color: var(--brand-dark); }
.s-image { height: 100%; min-height: 300px; }
.s-image img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.feature-box { padding: 30px; text-align: center; }
.feature-box i { font-size: 2.5rem; color: var(--accent-cyan); margin-bottom: 20px; }
.feature-box h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--white); }
.feature-box p { color: #cccccc; font-size: 0.95rem; line-height: 1.6; }

/* Swiper */
.swiper { width: 100%; padding-bottom: 50px; }
.swiper-slide { border-radius: 12px; overflow: hidden; border: 1px solid #eeeeee; position: relative; }
.swiper-slide img { width: 100%; height: 350px; object-fit: cover; }
.slide-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(transparent, rgba(26,21,58,0.95)); color: white; }

/* Team */
.team-card { text-align: center; padding: 20px; }
.team-img { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; border: 3px solid var(--accent-cyan); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- PREMIUM FOOTER (HIGH CONTRAST) --- */
.premium-footer { padding: 60px 5vw 30px; border-top: 1px solid rgba(255,255,255,0.1); background-color: var(--brand-darker); }
.footer-contact h4 { color: var(--accent-cyan); margin-bottom: 15px; font-size: 1.2rem; }
/* Forced High Contrast White for Footer Text */
.footer-contact p, .premium-footer p { margin-bottom: 10px; color: #ffffff !important; font-size: 0.95rem; line-height: 1.6; }
.footer-contact i { color: var(--accent-cyan); width: 20px; }

/* WhatsApp */
.wa-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }
.wa-popup { background: var(--white); color: #333; padding: 15px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); opacity: 0; transform: translateY(20px); transition: all 0.5s ease; max-width: 250px; font-size: 0.9rem; border-left: 4px solid #25D366; }
.wa-popup.show { opacity: 1; transform: translateY(0); }
.wa-btn { background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); text-decoration: none; }

/* =========================================
   BULLETPROOF MOBILE SIZES (NO OVERFLOW)
   ========================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .section-pad { padding: 60px 5vw; }
  
  /* STRICT HARD-CODED FONTS: Mathematically impossible to break a screen */
  .hero h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  .section-title { font-size: 1.8rem !important; line-height: 1.2 !important; }
  .s-content h3 { font-size: 1.5rem !important; }
  .hero-subtitle, .section-desc { font-size: 1rem !important; }

  /* Grid Resets */
  .grid-2 { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .grid-3 { grid-template-columns: 1fr; gap: 25px; }
  
  /* Perfect Mobile Services Stack */
  .service-row { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .s-image { order: -1; min-height: 220px; height: 220px; }
  .image-left .s-image { order: -1; } 
  .s-content { padding: 25px 20px; align-items: flex-start; text-align: left; }
  
  .wa-widget { bottom: 20px; right: 20px; }
}