.internal-hero {
  padding: 140px 0 60px;
  background: var(--bg-light);
  text-align: center;
}

.internal-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.internal-content {
  padding: 60px 0;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.placeholder-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Mobile-First Responsive Design */

/* ==============================================
  CSS Custom Properties (Variables) for easy maintenance
  ==============================================
*/
:root {
  --primary-color: #ff6b35;
  --primary-hover: #e55a2b;
  --secondary-color: #1e3a8a;
  --text-dark: #333;
  --text-light: #666;
  --bg-hero: #f9f4ee;
  --bg-light: #f8fafc;
  --bg-medium: #f1f5f9;
  --bg-white: white;
}

body[data-theme="dark"] {
  --text-dark: #f8fafc;
  --text-light: #cbd5f5;
  --bg-white: #0f172a;
  --bg-light: #111b2f;
  --bg-medium: #0b1224;
  background-color: #020617;
  color: var(--text-dark);
}

/* Base mobile styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-variant-ligatures: common-ligatures;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.75rem;
}

.link-inline {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.link-inline:hover {
  text-decoration: underline;
}

/* Enhanced text rendering and spacing */
p, h1, h2, h3, h4, h5, h6, li, span, div, a {
  word-spacing: normal;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Prevent text overflow and overlapping */
.container, .nav-container, .hero-container {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Navigation - Mobile First */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 0.35rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 107, 53, 0.05);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  min-height: 50px;
}

body[data-theme="dark"] .navbar {
  background: rgba(2, 6, 23, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-image-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.logo-text-container {
  display: none; /* Hide on mobile to save space */
  flex-direction: column;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  white-space: nowrap;
}

.logo-subtext {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Mobile Navigation Menu */
.nav-menu {
  display: none; /* Hidden by default on mobile */
  position: fixed;
  left: -100%;
  top: 50px; /* Below navbar */
  flex-direction: column;
  background-color: var(--bg-white);
  width: 100%;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  padding: 2rem 0;
  height: calc(100vh - 50px);
  overflow-y: auto;
  z-index: 999;
  list-style: none;
  will-change: transform;
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
  left: 0;
  display: flex;
}

.nav-menu li {
  margin: 1rem 0;
  list-style: none;
}

.nav-menu a,
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  display: block;
  transition: all 0.3s ease;
  border-radius: 999px;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background-color: rgba(255, 107, 53, 0.1);
}

.nav-link.nav-expand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border-radius: 12px;
}

.nav-caret {
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-left: auto;
}

.has-mega {
  position: relative;
}

.mega-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  text-align: left;
}

.has-mega.open .mega-menu {
  display: flex;
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mega-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.mega-menu a {
  border-radius: 10px;
  font-weight: 600;
  text-align: left;
}

.mega-menu a:hover {
  background: rgba(255, 107, 53, 0.08);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 10px; /* Increased from 5px for better touch area */
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  min-width: 44px; /* Accessibility standard */
  min-height: 44px; /* Accessibility standard */
  justify-content: center;
}

.nav-actions {
  display: none; /* hidden on mobile, shown on desktop */
  align-items: center;
  gap: 0.75rem;
}

.nav-actions button {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 999px;
  transition: background 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.nav-actions button:hover {
  background: rgba(15, 23, 42, 0.08);
}

.nav-quick-contact {
  display: none;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  align-items: center;
  gap: 0.35rem;
}

.nav-cta {
  text-decoration: none;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background: var(--text-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: all 0.25s ease;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

.nav-link.active {
  background: var(--text-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-search-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
  padding: 1.5rem;
}

body.search-open .nav-search-panel {
  opacity: 1;
  visibility: visible;
}

.nav-search-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.nav-search-form input {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 1rem;
}

.nav-search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  min-width: 44px;
  min-height: 44px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section with photo slider */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #020617;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.85));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.9) 75%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  padding: 110px 15px 60px;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

.hero-container {
  max-width: 800px;
  width: 100%;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  color: var(--bg-white);
}

.hero-layout-alt {
  max-width: 1080px;
}

.hero-copy {
  margin-bottom: 1.5rem;
}

.hero-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.hero-heading {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 8px 25px rgba(15, 23, 42, 0.6);
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 1.8rem;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-secondary-btn {
  background: rgba(15, 23, 42, 0.7);
  border-color: transparent;
  color: #e5e7eb;
}

.hero-secondary-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
}

/* Impact Stats */
.impact-stats {
  background: var(--bg-white);
}

.impact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
  max-width: 250px;
  text-align: center;
  min-height: 48px; /* Improved touch target */
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #f8fafc;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.2;
}

section h3 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

section p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about {
  background: var(--bg-white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 107, 53, 0.1);
  margin-bottom: 1rem;
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.15);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Products Section */
.products {
  background: var(--bg-white);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-light);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.product-card p {
  color: var(--text-light);
}

.product-card ul {
  list-style: none;
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.product-card li {
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.product-card li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: -0.9rem;
}

.products-grid.pro {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.pro-card {
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
  overflow: hidden;
}

.product-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-color);
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-specs div {
  background: var(--bg-light);
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.product-specs strong {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
}

.product-feature-columns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-feature-columns h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.product-datasheet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  min-height: 44px;
}

.product-more {
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.product-comparison {
  margin-top: 3rem;
  background: var(--bg-light);
  border-radius: 18px;
  padding: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
}

.product-comparison table {
  width: 100%;
  border-collapse: collapse;
}

.product-comparison th,
.product-comparison td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.product-comparison th {
  color: var(--secondary-color);
}

/* Education & Training */
.education {
  background: var(--bg-light);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.education-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--secondary-color);
}

.education-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.education-card p {
  color: var(--text-light);
}

.education-card ul {
  list-style: none;
  padding-left: 1.2rem;
  margin-top: 0.75rem;
}

.education-card li {
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.education-card li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: -0.9rem;
}

.training-programs {
  background: var(--bg-white);
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.training-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.training-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--primary-color);
}

.training-agenda {
  list-style: none;
  margin: 0;
  padding-left: 1.2rem;
}

.training-agenda li {
  margin-bottom: 0.4rem;
  color: var(--text-light);
  position: relative;
}

.training-agenda li::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  color: var(--primary-color);
}

.training-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.training-gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.training-testimonial {
  font-style: italic;
  color: var(--text-light);
}

.training-note {
  color: var(--text-light);
  font-size: 0.9rem;
}

.training-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--bg-light);
}

.technologies {
  background: var(--bg-medium);
  padding: 60px 0;
}

.tech-swiper {
  width: 100%;
  padding: 40px 0 60px;
  margin-top: 2rem;
}

.tech-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.tech-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tech-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.tech-card ul {
  list-style: none;
  padding: 0;
}

.tech-card li {
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.tech-card li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Contact Section */
.contact {
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-map-column {
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.contact-buttons {
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
}

.contact-map-column iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

/* Contact Form Styles */
.contact-form-column {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: var(--bg-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #10b981;
}



.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #f5c6cb;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Partners Section */
.partners {
  background: var(--bg-white);
  padding: 60px 0;
}

.partners-swiper {
  width: 100%;
  padding: 40px 0;
  overflow: visible;
}

.partner-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.partner-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}



.partner-logo i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.partner-logo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  align-items: center

}

.partner-logo p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  align-items: center
}



/* Glimpses Section - COMPLETE FIX */
.glimpses {
  background: var(--bg-white);
  padding: 60px 0;
}

.glimpses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Equal columns on desktop */
  gap: 1.5rem;
  margin-top: 2rem;
}

.glimpse-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--secondary-color);
  
  /* Flexbox layout for vertical alignment */
  display: flex;
  flex-direction: column;
  height: 100%; /* Force equal height */
  min-height: 500px; /* Ensure minimum height consistency */
}

