/* 
  Abilities Company Limited Website
  Main Stylesheet
  Author: Alex
  Version: 1.0
*/

/* ---------- Base Styles ---------- */
:root {
  --primary-color: #0056b3;
  --secondary-color: #ff6b00;
  --dark-color: #111827;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --black: #000000;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --section-padding: 80px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  color: var(--dark-color);
}

.separator {
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0 auto 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #004494;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #e55f00;
  color: var(--white);
}

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

.btn-light:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

/* ---------- Header Styles ---------- */
.top-bar {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
}

.contact-info div {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 8px;
  color: var(--secondary-color);
}

.social-media a {
  color: var(--white);
  margin-left: 15px;
  transition: var(--transition);
}

.social-media a:hover {
  color: var(--secondary-color);
}

.main-nav {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 60px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  position: relative;
  margin-left: 30px;
}

.nav-menu a {
  color: var(--dark-color);
  font-weight: 600;
  padding: 10px 0;
  display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1;
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  padding: 10px 15px;
  font-weight: 500;
}

.dropdown a:hover {
  background-color: var(--light-gray);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.slide-content {
  position: relative;
  color: var(--white);
  max-width: 700px;
  padding: 0 15px;
  top: 50%;
  transform: translateY(-50%);
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.slider-controls button {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--dark-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background-color: var(--white);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--white);
}

/* ---------- About Section ---------- */
.about-section {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* ---------- Why Choose Us ---------- */
.why-choose-us {
  padding: var(--section-padding);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Services Section ---------- */
.services-section {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 30px;
  text-align: center;
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.8rem;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-cta {
  text-align: center;
  margin-top: 50px;
}

/* ---------- Projects Showcase ---------- */
.projects-showcase {
  padding: var(--section-padding);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project:hover .project-overlay {
  opacity: 1;
}

.project-info {
  text-align: center;
  padding: 20px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-info p {
  margin-bottom: 20px;
}

.projects-cta {
  text-align: center;
  margin-top: 50px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  text-align: center;
  transition: var(--transition);
}

.testimonial.active {
  display: block;
}

.testimonial-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 30px;
}

.testimonial-content:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--white);
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info span {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.prev-testimonial,
.next-testimonial {
  background: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.prev-testimonial:hover,
.next-testimonial:hover {
  background: var(--secondary-color);
}

.testimonial-dots {
  display: flex;
  margin: 0 15px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray-color);
  border: none;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background-image: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('public/assets/images/company profile.pdf-image-010.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ---------- Footer ---------- */
.main-footer {
  background-color: var(--dark-color);
  color: var(--light-gray);
}

.footer-top {
  padding: 80px 0 50px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-widget h3 {
  color: var(--white);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer-widget h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 60px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  color: var(--light-gray);
  margin-right: 15px;
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: var(--secondary-color);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  margin-bottom: 15px;
}

.contact-info i {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 1.2rem;
  margin-top: 5px;
}

.contact-info h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--light-gray);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

@media (max-width: 576px) {
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* ---------- Scroll to Top ---------- */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

#scrollToTop.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 1024px) {
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-info {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-info div {
    margin: 0 10px 5px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 500px;
  }
  
  .nav-menu li {
    margin: 0;
  }
  
  .nav-menu a {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
  }
  
  .dropdown.active {
    max-height: 500px;
  }
  
  .dropdown a {
    padding-left: 30px;
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}