/* Reusable Component Styles */

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background-color: #e55a2b;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-nav {
  background-color: var(--accent-color);
  padding: 10px 25px !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: #e55a2b;
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--accent-color);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: var(--shadow-lg);
  animation: glow 2s ease-in-out infinite alternate;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-icon i {
  font-size: 32px;
  color: var(--white);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--light-gray);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  transition: transform 0.3s ease;
  will-change: transform;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

/* Client Cards - No hover effects */
.clients-grid .card {
  transition: none;
  transform-style: auto;
  will-change: auto;
}

.clients-grid .card:hover {
  transform: none;
  box-shadow: var(--shadow);
  animation: none;
}

.clients-grid .card-image img:hover {
  transform: none;
}

.clients-grid .card-image img {
  object-fit: contain;
}

.card h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 25px;
}

.card p {
  font-size: 15px;
  color: var(--medium-gray);
  margin-bottom: 20px;
  line-height: 1.7;
  padding: 0 25px;
}

.card-features {
  list-style: none;
  padding: 0 25px 25px;
}

.card-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 14px;
  color: var(--dark-gray);
}

.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Feature Boxes */
.feature-box {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-box i {
  font-size: 36px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: var(--medium-gray);
}

/* Stats */
.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 300px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.stat-icon i {
  font-size: 32px;
  color: var(--white);
}

.stat h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.stat p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--white);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 15px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form,
.quote-form {
  background: var(--white);
  padding: 35px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Floating Contact Icons */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-btn.email {
  background: linear-gradient(135deg, var(--accent-color), #e55a2b);
}

.floating-btn.whatsapp:hover,
.floating-btn.email:hover {
  animation: none;
}
