:root {
  --primary: #c52d2f; /* Brand Red */
  --primary-dark: #a12426;
  --secondary: #0077b6; /* Brand Blue */
  --accent: #00b4d8; /* Brand Cyan */
  --bg-light: #f1f5f9;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--primary);
  transition: var(--transition);
}

nav .logo .logo-main {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
}

nav .logo .logo-subtext {
  font-size: 0.65rem;
  color: var(--primary);
  line-height: 1;
  font-weight: 700;
  max-width: 250px;
  display: block;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

nav .nav-links a:hover {
  color: var(--primary);
}

.btn-login {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-login:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-only {
  display: none;
}

/* ── HERO SECTION ──────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.8)),
    url("../img/hero.png");
  background-size: cover;
  background-position: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--primary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-main {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-main:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ── SERVICES ─────────────────────────────────────────── */
.section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

.section-title span {
  color: var(--secondary); /* Blue accent from icons */
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 2rem;
}

.card-body .icon-container {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 18px; /* Squircle style from images */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(197, 45, 47, 0.3);
}

.card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
  background: var(--secondary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 1px;
}

.card-separator {
  width: 40px;
  height: 2px;
  background: var(--secondary);
  margin: 1rem auto;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ── STATS ───────────────────────────────────────────── */
.stats {
  background: var(--primary);
  display: flex;
  justify-content: space-around;
  padding: 4rem 5%;
  text-align: center;
}

.stat-item h4 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.9;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 4rem 5%;
  background: var(--accent); /* Light blue from footer in images */
  color: white;
  text-align: center;
  border-top: 5px solid var(--primary);
}

footer .logo {
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 1s forwards;
}

/* ── ABOUT SECTION ──────────────────────────────────────── */
.about-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 2rem;
}

.about-content {
  flex: 1;
}

.about-content h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

.about-image img {
  width: 100%;
  display: block;
}

/* ── CONTACT SECTION ───────────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item div {
  width: 50px;
  height: 50px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  border: 1px solid var(--primary);
}

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

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  color: white;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.btn-submit {
  border: none;
  background: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

/* ── WHATSAPP ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
  color: white;
  font-size: 2rem;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 5%;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 60%;
    height: 100vh;
    background: white;
    backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg); /* Corrected from 11px to center more accurately */
  }

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

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg); /* Corrected from -11px to center more accurately */
  }

  .team-capsule {
  background: var(--primary);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.team-card {
  flex: 1;
  min-width: 250px;
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 30px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
  /* Overlay when menu is active */
  .nav-active-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
  }

  .nav-active-overlay.active {
    display: block;
  }

  .btn-login {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .btn-login-mobile {
    background: var(--primary);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-main {
    width: 100%;
    text-align: center;
  }

  .stats {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-item h4 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .card-img {
    height: 200px;
  }

  .about-content h3 {
    font-size: 2rem;
  }

  .contact-container {
    padding: 2rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
