/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8f9fb;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a6cf7;
}

.logo-img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

/* Navigation Menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #4a6cf7;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #e3eeff, #f6f9ff);
}

.hero h1 {
  font-size: 2.8rem;
  color: #1a1a1a;
}

.hero p {
  margin-top: 1rem;
  color: #555;
  font-size: 1.1rem;
}

.hero .btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #4a6cf7;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #3753d9;
}

/* ===== Section ===== */
.section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
}

/* ===== Card Layout ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== Contact Form ===== */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: #4a6cf7;
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #3753d9;
}

/* ===== Footer ===== */
footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* ===== Responsive Navigation (Mobile) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Responsive Breakpoints ===== */

/* --- Tablets (<= 900px) --- */
@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #fff;
    margin-top: 1rem;
    padding: 1rem 0;
    border-radius: 0.5rem;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* --- Mobile (<= 600px) --- */
@media (max-width: 600px) {
  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .section {
    padding: 0 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 1.5rem;
  }
}