/* Custom CSS for NAJ Shipping Website */

:root {
  --naj-blue: #0039a6;  /* Primary blue from logo */
  --naj-black: #222222; /* Dark color for text */
  --naj-white: #ffffff; /* White for backgrounds */
  --naj-light-blue: #e6f0ff; /* Light blue for accents */
  --naj-gray: #f5f5f5; /* Light gray for sections */
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--naj-black);
  line-height: 1.6;
  background-color: var(--naj-white);
}

/* Navigation */
.navbar {
  background-color: var(--naj-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
  height: 50px; /* Set fixed height */
  width: auto; /* Adjust width proportionally */
}

.nav-link {
  color: var(--naj-black) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--naj-blue) !important;
}

.navbar-toggler {
  border-color: var(--naj-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 57, 166, 0.8), rgba(0, 57, 166, 0.9)), url('/static/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--naj-white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Buttons */
.btn-primary {
  background-color: var(--naj-blue);
  border-color: var(--naj-blue);
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #002d80;
  border-color: #002d80;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary {
  color: var(--naj-blue);
  border-color: var(--naj-blue);
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline-primary:hover {
  background-color: var(--naj-blue);
  color: var(--naj-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--naj-black);
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--naj-blue);
  margin: 20px auto 0;
}

/* Service Cards */
.service-card {
  background-color: var(--naj-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  margin-bottom: 30px;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 25px;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--naj-black);
}

/* Features Section */
.features-section {
  background-color: var(--naj-light-blue);
}

.feature-item {
  text-align: center;
  margin-bottom: 40px;
}

.feature-icon {
  font-size: 3rem;
  color: var(--naj-blue);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--naj-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

/* Call to Action */
.cta-section {
  background-color: var(--naj-blue);
  color: var(--naj-white);
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Footer */
footer {
  background-color: var(--naj-black);
  color: var(--naj-white);
  padding: 60px 0 30px;
}

.footer-logo img {
  height: 60px; /* Set fixed height to 60px as requested */
  width: auto; /* Adjust width proportionally */
  margin-bottom: 20px;
}

/* Added for the company name in white */
.footer-company-name {
  color: var(--naj-white);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-links h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--naj-white);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--naj-white);
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  color: var(--naj-white);
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: var(--naj-blue);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  color: #aaaaaa;
}

/* Contact Form */
.contact-form {
  background-color: var(--naj-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-control {
  border: 1px solid #dddddd;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.form-control:focus {
  border-color: var(--naj-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 57, 166, 0.25);
}

/* Car Marketplace */
.car-filter {
  background-color: var(--naj-light-blue);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.car-card {
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s;
}

.car-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-card-body {
  padding: 20px;
}

.car-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--naj-blue);
  margin-bottom: 15px;
}

.car-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eeeeee;
  padding-top: 15px;
}

.car-feature {
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}
