/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #0a1f5c;
  color: #ffffff;
  line-height: 1.6;
}

a {
  color: #1da1f2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #0f3c8c;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.1rem;
  color: white;
  margin-left: 1rem;
}

.nav-logo {
  width: 50px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: white;
  font-weight: bold;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

.desktop-nav ul {
  display: flex;
  gap: 30px;
}

/* Mobile Navigation - hidden by default on desktop */
.mobile-nav {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
#hero {
  background: url("https://via.placeholder.com/1200x400?text=Circuit+Pixel+Repairs")
    center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .hero-logo {
  width: 400px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.5);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #5bcbff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
  box-shadow: 0 0 10px #25d366;
}

.call-btn {
  background: #007bff;
  color: white;
}

.call-btn:hover {
  background: #0056b3;
  box-shadow: 0 0 10px #007bff;
}

.email-btn {
  background: #dc3545;
  color: white;
}

.email-btn:hover {
  background: #c82333;
}

.facebook-btn {
  background: #1877f2;
  color: white;
}

.facebook-btn:hover {
  background: #166fe5;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 0 5px #5bcbff;
}

/* Services Overview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(29, 161, 242, 0.5);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* Why Choose Us */
#why-choose-us ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

#why-choose-us li {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

/* Languages */
#languages {
  text-align: center;
}

#languages p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Services Page */
.service-detail {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
}

.service-detail img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 2rem;
}

.service-info h3 {
  margin-bottom: 1rem;
  color: #1da1f2;
}

/* About Page */
#about {
  text-align: center;
}

#about img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 2rem 0;
  border-radius: 10px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: 1;
}

.gallery-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item p {
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Contact */
#contact {
  text-align: center;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: #0f3c8c;
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content .logo h3 {
  color: #1da1f2;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* WhatsApp Float */
#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#whatsapp-float a {
  display: block;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  /* Hide desktop navigation on mobile */
  .desktop-nav {
    display: none;
  }

  /* Show mobile navigation on mobile */
  .mobile-nav {
    display: block;
  }

  /* Mobile Menu Toggle - Show on mobile */
  .menu-toggle {
    display: flex;
  }

  /* Navigation mobile styles */
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  nav .logo {
    flex: 1;
  }

  nav .logo h1 {
    font-size: 1rem;
    margin-left: 0.5rem;
  }

  nav .nav-logo {
    width: 35px;
  }

  /* Mobile menu - hidden by default */
  .mobile-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
    text-align: center;
    background: rgba(15, 60, 140, 0.95);
    padding: 1rem 0;
    border-radius: 10px;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu li {
    margin: 0.5rem 0;
    margin-left: 0;
  }

  .mobile-menu li a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    display: block;
  }

  /* Hero Section mobile */
  #hero {
    height: 50vh;
    padding: 1rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  /* Sections mobile */
  section {
    padding: 2rem 1rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Key Highlights mobile */
  #key-highlights ul {
    text-align: left;
    padding-left: 1rem;
  }

  #key-highlights li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  /* Why Choose Us mobile */
  #why-choose-us ul {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  #why-choose-us li {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  /* Languages section mobile */
  #languages p {
    font-size: 1rem;
  }

  /* Service Detail mobile */
  .service-detail {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .service-detail img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .service-info h3 {
    font-size: 1.3rem;
  }

  .service-info p {
    font-size: 0.95rem;
  }

  /* About page mobile */
  #about p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
    text-align: center;
  }

  #about .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto;
  }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 180px;
  }

  /* Contact mobile */
  #contact p {
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }

  .contact-options {
    flex-direction: column;
    align-items: center;
  }

  .contact-options .btn {
    width: 100%;
    max-width: 280px;
    margin: 0.25rem 0;
  }

  /* Footer mobile */
  footer {
    padding: 1.5rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-content .logo h3 {
    font-size: 1.1rem;
  }

  .contact-info {
    width: 100%;
  }

  .contact-info p {
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* WhatsApp Float mobile - larger for touch */
  #whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  #whatsapp-float a {
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 1.3rem;
  }

  /* Key highlights mobile */
  #key-highlights,
  #why-choose-us,
  #languages {
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .logo h1 {
    font-size: 0.85rem;
  }

  nav .logo h1 {
    display: none;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .cta-buttons .btn,
  .contact-options .btn,
  #about .btn {
    font-size: 0.85rem;
  }
}
