/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
header {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

nav {
  max-width: 1200px;
  height: 80px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo {
  font-size: 1.9rem;
  font-weight: bold;
  color: #111;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: 0.3s;
  font-size: 1.1rem;
}

.nav-links li a:hover {
  color: #e63946;
}

/* Hero Section */
.header {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right, #111, #222);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.header h1 {
  font-size: 68px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.header h1:nth-child(2) {
  color: #e63946;
}

.header p {
  font-size: 26px;
  font-weight: bold;
  color: #ff6b6b;
  margin-top: 20px;
}

/* About Section */
.about {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 50px;
  margin-bottom: 25px;
  color: #111;
}

.about p {
  font-size: 18px;
  color: #444;
  line-height: 1.7;
}

/* Services Section */
.services {
  max-width: 1100px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
}

.services h2 {
  font-size: 55px;
  margin-bottom: 20px;
  color: #111;
}

.services p {
  font-size: 20px;
  margin-bottom: 50px;
  color: #555;
}

.services .blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.services .block {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-align: left;
}

.services .block:hover {
  transform: translateY(-7px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.services .block img {
  width: 55px;
  height: 55px;
  margin-bottom: 18px;
}

.services .block h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #e63946;
}

.services .block p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  background: #fafafa;
  padding: 80px 20px;
  text-align: center;
}

.portfolio h2 {
  font-size: 50px;
  margin-bottom: 45px;
  color: #111;
}

.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio .item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.portfolio .item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.portfolio .item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #e63946;
}

.portfolio .item p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: 50px;
  margin-bottom: 20px;
  color: #111;
}

.contact .lead {
  margin-bottom: 30px;
  font-size: 18px;
  color: #555;
}

.contact-form .row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
}

.btn {
  background: #e63946;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background: #c92c3c;
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
}

footer .social-icons {
  margin-top: 12px;
}

footer .social-icons a {
  color: #ccc;
  margin: 0 12px;
  font-size: 20px;
  transition: 0.3s;
}

footer .social-icons a:hover {
  color: #e63946;
}

/* Responsive */
@media (max-width: 900px) {
  .services .blocks,
  .portfolio .grid {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 0 20px;
  }

  .header h1 {
    font-size: 48px;
  }
}
