@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: transparent;
  --surface: transparent;
  --surface-strong: transparent;
  --surface-hover: transparent;
  --border: rgba(2, 6, 23, 0.12);
  --border-hover: rgba(0, 102, 255, 0.2);
  --text: #071427;
  --muted: #64748b;
  --primary: #0066ff;
  --primary-rgb: 0, 102, 255;
  --primary-strong: #0050cc;
  --secondary: #7000ff;
  --secondary-rgb: 112, 0, 255;
  --accent: #ff007a;
  --accent-rgb: 255, 0, 122;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 24px rgba(0, 102, 255, 0.12);
  --nav-height: 80px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(27, 58, 194, 0.15);
  border-radius: 5px;
  border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

body.loading,
body.menu-open {
  overflow: hidden;
}

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

/* Background Effects */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.bg-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.8) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.8) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 122, 0.6) 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(0, 240, 255, 0.1);
  border-left-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--primary);
  text-transform: uppercase;
  animation: pulse 1.5s infinite ease-in-out;
}

.loader-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.loader-logo {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Main Container */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 2rem 5rem;
  position: relative;
  z-index: 10;
}

/* General Layout Elements */
.section {
  margin-bottom: 8rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-top: 0.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 50%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* Glassmorphism Card Style */
.glass-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #020408;
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(0, 102, 255, 0.05);
  border-color: var(--primary);
}

/* HERO SECTION */
.hero {
  min-height: calc(100vh - var(--nav-height) - 4rem);
  display: grid;
  align-content: center;
  padding: 2rem 0;
}

.hero-compact {
  margin-bottom: 3rem;
}

.page-hero {
  position: relative;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 255, 0.06) 100%);
  pointer-events: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px 0 0 4px;
  z-index: 1;
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.hero-compact .glass-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0.75rem 0 1rem;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.page-hero-lead,
.hero-compact .glass-card > p:last-child {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  max-width: 720px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 30%, #a5b4fc 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-chips span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s ease;
}

.hero-chips span:hover {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.1);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-image {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover img {
  transform: scale(1.04);
}

.hero-panel {
  position: absolute;
  bottom: -20px;
  right: -20px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-panel p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Floating 3D Technology Elements */
.float-element {
  position: absolute;
  pointer-events: none;
  animation: floatRing 8s ease-in-out infinite alternate;
  z-index: 2;
}

.float-element.ring-1 {
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  top: -20px;
  left: -20px;
  animation-duration: 12s;
}

.float-element.ring-2 {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(112, 0, 255, 0.2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  bottom: -30px;
  left: -10px;
  animation-duration: 10s;
  animation-delay: -2s;
}

.float-element.dot-1 {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
  top: 30%;
  right: -10px;
  animation-duration: 7s;
}

@keyframes floatRing {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(180deg); }
}

/* STATS SECTION */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 8rem;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: transparent;
  border-color: var(--primary);
  transform: translateY(-5px);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* SERVICES CARD GRID */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 2;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  z-index: 0;
}

.service-card:hover .service-card-bg {
  opacity: 1;
  transform: scale(1.05);
}

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

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 3;
  color: #ffffff;
}

.service-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  position: relative;
  z-index: 3;
}

/* SERVICES LIST PAGE */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem;
  border-radius: 28px;
  background: transparent;
  border: 1px solid var(--border);
}

.service-detail:nth-child(even) {
  grid-template-columns: 1.2fr 0.8fr;
}

.service-detail:nth-child(even) .service-meta {
  order: 2;
}

.service-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-meta-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.service-meta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail:hover .service-meta-img img {
  transform: scale(1.05);
}

.service-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-info p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.service-bullets {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.service-bullets li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
  color: var(--text);
}

.service-bullets li strong {
  color: var(--primary);
  font-weight: 600;
}

.service-bullets li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--primary);
}

