/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #121212;
}

header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo img {
    width: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative; /* Enable dropdown positioning */
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    transition: color 0.3s;
    display: inline-block; /* Ensure padding applies correctly */
}

.nav-links a:hover {
    color: #00d4ff;
}

/* Dropdown styles */
.dropdown-menu {
    display: none; /* Initially hidden */
    position: absolute; /* Position relative to parent */
    top: 100%; /* Align dropdown below the parent */
    left: 0; /* Align dropdown with the parent */
    background-color: #444;
    list-style: none;
    padding: 0; /* Remove extra padding */
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Softer shadow */
    border-radius: 4px;
    z-index: 1000; /* Ensure it stays above other elements */
    min-width: 180px; /* Adjust width for better alignment */
}

.dropdown-menu li {
    margin: 0; /* Remove extra margin between items */
}

.dropdown-menu a {
    color: white;
    padding: 10px 16px; /* Larger padding for better usability */
    white-space: nowrap; /* Prevent text wrapping */
    display: block; /* Ensure each link occupies full width */
    text-align: left; /* Align text to the left */
    font-size: 14px; /* Slightly smaller font for dropdown */
}

.dropdown-menu a:hover {
    background-color: #575757;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown */
}

/* Adjust for mobile responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack logo and links */
    }

    .nav-links {
        flex-direction: column; /* Stack links vertically */
        align-items: flex-start; /* Align to left */
    }

    .dropdown-menu {
        min-width: 100%; /* Full width on smaller screens */
    }
}

/* Hero Section */
.hero {
  background: url('/images/freelancing_hero.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero .btn {
  padding: 12px 24px;
  background-color: #00d4ff;
  color: #121212;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.hero .btn:hover {
  background-color: #008bbd;
}

/* Features Section */
.why-freelance {
  text-align: center;
  padding: 50px 20px;
}

.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.feature-item {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.feature-item i {
  font-size: 36px;
  color: #00d4ff;
}

.feature-item h3 {
  margin: 10px 0;
}

/* Projects Section */
.projects {
  padding: 50px 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card .btn {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 16px;
  background-color: #00d4ff;
  color: #121212;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.project-card .btn:hover {
  background-color: #008bbd;
}

/* Testimonials Section */
.testimonials {
  padding: 50px 20px;
  text-align: center;
}

.testimonial-card {
  margin-top: 20px;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Call-to-Action Section */
.call-to-action {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, #00d4ff, #008bbd);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin: 30px auto;
  max-width: 800px;
}

.call-to-action h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.call-to-action .btn {
  padding: 12px 24px;
  background-color: #fff;
  color: #008bbd;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s;
}

.call-to-action .btn:hover {
  background-color: #e6f7ff;
  transform: scale(1.05);
}


/* Footer Section */
.footer {
    background: linear-gradient(135deg, #000428, #004e92); /* Gradient background */
    color: white;
    padding: 40px 20px 10px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    width: 100px; /* Adjust logo size */
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 18px;
    font-weight: bold;
}

.footer-links {
    margin: 20px 0;
}

.footer-links h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #00d4ff; /* Highlight color on hover */
}

.footer-social h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-social a {
    color: white;
    font-size: 24px;
    margin-right: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    font-size: 14px;
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .features {
    gap: 20px;
  }

  .call-to-action h2 {
    font-size: 24px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero {
    height: auto;
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .call-to-action {
    padding: 40px 15px;
    margin: 20px;
  }

  .call-to-action h2 {
    font-size: 22px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links, .footer-social {
    margin: 20px 0;
  }
}

/* Small Phones (≤480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .feature-item {
    padding: 15px;
  }

  .call-to-action h2 {
    font-size: 20px;
  }

  .footer-links h3,
  .footer-social h3 {
    font-size: 18px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}