@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
  --bg: #030508;
  --card: rgba(13, 17, 23, 0.7);
  --card-hover: rgba(22, 27, 34, 0.9);
  --text: #f0f6fc;
  --muted: #8b949e;
  --accent: #ff9a00;
  /* Safety Orange */
  --accent-secondary: #00a0ff;
  /* Precision Blue */
  --line: rgba(255, 255, 255, 0.05);
  --radius: 16px;
  --max: 1200px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow: 0 0 20px rgba(255, 154, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  /* Technical Grid */
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(at 0% 0%, rgba(255, 154, 0, 0.08) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(0, 160, 255, 0.08) 0px, transparent 40%),
    radial-gradient(at 50% 50%, rgba(255, 154, 0, 0.03) 0px, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: meshScale 20s ease-in-out infinite alternate;
}

@keyframes meshScale {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography Upgrade */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.uppercase-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

/* Header Refinement */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-img {
  width: 144px;
  height: 144px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

/* Button Upgrades */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(255, 154, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--accent-secondary);
}

/* Hero Section High-End */
.hero {
  padding: 140px 0 100px;
  position: relative;
}

.hero h2 {
  font-size: 4.5rem;
  margin-bottom: 28px;
  background: linear-gradient(to bottom right, #fff 50%, #8b949e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  color: var(--muted);
}

/* Cards & Glassmorphism */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-8px) scale(1.01);
  background: var(--card-hover);
  box-shadow: var(--shadow), var(--glow);
}

.card b {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: block;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card);
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 100;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: rgba(255, 154, 0, 0.1);
  /* Assuming --accent-soft is rgba(255, 154, 0, 0.1) */
  color: var(--accent);
}

/* Secondary Hero Styles */
.secondary-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, rgba(255, 154, 0, 0.05) 0%, transparent 100%);
}

.technical-title {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Feature Link */
.feature-link {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  color: inherit;
}

.feature-link:hover {
  background: rgba(255, 154, 0, 0.1);
  /* Assuming --accent-soft is rgba(255, 154, 0, 0.1) */
  border-color: var(--accent);
  transform: translateX(5px);
}

.feature-link strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}

.feature-link span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Staggered */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
  filter: grayscale(0.2) contrast(1.1);
}

.gallery img:hover {
  filter: grayscale(0) contrast(1.2);
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-float b {
  font-size: 0.9375rem;
}

.pulse {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 3rem !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }

  .nav {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  .brand {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .logo-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px;
  }

  .brand h1 {
    font-size: 2.2rem !important;
  }

  .brand h1 span {
    font-size: 0.9rem !important;
    display: block;
    margin-top: 5px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero h2 {
    font-size: 2.5rem !important;
  }

  .hero p {
    margin: 24px auto 0;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .secondary-hero {
    padding: 60px 0 40px;
  }
}