/* ==========================================================================
   EMBED IQ INNOVATIONS - Full Site Styling
   Responsive, Mobile-Friendly, Modern CSS
   ========================================================================== */

/*----------------------------------------
  Base and Reset
----------------------------------------*/
:root {
  --primary: #4f46e5;
  --primary-dark: #312e81;
  --accent: #6366f1;
  --background: #f4f4f8;
  --text: #23233a;
  --text-light: #4b4b6b;
  --white: #fff;
  --gray: #e5e7eb;
  --border-radius: 0.75rem;
  --transition: 0.2s cubic-bezier(.33,.99,.57,.98);
  --shadow: 0 2px 28px 0 rgba(39,45,84,.09);
  --shadow-btn: 0 2px 6px rgba(79,70,229,.08);
  --header-height: 72px;
  --font-main: 'Inter', Arial, sans-serif;
  --font-weight: 400;
  --font-title: 700;
  --font-bold: 900;
  --footer-bg: #312e81;
  --nav-bg: var(--white);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-weight: var(--font-weight);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .75rem 0;
  font-weight: var(--font-title);
  color: var(--primary-dark);
  line-height: 1.2;
}
strong {
  font-weight: var(--font-bold);
}
button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/*----------------------------------------
  Site Container
----------------------------------------*/
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.section {
  padding: 4rem 0 3rem 0;
}
.section-alt {
  background: var(--gray);
}

/*----------------------------------------
  Header & Navbar
----------------------------------------*/
.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(49,46,129,.07);
  transition: box-shadow var(--transition);
  min-height: var(--header-height);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: var(--font-bold);
  color: var(--primary);
  gap: 0.5rem;
  text-decoration: none;
}
.brand-logo svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--primary);
}
.brand-text {
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.nav-link,
.dropdown-toggle {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.dropdown-toggle:hover,
.nav-link:focus,
.dropdown-toggle:focus {
  background: var(--gray);
  color: var(--primary);
}

.has-dropdown {
  position: relative;
}
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  z-index: 20;
}
.has-dropdown.open .dropdown {
  display: block;
}
.dropdown-link {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text);
  font-size: 0.98rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
}
.dropdown-link:hover,
.dropdown-link:focus {
  background: var(--gray);
  color: var(--primary);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  border-radius: 4px;
  transition: background var(--transition);
}
.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Search Bar */
.nav-search {
  margin-left: 1rem;
}
#searchForm {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
#searchInput {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 150px;
  transition: border var(--transition);
}
#searchInput:focus {
  border-color: var(--primary);
  outline: none;
}
.icon-search {
  font-size: 1.25rem;
}

/*----------------------------------------
  Hero Section
----------------------------------------*/
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 320px;
  max-width: 540px;
}
.hero-text h1 {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.18rem;
  color: #e0e7ff;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  outline: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--primary-dark);
  color: var(--white);
}
.hero-visual {
  flex: 1 1 220px;
  min-width: 220px;
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip {
  width: 120px;
  height: 90px;
  /* background: #fff; */
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(49,46,129,.15);
  position: absolute;
  left: 40px;
  top: 40px;
}
.trace {
  position: absolute;
  width: 90px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.trace-1 {
  top: 30px;
  left: 120px;
  transform: rotate(12deg);
}
.trace-2 {
  top: 110px;
  left: 70px;
  transform: rotate(-8deg);
}
.trace-3 {
  top: 65px;
  left: 160px;
  width: 65px;
  background: var(--primary-dark);
}

/* Hero background decoration */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 60% 40%, rgba(99,102,241,.09), transparent 80%);
  z-index: 0;
}

/*----------------------------------------
  Section Headers
----------------------------------------*/
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: var(--font-bold);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.08rem;
}

