:root {
  --light-lavender: #e6e6fa;
  --light-blue: #add8e6;
  --dark-blue: #0a192f;
  --text-color: #333;
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --mobile-nav-bg: rgba(
    255,
    255,
    255,
    0.9
  ); /* More opaque for mobile overlay */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--light-lavender), var(--light-blue));
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Effect */
.glassmorphism-card,
.glassmorphism-section,
.glassmorphism-header,
.glassmorphism-footer,
.mobile-nav-overlay {
  /* Apply glassmorphism to the overlay too */
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: var(--glass-shadow);
}

.glassmorphism-header,
.glassmorphism-footer {
  border-radius: 0;
}

/* Header */
.glassmorphism-header {
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.glassmorphism-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  margin-right: 10px;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark-blue);
}

.logo-text p {
  font-size: 0.8rem;
  margin: 0;
  color: #666;
}

.contact-info {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  margin-right: 20px; /* Space between contact info and nav links */
}

.contact-info a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--text-color);
}

.contact-info span {
  margin: 0 10px;
  color: #999;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-color);
}

/* Hamburger Menu & Mobile Nav Overlay */
.hamburger-menu {
  font-size: 1.8rem;
  color: var(--dark-blue);
  cursor: pointer;
  display: none; /* Hidden by default, shown on mobile */
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(
    --mobile-nav-bg
  ); /* Use slightly more opaque glass for readability */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transform: translateX(100%); /* Start off-screen */
  transition: transform 0.4s ease-in-out;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 0; /* No rounded corners for full screen overlay */
  border: none;
}

.mobile-nav-overlay.active {
  transform: translateX(0); /* Slide in */
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.overlay-header .logo-img {
  height: 40px;
}

.overlay-header .logo-text h1 {
  font-size: 1.3rem;
}
.overlay-header .logo-text p {
  font-size: 0.7rem;
}

.close-btn {
  font-size: 2rem;
  color: var(--dark-blue);
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 600;
  font-size: 1.5rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--text-color);
}

.mobile-contact-item a {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555; /* Slightly less prominent than nav links */
}

.mobile-contact-item a i {
  color: var(--dark-blue);
}

/* Hero Section */
.hero-section {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  width: 100%;
  background: var(--glass-bg) url("./hero.png") no-repeat center center;
  background-size: cover; /* makes sure image fills area */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  /* Ensure text is readable over background image */
  color: var(--dark-blue); /* Adjust text color for contrast */
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from hero-content */
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: inherit; /* Inherit color from hero-content */
}

.cta-button {
  background-color: var(--dark-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1a3a5f;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark-blue);
}

/* Why Amplutech */
.why-amplutech-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  text-align: center;
}

.feature-card {
  padding: 20px;
  border-radius: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  flex: 1;
}

.feature-icon {
  height: auto;
  margin-bottom: 15px;
  width: 100%;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.service-card {
  padding: 25px;
  text-align: center;
}

.service-card h3 {
  color: var(--dark-blue);
  margin-bottom: 10px;
}

/* Industries */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center items for better appearance */
  gap: 20px;
  text-align: center;
}
.industry-item {
  width: 28%; /* Adjusted width for 3 items per row on desktop */
  min-width: 180px; /* Minimum width to prevent items from becoming too small */
  border: 2px solid var(--glass-border); /* Use glass border variable */
  border-radius: 10px;
  padding: 15px 0px;
  background: var(--glass-bg); /* Apply glassmorphism */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: var(--glass-shadow);
}

.industry-item img {
  height: 100px; /* Reduced height for better scaling */
  width: auto;
  max-width: 90%; /* Ensure image scales within card */
}
.industry-item p {
  font-size: 20px; /* Adjusted font size */
  font-weight: 700;
  color: var(--dark-blue);
  margin-top: 10px;
}

/* Partners & Clients */
.partners-clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.partners-clients-grid h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-blue);
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Increased gap for logos */
}

.logos-container img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain; /* Ensure logos fit well */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-container img:hover {
  filter: none; /* Remove grayscale on hover */
  opacity: 1;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr; /* Default to single column */
  gap: 40px;
}

.qr-code img {
  display: block;
  margin: 0 auto;
  max-width: 200px;
  height: auto;
  border-radius: 10px; /* Apply some border-radius to QR code image */
  border: 1px solid var(--glass-border);
}

.payment-details {
  text-align: center;
  margin-top: 15px;
  color: var(--dark-blue);
}

.contact-form-section .glassmorphism-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.contact-form-section label {
  margin-bottom: 5px;
  color: var(--dark-blue);
  font-weight: 600;
}

.contact-form-section input,
.contact-form-section textarea {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  color: var(--text-color);
}
.contact-form-section input::placeholder,
.contact-form-section textarea::placeholder {
  color: #777;
}

.contact-form-section button {
  cursor: pointer;
}

/* Footer */
.glassmorphism-footer {
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info h3 {
  font-size: 1.5rem;
  color: var(--dark-blue);
}

.footer-info p {
  font-size: 0.9rem;
  color: #666;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  margin: 0 10px;
}

.social-links img {
  height: 30px; /* Slightly larger social icons */
  filter: grayscale(100%) brightness(1.5); /* Lighter grayscale for glass feel */
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.social-links img:hover {
  filter: none;
  opacity: 1;
}

.footer-links a {
  color: var(--dark-blue); /* Changed to dark-blue for better visibility */
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.9rem;
  font-weight: 600;
}
.services-img {
  /* This class doesn't seem to be used in HTML */
  width: 100%;
}

/* Mobile Responsiveness */
.mobile-only {
  display: none; /* Hidden by default */
}

@media (max-width: 992px) {
  /* Adjust breakpoint for larger tablets */
  .contact-info.desktop-only,
  .nav-links.desktop-only {
    display: none; /* Hide desktop elements */
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
  }

  .glassmorphism-header .container {
    justify-content: space-between; /* Keep logo and hamburger separate */
  }
}

@media (max-width: 768px) {
  .glassmorphism-header .container {
    flex-direction: row; /* Keep header items in a row with hamburger */
    justify-content: space-between;
    align-items: center;
  }

  .logo-text h1 {
    font-size: 1.3rem;
  }

  .logo-text p {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
  }

  .why-amplutech-grid {
    flex-direction: column;
    gap: 20px;
  }

  .feature-card {
    flex: unset; /* Remove flex 1 to allow full width */
    width: 100%;
  }

  .industries-grid {
    justify-content: center;
  }
  .industry-item {
    width: 45%; /* Two items per row on mobile */
    min-width: 150px;
    padding: 10px 0;
  }
  .industry-item img {
    height: 80px;
  }
  .industry-item p {
    font-weight: 600;
    font-size: 16px;
  }

  .partners-clients-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    padding: 0 15px;
  }
  .footer-links a {
    margin: 0 10px;
  }
  .hero-section {
    padding: 10px;
  }
  .hero-content {
    border: 1px solid var(--dark-blue);
  }

  .glassmorphism-header {
    padding: 10px 0px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 30px;
  }
  .logo-text h1 {
    font-size: 1.1rem;
  }
  .logo-text p {
    font-size: 0.6rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .mobile-nav-links a {
    font-size: 1.2rem;
  }
  .mobile-contact-item a {
    font-size: 1rem;
  }

  .industry-item {
    width: 100%; /* Single column on very small screens */
  }
  .feature-icon {
    width: 100%;
  }
  .logos-container img {
    height: 45px;
  }
  .social-links img {
    height: 25px;
  }
}
