/*
* KC Phone Repair - Custom CSS
* A modern, clean and responsive design
*/

/* ===== VARIABLES ===== */
:root {
  /* Main colors */
  --primary: #377bb7;
  --primary-dark: #2a5d8c;
  --primary-light: #5a93c9;
  
  --secondary: #fd7914;
  --secondary-dark: #c55d0f;
  --secondary-light: #ff9a4d;
  
  /* Accent colors */
  --accent: #25D366; /* WhatsApp green */
  
  /* Neutral colors */
  --dark: #1a1a1a;
  --gray-dark: #4a4a4a;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Border radius */
  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 15px;
  --radius-xl: 30px;
  
  /* Spacing */
  --section-padding: 80px 0;
}

/* ===== GENERAL STYLES ===== */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
  border-radius: 5px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: var(--transition);
  text-transform: none;
  box-shadow: var(--shadow);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

img {
  max-width: 100%;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--secondary);
  width: 0;
  z-index: 9999;
  transition: width 0.3s ease;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar {
  padding: 0;
}

.navbar-brand {
  padding: 0;
}

.logo-img {
  height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--gray-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(55, 123, 183, 0.85), rgba(253, 121, 20, 0.85)), url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 150px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(26,35,126,0.2) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: var(--white);
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  overflow: hidden;
  height: 200px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  width: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  color: #666;
  margin-bottom: 0;
  font-size: 1rem;
}

.guarantee-badge {
  background-color: var(--secondary);
  color: var(--white);
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  display: inline-block;
  box-shadow: var(--shadow);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--gray-light);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(253, 121, 20, 0.02), rgba(55, 123, 183, 0.02));
  z-index: 0;
}

.about-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  z-index: 1;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content address {
  background-color: var(--gray-light);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.map-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  pointer-events: none;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  background-color: var(--white);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(55, 123, 183, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-info {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-info h4 {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1.5rem;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--gray-light);
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stars {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--white);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.phone-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.phone-number:hover {
  color: var(--white);
  opacity: 0.9;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background-color: #1da851;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-address h4,
.contact-hours h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-form-container {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(55, 123, 183, 0.25);
}

.form-submit {
  text-align: right;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 1rem;
}

.footer h3 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transition: var(--transition);
}

.whatsapp-floating:hover {
  background-color: #1da851;
  color: var(--white);
  transform: scale(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero {
    padding: 120px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .hero {
    padding: 100px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-img {
    height: 180px;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .phone-number {
    font-size: 1.5rem;
  }
}
