/* Fonts and Global Settings */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.5em;
}

p {
  font-weight: 300;
  font-size: 1.05rem;
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility and Layout Enhancements */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #0077cc;
  outline-offset: 2px;
}

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f8f8f8;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
  width: 60px;
  margin-right: 1rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.branding h1 {
  margin: 0;
  font-size: 1.5rem;
}

.branding p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a:focus {
  color: #0077cc;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, #ffffff, #f3f3f3);
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #333;
  max-width: 500px;
  margin: 0 auto;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #fff;
}

.feature {
  text-align: center;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  margin-bottom: 1rem;
}

/* Project Preview */
.preview {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.preview h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About Section */
#about {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #fff;
}

.about-img {
  flex: 0 0 200px;
  max-width: 200px;
  border-radius: 8px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.button-group {
  margin-top: 1.5rem;
  text-align: center;
}

.button-group .button {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.button-group .button:hover,
.button-group .button:focus {
  background-color: #005fa3;
  outline: none;
}

/* Footer */
footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background-color: #111;
  color: #fff;
  font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .branding {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}