* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
:root {
  --primary: #1e2340;
  --accent: #ff5200;
  --white: #ffffff;
  --nav-height: 70px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  background: #f5f5f5;
}

h3 {
  font-family: "Montserrat", sans-serif;
  /* border-bottom: 1px dotted var(--accent); */
  display: inline-block;
  position: relative;
}
h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 2px;
}
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  height: var(--nav-height);
}

.logo-img {
  width: 70px;
}
/* nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li {
  background-color: var(--primary);
  padding: 0.2rem;
  font-weight: bold;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  scroll-margin-top: var(--nav-height);
}

.hero-content h2 {
  font-size: 3rem;
}

.btn {
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  /* height: 300px; */
  height: calc(100vh);
  overflow: hidden;
}

.carousel-slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* Sections */
.section {
  padding: 1.2rem 1.5rem;
  text-align: center;
  background: #f5f5f5;
  height: 100%;
  scroll-margin-top: var(--nav-height);
  /* border: 1px solid grey; */
}

.values {
  list-style: none;
}

/* Contact */
.contact-container {
  display: none;
}
.contact-container.active {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
}

.contact-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--accent);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 30px;
  color: var(--primary);
}

.info-card {
  background: var(--white);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
  border-color: #ff6b35;
}
.info-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 16px;
}

.info-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.info-card a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-info h2 {
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .contact-form {
    padding: 20px;
  }

  .contact-wrapper {
    gap: 20px;
  }

  .info-card {
    padding: 15px;
    margin-bottom: 15px;
  }
}
/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  border-top: 2px dotted var(--white);
}

.email {
  padding-top: 0.2rem;
}
.email a {
  text-decoration: none;
  color: var(--white);
  transition: 0.5s;
}
.email a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Core Values Grid */

.values-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  cursor: pointer;
}

.value-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.value-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}
.value-card:nth-child(odd) {
  border-left: 4px solid #ff5200;
}
.value-card:nth-child(even) {
  border-left: 4px solid #1e2340;
}

/* More colorful background highlights */

