/* --- Base Reset --- */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #f4f6fb;
  color: #232323;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* --- Header Area --- */
.image-header-area {
  width: 100vw;
  margin: 0;
  padding: 0;
  background: linear-gradient(90deg, #6C63FF 0%, #48C9B0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.header-banner-box {
  background: #ffffff;
  border-radius: 36px;
  box-shadow: 0 8px 32px rgba(76, 76, 109, 0.13);
  width: 96vw;
  max-width: 900px;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: baseline;
}
.header-banner {
  width: 70%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
}

/* --- Navigation --- */
nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5em 0;
}
nav a {
  color: #232323;
  padding: 1em 1.5em;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover,
nav a.active,
nav a[aria-current="page"] {
  background: #6C63FF;
  color: #fff;
}
nav a:focus,
.cta-btn:focus,
button:focus,
.contact-form button:focus {
  outline: 2.5px solid #A259FF;
  outline-offset: 1.5px;
  background: #48C9B0;
  color: #fff !important;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(120deg, #6C63FF 60%, #48C9B0 100%);
  color: #fff;
  text-align: left;
  padding: 3em 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;
}
.hero-content {
  max-width: 500px;
}
.hero h1,
.hero h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.hero p {
  font-size: 1.3em;
  margin-bottom: 1.5em;
}

/* CTA Button Shared */
.cta-btn {
  background: #00CED1;
  color: #fff;
  padding: 1em 2.5em;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.10);
  transition: background 0.2s, transform 0.2s;
}

/* Button visibility control */
.desktop-only {
  display: inline-block;
  margin-top: 1.5em;
}
.mobile-only {
  display: none;
}

/* Hover */
.cta-btn:hover,
.cta-btn:focus {
  background: #48C9B0;
  transform: scale(1.05);
}

/* Image */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  text-align: center;
}
.hero-image {
  max-width: 500px;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(76, 76, 109, 0.10);
  object-fit: cover;
  object-position: center;
  background: #f4f6fb;
}

/* --- Main Content --- */
.container {
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}
.section {
  margin-bottom: 2.5em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
}
.card {
  background: #fff;
  padding: 2em 1.2em;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card i {
  font-size: 2.2em;
  color: #6C63FF;
  margin-bottom: 0.5em;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* --- Fade-In Animation --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.65, .05, .36, 1),
              transform 0.7s cubic-bezier(.65, .05, .36, 1);
}
.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

/* --- Footer --- */
footer {
  background: #22223B;
  color: #fff;
  text-align: center;
  padding: 2em 0 1em;
  font-size: 1em;
  margin-top: 2em;
}
footer a {
  color: #A259FF;
  text-decoration: none;
  margin: 0 0.5em;
  font-weight: 600;
  transition: color 0.2s;
  font-size: 1.08em;
}
footer a:hover,
footer a:focus {
  color: #48C9B0;
}

/* --- Forms --- */
input,
textarea {
  font-family: inherit;
  font-size: 1em;
  padding: 0.7em;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1em;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
input:focus,
textarea:focus {
  border-color: #6C63FF;
  outline: none;
}
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fff inset;
  -webkit-text-fill-color: #232323;
}
button,
.contact-form button {
  background: #6C63FF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 2em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover,
.contact-form button:hover,
button:focus,
.contact-form button:focus {
  background: #A259FF;
}
button:disabled,
.contact-form button:disabled {
  background: #b8b8c9;
  cursor: not-allowed;
  color: #f7f7f7;
  opacity: 0.65;
}

/* --- Social Links --- */
.social-links a {
  color: #6C63FF;
  font-size: 1.5em;
  margin-right: 0.5em;
  transition: color 0.2s;
}
.social-links a:hover,
.social-links a:focus {
  color: #A259FF;
}

/* --- Contact Map --- */
.contact-map {
  border-radius: 14px;
  margin: 1.5em 0 .5em;
  width: 100%;
  min-height: 150px;
  box-shadow: 0 3px 15px rgba(108, 99, 255, 0.10);
  border: none;
}

/* --- Success/Error Messages --- */
.success,
.error {
  font-weight: 500;
  margin-bottom: 12px;
  border-radius: 5px;
  font-size: 1.08em;
}
.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px 14px;
}
.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px 14px;
}

/* --- Responsive Layouts --- */
@media (max-width: 900px) {
  .image-header-area {
    min-height: 160px;
  }

  .header-banner-box {
    width: 96vw;
    max-width: 96vw;
    height: 180px;
    border-radius: 20px;
    align-items: center;
  }

  .header-banner {
    width: 90%;
    height: 100%;
    border-radius: 20px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    margin-top: 2em;
  }

  .hero-image-wrapper {
    text-align: center;
  }

  /* 🔁 Show only mobile-specific button */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    margin: 1.5em auto 0;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .card {
    padding: 1em 0.4em;
  }
  nav a {
    padding: 0.7em 0.8em;
    font-size: 0.96em;
  }
}
