/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fdfdfd;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color: #fff;
  color: #333;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.4), rgba(0, 122, 204, 0.4)),
        url('contact.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Services Section */
.services {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2F466B;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  flex: 1 1 280px;
  background-color: #f5f5f5;
  padding: 25px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 15px;
  color: #2F466B;
}

/* Gallery */
.gallery-title {
  margin-top: 60px;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
  grid-auto-rows: auto;
}

.project-item {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.03);
}

.project-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.project-item p {
  padding: 10px;
  font-weight: 500;
}

.project-gallery .project-item:nth-child(n+10) {
  display: none;
}

/* PC Repairs Section */
.pc-repairs {
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: 60px;
}

.pc-repairs h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.pc-repairs-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
}

.repairs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.repair-card {
  flex: 1 1 280px;
  background-color: #f5f5f5;
  padding: 25px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.repair-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.repair-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.repair-card:hover img {
  transform: scale(1.05);
}

.repair-card h3 {
  color: #2F466B;
  margin-bottom: 10px;
}

/* Contact Section */
.contact {
  padding: 60px 20px;
  background-color: #eef4f8;
  text-align: center;
  font-size: 1.2rem;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2F466B;
}

.contact-info {
  list-style: none;
  margin-top: 20px;
  font-size: 1.2rem;
}

.contact-info li {
  margin: 10px 0;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, transform 0.3s;
  z-index: 999;
}

#backToTop:hover {
  background-color: #005fa3;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .service-grid,
  .repairs-grid {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}