.glimpse-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--secondary-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  align-self: flex-start; /* Align to the left */
}

.glimpse-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  flex-grow: 0; /* Don't expand */
}

.glimpse-card p {
  color: var(--text-light);
  flex-grow: 1; /* Let content expand */
  margin-bottom: 1rem;
}

.glimpse-logos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  order: 3; /* Place before photo */
}

.glimpse-logos span {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.glimpse-photo {
  margin-top: auto; /* Push photo to bottom */
  border-radius: 8px;
  overflow: hidden;
  height: 160px;
  flex-shrink: 0; /* Don't shrink the photo */
  /* Place it last */
}

.glimpse-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}


/* FAQ Section */
.faq {
  background: var(--bg-white);
}

.faq-accordion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  min-height: 48px;
}

.faq-item button[aria-expanded="true"] {
  background: var(--bg-light);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
}

.faq-panel p {
  margin: 1rem 0;
}

.faq-item.open .faq-panel {
  max-height: 500px;
  padding-bottom: 1rem;
}

/* Swiper Navigation & Pagination */
.hero-pagination {
  bottom: 30px !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  opacity: 0.5;
}

.hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary-color);
}

.hero-button-next,
.hero-button-prev {
  color: var(--primary-color) !important;
  background: rgba(255, 255, 255, 0.9);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 4;
}

