/* =================================
   About Section - Feature Boxes
   ================================= */

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 163, 196, 0.04) 100%);
  border: 2px solid rgba(0, 163, 196, 0.15);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  animation: boxSlide 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.feature-box:nth-child(1) { animation-delay: 0.15s; }
.feature-box:nth-child(2) { animation-delay: 0.25s; }
.feature-box:nth-child(3) { animation-delay: 0.35s; }
.feature-box:nth-child(4) { animation-delay: 0.45s; }

@keyframes boxSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-box:hover::before {
  transform: scaleX(1);
}

.feature-box:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 163, 196, 0.4);
  box-shadow: 0 15px 35px rgba(0, 163, 196, 0.15),
              0 0 1px rgba(0, 163, 196, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 163, 196, 0.08) 100%);
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: inline-block;
  animation: iconPulse 0.8s ease-out forwards;
}

.feature-box:nth-child(1) .feature-icon { animation-delay: 0.3s; }
.feature-box:nth-child(2) .feature-icon { animation-delay: 0.4s; }
.feature-box:nth-child(3) .feature-icon { animation-delay: 0.5s; }
.feature-box:nth-child(4) .feature-icon { animation-delay: 0.6s; }

@keyframes iconPulse {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-20deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.feature-box:hover .feature-icon {
  animation: iconBounceHover 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounceHover {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(15deg); }
}

.feature-box h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: var(--text-color);
  transition: color 0.3s ease;
  position: relative;
}

.feature-box h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), #008fa3);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.feature-box:hover h3 {
  color: var(--turquoise);
}

.feature-box:hover h3::after {
  width: 60px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: var(--muted-text);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: rgba(0, 163, 196, 0.1);
  border: 1px solid rgba(0, 163, 196, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--turquoise);
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-list li {
  opacity: 1;
  transform: translateX(4px);
}

.feature-box:hover .feature-list li::before {
  background: rgba(0, 163, 196, 0.2);
  border-color: var(--turquoise);
  transform: scale(1.15);
}

/* =================================
   Service Cards - Enhanced Animation
   ================================= */

.service-card {
  perspective: 1000px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 163, 196, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 163, 196, 0.02) 100%);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.04) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 163, 196, 0.2), 
              0 0 20px rgba(0, 163, 196, 0.1);
  border-color: rgba(0, 163, 196, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 163, 196, 0.06) 100%);
}

.service-card h3 {
  position: relative;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--turquoise);
}

/* Icon bounce animation */
.service-card .icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(0, 163, 196, 0.1) 0%, rgba(0, 163, 196, 0.05) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  background: linear-gradient(135deg, rgba(0, 163, 196, 0.2) 0%, rgba(0, 163, 196, 0.1) 100%);
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 16px rgba(0, 163, 196, 0.15);
}

.service-card .icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .icon img {
  transform: scale(1.2) rotate(-10deg);
}

/* Emoji accent similar to About feature icons */
.service-emoji {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  animation: iconPulse 0.8s ease-out forwards;
}

.service-card:nth-child(1) .service-emoji { animation-delay: 0.2s; }
.service-card:nth-child(2) .service-emoji { animation-delay: 0.3s; }
.service-card:nth-child(3) .service-emoji { animation-delay: 0.4s; }

.service-card:hover .service-emoji {
  animation: iconBounceHover 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Feature list animation */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.service-features li {
  opacity: 0.7;
  transition: all 0.3s ease;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.service-card:hover .service-features li {
  opacity: 1;
  transform: translateX(4px);
}

.service-card:hover .service-features li::before {
  transform: scale(1.3);
}

/* =================================
   Responsive Adjustments
   ================================= */

@media (max-width: 800px) {
  .service-card {
    transition: all 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .service-card .icon {
    width: 50px;
    height: 50px;
  }

  .service-card .icon img {
    width: 28px;
    height: 28px;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(0, 163, 196, 0.08) 0%, rgba(0, 163, 196, 0.03) 100%);
  border: 1px solid rgba(0, 163, 196, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: revealCard 0.6s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes revealCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-item:hover {
  background: linear-gradient(135deg, rgba(0, 163, 196, 0.15) 0%, rgba(0, 163, 196, 0.08) 100%);
  border-color: rgba(0, 163, 196, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 163, 196, 0.15);
}

.contact-icon {
  font-size: 1.8rem;
  line-height: 1;
  min-width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
}

.contact-item:nth-child(1) .contact-icon { animation-delay: 0.15s; }
.contact-item:nth-child(2) .contact-icon { animation-delay: 0.25s; }
.contact-item:nth-child(3) .contact-icon { animation-delay: 0.35s; }
.contact-item:nth-child(4) .contact-icon { animation-delay: 0.45s; }

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-weight: 600;
  color: var(--turquoise);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--turquoise);
}

.contact-item p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.5;
}

/* =================================
   Contact Form - Professional Style
   ================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  letter-spacing: 0.3px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  background-color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(0, 163, 196, 0.1);
  background-color: rgba(0, 163, 196, 0.02);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* =================================
   Top-Right Button (Call Button)
   ================================= */

.call {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--turquoise) 0%, #008fa3 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 163, 196, 0.3);
  overflow: hidden;
}

.call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 163, 196, 0.4);
  background: linear-gradient(135deg, #008fa3 0%, var(--turquoise) 100%);
}

