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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #080b18;
  color: #ffffff;
  line-height: 1.6;
}

/* Header */
header {
  width: 100%;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #22283c;
  position: sticky;
  top: 0;
  background: #080b18;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  color: #d8dbea;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

nav a:hover {
  color: #ffffff;
}

/* Hero */
.hero {
  min-height: 540px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, #252b65 0%, transparent 35%),
    #080b18;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero p {
  max-width: 680px;
  color: #aeb5ca;
  font-size: 19px;
}

/* Search */
.search {
  width: min(680px, 100%);
  display: flex;
  margin-top: 35px;
}

.search input {
  width: 100%;
  padding: 17px 20px;
  background: #11162a;
  border: 1px solid #303751;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  color: #ffffff;
  outline: none;
  font-size: 16px;
}

.search input:focus {
  border-color: #6d75ff;
}

.search button {
  padding: 0 28px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: #ffffff;
  color: #080b18;
  font-weight: 700;
  cursor: pointer;
}

/* Sections */
.section {
  width: min(1200px, 90%);
  margin: auto;
  padding: 70px 0;
}

.section h2 {
  font-size: 34px;
  margin-bottom: 30px;
}

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

/* Cards */
.card {
  padding: 27px;
  background: #11162a;
  border: 1px solid #252c43;
  border-radius: 18px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #6d75ff;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: #aeb5ca;
  font-size: 15px;
}

/* Footer */
footer {
  margin-top: 50px;
  padding: 35px 20px;
  text-align: center;
  color: #8f97ad;
  border-top: 1px solid #22283c;
}

/* Mobile */
@media (max-width: 700px) {
  header {
    padding: 18px 5%;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 480px;
    padding: 60px 18px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    width: 90%;
    padding: 50px 0;
  }

  .search button {
    padding: 0 18px;
  }
}

.category {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid #303751;
  border-radius: 20px;
  color: #b8c0ff;
}

.tool-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: #080b18;
  text-decoration: none;
  font-weight: 700;
}

.tool-btn:hover {
  opacity: 0.9;
}

.contact-intro {
  margin: 15px 0 30px;
  color: #aeb5ca;
  max-width: 650px;
}

.contact-box {
  max-width: 700px;
  padding: 30px;
  background: #11162a;
  border: 1px solid #252c43;
  border-radius: 18px;
}

.contact-box form {
  display: flex;
  flex-direction: column;
}

.contact-box label {
  margin: 15px 0 7px;
  font-weight: 600;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 14px 16px;
  background: #080b18;
  border: 1px solid #303751;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  outline: none;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #6d75ff;
}

.contact-box textarea {
  resize: vertical;
}

.contact-box .tool-btn {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

#formMessage {
  margin-top: 20px;
  color: #aeb5ca;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #aeb5ca;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #aeb5ca;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {

  header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 14px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
    font-size: 14px;
  }

  .hero {
    min-height: 420px;
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .search {
    width: 100%;
  }

  .section {
    width: 92%;
    padding: 45px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    width: 100%;
  }

  .contact-box {
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .logo img {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* =========================
   MOBILE RESPONSIVE FIX
========================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  header {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .logo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    font-size: 14px;
    padding: 6px 8px;
  }

  main,
  .container {
    width: 92%;
    max-width: 100%;
    margin: auto;
    padding: 20px 0;
  }

  form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  form input,
  form textarea,
  form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
  }

  form textarea {
    min-height: 120px;
  }

  form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
  }

  footer {
    width: 100%;
    text-align: center;
    padding: 25px 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }

  header {
    width: 100% !important;
    padding: 12px 15px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .logo {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .logo img {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  nav {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  nav a {
    font-size: 12px !important;
    padding: 4px 6px !important;
  }

  .section {
    width: 92% !important;
    padding: 35px 0 !important;
  }

  .contact-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
  }

  .contact-box form {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .contact-box label {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 5px !important;
  }

  .contact-box input,
  .contact-box textarea {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    font-size: 16px !important;
  }

  .contact-box textarea {
    min-height: 120px !important;
  }

  .contact-box button,
  .contact-box .tool-btn {
    width: 100% !important;
    margin-top: 15px !important;
    padding: 12px !important;
    text-align: center !important;
  }

  footer {
    width: 100% !important;
    padding: 25px 15px !important;
  }
}

/* Contact page logo size fix */
@media (max-width: 768px) {
  .logo img {
    width: 300px !important;
max-width: 300px !important;
    height: auto !important;
  }
}

.logo img {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 100px !important;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    width: 160px !important;
    max-width: 160px !important;
  }
}