* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
  font-family: montserrat;
  src: url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
} 


body {
    font-family: montserrat;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #000000;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
  display: block;
  width: 250px;   /* match original size */
  height: 68px;   /* adjust to aspect ratio */
  background-image: url("ADC-mobile.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  padding: 12px 16px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    text-align: center;
}

.animate {
  color: white;
    position: relative;
    padding: 14px 16px;
    font-size: 1rem;
}

.dropdown {
    color: white;
    position: relative;
    padding: 14px 16px;
    font-size: 1rem;
    margin: 0;
  }
  
  .dropdown::after, .animate::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, #2B2C93, #00ADEE);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }
  .dropdown:hover::after, .animate:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left;
  }

.dropdown-content {
    display: none;
    position: absolute;
    margin-top: .9rem;
    min-width: 160px;
    z-index: 1;
    background-color: black;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    left: 50% !important;
    right: auto !important;
    text-align: center !important;
    transform: translate(-50%, 0) !important;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    background-color: black;
  }

.dropdown-content a:hover{
    background-color: #00ADEE;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.combustion{
    text-align: center;
    padding: 4rem 0;
    color: white;
    background-clip: url("StockPhotos/combustiontitle.mov");
}

.indexintro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
    background-color: black;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2B2C93;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #00ADEE;
}

.intro, .services, .industries, .contact {
    padding: 2rem 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

h3 {
    font-size: 1.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    background-color: #f9f9f9;
}


.industry-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.industry-list li {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
}

.container {
      max-width: 1200px;
      margin: auto;
      padding: 0px;
}

.line-break {
  width: 100%;
}

.image {
  max-width: auto;
  max-height:100%;
  float: left;
}

.text {
  padding-left: 20px;
  float: left;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

.back-btn {
  display: none; /* hidden by default */
}

@media screen and (max-width: 768px) {
  nav {
    position: relative;
  }

  /* Main nav panel */
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* hidden off-screen */
    height: 100%;
    width: 80%;
    max-width: 300px;
    background-color: #000;
    flex-direction: column;
    padding-top: 4rem;
    transition: left 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.responsive {
    left: 0; /* slide main nav into view */
  }

  /* Hamburger */
  .icon {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
    color: white;
    padding: 12px 16px;
    z-index: 1000;
    background: #000;            /* match nav background */
    text-decoration: none;       /* remove underline */
    border: none !important;     /* remove borders */
    border-bottom: none !important;
    line-height: 1;
  }

  /* Main nav links */
  .nav-links a,
  .dropdown > a,
  .animate > a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: left;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #000; /* divider lines */
  }

  /* Submenu panels */
  .dropdown-content {
    position: fixed;
    top: 0;
    left: 100%; /* start hidden off-screen to the right */
    height: 100%;
    width: 80%;
    max-width: 300px;
    background-color: #111;
    flex-direction: column;
    padding-top: 4rem;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
  }

  .dropdown-content.active {
    left: 0; /* slide submenu into view */
  }

  .dropdown-content a {
    padding: 14px 20px;
    display: block;
    color: white;
    border-bottom: 1px solid #222;
    text-align: center;
  }

  .dropdown-content a:hover {
    background-color: #00ADEE;
  }

  /* Back button inside submenu */
  .back-btn {
    display: block;
    padding: 14px 20px;
    color: #00ADEE;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #222;
    background-color: #000;
  }

  /* Mobile logo size */
  .logo a {
    background-image: url("ADC-mobile.png");
    width: 180px;
    height: 50px;
  }
}






.gradient-button {
  display: flex;
  padding: 0.875em 2em;
  background: linear-gradient(90deg, #3f51b5, transparent) #2196f3;
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  transition: background-color 1s;
  place-content: center;
  border-radius: 2rem;
}
  
  .gradient-button:hover,
  .gradient-button:focus {
    background-color: #2B2C93;
    color: #fff;
  }   

  .gradient-button {
    background-image: linear-gradient(to right, #2B2C93, #00ADEE);
    background-size: 200% 100%;
    background-position: left bottom;
    transition: background-position 0.5s ease;
  }
  
  .gradient-button:hover {
    background-position: right bottom;
  }   

  .industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
  }
  .card:hover {
    transform: translateY(-5px);
  }
  .card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  .card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .card p {
    color: #555;
    font-size: 0.95rem;
    flex: 1;
  }
  .card a {
    margin-top: 1rem;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
  }
  .card a:hover {
    text-decoration: underline;
  }
  
.side-by-side {
  display: flex;
  justify-content: space-between; /* align items to the left */
  align-items: flex-start;
  width: 100%; /* take full width */
}
  
.side-by-side img {
  max-width: 45%;
}
  
.side-by-side .text {
  max-width: 50%;
  padding-left: 0;
}

.side-by-side video {
  max-width: 45%;
  }



    @media (max-width: 768px) {
      .side-by-side {
        flex-direction: column;
      }
      .side-by-side img,
      .side-by-side video,
      .side-by-side .text {
        max-width: 100%;
      }
    }