/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e0e;
  color: #f0f0f0;
  line-height: 1.6;
}

a {
  color: #90caf9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #121212;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar .nav-links li a {
  font-weight: 500;
  color: #ffffff;
}

.navbar .nav-links li a:hover {
  transition: color 0.3s;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slider-container {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.overlay p {
  font-size: 1.2rem;
  max-width: 600px;
}

/* Sections */
section {
  padding: 3rem 2rem;
}

section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Contact */
.contact {
  text-align: center;
  background-color: #191919;
  padding: 4rem 2rem;
}

.contact button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #90caf9;
  border: none;
  border-radius: 0.5rem;
  color: #0e0e0e;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact button:hover {
  background-color: #64b5f6;
}

/* Responsive Navbar (for mobile) */
@media (max-width: 768px) {
  .navbar .nav-links {
    flex-direction: column;
    background-color: #121212;
    position: absolute;
    top: 60px;
    right: 2rem;
    display: none;
  }

  .navbar .nav-links.open {
    display: flex;
  }
}

/* What We Do Section */
.what-we-do {
  background-color: #121212;
  color: #fff;
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
}

.what-we-do-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.text-column {
  flex: 1 1 500px;
  max-width: 600px;
}

.text-column h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.text-column ul {
  padding-left: 20px;
}

.text-column li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.image-column {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.image-column img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .what-we-do-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .text-column,
  .image-column {
    max-width: 100%;
  }
}

.offer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.offer-image {
  flex: 1 1 400px;
  text-align: center;
}

.offer-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
}

.offer-text {
  flex: 1 1 500px;
}

.offer-text h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.offer-text p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
}

.offer-text ul {
  list-style: disc inside;
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
}

.offer-text li {
  margin-bottom: 10px;
}

/* Section Styling */
.tools-container {
  text-align: center;
  margin-top: 40px;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2.5rem;
  color: #ecf0f1;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-content {
  display: none;
  margin-top: 20px;
}

.tab-content.active {
  display: block;
}

.tools-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.tools-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-button {
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.tab-button:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.tab-button.active {
  color: #121212;
  border: 1px solid #4CAF50;
  font-weight: bold;
}

.tab-button:focus {
  outline: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .filter-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 300px;
  }
}

.tools-block {
  margin-bottom: 20px;
}

.tools-block h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.tools-block ul {
  list-style-type: none;
  padding: 0;
}

.tools-block ul li {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #b0b0b0;
  display: flex;
  align-items: center;
}

.tech-icon {
  margin-right: 10px;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .tab-button {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .tools-block ul li {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Who We Serve Section */
.who-we-serve {
  background-color: #121212;
  padding: 60px 20px;
  color: #ffffff;
}

.serve-header {
  text-align: center;
  margin-bottom: 40px;
}

.serve-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.serve-header p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto;
}

.serve-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.serve-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  width: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.serve-card:hover {
  transform: translateY(-5px);
}

.serve-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.serve-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.serve-card p {
  font-size: 0.95rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .serve-card {
    width: 100%;
    max-width: 100%;
  }
}

.footer {
  background-color: #1c1c1c;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-links,
.footer-right {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-logo img {
  width: 85px;
  margin-bottom: 0px;
}

.footer-left p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-social {
  margin-top: 10px;
}

.social-icon {
  color: #fff;
  font-size: 20px;
  margin: 0 10px;
  text-decoration: none;
}

.footer-links h4,
.footer-right h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-links ul,
.footer-right ul {
  list-style-type: none;
  padding: 0;
}

.footer-links li,
.footer-right li {
  font-size: 1rem;
  margin: 8px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #00ffcc;
}

.footer-bottom {
  background-color: #121212;
  padding: 15px;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #00ffcc;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 50px 20px;
  background-color: #121212;
  color: #fff;
}

.contact button {
  background-color: #f0f0f0;
  color: #000;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}

.contact button:hover {
  background-color: peachpuff;
}

/* Contact Modal */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
}

.close-btn:hover {
  color: #fff;
}

.contact-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: #333;
}

.contact-form button[type="submit"] {
  background-color: #00ffcc;
  color: #000;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button[type="submit"]:hover {
  background-color: #00ddb0;
}

.contact-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  /* Enables scrolling on small screens */
}

.contact-modal-content {
  background-color: #1e1e1e;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  color: #fff;
  border-radius: 8px;
  position: relative;
  margin: 50px auto;
  /* spacing from top */
}

@media (max-width: 768px) {
  .contact-modal-content {
    margin: 20px auto;
    /* Less margin on top for mobile */
    padding: 20px;
    /* Smaller padding on small screens */
    width: 95%;
  }

  .contact-form button[type="submit"] {
    width: 100%;
  }
}

/* Loader Overlay */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Loader Container */
.loader-container {
  text-align: center;
}

/* Image Style */
.loader-image {
  width: 140px;
  height: 75px;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Loading Text */
.loader-text {
  color: #ffffff;
  /* margin-top: 20px; */
  font-size: 1.1rem;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeInOut 2s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Fade Text Animation */
@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Responsive Adjustment */
@media (max-width: 600px) {
  .loader-image {
    width: 160px;
  }

  .loader-text {
    font-size: 1rem;
  }
}


#warnPopup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ff4444;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  animation: fadein 0.3s ease, fadeout 0.3s ease 2.5s;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeout {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.custom-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25b09b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  animation: fadein 0.3s ease, fadeout 0.3s ease 2.5s;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeout {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}