/* --- VARIABLES & RESET --- */
:root {
  /* Brand Colors */
  --brand-dark: #121820;
  --brand-green: #a4e035;
  --brand-orange: #ff5e00;
  --brand-gradient: linear-gradient(135deg, #a4e035 0%, #ff5e00 100%);
  --light-bg: #f4f6f8;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
}

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

html {
  /* Stop iOS from inflating text (looks like an unwanted zoom) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
  font-size: 16px;
  /* Base size increase for readability */

  /* Never let a wide child make the whole page pan sideways */
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  /* Wider container for modern look */
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- NAVBAR --- */
.navbar {
  background: var(--brand-dark);
  color: var(--white);
  height: 80px;
  /* Slightly taller for presence */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--brand-green);
}

/* Gradient Button in Nav */
.btn-nav {
  background: var(--brand-gradient);
  color: white !important;
  padding: 12px 25px;
  border-radius: 4px;
  /* Squarer corners for corporate feel */
  font-weight: bold;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.btn-nav:hover {
  opacity: 0.9;
  transform: none;
  /* Removed bounce/move animation */
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  /* CHANGED: Allows section to grow if text wraps */
  background: url('images/itcs_tech-installation.jpeg') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-attachment: scroll;
  padding-top: 80px;
  /* NEW: Pushes content down so it doesn't hide behind the navbar */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.85) 0%, rgba(18, 24, 32, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

.hero-content h2 {
  font-size: 3.8rem;
  margin-bottom: 25px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #dcdcdc;
  font-weight: 300;
  line-height: 1.8;
}

.hero-content strong {
  color: var(--brand-green);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-main {
  display: inline-block;
  background: var(--brand-gradient);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 4px;
  /* Cleaner look */
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-main:hover {
  background: linear-gradient(135deg, #93c930 0%, #e55500 100%);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 13px 38px;
  border: 2px solid white;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

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

/* --- FEATURE BANNER --- */
.feature-banner {
  background: var(--brand-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
  border-bottom: none;
}

.banner-content h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--brand-green);
  font-weight: 700;
  text-transform: uppercase;
}

.banner-content p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

/* --- SERVICES SECTION --- */
.services {
  padding: 100px 0;
  background: var(--light-bg);
}

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

.section-title {
  font-size: 2.5rem;
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-line {
  height: 4px;
  width: 80px;
  background: var(--brand-orange);
  margin: 0 auto 20px auto;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.service-grid {
  /* DESKTOP: Keep as Grid (Wrapping) */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;

  /* Add padding to container so shadows don't get cut off */
  padding: 10px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
  border-top: 4px solid var(--brand-dark);
  display: flex;
  flex-direction: column;

  /* Ensure card has a minimum size so it looks good when scrolling */
  min-width: 0;
}

.service-card.featured {
  border-top: 4px solid var(--brand-green);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--brand-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-light);
}

.service-card ul {
  list-style: none;
  margin-top: 0px;
  padding-left: 0;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.service-card ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  color: #555;
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: "•";
  /* Simple bullet */
  color: var(--brand-orange);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.about p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about strong {
  color: var(--brand-orange);
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: var(--brand-dark);
  color: white;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.contact-form {
  max-width: 700px;
  margin: 50px auto 0;
  text-align: left;
  background: #1c242e;
  padding: 50px;
  border-radius: 8px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 4px;
  font-family: inherit;
  background: #121820;
  color: white;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-green);
}

.contact-form button {
  width: 100%;
  margin-top: 10px;
  border-radius: 4px;
}

/* --- FOOTER --- */
footer {
  background: #000;
  color: #666;
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

/* --- MOBILE RESPONSIVE --- */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0px;
    height: 100vh;
    top: 80px;
    background-color: var(--brand-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
    padding-top: 50px;
  }

  .nav-links li {
    margin: 25px 0;
  }

  .burger {
    display: block;
  }

  .nav-active {
    transform: translateX(0%);
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form {
    padding: 25px;
  }
}

@media screen and (max-width: 768px) {

  /* --- SERVICES: plain vertical stack, no horizontal carousel --- */
  .services {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 35px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

    /* No sideways scrolling or snapping on touch devices */
    overflow-x: visible;
    padding: 0;
  }

  .service-card {
    width: 100%;
    min-width: 0;
    padding: 28px 22px;
  }

  .service-card .icon {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-card p {
    font-size: 0.975rem;
    margin-bottom: 16px;
  }

  .service-card ul {
    padding-top: 16px;
  }

  .service-card ul li {
    margin-bottom: 10px;
    font-size: 0.925rem;
    padding-left: 20px;
  }

  /* --- Other sections breathe a little less on small screens --- */
  .about,
  .contact {
    padding: 60px 0;
  }

  .banner-content h3 {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 1.05rem;
  }
}