/* Row 1 */
.value-card:nth-child(1) {
  background: linear-gradient(135deg, #ffece2 0%, #ffd4bd 100%);
}

.value-card:nth-child(2) {
  background: linear-gradient(135deg, #e1e5f5 0%, #d8dcf2 100%);
}

.value-card:nth-child(3) {
  background: linear-gradient(135deg, #f9e0d3 0%, #ffd9c4 100%);
}

/* Row 2 */
.value-card:nth-child(4) {
  background: linear-gradient(135deg, #d7e1fd 0%, #ced6f1 100%);
}

.value-card:nth-child(5) {
  background: linear-gradient(135deg, #fde5d7 0%, #ffcfb3 100%);
}

.value-card:nth-child(6) {
  background: linear-gradient(135deg, #dadfff 0%, #d1d3e0 100%);
}

/*  Hover effect */
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 35, 64, 0.15);
  transition: all 0.3s ease;
}

/* Icon backgrounds with matching colors */
/* Title with icon layout */
.title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Icon container styling */
.icon-bg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

/* Remove default h3 margins */
.title-with-icon h3 {
  margin: 0;
}

/* Integrity icon - Blue Shield */
.value-card:nth-child(1) .icon-bg {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

/* Efficiency icon - Yellow Lightning */
.value-card:nth-child(2) .icon-bg {
  background: rgba(234, 179, 8, 0.1);
  border: 2px solid rgba(234, 179, 8, 0.3);
  color: #eab308;
}

/* Innovation icon - Purple Lightbulb */
.value-card:nth-child(3) .icon-bg {
  background: rgba(168, 85, 247, 0.1);
  border: 2px solid rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

/* Sustainability icon - Green Leaf */
.value-card:nth-child(4) .icon-bg {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* Credibility icon - Gold Award */
.value-card:nth-child(5) .icon-bg {
  background: rgba(251, 146, 60, 0.1);
  border: 2px solid rgba(251, 146, 60, 0.3);
  color: #fb923c;
}

/* Customer Focused icon - Red/Pink Users */
.value-card:nth-child(6) .icon-bg {
  background: rgba(236, 72, 153, 0.1);
  border: 2px solid rgba(236, 72, 153, 0.3);
  color: #ec4899;
}

/* Hover effects */
.value-card:hover .icon-bg {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 35, 64, 0.2);
  transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet devices (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .value-card {
    padding: 20px;
  }

  .icon-bg {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .title-with-icon h3 {
    font-size: 1.1rem;
  }

  .value-card p {
    font-size: 0.95rem;
  }
}

/* Small tablets and large phones (600px - 768px) */
@media screen and (max-width: 768px) {
  /* If cards are in a grid, make them 2 columns */
  .value-card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .value-card {
    padding: 18px;
  }

  .icon-bg {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .title-with-icon {
    gap: 10px;
    margin-bottom: 10px;
  }

  .title-with-icon h3 {
    font-size: 1rem;
  }

  .value-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Mobile devices (below 600px) */
@media screen and (max-width: 600px) {
  /* Stack cards in single column */
  .value-card-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px;
  }

  .value-card {
    padding: 16px;
    margin-bottom: 0;
  }

  .icon-bg {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .title-with-icon {
    gap: 8px;
    margin-bottom: 8px;
  }

  .title-with-icon h3 {
    font-size: 0.95rem;
  }

  .value-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Reduce hover effects on mobile for better performance */
  .value-card:hover {
    transform: translateY(-2px);
  }
}

/* Extra small mobile devices (below 400px) */
@media screen and (max-width: 400px) {
  .value-card {
    padding: 14px;
  }

  .icon-bg {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .title-with-icon h3 {
    font-size: 0.9rem;
  }

  .value-card p {
    font-size: 0.8rem;
  }
}

.social-icons {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: #ffffff;
  font-size: 20px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-icons a:hover {
  color: #ff5200;
  transform: translateY(3px);
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    /* border-bottom: 1px dotted var(--accent); */
    display: inline-block;
  }
  section > p:not(.team-intro) {
    font-size: 1.2rem;
    margin: 0 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    /* text-align: left; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }
  #about p {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    background: var(--primary);
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* =========================
   TEAM SECTION
========================= */
/* =========================
   TEAM SECTION WITH ANIMATED BACKGROUND
========================= */
.team-section {
  padding: 4rem 2rem;
  background-color: var(--primary);

  color: var(--white);

  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated background squares */
.bg-squares {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-square {
  position: absolute;
  border: 5px solid rgba(255, 107, 53, 0.15);
  animation: rotateSquare 20s linear infinite;
}

.bg-square:nth-child(1) {
  width: 150px;
  height: 150px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.bg-square:nth-child(2) {
  width: 100px;
  height: 100px;
  top: 45%;
  left: 90%;
  animation-delay: 0.5s;
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-square:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 30%;
  left: 70%;
  animation-delay: 1s;
}

.bg-square:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 10%;
  animation-delay: 1.5s;
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-square:nth-child(5) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 80%;
  animation-delay: 2s;
}

.bg-square:nth-child(6) {
  width: 180px;
  height: 180px;
  top: 45%;
  left: 30%;
  animation-delay: 2.5s;
  border-color: rgba(255, 255, 255, 0.1);
}

@keyframes rotateSquare {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.3;
  }
}

/* Ensure content is above background */
.team-section .heading,
.team-section .team-grid {
  position: relative;
  z-index: 1;
}

.team-section h1 {
  font-size: 2.2rem;
  margin: 0.3rem;
}

.team-section .heading {
  padding: 0.2rem 0;
  width: calc(100% - 4rem);
  max-width: 50%;
  margin: 2rem auto;
  position: relative;
}
.team-section p {
  margin-top: 1rem;
  padding: 0.4rem;
  border-radius: 0.5rem;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.808);
}
/* Corner brackets */
.corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid var(--accent);
  z-index: 10;
  transition: all 0.4s ease;
}

.corner-tl {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

/* Hover effect - brackets expand */
.team-section .heading:hover .corner-bracket {
  width: 40px;
  height: 40px;
}

.team-section .heading:hover .corner-tl {
  top: -20px;
  left: -20px;
}

.team-section .heading:hover .corner-tr {
  top: -20px;
  right: -20px;
}

.team-section .heading:hover .corner-bl {
  bottom: -20px;
  left: -20px;
}

.team-section .heading:hover .corner-br {
  bottom: -20px;
  right: -20px;
}

.team-intro {
  max-width: 600px;
  margin: 0.3rem auto 0.6rem;
  font-size: 1rem;
  opacity: 0.9;
}

/* =========================
   GRID LAYOUT
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* First row spacing */
.first-row {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-bottom: 2.5rem;
}

/* =========================
   TEAM CARD
========================= */
.team-card {
  background-color: var(--white);
  color: var(--primary);
  border-radius: 16px;
  overflow: hidden;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  margin: 0 auto;
  border: 2px solid rgb(238, 238, 238);
}

/* Image */
.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Content */
.team-content {
  padding: 1.5rem;
}

.team-content h2 {
  font-size: 1.2rem;
}

.team-content h3 {
  color: var(--accent);
  font-size: 1rem;
  margin: 0.5rem 0;
  font-weight: normal;
}

.team-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================
   HOVER EFFECTS
========================= */
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
  border-color: #ff6b35;
}

.team-card:hover img {
  transform: scale(1.08);
}
/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .team-section {
    padding: 3rem 1.5rem;
  }

  .team-section .heading {
    width: calc(100% - 2rem);
    max-width: 80%;
  }

  .team-intro {
    font-size: 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card img {
    height: 220px;
  }
}

/* spa  */

.carousel-section.active,
.section.active {
  display: block;
}

.carousel-section,
.section {
  display: none;
}

.team-section {
  display: none;
}

.team-section.active {
  display: block;
}

/* Success message container */
.form-success {
  display: none;
  opacity: 0;
  padding: 25px;
  border-radius: 8px;
  background-color: #e6f9f0;
  color: #155724;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}

/* When active (fade-in) */
.form-success.show {
  display: block;
  opacity: 1;
}

/* Check icon */
.check-icon {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  background-color: #28a745;
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Optional: fade-out form */
.form-content.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
}

form {
  display: grid;
  place-items: center;
}

/* Enhanced design for About, Vision, Services sections */
#about,
#vision,
#services {
  position: relative;
  max-width: 1100px;
  margin: calc(var(--nav-height)) auto 3rem;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow:
    0 10px 40px rgba(30, 35, 64, 0.08),
    0 0 0 1px rgba(30, 35, 64, 0.05);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

#about {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(147, 51, 234, 0.08) 100%
  );
  border-left: 6px solid #3b82f6;
}

#vision {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(59, 130, 246, 0.08) 100%
  );
  border-left: 6px solid #22c55e;
}

#services {
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.08) 0%,
    rgba(236, 72, 153, 0.08) 100%
  );
  border-left: 6px solid #fb923c;
}

/* Subtle background accent */
#about::before,
#vision::before,
#services::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 82, 0, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

#about h3,
#vision h3,
#services h3 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

#about p,
#vision p,
#services p {
  color: #2c3e50;
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Hover effects - Desktop only */
@media (hover: hover) and (min-width: 768px) {
  #about:hover,
  #vision:hover,
  #services:hover {
    transform: translateY(-12px);
    box-shadow:
      0 25px 50px rgba(30, 35, 64, 0.15),
      0 0 0 1px rgba(255, 82, 0, 0.1);
  }

  #about:hover::before,
  #vision:hover::before,
  #services:hover::before {
    animation: pulse-glow 0.6s ease-out;
  }
}

/* Smooth pulse animation on hover */
@keyframes pulse-glow {
  0% {
    width: 300px;
    height: 300px;
    opacity: 0.05;
  }
  50% {
    width: 400px;
    height: 400px;
    opacity: 0.08;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0.05;
  }
}
