/* ===========================
   Root Variables & Reset
=========================== */
:root {
  --primary-color: #0077ff; /* Accent for buttons/links */
  --secondary-color: #0055aa; /* Hover state */
  --background-color: #ffffff;
  --section-bg: #f9f9f9; /* Light gray for hero/sections */
  --text-color: #333333; /* Headings */
  --body-text-color: #555555; /* Paragraphs */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ===========================
   Base Typography & Body
=========================== */
body {
  font-family: "Clash Display", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--background-color);
  color: var(--body-text-color);
}

header,
section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
h1 {
  font-size: 3.5rem; /* ~56px for hero heading */
  font-weight: 700;
  color: var(--text-color);
}

h2 {
  font-size: 2rem; /* ~32px for section titles */
  font-weight: 600;
  color: var(--text-color);
}

p {
  font-size: 1rem; /* 16px for body text */
  font-weight: 400;
  color: var(--body-text-color);
}

footer p {
  font-size: 0.875rem; /* 14px for footer */
  font-weight: 400;
  color: var(--body-text-color);
}

/* ===========================
   Header & Navigation
=========================== */
header {
  background: var(--background-color);
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  font-weight: normal;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
}

/* ===========================
   Hero Section
=========================== */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--section-bg);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.btn:hover {
  background: var(--secondary-color);
  transition: background 0.3s ease;
}
.contact_btn {
  transition: background 0.3s ease;
}
/* ===========================
   Sections (General)
=========================== */
section {
  padding: 4rem 2rem;
  text-align: center;
}

.service-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-card {
  background: #eee;
  padding: 2rem;
  border-radius: 5px;
}

/* ===========================
   Portfolio Section
=========================== */
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.portfolio-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.portfolio-item p {
  font-size: 0.95rem;
  color: var(--body-text-color);
  margin-bottom: 1rem;
}

.portfolio-item .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* ===========================
   Contact Section
=========================== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: auto;
}

input,
textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 0.7rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: var(--secondary-color);
}

/* ===========================
   Footer
=========================== */
footer {
  background: var(--text-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/*===============================
Responsive Adjustments
===============================*/
/* ===========================
   Responsive Adjustments
=========================== */

/* Small devices (phones) */
@media (max-width: 600px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  form {
    width: 100%;
    padding: 0 1rem;
  }
}

/* Medium devices (tablets) */
@media (max-width: 900px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
