/* Dronix Pro — Static Website Styles */

:root {
  --navy-deep: #0f172a;
  --navy: #1e3a5f;
  --sky: #38bdf8;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --whatsapp: #25d366;
  --text: #0f172a;
  --text-muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--navy-deep); color: #fff; position: relative; }
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(37,99,235,0.55), 0 0 0 3px rgba(255,255,255,0.15);
  filter: brightness(1.1);
}
.desktop-nav .btn-primary,
.mobile-nav .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 14px -2px rgba(37,99,235,0.45);
}
.desktop-nav .btn-primary:hover,
.mobile-nav .btn-primary:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 12px 28px -6px rgba(245,158,11,0.7), 0 0 0 3px rgba(255,255,255,0.25);
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy-deep); }
.btn-white:hover { background: #f1f5f9; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1da851; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
  background: transparent;
}
header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 0.5rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--sky));
  color: #fff; font-weight: 900; font-size: 1.125rem;
}
header.scrolled .logo-mark { color: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
header.scrolled .logo-title { color: var(--navy-deep); }
.logo-tag { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); }
header.scrolled .logo-tag { color: var(--text-muted); }

.desktop-nav { display: none; align-items: center; gap: 0.25rem; }
.desktop-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-radius: 0.375rem;
  transition: var(--transition);
}
header.scrolled .desktop-nav a { color: var(--text); }
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--accent); }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
}
header.scrolled .hamburger,
header.scrolled .hamburger::before,
header.scrolled .hamburger::after { background: var(--navy-deep); }
.hamburger::before,
.hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.875rem 1rem;
  color: var(--text);
  font-weight: 600;
  border-radius: 0.5rem;
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--bg-alt); color: var(--accent); }
.mobile-nav .btn { margin-top: 0.5rem; }

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center;
  animation: heroDrift3D 20s ease-in-out infinite;
  will-change: transform;
}
.hero-bg video,
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none !important; transform: scale(1.1) !important; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-top: 80px;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sky);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(56,189,248,0.15);
  border-radius: 9999px;
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  z-index: 2;
}
.scroll-down::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--sky));
  color: #fff;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header.left { text-align: left; margin: 0 0 2rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-dark .section-title { color: #fff; }
.section-desc { color: var(--text-muted); font-size: 1.125rem; }
.text-center { text-align: center; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Feature Cards */
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 0.75rem;
  display: grid; place-items: center;
  font-size: 1.75rem;
  background: var(--bg-alt);
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Split */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: repeat(2, 1fr); } }
.split-content p { color: var(--text-muted); margin-bottom: 1rem; }
.split-content .btn { margin-top: 1rem; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.check-list {
  list-style: none;
  margin: 1rem 0;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Service Cards */
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-body { padding: 1.5rem; }
.service-body h3 { font-size: 1.125rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.service-body p { color: var(--text-muted); font-size: 0.95rem; }

/* Counters */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .counter-grid { grid-template-columns: repeat(4, 1fr); } }
.counter-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.counter-label {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

/* Industry Cards */
.industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}
.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.industry-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.industry-card h3 { font-size: 1.125rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.industry-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Why Cards */
.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-lg); }
.why-number {
  width: 44px; height: 44px;
  border-radius: 0.75rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--sky));
  color: #fff; font-weight: 900; font-size: 1.125rem;
  margin-bottom: 1rem;
}
.why-card h3 { font-size: 1.125rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; }

/* CTA Section */
.section-cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--sky));
  color: #fff;
  text-align: center;
}
.section-cta h2 { color: #fff; margin-bottom: 1rem; }
.section-cta p { color: rgba(255,255,255,0.85); }
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--sky));
  color: #fff;
  padding: 10rem 0 5rem;
}
.page-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sky);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(56,189,248,0.15);
  border-radius: 9999px;
}
.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  max-width: 800px;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 600px;
}

/* Service Detail */
.services-list { display: flex; flex-direction: column; gap: 4rem; }
.service-detail {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .service-detail { grid-template-columns: repeat(2, 1fr); } }
.service-detail-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.service-detail-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}
.service-detail-content p { color: var(--text-muted); margin-bottom: 1rem; }

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-body { padding: 1.5rem; }
.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.project-body h3 { font-size: 1.125rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 0.5rem; }
.project-body p { color: var(--text-muted); font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.contact-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  display: grid; place-items: center;
  background: var(--bg-alt);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 0.25rem; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; }
.contact-card a { color: var(--accent); text-decoration: underline; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }

.contact-form-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* Map */
.map-section { padding: 0; }
.map-container {
  width: 100%;
  height: 450px;
  background: var(--bg-alt);
}
.map-container iframe { width: 100%; height: 100%; display: block; }

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--sky));
  color: #fff;
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo .logo-mark { background: rgba(255,255,255,0.1); }
.footer-logo .logo-title { color: #fff; }
.footer-logo .logo-tag { color: rgba(255,255,255,0.7); }
.footer-desc { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6; }
.footer h4 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.footer-links,
.footer-contact { list-style: none; }
.footer-links li,
.footer-contact li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-contact a { color: rgba(255,255,255,0.8); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover,
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }

/* Floating Buttons */
.floating-btn {
  position: fixed;
  right: 1.5rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.floating-btn:hover { transform: scale(1.1); }
.whatsapp-btn { bottom: 1.5rem; background: var(--whatsapp); }
.call-btn { bottom: 5.5rem; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(14,165,233,0); }
}

/* Utilities */
.text-white { color: #fff; }

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 3D & Background Enhancements ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,15,40,0.92), rgba(15,25,60,0.75) 55%, rgba(30,90,160,0.55));
  z-index: 0;
}
/* Floating 3D image layer — duplicates the same background so the drift never reveals a seam */
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: heroDrift3D 18s ease-in-out infinite;
  will-change: transform;
  z-index: -1;
}
.page-hero > .container { position: relative; z-index: 1; }

