/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #f9fafb; /* Light soft background */
  color: #333; /* Darker text for readability */
}

/* Variables for easy customization */
:root {
  --primary-color: #ff6f61; /* Vibrant coral red */
  --secondary-color: #6a82fb; /* Calm blue */
  --accent-color: #fbc02d; /* Bright yellow */
  --background-color: #fff; /* Clean white */
  --text-color: #222; /* Default dark text */
  --muted-color: #999; /* Muted gray for secondary text */
  --border-radius: 12px;
  --box-shadow: rgba(0, 0, 0, 0.1);
  --transition-duration: 0.3s;
}

/* Body & Text */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 1rem;
  padding: 20px;
}

/* Links & Buttons */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-duration);
}

a:hover {
  color: var(--secondary-color);
}

/* Smooth hover effects for all elements */
*,
*::before,
*::after {
  transition: all var(--transition-duration) ease-in-out;
}

/* Headers & Titles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: #222;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

/* Containers & Sections */
.section {
  background-color: #fff;
  padding: 60px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media(max-width: 768px) {
  body {
    padding: 10px;
  }
  .section {
    padding: 40px 20px;
  }
}

/* Navigation styles */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-radius: 0 0 10px 10px;
  transition: all 0.3s ease;
}

.nav a {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.nav a:hover {
  background-color: rgba(102, 166, 255, 0.2);
  transform: translateY(-2px);
}

/* Buttons - primary & secondary styles */
.btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,111,97,0.2);
}

.btn-primary:hover {
  background-color: #e65c4b;
  box-shadow: 0 8px 20px rgba(255,111,97,0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(255,111,97,0.1);
  transform: translateY(-2px);
}

/* Cards & Content Blocks */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #333;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Grid layout for features or services */
.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Footer styling with cheerful colors */
footer {
  background-color: #222;
  color: #eee;
  padding: 50px 20px;
  text-align: center;
  border-top: 3px solid var(--primary-color);
  margin-top: 60px;
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: #eee;
  margin: 0 10px;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent-color);
}

/* Special effects & transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility classes for spacing & alignment */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}