/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1140px;
  margin: auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

p {
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: #007BFF;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
}

/* Dark Mode Button */
.dark-mode-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 16px;
  font-size: 14px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dark-mode-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* Hero */
.hero {
  background: url('assets/images/hero.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 120px 20px 100px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #007BFF;
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* About */
.about {
  padding: 80px 20px;
  background: white;
}
.about ul {
  margin-top: 15px;
}
.about ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}
.about ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #007BFF;
}

/* Services */
.services {
  padding: 80px 20px;
  background: #f0f0f0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.service-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.service-box img {
  width: 70px;
  margin-bottom: 15px;
}

/* Portfolio */
.portfolio {
  padding: 80px 20px;
  background: white;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.portfolio-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonials {
  padding: 80px 20px;
  background: #f0f0f0;
}
.testimonial-box {
  background: white;
  padding: 25px;
  border-left: 6px solid #007BFF;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.testimonial-box:hover {
  transform: translateX(5px);
}

/* Contact */
.contact {
  padding: 80px 20px;
  background: white;
}
.contact-info {
  margin-top: 20px;
}
.contact iframe {
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 25px;
  font-size: 0.95rem;
}
.footer a {
  color: #007BFF;
  margin: 0 10px;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #0056b3;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .hero {
  background-color: #1e1e1e;
}

body.dark-mode .about,
body.dark-mode .services,
body.dark-mode .portfolio,
body.dark-mode .testimonials,
body.dark-mode .contact,
body.dark-mode .footer {
  background-color: #1e1e1e !important;
  color: #f1f1f1;
}

body.dark-mode .service-box,
body.dark-mode .portfolio-grid img,
body.dark-mode .testimonial-box,
body.dark-mode .contact iframe {
  background-color: #2c2c2c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonial-box {
  border-left-color: #1e88e5;
}

body.dark-mode a {
  color: #1e88e5;
}

body.dark-mode .btn-primary {
  background-color: #1e88e5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}