body.page-about   .page-hero { background-image: url("../images/bg-about.webp"); }
body.page-services .page-hero { background-image: url("../images/bg-services.webp"); }
body.page-industries .page-hero { background-image: url("../images/bg-industries.webp"); }
body.page-projects .page-hero { background-image: url("../images/bg-projects.webp"); }
body.page-contact .page-hero { background-image: url("../images/bg-contact.webp"); }

body.page-about   .page-hero::after { background-image: url("../images/bg-about.webp"); }
body.page-services .page-hero::after { background-image: url("../images/bg-services.webp"); }
body.page-industries .page-hero::after { background-image: url("../images/bg-industries.webp"); }
body.page-projects .page-hero::after { background-image: url("../images/bg-projects.webp"); }
body.page-contact .page-hero::after { background-image: url("../images/bg-contact.webp"); }

/* Ambient 3D drift — runs on every device (mobile included), always visible, never removes the image */
@keyframes heroDrift3D {
  0%   { transform: perspective(900px) scale(1.15) rotateX(1.6deg)  rotateY(-1.6deg) translate3d(0, 0, 0); }
  25%  { transform: perspective(900px) scale(1.19) rotateX(-1.1deg) rotateY(1.6deg)  translate3d(1.4%, -1.1%, 0); }
  50%  { transform: perspective(900px) scale(1.22) rotateX(1.3deg)  rotateY(-1.1deg) translate3d(-1.2%, 1.3%, 0); }
  75%  { transform: perspective(900px) scale(1.19) rotateX(-1.4deg) rotateY(1.1deg)  translate3d(1.1%, 1%, 0); }
  100% { transform: perspective(900px) scale(1.15) rotateX(1.6deg)  rotateY(-1.6deg) translate3d(0, 0, 0); }
}

/* Subtle scroll parallax feel — desktop / hover-capable only (fixed-attachment tanks mobile) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .page-hero { background-attachment: fixed; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::after { animation: none !important; transform: scale(1.12) !important; }
}

/* 3D card lift — hover-capable devices only */
.feature-card, .service-card, .project-card, .industry-card {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .feature-card, .service-card, .project-card, .industry-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
  }
  .feature-card:hover, .service-card:hover, .project-card:hover, .industry-card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.02);
    box-shadow: 0 30px 60px -20px rgba(10,20,60,0.35), 0 15px 30px -15px rgba(56,189,248,0.25);
  }
  .project-card img, .service-thumb img, .service-card img {
    transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.5s ease;
    will-change: transform;
  }
  .project-card:hover img, .service-card:hover img {
    transform: scale(1.08) translateZ(30px);
    filter: saturate(1.15) contrast(1.05);
  }
}

/* Mobile / touch — light tap feedback, no heavy 3D */
@media (hover: none) {
  .feature-card:active, .service-card:active, .project-card:active, .industry-card:active {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px -12px rgba(10,20,60,0.35);
  }
}

/* Floating drone hero — desktop only; static on mobile to save GPU */
@media (min-width: 768px) {
  .hero-bg img { animation: heroFloat 8s ease-in-out infinite; will-change: transform; }
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50%      { transform: scale(1.08) translateY(-15px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg img { animation: none !important; }
}

/* Glow ring on page labels */
.page-label {
  box-shadow: 0 0 0 1px rgba(125,211,252,0.35), 0 8px 24px -8px rgba(56,189,248,0.5);
  backdrop-filter: blur(6px);
}

/* Section titles get a soft 3D shadow when dark */
.section-dark .section-title,
.page-hero .page-title {
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

/* Long-form prose sections */
.prose-section { padding: 5rem 0; background: #fff; }
.prose-section.alt { background: var(--secondary); }
.prose-wrap { max-width: 900px; margin: 0 auto; }
.prose-wrap h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--navy-deep); font-weight: 900; margin-top: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.prose-wrap h2:first-child { margin-top: 0; }
.prose-wrap h3 { font-size: 1.25rem; color: var(--navy); font-weight: 800; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose-wrap p { color: var(--muted-foreground); line-height: 1.8; margin-bottom: 1.1rem; font-size: 1.02rem; }
.prose-wrap ul { margin: 0 0 1.25rem 1.25rem; }
.prose-wrap ul li { color: var(--muted-foreground); line-height: 1.8; margin-bottom: 0.4rem; list-style: disc; }
.prose-wrap strong { color: var(--navy-deep); font-weight: 700; }
.prose-media { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 2rem 0; }
@media (min-width: 768px) { .prose-media { grid-template-columns: 1fr 1fr; } }
.prose-media img {
  width: 100%; height: 260px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 20px 40px -15px rgba(15,23,42,0.35);
  transform: perspective(1000px) rotateY(-2deg);
  transition: var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .prose-media img:hover { transform: perspective(1000px) rotateY(0) translateY(-6px) scale(1.02); box-shadow: 0 30px 60px -20px rgba(15,23,42,0.5); }
}
.callout {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(37,99,235,0.06), transparent);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 10px 10px 0;
}
.callout p { margin: 0; color: var(--navy-deep); font-weight: 500; }
