﻿/* Custom CSS for Template14 - Yellow, Green, and Red Theme with Rounded Elements */

/* Color Variables */
:root {
  --primary: #4CAF50;      /* Green */
  --primary-dark: #388E3C;
  --primary-light: #81C784;
  --secondary: #FFC107;    /* Yellow */
  --secondary-dark: #FFA000;
  --secondary-light: #FFD54F;
  --accent: #F44336;       /* Red */
  --accent-dark: #D32F2F;
  --accent-light: #EF5350;
  --white: #ffffff;
  --black: #000000;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #343a40;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* Global Rounded Elements */
.btn,
.navbar,
.feature-box,
.why-us-box,
.contact-info-box,
.contact-form,
.testimonial-box,
.accordion-item,
.service-card,
.hero-image img,
.about-image img,
.map-container,
.form-control,
.footer-social a,
.call-btn {
  border-radius: 15px !important;
  overflow: hidden;
}

/* Smaller Rounded Elements */
.feature-icon,
.why-us-icon,
.contact-icon,
.counter-icon,
.section-title h2:after,
.footer-title:after,
.about-feature i,
.navbar-nav .nav-link::after {
  border-radius: 10px !important;
}

/* Body Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--white);
  color: var(--gray-dark);
  line-height: 1.7;
}

/* Button Styles */
.btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--shadow-dark);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--black);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: var(--black);
}

.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Navbar Styles */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
  background-color: var(--primary);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px var(--shadow);
}

.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  text-transform: uppercase;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-nav .nav-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: var(--white);
  padding: 10px 15px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: calc(100% - 30px);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 100px 0;
  overflow: hidden;
}

.hero-content {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-transform: uppercase;
}

.hero-content h1 span {
  color: var(--secondary);
  font-weight: 800;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--white);
  opacity: 0.9;
}

.hero-image {
  position: relative;
  z-index: 1;
  box-shadow: 0 15px 30px var(--shadow-dark);
  border-radius: 15px;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
  opacity: 0.7;
}

/* Feature Box */
.feature-box {
  background-color: var(--white);
  padding: 30px;
  box-shadow: 0 10px 20px var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  border-top: 5px solid var(--primary);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-dark);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow);
}

.feature-box:hover .feature-icon {
  background-color: var(--secondary);
  color: var(--black);
}

/* Section Styles */
.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 70px;
  height: 4px;
  background-color: var(--accent);
  transform: translateX(-50%);
}

/* About Section */
.about-section {
  background-color: var(--gray-light);
}

.about-image {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.about-shape {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--secondary);
  z-index: -1;
  border-radius: 15px;
}

.about-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.about-feature i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 18px;
}

/* Why Us Box */
.why-us-box {
  background-color: var(--white);
  padding: 30px;
  box-shadow: 0 10px 20px var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.why-us-box:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: all 0.5s ease;
  z-index: -1;
  opacity: 0.9;
}

.why-us-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-dark);
}

.why-us-box:hover:after {
  height: 100%;
}



.why-us-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow);
}

.why-us-box:hover .why-us-icon {
  background-color: var(--white);
  color: var(--primary);
}

/* Contact Info Box */
.contact-info-box {
  background-color: var(--white);
  padding: 30px;
  box-shadow: 0 10px 20px var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  border-bottom: 5px solid var(--accent);
}

.contact-info-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-dark);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--white);
  transition: all 0.3s ease;
}

.contact-info-box:hover .contact-icon {
  background-color: var(--accent);
}

/* Call to Action */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--secondary);
  opacity: 0.1;
}

/* Counter Section */
.counter-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  position: relative;
  z-index: 1;
}

.counter-box {
  text-align: center;
  color: var(--black);
}

.counter-icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: var(--white);
  box-shadow: 0 5px 15px var(--shadow);
}

/* Footer */
.footer-section {
  background-color: var(--primary-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-link i {
  color: var(--secondary);
}

/* Call Button */
.call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 5px 15px var(--shadow-dark);
  z-index: 999;
  transition: all 0.3s ease;
}

.call-btn:hover {
  background-color: var(--accent-dark);
  transform: scale(1.1);
}

.call-btn i {
  animation: pulse 1.5s infinite;
}

/* Service Cards */
.service-card {
  background-color: var(--white);
  padding: 20px;
  margin: 1%;
  box-shadow: 0 10px 20px var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 5px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-dark);
  border-bottom-color: var(--accent);
}

.service-card .icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  color: var(--primary);
  display: inline-block;
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  color: var(--accent);
  transform: scale(1.1);
}

.service-card .title.red {
  color: var(--accent);
}

.service-card .title.green {
  color: var(--primary);
}

.service-card .title.yellow {
  color: var(--secondary);
}

/* Jumbotron */
.jumbotron {
  background-color: var(--secondary-light);
  padding: 3rem 0;
  border-radius: 0 0 15px 15px;
  margin-bottom: 30px;
}

.jumbotron h1 {
  color: var(--primary-dark);
  font-weight: 800;
}

/* Form Elements */
.form-control {
  height: 50px;
  padding: 10px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

textarea.form-control {
  height: 150px;
  padding: 15px 20px;
}

/* Accordion */
.accordion-item {
  border: none;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px var(--shadow);
}

.accordion-button {
  padding: 20px 25px;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  background-color: var(--white);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.accordion-button:not(.collapsed) {
  color: var(--white);
  background-color: var(--primary);
}

.accordion-button:focus {
  box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow);
    margin-top: 15px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 28px;
  }
  
  .call-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

