/* ===== Base Reset & Typography ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* ===== Header Styles ===== */
header {
  background-color: #000000; /* Black background */
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

/* ===== Topbar ===== */
.topbar-container {
  background-color: #000000; /* Black background */
  color: white;
  font-size: 14px;
  padding: 8px 20px;
}

.topbar-inner {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left span {
  margin-right: 15px;
}

.topbar-right a {
  background-color: #00cc66;
  color: white;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
}

/* ===== Main Header Layout ===== */
.desktop-menu {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.menu-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  transition: color 0.3s ease;
}

.menu-link i {
  font-size: 18px;
  margin-bottom: 2px;
  display: block;
}

.menu-link:hover {
  color: #ffcc00;
}

.mobile-menu-icon {
  display: none;
  padding: 0 20px;
  margin: 0;
  height: 70px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mobile-menu {
  display: none;
  background: #000;
  width: 100%;
}

.mobile-menu a {
  display: block;
  padding: 12px;
  color: white;
  border-bottom: 1px solid #444;
}

.mobile-menu a:hover {
  background-color: #222;
}

/* ===== Hero Section ===== */
.hero {
  background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1470&q=80') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 180px 20px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 50, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 22px;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease;
}

.hero a {
  background-color: #f1c40f;
  padding: 15px 35px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #004d99;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  height: 4px;
  width: 60px;
  background: #f1c40f;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== Cards ===== */
.services, .technologies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card, .tech-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 260px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover, .tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* ===== Contact Form ===== */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-form button {
  background-color: #f1c40f;
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #e1b90d;
}

/* ===== Footer Section ===== */
.footer-section {
  background-color: #240052;
  color: #fff;
  padding: 60px 0 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fdd835;
}

.footer-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col:nth-child(2) {
  text-align: center;
}

.footer-col:nth-child(3) {
  text-align: right;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background-color: #fdd835;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 15.5px;
  color: #ddd;
  line-height: 1.6;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #fdd835;
}

.footer-col ul li i {
  width: 20px;
  display: inline-block;
  text-align: center;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  color: yellow;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 14px;
  color: #ccc;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== Animation Effects ===== */
.animated-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media screen and (max-width: 768px) {

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px; /* Slightly reduced padding */
  }

  .topbar-inner {
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 5px;
    padding: 6px 15px; /* Reduced topbar padding */
  }

  .logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .logo img {
    max-height: 42px; /* Slightly smaller logo */
    width: auto;
    margin-right: 10px;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu-icon {
    display: flex;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px;
    z-index: 1000;
  }

  .mobile-menu a {
    padding: 12px 0;
    color: white;
    font-size: 18px;
    border-bottom: 1px solid #444;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .services {
    flex-direction: column;
    gap: 20px;
  }

  .service-card, .tech-card {
    width: 100%;
  }

  .contact-section {
    flex-direction: column;
  }
}