.call:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 163, 196, 0.25);
}

.call span {
  position: relative;
  z-index: 1;
  display: block;
}

/* Ripple effect on click */
.call::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =================================
   Logo Circle Animation
   ================================= */

.logo {
  position: relative;
  display: inline-block;
}

.logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: logoCircle 1.2s ease-out forwards;
  animation-delay: 2.2s;
  pointer-events: none;
}

@keyframes logoCircle {
  0% {
    width: 0;
    height: 0;
    border-color: rgba(0, 163, 196, 0.8);
    opacity: 1;
  }
  100% {
    width: 120%;
    height: 120%;
    border-color: rgba(0, 163, 196, 0);
    opacity: 0;
  }
}

.logo-img {
  animation: logoEntrance 0.8s ease-out forwards;
  animation-delay: 2.2s;
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =================================
   Responsive Adjustments
   ================================= */

@media (max-width: 800px) {
  .contact-item {
    padding: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .contact-icon {
    font-size: 1.5rem;
  }

  .contact-form {
    gap: 1.2rem;
  }

  .contact-form .btn {
    width: 100%;
    align-self: stretch;
  }

  .call {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* =================================
   References - Logo Marquee
   ================================= */

.references .section-lead {
  margin-bottom: 1.25rem;
}

.logo-marquee {
  overflow: hidden;
  border-radius: 12px;
  padding: 1rem 0;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.03);
}

.logo-track {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  width: max-content;
  animation: scrollLeft 96s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  filter: none;
  transition: transform 0.35s ease, filter 0.35s ease;
  flex-direction: column;
  gap: 0.35rem;
  animation: floaty 6s ease-in-out infinite;
}

.logo-item img { 
  max-width: 200px;
  max-height: 64px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(0.95) contrast(0.98);
}
  font-size: 0.98rem;
  color: var(--text-color, #031f20);
  transform: translateY(-6px) scale(1.03);
}
  background: linear-gradient(120deg, rgba(0,163,196,0.08), rgba(0,163,196,0.02));
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(2,20,21,0.06);
  border: 1px solid rgba(0,163,196,0.14);
  max-width: 230px;
  font-size: 0.95rem;
  color: var(--muted-text, #314d4e);
  text-align: center;
  line-height: 1.1;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-track:hover {
  animation-play-state: paused;
}

/* Make logos keyboard-focusable and pause animation on focus */
.logo-item:focus {
  outline: none;
  transform: translateY(-6px) scale(1.03);
  filter: none;
}

/* soft fade edges so logos entering/leaving are less abrupt */
.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  pointer-events: none;
  z-index: 2;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%); }
.logo-marquee::after { right: 0; background: linear-gradient(-90deg, #fff 0%, rgba(255,255,255,0) 100%); }

/* reduce visual clutter by limiting visible contrast; color reveals on hover */
.logo-item img { filter: grayscale(100%); transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease; opacity: 0.95 }
.logo-item:hover img, .logo-item:focus img { filter: grayscale(100%) brightness(1.06); opacity: 1 }

/* Name-only display */
.logo-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-color, #031f20);
  text-align: center;
    position: relative;
  padding: 0.4rem 0.7rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2,20,21,0.04);
  max-width: 240px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

  .logo-name::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-15deg);
    opacity: 0;
  }

  .logo-item:hover .logo-name::after,
  .logo-item:focus-within .logo-name::after {
    animation: sheen 1.1s ease forwards;
  }

  .logo-item:hover,
  .logo-item:focus-within {
    transform: translateY(-6px) scale(1.05);
  }

  .logo-item:hover .logo-name,
  .logo-item:focus-within .logo-name {
    box-shadow: 0 10px 26px rgba(0,163,196,0.15);
    border-color: rgba(0,163,196,0.3);
  }

.logo-name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--turquoise, #00a3c4);
  box-shadow: 0 0 0 4px rgba(0,163,196,0.12);
  vertical-align: middle;
}

@media (max-width: 900px) {
  .logo-item { width: 210px; }
  .logo-name { font-size: 0.94rem; max-width: 170px }
}

/* Animation helpers */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes sheen {
  0% { opacity: 0; left: -40%; }
  15% { opacity: 0.35; }
  60% { opacity: 0.25; left: 120%; }
  100% { opacity: 0; left: 140%; }
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .logo-item { width: 120px; }
  .logo-item img { max-width: 100px; max-height:40px }
  .logo-track { gap: 1.2rem; }
  .logo-track { animation-duration: 56s; }
}