.hero-button-next:after,
.hero-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

.tech-pagination {
  bottom: 10px !important;
}

.tech-pagination .swiper-pagination-bullet {
  background: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: var(--bg-white);
  text-align: center;
  padding: 2rem 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Safe Area Insets for Notched Devices */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
  
  .hero-overlay {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
    padding-bottom: max(60px, env(safe-area-inset-bottom));
  }
}

/* ================================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ================================================ */
@media (max-width: 767px) {
  /* Improved touch targets */
  .nav-menu a,
  .nav-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn {
    min-height: 48px;
    padding: 14px 24px;
  }
  
  /* Better font sizing */
  .glimpse-tag,
  .product-label,
  .section-kicker,
  .training-label {
    font-size: 0.85rem;
  }
  
  .glimpse-logos span {
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
  }
  
  /* Mega menu mobile behavior */
  .mega-menu {
    max-width: 100%;
    margin: 0.5rem;
    overflow-x: hidden;
  }
  
  /* Form improvements */
  .contact-form-column {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .recaptcha-container {
    padding: 0.75rem;
    overflow-x: auto;
  }
  
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

/* Landscape mode on phones */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  .hero-overlay {
    padding: 80px 15px 40px;
  }
  
  .nav-menu.active {
    height: calc(100vh - 50px);
    overflow-y: scroll;
  }
}

/* Small tablets and large phones (640px - 768px) */
@media (min-width: 640px) and (max-width: 767px) {
  .services-grid,
  .products-grid,
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-heading {
    font-size: 2.2rem;
  }
}

/* ================================================
   TABLET STYLES (768px - 1023px)
   ================================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding-top: 70px;
  }

  .hero-heading {
    font-size: 2.4rem;
  }

  .hero-cta-row {
    flex-direction: row;
    align-items: center;
  }
  
  .btn {
    width: auto;
    min-width: 150px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .contact-buttons {
    flex-direction: row;
  }
  
  .placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .product-feature-columns {
    flex-direction: row;
  }

  .education-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
 
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
  
  .contact-form-column {
    padding: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .contact-map-column {
    grid-column: 1 / -1;
  }
  
  section {
    padding: 80px 0;
  }
  
  section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    width: auto;
    overflow: visible;
    flex: 1;
    justify-content: center;
    gap: 0.3rem;
  }
  
  .nav-menu li {
    margin: 0 0.4rem;
  }
  
  .nav-menu a {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
  }
  
  .nav-menu a:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
  }
  
  .nav-quick-contact {
    display: inline-flex;
  }
  
  .mega-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 620px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hamburger {
    display: none;
  }
  
  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 1rem;
  }
  
  .logo-text-container {
    display: flex;
    align-items: center;
  }
  
  .logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
  }
  
  .hero-swiper {
    min-height: 700px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .partners-swiper {
    padding: 40px 20px;
  }
  
  .timeline-content {
    padding: 3rem;
  }
  
  .timeline-year {
    font-size: 3.5rem;
  }
}

/* Tablet form improvements */
@media (min-width: 768px) {
  .contact-buttons {
    flex-direction: row; /* Side by side */
    align-items: stretch; /* Force same height */
  }

  .contact-buttons .btn {
    flex: 1; /* Make both buttons equal width */
    width: auto; /* Allow flex to control width */
    max-width: none; /* Remove the 250px limit so they can fill the space */
    display: flex; /* Flexbox for internal alignment */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    white-space: nowrap; /* CRITICAL: Prevents "Send Request" from wrapping */
    height: auto; /* Let them stretch */
  }
}

/* ================================================
   DESKTOP STYLES (1024px+)
   ================================================ */
@media (min-width: 1024px) {
  .hero-heading {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }

  .glimpses-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
  
  .downloads-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
  
  .placeholder-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
  
  
  
  .nav-logo {
    gap: 10px;
  }
  
  .logo-image-nav {
    width: 40px;
    height: 40px;
  }
  
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .contact-map-column {
    grid-column: auto;
  }
  
  .has-mega:hover .mega-menu {
    display: flex;
  }
}

/* ================================================
   LARGE DESKTOP STYLES (1200px+)
   ================================================ */
@media (min-width: 1200px) {
  .logo-image {
    width: 120px;
    height: 120px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .timeline-content {
    padding: 3.5rem;
  }
  
  .timeline-year {
    font-size: 4rem;
  }
}

/* ================================================
   ACCESSIBILITY & PRINT STYLES
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .navbar, .hamburger, .mobile-menu-overlay {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

