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

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f4f8fb;
  color: #333;
  overflow-x: hidden;
}

.header-flex {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, #ff7e00, #ffb347); 
  color: #fff;
}

.logo {
  width: 100px; /* Adjust size as needed */
  height: auto;
}

.header-text h1 {
  margin: 0;
  font-size: 2em;
}

.header-text p {
  margin: 0;
  font-size: 1em;
  color: #555;
}

header {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  padding: 20px 40px;
  animation: fadeDown 1s ease-in-out;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a,
nav button {
  color: #0072ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

nav a:hover,
nav button:hover {
  color: #005ecb;
}

.hero {
  padding: 80px 20px;
  text-align: center;
  background: url("images/ac-banner.jpg") no-repeat center center/cover;
  color: white;
  position: relative;
  animation: fadeIn 2s ease-in-out;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero h2,
.hero p,
.button {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  background: #0072ff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500; /* 👈 Add this line */
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.button:hover {
  transform: scale(1.05);
  background: #005ecb;
}

.location {
  text-align: center;
  margin: 2rem 0;
}

.map-link {
  color: #0077cc;
  font-weight: bold;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px 40px;
  background: #fff;
}

.feature-box {
  background: #f0f6ff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-box h3 {
  margin-bottom: 10px;
  color: #0072ff;
}

.grid {
  display: grid;
  gap: 16px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.product-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

h3,
h4 {
  margin: 12px 0 8px;
  color: #0072ff;
  font-size: 1.1rem;
}

p {
  margin: 6px 0;
  font-size: 0.9rem;
}

.btn,
.back-btn {
  padding: 10px 24px;
  margin: 15px auto;
  display: block;
  background: #0072ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover,
.back-btn:hover {
  background: #005ecb;
  transform: scale(1.05);
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-btn:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

footer {
  text-align: center;
  padding: 15px;
  background: #0072ff;
  color: #fff;
  margin-top: 20px;
}

form {
  background: #fff;
  max-width: 700px;
  width: 100%;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1.5s ease-in-out;
  box-sizing: border-box;
  margin: 0 auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0072ff;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 2px solid #d1d9e6;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: "Poppins", sans-serif;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #0072ff;
  box-shadow: 0 0 8px rgba(0, 114, 255, 0.3);
}

textarea {
  min-height: 120px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-family: "Poppins", sans-serif;
}

.modal-content h2 {
  margin-top: 0;
  color: #0072ff;
  text-align: center;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.modal-content button {
  margin-top: 20px;
  width: 100%;
  background: #0072ff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #005ecb;
}

.close-btn {
  float: right;
  font-size: 1.2rem;
  font-weight: bold;
  color: #0072ff;
  cursor: pointer;
}

.error-msg {
  color: red;
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offers-section {
  padding: 60px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  animation: fadeInUp 2s ease-in-out;
}

.offer-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.offer-title {
  font-size: 1.4rem;
  color: #0072ff;
  margin-bottom: 15px;
}

.offer-description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
}

.offer-valid {
  font-size: 0.9rem;
  color: #ff3b3b;
  font-weight: bold;
}

.brands-section {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  justify-content: center;
  justify-items: center;
  padding: 20px;
  animation: fadeInUp 1s ease-in-out;
}

.brand-logo {
  width: auto;
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.content {
  background: #ffffff;
  max-width: 900px;
  width: 100%;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1.5s ease-in-out;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 40px auto;
}

.content h2 {
  color: #0072ff;
  margin-top: 20px;
}

.content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.content li {
  margin-bottom: 8px;
}

.loading {
  text-align: center;
  padding: 40px;
  font-style: italic;
  color: #666;
}

.error {
  color: #ff3b3b;
  text-align: center;
  padding: 40px;
}
