/* === Import Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* === Reset & Base Styles === */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body, h1, h2, h3, p, ul, li, label, input, textarea, button, nav, header, footer, main, section {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}
body {
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === Container === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Header === */
header {
  background: #2a5298;
  padding: 1rem 0;
  box-shadow: 0 4px 15px rgba(42, 82, 152, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 900;
  font-size: 2rem;
  color: #ff6f61;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  user-select: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul li a {
  color: #f0f4f8;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: background 0.4s ease, color 0.4s ease;
  display: inline-block;
}
nav ul li a:hover,
nav ul li a.active {
  background: #ff6f61;
  color: #162a47;
  box-shadow: 0 6px 15px rgba(255, 111, 97, 0.5);
  transform: scale(1.1);
}

/* === Typography === */
h1, h2, h3 {
  font-weight: 700;
  color: #2a5298;
  line-height: 1.15;
  margin-bottom: 1rem;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.4rem;
}
p, li, label {
  color: #555;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* === Buttons === */
button,
.btn {
  background: #ff6f61;
  color: #162a47;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(255, 111, 97, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
button:hover,
.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255, 111, 97, 0.75);
}

/* === Sections === */
section {
  padding: 5rem 0;
}

/* === Grid Layout for Dashboard & Services === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.8rem;
}

/* === Cards === */
.card {
  background: #f9f9f9;
  border-radius: 25px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 25px rgba(42, 82, 152, 0.15);
  color: #333;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 15px 45px 0 #ff6f61;
}

/* === Forms (Contact Page) === */
form {
  max-width: 600px;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(42, 82, 152, 0.15);
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2a5298;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #2a5298;
  border-radius: 15px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #ff6f61;
  outline: none;
}
.required {
  color: #ff6f61;
  margin-left: 3px;
}

/* === Footer === */
footer {
  background: #2a5298;
  padding: 1.5rem 0;
  color: #a1eafbcc;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.1em;
  user-select: none;
  box-shadow: 0 -4px 10px rgba(42, 82, 152, 0.6);
}

/* === Specific index.html styles === */
.hero-section {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #f0f4f8;
  padding: 7rem 2rem 5rem;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 0 12px 35px rgba(42, 82, 152, 0.6);
}
.hero-section h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.hero-section p {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #cdd9e5cc;
}
.hero-section .btn {
  font-size: 1.25rem;
  padding: 1rem 3rem;
}

/* === Dashboard Specific === */
.dashboard-welcome {
  margin-bottom: 3rem;
}
.dashboard-welcome h1 {
  font-size: 2.8rem;
  color: #2a5298;
}
.dashboard-welcome p {
  font-size: 1.2rem;
  color: #555;
}

/* === Services Specific === */
.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.services-intro p {
  color: #555;
  font-size: 1.15rem;
}

/* === Contact Specific === */
.contact-section p {
  max-width: 600px;
  margin-bottom: 2rem;
  color: #555;
}

/* === Responsive === */
@media (max-width: 700px) {
  header .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  h1 {
    font-size: 2.4rem;
  }
  section {
    padding: 3rem 1rem;
  }
  .card {
    padding: 2rem 1.5rem;
  }
  .hero-section {
    padding: 5rem 1.5rem 3rem;
    font-size: 1rem;
  }
}
