@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: "Poppins";
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: black;
  height: 40vh;
}

/* Default desktop styles (you already have most of these) */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  background-color: transparent;
  position: relative;
  animation: navslide 2.5s ease forwards;
}

.logo img {
  height: 40px;
  width: auto;
}
/* Desktop styles - always show nav */
#nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  list-style: none;
  transition: none; /* <-- prevents weird transition on desktop */
  opacity: 1; /* Always fully visible */
  max-height: none; /* No height limit */
}

#nav-links li a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

#nav-links li a:hover {
  color: red;
}

#nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ff0000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#nav-links li a:hover::after {
  transform: scaleX(1);
}

/* Menu toggle icon hidden by default */
.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
  color: #ffffff;
}

#nav-links.show {
  display: flex;
}

/* ========================== */
/* 📱  Responsive Styles 📱 */
/* ========================== */
@media (max-width: 768px) {
  .nav {
    justify-content: space-between;
  }

  #nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    z-index: 1000;
    transform: none; /* disable transform */
  }

  #nav-links.show {
    padding: 20px 0;
    max-height: 300px; /* Adjust based on content */
    opacity: 1;
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
    height: 32px;
  }
}

@keyframes navslide {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*About Section*/

/* Base styles */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  flex-wrap: wrap;
  background-color: transparent; /* optional background */
  animation: fadeSlideUp 1s ease forwards;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: rgb(255, 255, 255);
  font-weight: 500;
}

.hero-content strong {
  color: rgb(255, 0, 0);
  font-weight: 700;
}
.hero-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: white;
}

.hero-image {
  flex: 1;
  min-width: 250px;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border: 2px solid white;
  border-radius: 300px;
}

/* Responsive layout for small screens */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    max-width: 90%;
    padding: 10px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Section styling */
.work-section {
  padding: 60px 20px;
  background-color: transparent; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  margin-top: 5%;
  padding-bottom: 15%;
}

.news-box {
  background-color: #242424;
  width: 400px;
  border: 1px solid rgb(66, 66, 66);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: 1s ease;
  animation: fade-in 3s ease-in-out;
}

.news-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.news-box a {
  text-decoration: none;
  font-family: "Poppins";
  padding: 20px 20px;
  display: block;
  color: white;
  transition: 1s ease;
}

.news-box a:hover {
  color: #ff0000;
}

.news-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-box h1 {
  color: #ff0000;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  margin: 15px 20px 10px;
}

.news-box p {
  color: #ffffff;
  font-family: "Fustat", sans-serif;
  font-size: 1rem;
  margin: 0 20px 20px;
  line-height: 1.5;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-section {
  animation: fadeSlideUp 1s ease forwards;
}

#service {
  background-color: transparent;
  color: red;
  padding: 60px 20px;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.service-section h1 {
  font-size: 2.8rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: #1e1e1e;
  border-radius: 15px;
  padding: 30px 25px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-10px);
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ff0000;
}

.card ul {
  text-align: center;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 2;
}

.card ul li {
  margin-bottom: 10px;
  padding-left: 12px;
  position: relative;
}

.card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff0000;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ff0000;
}

/* Responsive */
@media (max-width: 900px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 90%;
  }
}

.card {
  background: rgba(30, 30, 30, 0.75); /* Dark with 75% opacity */
  border-radius: 15px;
  padding: 30px 25px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

#contact {
  padding: 60px 20px;
  background-color: #121212;
  color: #eee;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  max-width: 600px;
  margin: 10% auto;
  border-radius: 12px;
}

#contact h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #ff0000;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: #ff0000;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  transition: background-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
}

.contact-form button {
  background-color: #ff0000;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #cc0000;
}

/*Footer Code*/

footer {
  background-color: #121212;
  color: #eee;
  padding: 20px 40px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.footer-nav-links li a {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav-links li a:hover {
  color: #ff0000;
}

.footer-copy {
  white-space: nowrap;
  color: #aaa;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-nav-links {
    justify-content: center;
    gap: 20px;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: red; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 40px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  transition: 1s ease;
  animation: fadeSlideUp 1s ease forwards;
}

#myBtn:hover {
  background-color: #be0000; /* Add a dark-grey background on hover */
  scale: 1.1;
}

#email-btn {
  background-color: red;
  font-size: 20px;
  border: none;
  padding: 7px 10px;
  color: white;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 1s ease;
}

#email-btn:hover {
  scale: 1.1;
  color: red;
  background-color: white;
}