/* ==========================================
   ADL DIGIHOUSE DESIGN SYSTEM
   - Font: Montserrat (Bold for Headings, Regular/Light for Body)
   - Backgrounds: White (#FFFFFF)
   - Primary Text: Off-Black (#212121)
   - Primary CTA: Vibrant Magenta (#D81B60)
   - Secondary Accents / Hover: Cool Cyan (#0097A7)
   - Dividers & Borders: Light Technical Gray (#E0E0E0)
   ========================================== */

:root {
  --font-primary: 'Montserrat', sans-serif;
  --color-bg-white: #ffffff;
  --color-text-dark: #212121;
  --color-text-muted: #666666;
  --color-cta: #d81b60;
  --color-cta-hover: #c21753;
  --color-accent: #0097a7;
  --color-accent-hover: #00796b;
  --color-border: #e0e0e0;
}

body,
html {
  font-family: var(--font-primary);
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
}

h1 {
  font-weight: 800;
}

h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: var(--color-text-dark);
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
}

h4 {
  font-size: 18px;
  color: var(--color-text-dark);
  font-weight: 600;
}

h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-weight: 400;
}

p.intro {
  margin: 12px 0 0;
  line-height: 26px;
}

a {
  color: var(--color-accent);
  font-weight: 500;
  transition: all 0.25s ease;
}

a:hover,
a:focus {
  text-decoration: none;
  color: var(--color-cta);
}

ul,
ol {
  list-style: none;
  padding: 0;
}

hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: var(--color-cta);
  margin-bottom: 20px;
  border: 0;
}

/* ==========================================
   NAVIGATION
   ========================================== */
#menu {
  padding: 18px 0;
  transition: all 0.4s ease;
}

#menu.navbar-default {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.brand-logo-wrap {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

#menu a.navbar-brand {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-logo-wrap {
  margin-bottom: 20px;
}

.hero-logo-img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.official-form-logo-wrap {
  margin-bottom: 14px;
}

.official-form-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.contact-logo-wrap {
  margin-bottom: 16px;
}

.footer-logo-img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

#menu.navbar-default .navbar-nav > li > a {
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--color-text-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 18px 0;
  position: relative;
  transition: color 0.25s ease;
}

#menu.navbar-default .navbar-nav > li > a:hover {
  color: var(--color-accent);
}

#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  content: "";
  transition: width 0.3s ease;
}

#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
  color: var(--color-cta) !important;
}

.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -4px !important;
  width: 100% !important;
  height: 3px !important;
  background: var(--color-cta) !important;
  content: "" !important;
  transition: width 0.2s !important;
}

.navbar-toggle {
  border-radius: 4px;
  border-color: var(--color-border);
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: var(--color-bg-white);
  border-color: var(--color-accent);
}

.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: var(--color-accent);
}

/* Section Title */
.section-title {
  margin-bottom: 70px;
}

.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-title h2::after {
  position: absolute;
  content: "";
  background: var(--color-cta);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
  border-radius: 2px;
}

.section-title p {
  font-size: 17px;
  color: var(--color-text-muted);
}

/* ==========================================
   BUTTONS (CTAs)
   ========================================== */
.btn-custom {
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: #ffffff !important;
  background-color: var(--color-cta);
  padding: 14px 36px;
  letter-spacing: 1px;
  margin: 6px 8px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 0;
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.25);
  display: inline-block;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #ffffff !important;
  background-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(0, 151, 167, 0.35);
  transform: translateY(-1px);
}

/* ==========================================
   HEADER / HERO SECTION
   ========================================== */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: var(--color-text-dark);
  background-size: cover;
}

.intro .overlay {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.65) 0%, rgba(33, 33, 33, 0.8) 100%);
  padding-top: 240px;
  padding-bottom: 160px;
}

.intro h1 {
  font-family: var(--font-primary);
  color: #ffffff;
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-top: 0;
  margin-bottom: 20px;
}

.intro h1 span {
  font-weight: 800;
  color: var(--color-cta);
}

.intro p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  margin: 0 auto;
  margin-bottom: 50px;
  max-width: 780px;
}

header .intro-text {
  text-align: center;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
#features {
  padding: 100px 0;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

#features i.fa {
  font-size: 34px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  color: #ffffff;
  width: 88px;
  height: 88px;
  padding: 27px 0;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0, 151, 167, 0.2);
}

#features i.fa:hover {
  background: var(--color-cta);
  box-shadow: 0 10px 24px rgba(216, 27, 96, 0.3);
  transform: translateY(-3px);
}

#features h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
#about {
  padding: 120px 0;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
  font-weight: 700;
}

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#about h2::after {
  position: absolute;
  content: "";
  background: var(--color-cta);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

#about .about-text li {
  margin-bottom: 10px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
  font-weight: 500;
  color: var(--color-text-dark);
}

#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  padding-right: 10px;
}

#about img {
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

#about p {
  line-height: 1.8;
  margin: 24px 0;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
#services {
  padding: 120px 0;
  background: var(--color-text-dark);
  color: #ffffff;
}

#services h2 {
  color: #ffffff;
}

