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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f5f7fb;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  font-size: 2rem;
  margin-right: 0.5rem;
  color: #007bff;
}

.brand-name .title {
  font-weight: bold;
  display: block;
}
.brand-name .subtitle {
  font-size: 0.8rem;
  color: #777;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav.nav-links a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.2s ease;
}
nav.nav-links a:hover {
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}
.dropbtn:hover {
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}
.dropdown-content a {
  color: #333;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
}
.dropdown-content a:hover {
  background-color: #f0f0f0;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #007bff 0%, #00c3ff 100%);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}
.hero h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}
.hero p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.cta-buttons .btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn.primary {
  background-color: #ffffff;
  color: #007bff;
}
.btn.secondary {
  background-color: #f0f0f0;
  color: #007bff;
}
.btn.primary:hover,
.btn.secondary:hover {
  background-color: #0056b3;
  color: #ffffff;
}

/* Tools section */
.tools-section {
  padding: 3rem 0;
  background-color: #ffffff;
}
.tools-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tool-card h3 {
  margin-bottom: 0.5rem;
}
.tool-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}
.tool-card .btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.tool-card .btn.small:hover {
  background-color: #0056b3;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 2rem 0 1rem;
}
.footer-col h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  margin: 0.25rem 0;
  display: block;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover {
  color: #00c3ff;
}
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  nav.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  nav.nav-links.active {
    display: flex;
  }
  .dropdown-content {
    position: static;
    box-shadow: none;
  }
  .hamburger {
    display: block;
  }
}