/* ===== iDX Website Styles ===== */
:root {
  --primary: #1a9b9b;
  --primary-dark: #0f7a7a;
  --primary-light: #2bb8b8;
  --teal: #20b2aa;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-2);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 260px;
}

.stat {
  display: flex;
  flex-direction: column;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ===== About ===== */
.about {
  background: var(--white);
}

/* ===== Services ===== */
.services {
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.service-card.highlight {
  border-color: rgba(26, 155, 155, 0.3);
  background: linear-gradient(180deg, #f0fdfa 0%, white 100%);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 14px;
  color: var(--dark);
}

.service-card ul li {
  font-size: 0.9rem;
  color: var(--gray);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ===== Products ===== */
.products {
  background: white;
}

/* ===== Solutions ===== */
.solutions {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.solutions .section-tag {
  color: var(--primary-light);
}

.solutions .section-header h2 {
  color: white;
}

.solutions .section-header p {
  color: #94a3b8;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.solution-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
}

.solution-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
}

.solution-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.solution-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* ===== Why ===== */
.why {
  background: var(--light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-item {
  text-align: center;
  padding: 24px 16px;
}

.why-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 8px;
  color: var(--dark);
}

.why-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===== Contact ===== */
.contact {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-details p {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.contact-details a {
  color: var(--primary);
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.note {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 20px;
  font-style: italic;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-form .btn {
  align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand img {
  height: 36px;
  margin: 0 auto 10px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-copy {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
  .about-grid,
  .services-grid,
  .products-grid,
  .solutions-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 0;
  }
  .hero {
    padding: 120px 0 80px;
  }
}

/* ===== Company Label ===== */
.company-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== Hero Image Enhancements ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,253,250,0.92) 0%, rgba(224,242,254,0.9) 50%, rgba(248,250,252,0.95) 100%);
  z-index: 0;
}

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

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.hero-image-wrap .hero-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-around;
  min-width: auto;
}

.hero-image-wrap .stat {
  text-align: center;
}

.hero-image-wrap .stat-number {
  font-size: 1.35rem;
}

.hero-image-wrap .stat-label {
  font-size: 0.78rem;
}

/* ===== About Cards with Images ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.about-img-wrap {
  height: 160px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-card:hover .about-img-wrap img {
  transform: scale(1.05);
}

.about-card-body {
  padding: 20px;
}

.about-card-body .icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.about-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.about-card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ===== Product Cards with Images ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.product-img {
  height: 180px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.06);
}

.product-body {
  padding: 22px;
}

.product-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-body p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ===== Contact details links ===== */
.contact-details a {
  color: var(--primary);
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ===== Responsive image adjustments ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-image-wrap {
    display: none;
  }
  .about-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  .about-img-wrap,
  .product-img {
    height: 200px;
  }
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float:active {
  transform: scale(0.96);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
}