#services .section-title h2::after {
  background: var(--color-cta);
}

.mobile-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-swipe-hint i {
  font-size: 14px;
  animation: swipePulse 2s infinite ease-in-out;
}

@keyframes swipePulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
  height: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 151, 167, 0.18);
}

.service-icon-wrap {
  margin-bottom: 20px;
}

#services .service-card i.fa {
  font-size: 36px;
  width: 88px;
  height: 88px;
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  transition: all 0.3s ease;
  display: inline-block;
}

.service-card:hover i.fa {
  background: var(--color-accent);
  color: #ffffff;
  transform: scale(1.05);
}

#services .service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
}

#services .service-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================
   PORTFOLIO / WORK SECTION
   ========================================== */
#portfolio {
  padding: 120px 0;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}

.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
  border-radius: 4px;
}

.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #ffffff;
  background: rgba(33, 33, 33, 0.85);
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.4s ease;
}

.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #ffffff;
  transform: translateY(100%);
  transition: all 0.3s ease;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  transform: translateY(0);
}

.hover-bg:hover .hover-text {
  opacity: 1;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
#testimonials {
  padding: 120px 0;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

#testimonials i {
  color: var(--color-accent);
  font-size: 28px;
  margin-bottom: 16px;
}

.testimonial {
  position: relative;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.testimonial-image {
  float: left;
  margin-right: 16px;
}

.testimonial-image,
.testimonial-image img {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.testimonial-content {
  position: relative;
  overflow: hidden;
}

.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.testimonial-meta {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* ==========================================
   TEAM SECTION
   ========================================== */
#team {
  padding: 120px 0;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

#team h4 {
  margin: 8px 0 4px;
  font-weight: 700;
}

#team .team-img {
  width: 100%;
  max-width: 240px;
  border-radius: 6px;
}

#team .thumbnail {
  background: transparent;
  border: 0;
  box-shadow: none;
}

#team .thumbnail .caption {
  padding: 14px 0 0;
  color: var(--color-text-muted);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
#contact {
  padding: 120px 0 80px;
  background: var(--color-text-dark);
  color: rgba(255, 255, 255, 0.8);
}

#contact .section-title {
  margin-bottom: 40px;
}

#contact .section-title p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

#contact h2 {
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: var(--color-cta);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
  border-radius: 2px;
}

#contact h3 {
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#contact form {
  padding-top: 10px;
}

#contact .text-danger {
  color: #ff5252;
  text-align: left;
  margin-top: 4px;
}

#contact .btn-custom {
  margin: 20px 0 0;
  background: var(--color-cta);
  border: none;
}

#contact .btn-custom:hover {
  color: #ffffff !important;
  background: var(--color-accent);
}

label {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  float: left;
}

#contact .form-control {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

#contact .form-control:focus {
  border-color: var(--color-accent);
  outline: 0;
}

.form-control::-webkit-input-placeholder {
  color: #999999;
}

#contact .contact-item {
  margin: 24px 0;
}

#contact .contact-item span {
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}

#contact .contact-item i.fa {
  margin-right: 12px;
  color: var(--color-accent);
}

#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 40px;
  margin-top: 60px;
  text-align: center;
}

#contact .social ul li {
  display: inline-block;
  margin: 0 14px;
}

#contact .social i.fa {
  font-size: 18px;
  width: 44px;
  height: 44px;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#contact .social i.fa:hover {
  color: #ffffff;
  background: var(--color-cta);
  border-color: var(--color-cta);
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
  background: var(--color-text-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

#footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
}

#footer a {
  color: var(--color-accent);
}

#footer a:hover {
  color: var(--color-cta);
}



/* ==========================================
   RESPONSIVE MEDIA QUERIES (HERO & GLOBAL)
   ========================================== */

/* Laptops & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .intro .overlay {
    padding-top: 180px;
    padding-bottom: 120px;
  }

  .intro h1 {
    font-size: 48px;
    letter-spacing: -0.5px;
  }

  .intro p {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 40px;
  }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
  #about img {
    margin: 40px 0;
  }

  .intro .overlay {
    padding-top: 130px;
    padding-bottom: 80px;
  }

  .intro h1 {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }

  .intro p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 32px;
  }

  .btn-custom {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 6px 0;
    padding: 14px 24px;
  }

  /* Services Mobile Left/Right Touch Carousel Sweep */
  .mobile-swipe-hint {
    display: flex;
  }

  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 4px 24px;
    margin: 0 -15px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
  }

  .services-grid::-webkit-scrollbar {
    height: 6px;
  }

  .services-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }

  .services-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
  }

  .service-card {
    flex: 0 0 82%;
    max-width: 320px;
    scroll-snap-align: center;
    border-radius: 12px;
    padding: 28px 20px;
  }

  .applications-page {
    padding-top: 70px;
  }

  .applications-hero {
    padding-top: 60px;
  }

  .applications-hero h1 {
    font-size: 30px;
  }

  .applications-hero p {
    font-size: 15px;
  }

  .applications-card {
    padding: 24px 16px 30px;
  }

  .application-card-inner {
    padding: 24px;
  }
}
