/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons",
    "Montserrat", "Raleway", Helvetica, Arial, sans-serif;
  background-color: #1d1d1d;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body#error-page {
  background: #1d1d1d;
}

/* Navigation Styles */
header {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-style: normal;
  font-weight: 270;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
}

/* Main Content */
main {
  margin-top: 0;
  padding: 0;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/homepage-hero.svg");
  background-position: top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-style: normal;
  font-weight: 410;
  font-size: 62px;
  line-height: 57px;
  letter-spacing: 0.14em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero p {
  color: #ffffff;
  font-style: normal;
  font-weight: 410;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0.06em;
}

/* Section Styles */
section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

section p {
  margin-bottom: 1.5rem;
}

.responsive-svg {
  width: 100vw;
  height: auto;
  display: block;
}

/* Driver/Shipper Page Styles */
.page-hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

/* About Us Page Styles */
main.about-page {
  background-image: url("../images/aboutus-bg.svg");
  background-size: cover;
  background-position: center;
}

.about-section {
  padding: 4rem 2rem;
}

.about-section h2 {
  color: #ffffff;
  font-style: normal;
  font-weight: 540;
  font-size: 48px;
  line-height: 200%;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.about-section p {
  color: #ffffff;
  font-style: normal;
  font-weight: 410;
  font-size: 20px;
  line-height: 200%;
  letter-spacing: 0.02em;
}

/* Service Page Styles */
.service-hero {
  background: #1d1d1d;
  text-align: center;
}

.service-faq svg {
  width: 100%;
}

.smart-steps {
  background: #1d1d1d;
}

/* Contact Page Styles */
.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-form h2 {
  margin-bottom: 2rem;
  color: #3498db;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #34495e;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}

.submit-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.office-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.office-info h2 {
  color: #ffffff;
  font-style: normal;
  font-weight: 410;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0.02em;
}

.office-info p {
  color: #ffffff;
  font-style: normal;
  font-weight: 410;
  font-size: 16px;
  line-height: 200%;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.office-card {
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.office-card img {
  width: 56px;
  height: auto;
}

.office-card h3 {
  color: #ffffff;
  font-style: normal;
  font-weight: 410;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: 0.02em;
}

/* 404 Page Styles */
.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: linear-gradient(90deg, #0f0f0f 0%, #44474c 100%);
}

.error-illustration {
  max-width: 500px;
  margin-bottom: 2rem;
}

.error-page h1 {
  font-size: 4rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #bdc3c7;
}

.back-home-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
}

/* Footer Styles */
footer {
  background: #1d1d1d;
  padding: 3rem 2rem 1rem;
  border-top: 1px solid #34495e;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-support h3,
.footer-newsletter h3 {
  color: #ffffff;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-support ul {
  list-style: none;
}

.footer-links ul li,
.footer-support ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-support ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-support ul li a:hover {
  color: #3498db;
}

.footer-newsletter input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #34495e;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.footer-newsletter button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.footer-social {
  text-align: left;
  margin-bottom: 2rem;
}

.footer-social h3 {
  color: #f5f7fa;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
}

.footer-social a {
  margin: 0 0.5rem;
  display: inline-block;
}

.footer-social img {
  width: 30px;
  height: 30px;
}

.footer-app-download {
  text-align: right;
  margin-bottom: 2rem;
}

.footer-app-download span {
  color: #ffffff;
  font-style: normal;
  font-weight: 540;
  font-size: 32px;
  line-height: 38px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Responsive Design */
@media (max-width: 1600px) {
  section.page-hero {
    margin-top: 104px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.visible {
  display: block;
}

/* Additional CSS for JavaScript functionality */

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  nav ul.nav-open {
    display: flex;
  }
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.field-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group input.focused,
.form-group textarea.focused,
.form-group select.focused {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group input.has-value,
.form-group textarea.has-value,
.form-group select.has-value {
  background-color: rgba(52, 152, 219, 0.05);
}

/* Message Popup Styles */
.message-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  cursor: pointer;
  animation: slideInRight 0.3s ease-out;
  max-width: 300px;
  word-wrap: break-word;
}

.message-popup.success {
  background-color: #27ae60;
}

.message-popup.error {
  background-color: #e74c3c;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* FAQ Styles */
.faq-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
  font-style: normal;
  font-weight: 270;
  line-height: 24px;
  letter-spacing: 0.02em;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #888888;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: #bdc3c7;
}

.faq-answer p {
  margin: 0;
  line-height: 30px;
  color: #ffffff;
  font-style: normal;
  font-weight: 270;
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* Radio Button Styles */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.radio-group input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Loading States */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Image Lazy Loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img:not(.lazy) {
  opacity: 1;
}

/* Partner Services Icons */
.partner-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-icon {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.service-icon:hover {
  transform: translateY(-5px);
}

.service-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.service-icon p {
  margin: 0;
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* Enhanced Responsive Design */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .partner-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .radio-group {
    flex-direction: column;
  }

  .message-popup {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .nav-toggle,
  .message-popup {
    display: none;
  }

  main {
    margin-top: 0;
  }

  body {
    background: white;
    color: black;
  }
}
