/* ============================================
   CTX Automation - Redesigned Site Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #002b5c;
  --navy-dark: #001a3a;
  --navy-light: #003d80;
  --accent: #f9e500;
  --accent-hover: #e0ce00;
  --accent-on-light: #b5a300;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #f0f2f5;
  --gray-200: #e1e4e8;
  --gray-300: #d0d4da;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header.scrolled {
  background: rgba(0, 27, 58, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition);
}

.site-header.scrolled .header-inner {
  height: 64px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(177.78vh, 100vw);
  height: max(100vh, 56.25vw);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 27, 58, 0.92) 0%,
    rgba(0, 43, 92, 0.8) 40%,
    rgba(0, 43, 92, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 12px;
}

.hero-description strong {
  color: rgba(255,255,255,0.95);
}

.hero-description .highlight {
  color: var(--accent);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.hero-play-btn svg {
  flex-shrink: 0;
}

.hero-play-btn:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--navy);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* --- Services Section --- */
.services {
  background: var(--off-white);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
}

/* --- Expertise Section --- */
.expertise {
  background: var(--white);
}

.expertise-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expertise-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.expertise-item.active {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.expertise-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.expertise-toggle:hover {
  background: var(--gray-100);
}

.expertise-item.active .expertise-toggle {
  background: var(--navy);
}

.expertise-toggle h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: color var(--transition);
}

.expertise-item.active .expertise-toggle h3 {
  color: var(--white);
}

.expertise-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.expertise-chevron svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-500);
  transition: stroke var(--transition);
}

.expertise-item.active .expertise-chevron {
  transform: rotate(180deg);
}

.expertise-item.active .expertise-chevron svg {
  stroke: var(--white);
}

.expertise-content {
  display: none;
  padding: 0 28px 28px;
}

.expertise-item.active .expertise-content {
  display: block;
}

.expertise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.expertise-gallery {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.expertise-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.expertise-gallery img.gallery-active {
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.gallery-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}

.gallery-btn:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.expertise-details h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 10px;
  margin-top: 20px;
}

.expertise-details h4:first-child {
  margin-top: 0;
}

.expertise-details ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expertise-details li {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.expertise-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-on-light);
}

/* --- Solutions Section --- */
.solutions {
  background: var(--navy-dark);
  color: var(--white);
}

.solutions .section-title {
  color: var(--white);
}

.solutions .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.solutions-carousel {
  position: relative;
  overflow: hidden;
}

.solutions-track {
  display: flex;
  transition: transform 0.5s ease;
}

.solution-slide {
  min-width: 100%;
  padding: 0 12px;
}

.solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.solution-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.solution-images .img-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.solution-images .img-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.solution-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.solution-images a:hover img {
  transform: scale(1.05);
}

.solution-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.3;
}

.solution-info li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.solution-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
  transition: gap var(--transition);
}

.solution-link:hover {
  gap: 12px;
}

.solution-link::after {
  content: '\2192';
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* --- Contact Section --- */
.contact {
  background: var(--off-white);
}

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

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.contact-form-wrapper h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-wrapper .form-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #b91c1c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,43,92,0.1);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,43,92,0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Form Feedback Messages --- */
.form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

.form-feedback-success {
  background: #e6f9ed;
  color: #0d7a3e;
  border: 1px solid #b0e8c6;
}

.form-feedback-error {
  background: #fef0f0;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.contact-info {
  padding: 20px 0;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info .info-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.info-card {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.info-card p,
.info-card a {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.info-card a:hover {
  color: var(--navy);
}

.contact-map {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--gray-200);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.site-footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* --- Solutions Page --- */
.page-hero {
  background: var(--navy-dark);
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero p a {
  color: var(--accent);
  font-weight: 600;
}

.page-hero p a:hover {
  text-decoration: underline;
}

.solutions-list {
  padding: 80px 0;
  background: var(--off-white);
}

.solution-entry {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.solution-entry:hover {
  box-shadow: var(--shadow-md);
}

.solution-entry-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.solution-entry:nth-child(even) .solution-entry-inner {
  direction: rtl;
}

.solution-entry:nth-child(even) .solution-entry-inner > * {
  direction: ltr;
}

.solution-entry-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 360px;
}

.solution-entry-images .img-primary {
  grid-column: 1 / -1;
  overflow: hidden;
}

.solution-entry-images .img-secondary {
  overflow: hidden;
  position: relative;
}

.solution-entry-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  cursor: pointer;
}

.solution-entry-images a:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  pointer-events: none;
}

.solution-entry-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-entry-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.3;
}

.solution-entry-text li {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
}

.solution-entry-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .solution-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .solution-entry-inner {
    grid-template-columns: 1fr;
  }

  .solution-entry:nth-child(even) .solution-entry-inner {
    direction: ltr;
  }

  .solution-entry-images {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 45, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .nav-menu a {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: all 0.2s ease;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav-menu a.active::after {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 10000;
  }

  .logo {
    padding: 4px 0 4px 8px;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .expertise-inner {
    grid-template-columns: 1fr;
  }

  .expertise-gallery {
    max-height: 280px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .solution-images {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .solution-entry-images {
    min-height: 220px;
  }

  .solution-entry-text {
    padding: 24px;
  }
}