/*----------------------------------------
  Services Cards
----------------------------------------*/
.cards {
  display: grid;
  gap: 2rem;
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card.service {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card.service:hover {
  box-shadow: 0 6px 36px 0 rgba(79,70,229,.13);
  transform: translateY(-2px) scale(1.02);
}
.card.service img {
  width: 100%;
  object-fit: cover;
  height: 180px;
  background: var(--gray);
}
.card-body {
  padding: 1.25rem;
}
.card-body h3 {
  font-size: 1.13rem;
  font-weight: var(--font-title);
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.card-body p {
  color: var(--text-light);
  font-size: 1rem;
}

/*----------------------------------------
  Projects Gallery
----------------------------------------*/
.section-alt {
  background: var(--gray);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.project-card:hover {
  box-shadow: 0 8px 40px 0 rgba(79,70,229,.17);
  transform: translateY(-2px) scale(1.03);
}
.project-card img {
  width: 100%;
  object-fit: cover;
  height: 160px;
  background: var(--gray);
}
.project-card figcaption {
  padding: 1rem;
  flex: 1 1 auto;
}
.project-card h3 {
  font-size: 1.07rem;
  color: var(--primary);
  font-weight: var(--font-title);
  margin-bottom: 0.4rem;
}
.project-card .tags {
  font-size: 0.98rem;
  color: var(--primary-dark);
  margin-bottom: 0.7rem;
  display: flex;
  gap: 0.5rem;
}
.project-card .btn-view {
  font-size: 0.92rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition);
}
.project-card .btn-view:hover,
.project-card .btn-view:focus {
  background: var(--primary-dark);
  color: var(--white);
}
.filter-hint {
  text-align: center;
  font-size: 0.99rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/*----------------------------------------
  Why Us Section
----------------------------------------*/
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}
.why-card h3 {
  color: var(--primary);
  font-size: 1.11rem;
  margin-bottom: 0.5rem;
  font-weight: var(--font-title);
}
.why-card p {
  color: var(--text-light);
  font-size: 0.98rem;
}

/*----------------------------------------
  About Section
----------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.checklist {
  padding-left: 1.25rem;
}
.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-light);
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}
.stats {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.stat-value {
  font-size: 2.3rem;
  font-weight: var(--font-bold);
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 500;
}

/*----------------------------------------
  Contact Section
----------------------------------------*/
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.form-field-full {
  grid-column: 1 / 3;
}
label {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
input, textarea {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 0.15rem;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 2px 8px rgba(99,102,241,.08);
}
.error {
  color: #b91c1c;
  font-size: 0.93rem;
  min-height: 1.2em;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.form-note {
  font-size: 0.98rem;
  color: var(--text-light);
}

/*----------------------------------------
  Lightbox Modal
----------------------------------------*/
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(49,46,129,.75);
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}
.lightbox.show {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: var(--white);
  margin: 0 1.5rem;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 2rem;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1.7rem;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  z-index: 1010;
  transition: background var(--transition), color var(--transition);
}
.lightbox-close {
  top: 2rem; right: 2rem;
}
.lightbox-nav.prev {
  left: 2rem; top: 50%; transform: translateY(-50%);
}
.lightbox-nav.next {
  right: 2rem; top: 50%; transform: translateY(-50%);
}

/*----------------------------------------
  Back to Top Button
----------------------------------------*/
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 900;
}
.back-to-top.show {
  display: flex;
}
.back-to-top:hover,
.back-to-top:focus {
  background: var(--primary-dark);
}

/*----------------------------------------
  Footer
----------------------------------------*/
.site-footer {
  background: var(--footer-bg);
  color: #e0e7ff;
  padding: 3rem 0 1.5rem 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  max-width: 320px;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.11rem;
  color: var(--accent);
  font-weight: var(--font-title);
  margin-bottom: 0.9rem;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.7rem;
}
.footer-links a {
  color: #d1d5fa;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
}
.footer-bottom {
  text-align: center;
  font-size: 0.97rem;
  color: #d1d5fa;
  margin-top: 2rem;
}
.footer-bottom #year {
  font-weight: bold;
}

/*----------------------------------------
  Responsive Design
----------------------------------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  .services-grid,
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    position: fixed;
    left: 0; right: 0;
    top: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    z-index: 49;
    display: none;
  }
  .nav.open .nav-list {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    flex-direction: row;
    gap: 0.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .section {
    padding: 2.5rem 0 1.5rem 0;
  }
  .section-header h2 {
    font-size: 1.35rem;
  }
  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .gallery-grid,
  .services-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field-full {
    grid-column: 1;
  }
  .contact-form {
    padding: 1rem 0.5rem;
  }
  .lightbox img {
    max-width: 98vw;
    max-height: 70vh;
  }
  .lightbox-close,
  .lightbox-nav.prev,
  .lightbox-nav.next {
    font-size: 1.3rem;
    padding: 0.3rem 0.5rem;
  }
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 0.25rem;
  }
}

/*----------------------------------------
  Animations & Transitions
----------------------------------------*/
.btn, .card, .project-card, .nav-link, .dropdown-link, .lightbox, .back-to-top {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}
.section-header, .hero, .gallery-grid, .services-grid, .footer-grid, .why-grid, .about-grid, .contact-form {
  animation: fade-in 1s cubic-bezier(.33,.99,.57,.98) 0.2s;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px);}
  to { opacity: 1; transform: translateY(0);}
}

/*----------------------------------------
  Custom Scrollbar
----------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: var(--gray);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 12px;
}

/*----------------------------------------
  Miscellaneous
----------------------------------------*/
input:disabled, textarea:disabled {
  background: #f3f3f7;
  color: #a1a1aa;
}
::selection {
  background: var(--accent);
  color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}
.hide {
  display: none !important;
}

/*----------------------------------------
  Placeholder for 1000 lines
----------------------------------------*/
/*
  ... (Add more utility classes, animation keyframes, variations, theming, accessibility styles, etc. as needed)
  This file is written to cover the full site structure, responsive behavior, and visual polish.
*/

/* Example Utility Classes */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem !important; }
.mb-1 { margin-bottom: .5rem !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.rounded { border-radius: var(--border-radius) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.w-full { width: 100% !important; }
.max-w-sm { max-width: 480px !important; }
