/* ===============================
   RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #fff;
  background-color: #111;
  padding-top: 90px; /* Space for fixed header */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===============================
   HEADER
================================ */
.header {
  background: #000;
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  top: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  padding: 5px 0;
  position: relative;
}

nav ul li a:hover,
.phone-link {
  color: #ff0000;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.phone-link i {
  margin-right: 5px;
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* ===============================
   HERO SECTION
================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: -90px; /* Counteract body padding */
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  top: 0;
  left: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 800px;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  background: #ff0000;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  transition: 0.3s;
  font-weight: bold;
  border: none;
  cursor: pointer;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-buttons .btn-primary:hover {
  background: #fff;
  color: #ff0000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

.hero-buttons .btn-secondary {
  background: #ffcc00;
  color: #000;
  padding: 15px 30px;
  border-radius: 5px;
  transition: 0.3s;
  font-weight: bold;
  border: none;
  cursor: pointer;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-buttons .btn-secondary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255,204,0,0.3);
}

.slide-controls {
  position: absolute;
  width: 100%;
  bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  gap: 20px;
}

.slide-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  min-height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.slide-controls button:hover {
  background: #ff0000;
}

.slide-dots {
  display: flex;
  gap: 10px;
}

.slide-dots .dot {
  height: 12px;
  width: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}

.slide-dots .dot.active {
  opacity: 1;
  background: #ff0000;
  transform: scale(1.2);
}

/* ===============================
   SECTIONS
================================ */
section {
  padding: 80px 5%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: #ffcc00;
}

.underline {
  width: 60px;
  height: 4px;
  background: #ff0000;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #ccc;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   SERVICES
================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-box {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255,0,0,0.1);
  border-color: #ff0000;
}

.service-box img {
  max-width: 100px;
  margin-bottom: 20px;
  height: 100px;
  object-fit: contain;
}

.service-box h3 {
  color: #ffcc00;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-box p {
  color: #ccc;
  line-height: 1.8;
  flex-grow: 1;
}

/* ===============================
   GALLERY
================================ */
.gallery-container {
  display: flex;
  align-items: center;
  position: relative;
  gap: 20px;
  margin-top: 40px;
}

.gallery-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #ff0000 #333;
  padding-bottom: 10px;
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 4px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  padding: 10px 5px;
}

.gallery-item {
  min-width: 350px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Gallery nav */
.gallery-nav {
  background: rgba(0,0,0,0.7);
  border: 2px solid #ff0000;
  color: #fff;
  font-size: 1.5rem;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  min-height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-nav:hover {
  background: #ff0000;
  transform: scale(1.1);
}

/* Gallery indicator */
.gallery-indicator {
  text-align: center;
  margin-top: 20px;
  color: #ffcc00;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ===============================
   CLIENT LOGOS
================================ */
.clients-carousel {
  display: flex;
  gap: 50px;
  overflow-x: auto;
  padding: 40px 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  scrollbar-width: none;
}

.clients-carousel::-webkit-scrollbar {
  display: none;
}

.clients-carousel img {
  max-height: 80px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.3s;
  flex-shrink: 0;
}

.clients-carousel img:hover {
  filter: brightness(1) invert(0);
  opacity: 1;
  transform: scale(1.2);
}

/* ===============================
   CONTACT
================================ */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: #ffcc00;
  font-size: 1.8rem;
}

.contact-info p {
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  color: #ff0000;
  min-width: 30px;
}

.contact-item p {
  margin: 0;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #ff0000;
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #333;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff0000;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  background: #ff0000;
  color: #fff;
  padding: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s;
  margin-top: 10px;
}

.contact-form button:hover {
  background: #ffcc00;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

/* ===============================
   FOOTER
================================ */
footer {
  background: #000;
  padding: 50px 5%;
  text-align: center;
  border-top: 2px solid #ff0000;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  width: auto;
}

footer p {
  color: #ccc;
  font-size: 1rem;
  margin-top: 15px;
}

/* ===============================
   MEDIA QUERIES
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .gallery-item {
    min-width: 300px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .header {
    padding: 10px 0;
  }
  
  .header-container {
    padding: 10px 20px;
  }
  
  .logo {
    height: 50px;
  }
  
  /* Mobile Menu */
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    display: none;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    border-top: 2px solid #ff0000;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 15px 0;
    text-align: center;
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    padding: 15px;
    font-size: 1.1rem;
  }
  
  nav ul li:last-child {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  /* Hero Section */
  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: -70px;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 250px;
    margin: 0;
    text-align: center;
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .slide-controls {
    bottom: 20px;
    gap: 10px;
  }
  
  .slide-controls button {
    min-height: 40px;
    min-width: 40px;
    padding: 10px;
  }
  
  /* Sections */
  section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-box {
    padding: 25px 20px;
  }
  
  .service-box img {
    max-width: 80px;
    height: 80px;
  }
  
  .service-box h3 {
    font-size: 1.3rem;
  }
  
  /* Gallery */
  .gallery-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .gallery-nav {
    display: none; /* Hide arrows on mobile */
  }
  
  .gallery-item {
    min-width: 280px;
    height: 200px;
  }
  
  .gallery-scroll {
    width: 100%;
    padding-bottom: 15px;
  }
  
  .gallery-track {
    gap: 15px;
  }
  
  /* Contact */
  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-form {
    padding: 25px 20px;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 15px;
  }
  
  /* Clients */
  .clients-carousel {
    gap: 30px;
    padding: 20px;
    justify-content: flex-start;
    overflow-x: auto;
  }
  
  .clients-carousel img {
    max-height: 50px;
  }
  
  /* Footer */
  footer {
    padding: 40px 20px;
  }
  
  .footer-logo {
    height: 50px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  
  .hero-text p {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero {
    min-height: 450px;
  }
  
  .contact-form {
    padding: 20px 15px;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .gallery-item {
    min-width: 250px;
    height: 180px;
  }
  
  .slide-dots .dot {
    height: 10px;
    width: 10px;
  }
}