/* PORTFOLIO GRID & DETAILS */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow);
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.06);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-challenge,
.project-solution {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.project-challenge strong,
.project-solution strong {
  color: var(--text);
  font-weight: 600;
}

.project-stack {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

/* Project website link */
.project-website {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.project-website a {
  color: var(--primary);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.project-website a:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #020408;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.12);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow);
}

/* Filter Controls */
.filter-panel {
  margin-bottom: 3rem;
}

.filter-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.filter-btn.active,
.filter-btn:hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.15);
}

/* CASE STUDIES CAROUSEL */
.case-studies {
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
}

.case-card.active {
  display: grid;
  animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-card-copy {
  display: flex;
  flex-direction: column;
}

.case-card-copy h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.case-card-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.case-card-copy ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.case-card-copy ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.case-card-copy ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.case-card-media {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

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

/* TESTIMONIALS SLIDER */
.testimonials {
  position: relative;
}

.testimonial-slider {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.testimonial-card {
  padding: 3rem;
  text-align: center;
  display: none;
}

.testimonial-card.active {
  display: block;
  animation: fadeSlideIn 0.5s ease forwards;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-card strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

/* INDUSTRIES PAGE & GRIDS */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.industry-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s ease;
}

.industry-grid span:hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}

.industry-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-showcase article {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.industry-showcase article:hover {
  border-color: var(--primary);
  background: transparent;
  transform: translateY(-4px);
}

.industry-showcase article h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.industry-showcase article p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.three-column-grid article {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.three-column-grid article h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.three-column-grid article p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ABOUT PAGE & TIMELINE */
.leadership {
  margin-top: 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-grid article {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-grid article:hover {
  border-color: var(--primary);
  background: transparent;
  transform: translateY(-4px);
}

.team-grid article strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-grid article span {
  font-size: 0.85rem;
  color: var(--primary);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  list-style: none;
  gap: 2.5rem;
  margin-top: 2rem;
}

.timeline-list li {
  position: relative;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.timeline-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.cert-grid span:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: scale(1.02);
}

/* PRICING PLANS */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.price-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-card.highlight {
  background: transparent;
  border-color: var(--secondary);
  box-shadow: 0 12px 28px rgba(112, 0, 255, 0.15);
  position: relative;
}

.price-card.highlight::after {
  content: "RECOMMENDED";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--secondary);
  color: var(--text);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.price-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.price-card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.25rem;
}

.price-card ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.comparison {
  margin-top: 5rem;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison th,
.comparison td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.comparison td {
  font-size: 0.95rem;
  color: var(--muted);
}

.comparison tr:hover td {
  color: var(--text);
  background: rgba(255, 255, 255, 0.01);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 1.5rem;
  background: transparent;
}

.table-wrapper table {
  min-width: 580px;
  margin-top: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-grid article {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.support-grid article h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.support-grid article p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CAREERS & OPEN ROLES */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.role-grid article {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.role-grid article:hover {
  border-color: var(--primary);
  background: transparent;
  transform: translateY(-4px);
}

.role-grid article h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.role-grid article p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefits-grid article {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.benefits-grid article h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.benefits-grid article p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CONTACT PAGE & FORM */
.contact-page .hero-compact {
  margin-bottom: 2rem;
}

.contact-section {
  margin-bottom: 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card,
.contact-details article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-info-card:hover,
.contact-details article:hover {
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.08);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
}

.contact-info-card h3,
.contact-details article h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-info-card p,
.contact-details article p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-info-card a,
.contact-details article a {
  font-family: var(--font-display);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  word-break: break-word;
}

.contact-info-card a:hover,
.contact-details article a:hover {
  color: var(--primary-strong);
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-header {
  margin-bottom: 2rem;
}

.contact-form-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  margin: 0.5rem 0 0.75rem;
}

.contact-form-header p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 102, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Map Styling */
.map-card {
  margin-top: 2rem;
  margin-bottom: 5rem;
}

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 0;
  border: none;
  z-index: 10;
}

.map-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Footer & Other elements */
.contact-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem;
  border-radius: 30px;
  background: transparent;
  border: 2px solid var(--primary);
  margin-bottom: 8rem;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-top: 0.5rem;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem 2.5rem;
  background: #07101f;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  font-size: 0.95rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-links.quick-links {
  display: block;
}

.footer-links.quick-links h3 {
  margin-bottom: 0.75rem;
}

.footer-links.quick-links a {
  display: inline-block;
  margin: 0 1rem 0.6rem 0;
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: nowrap;
}

.social-links a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-links h3 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    margin-bottom: 1rem;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* FAB Buttons & Cursor */
.back-to-top,
.whatsapp-fab {
  position: fixed;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020408;
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
}

.back-to-top {
  bottom: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.4);
}

.whatsapp-fab {
  bottom: 6.5rem;
  background: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* Responsive Grid Adapters */
@media (max-width: 1200px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .nav-shell {
    padding: 0 1.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    order: -1;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-panel {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }
  
  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 4rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .service-detail,
  .service-detail:nth-child(even) {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }
  
  .service-detail:nth-child(even) .service-meta {
    order: 0;
  }

  .service-info h2 {
    font-size: 1.75rem;
  }
  
  .case-card {
    padding: 2.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .three-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .industry-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .support-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    padding: 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  main {
    padding: calc(var(--nav-height) + 1rem) 1rem 3.5rem;
  }

  .nav-shell {
    padding: 0 1rem;
  }
  
  .section {
    margin-bottom: 4rem;
  }

  .hero-compact {
    margin-bottom: 2rem;
  }

  .hero-compact .glass-card h1,
  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-hero {
    padding: 2rem 1.5rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
  }
  
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .eyebrow::after {
    width: 24px;
  }
  
  .glass-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--nav-height));
    max-height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem max(2.5rem, env(safe-area-inset-bottom));
    gap: 0.25rem;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    font-size: 1rem;
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

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

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  /* Hero Section Mobile */
  .hero {
    min-height: auto;
    padding: 1.5rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-copy h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
  
  .hero-actions {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  
  .hero-actions .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: 140px;
  }
  
  .hero-chips {
    gap: 0.5rem;
  }
  
  .hero-chips span {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-visual {
    order: -1;
    max-width: 100%;
    margin: 0;
  }
  
  .hero-image {
    aspect-ratio: 3/2;
    border-radius: 20px;
  }
  
  .hero-panel {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    margin-top: 1rem;
    padding: 1.25rem;
  }
  
  .hero-panel strong {
    font-size: 0.95rem;
  }
  
  .hero-panel p {
    font-size: 0.8rem;
  }
  
  .float-element {
    display: none;
  }
  
  /* Stats Section Mobile */
  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .stat-item {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  
  .stat-item strong {
    font-size: 2rem;
  }
  
  .stat-item span {
    font-size: 0.75rem;
  }
  
  /* Service Cards Mobile */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
    min-height: 200px;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.85rem;
  }

  .service-detail {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .service-info h2 {
    font-size: 1.5rem;
  }

  .service-info p {
    font-size: 0.95rem;
  }

  .filter-controls {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }

  .portfolio-grid {
    gap: 1.5rem;
  }

  .project-content {
    padding: 1.5rem;
  }
  
  /* Case Studies Mobile */
  .case-card {
    padding: 1.5rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .case-card-copy h3 {
    font-size: 1.4rem;
  }
  
  .case-card-copy p {
    font-size: 0.9rem;
  }
  
  .case-card-media {
    aspect-ratio: 3/2;
  }
  
  /* Testimonials Mobile */
  .testimonial-card {
    padding: 1.5rem 1.25rem;
  }
  
  .testimonial-card p {
    font-size: 1.05rem;
  }
  
  /* Industries Grid Mobile */
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .industry-grid span {
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Three Column Grid Mobile */
  .three-column-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .three-column-grid article h3 {
    font-size: 1.05rem;
  }
  
  .three-column-grid article p {
    font-size: 0.85rem;
  }

  .industry-showcase,
  .team-grid,
  .role-grid,
  .support-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0;
  }

  .contact-info-card,
  .contact-details article {
    padding: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    width: 100%;
  }

  .price-card {
    padding: 1.75rem;
  }

  .price-card h2 {
    font-size: 1.2rem;
  }

  .price-card .price {
    font-size: 1.8rem;
  }

  .comparison th,
  .comparison td {
    padding: 0.85rem;
    font-size: 0.85rem;
  }

  .timeline-list {
    padding-left: 1.5rem;
    gap: 1.75rem;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    opacity: 0.2;
    filter: blur(100px);
  }
  
  /* CTA Mobile */
  .contact-cta {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
  
  .contact-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
  }
  
  .contact-cta .btn {
    width: 100%;
  }
  
  #map {
    height: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 0.8rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
  }

  .back-to-top,
  .whatsapp-fab {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  
  .whatsapp-fab {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding: 2.5rem 1rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }
  
  .brand-logo {
    height: 48px;
    max-width: 200px;
  }
  
  .nav-menu {
    padding: 1.5rem 1rem;
    gap: 0;
  }
  
  main {
    padding: calc(var(--nav-height) + 0.75rem) 0.75rem 2.5rem;
  }

  .nav-shell {
    padding: 0 0.75rem;
  }
  
  .hero-copy h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .eyebrow {
    font-size: 0.65rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    min-width: auto;
    width: 100%;
  }
  
  .stats-panel {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-item strong {
    font-size: 1.6rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem) !important;
  }
  
  .contact-cta h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
  }
  
  .price-grid,
  .cert-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-panel {
    padding: 1rem;
  }

  .loader-text {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 0 1rem;
  }
  
  .back-to-top,
  .whatsapp-fab {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    right: max(0.75rem, env(safe-area-inset-right));
  }
}

/* Industry and Role card image helper styles */
.industry-card-img,
.role-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.industry-card-img img,
.role-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.industry-showcase article:hover .industry-card-img img,
.role-grid article:hover .role-card-img img {
  transform: scale(1.05);
}

