/* ---------- RESET ---------- */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  scroll-behavior: smooth;
}
a { text-decoration: none; color: inherit; }

/* ---------- HEADER ---------- */
header {
  position: fixed; top: 0; width: 100%;
  background: #fff; display: flex;
  align-items: center; justify-content: space-between;
  padding: 1rem 2rem; z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.logo { font-weight: 700; font-size: 1.5rem; color: #4f46e5; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav ul li a { font-weight: 500; transition: color .3s; }
nav ul li a:hover { color: #4f46e5; }
#menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 1rem;
}
.hero h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .5rem; }
.hero span { color: #fbbf24; }
.hero p { margin-bottom: 2rem; font-size: 1.1rem; }
.btn {
  background: #fbbf24; color: #111; padding: .75rem 1.5rem;
  border-radius: 50px; font-weight: 600; transition: transform .3s;
}
.btn:hover { transform: translateY(-3px); }

/* ---------- SECTIONS ---------- */
.section-title {
  text-align: center; margin-bottom: 2.5rem;
  font-size: 2rem; position: relative;
}
.section-title::after {
  content: ''; width: 60px; height: 4px;
  background: #4f46e5; display: block;
  margin: .5rem auto 0;
}
.about, .services, .portfolio, .contact {
  padding: 5rem 10%;
}

/* ---------- ABOUT ---------- */
.about p { max-width: 700px; margin: 0 auto; text-align: center; }

/* ---------- SERVICES ---------- */
.cards {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: #f9fafb; padding: 2rem; border-radius: 8px;
  text-align: center; transition: transform .3s;
}
.card:hover { transform: translateY(-5px); }
.card i { font-size: 2rem; color: #4f46e5; margin-bottom: 1rem; }

/* ---------- PORTFOLIO ---------- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gallery img {
  width: 100%; border-radius: 8px; transition: transform .3s;
}
.gallery img:hover { transform: scale(1.05); cursor: pointer; }

/* ---------- CONTACT ---------- */
.contact form {
  max-width: 600px; margin: 0 auto;
  display: grid; gap: 1rem;
}
.contact input, .contact textarea {
  padding: .75rem; border: 1px solid #ccc; border-radius: 6px;
  font-family: inherit; resize: none;
}
.contact button { justify-self: center; }

/* ---------- FOOTER ---------- */
footer {
  background: #111; color: #eee; text-align: center;
  padding: 1.5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  nav ul {
    position: fixed; top: 0; right: -100%;
    height: 100vh; width: 60%;
    background: #fff; flex-direction: column;
    align-items: center; justify-content: center;
    transition: right .3s;
  }
  nav ul.active { right: 0; }
  #menu-toggle { display: block; }
}