/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-color: #0b1c3e;
  /* Deep Navy Blue */
  --secondary-color: #1e3a6e;
  /* Lighter Navy */
  --accent-color: #d32f2f;
  /* Red based on SMG logo */
  --text-dark: #222222;
  --text-light: #f5f5f5;
  --gray-light: #f4f6f8;
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

/* --- HEADER & NAV --- */
header {
  background-color: var(--primary-color);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-color);
}

.logo img {
  max-width: 50px; /* Adjust the width to make the logo proportional */
  height: auto; /* Maintain aspect ratio */
  display: block;
  /* filter: brightness(0) invert(1); Change logo color to white */
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* --- HERO SECTION --- */
#hero {
  height: 100vh;
  background:
    linear-gradient(rgba(11, 28, 62, 0.7), rgba(11, 28, 62, 0.7)),
    url("../img/ship.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 70px;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
}

/* --- ABOUT SECTION --- */
#about {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.about-text h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.about-text p {
  margin-bottom: 15px;
  color: #555;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--accent-color);
}

.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* --- VISION & MISSION --- */
#vision-mission {
  background-color: var(--gray-light);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.vm-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-color);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.vm-icon {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vm-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.vm-content p,
.vm-content ol {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
}

.vm-content ol {
  padding-left: 20px;
  list-style: decimal;
}

.vm-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--gray-light);
  text-align: center;
}

.vm-bottom-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-bottom-text i {
  font-size: 2rem;
  color: var(--accent-color);
}

.vm-bottom-images {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.vm-bottom-images img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- SERVICES --- */
#services {
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

#services .section-title {
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  transition: var(--transition);
}

.service-card:hover {
  background: white;
  transform: translateY(-10px);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--primary-color);
}

.service-card:hover i {
  color: var(--accent-color);
  background: rgba(211, 47, 47, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.service-card h3 {
  margin-bottom: 15px;
  color: white;
}

.service-card p {
  color: #ccc;
  font-size: 0.95rem;
}

/* --- WHY CHOOSE US --- */
#why-us {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  background-color: var(--gray-light);
  /* padding: 40px; */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.feature-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- ORGANIZATION --- */
#organization {
  background-color: var(--gray-light);
}

.org-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #051024;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f2eaea, #f4f6f8);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.org-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.1),
    rgba(255, 111, 97, 0.1)
  );
  z-index: -1;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.team-member {
  position: relative;
  display: inline-block;
  margin: 30px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); */
}

.profile-image {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid transparent;
  background: linear-gradient(to right, #d32f2f, #ff6f61);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 170px;
  height: 170px;
  border: 5px solid var(--accent-color);
  border-radius: 50%;
  z-index: -1;
  background: linear-gradient(to right, #d32f2f, #ff6f61);
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid --accent-color;
}

/* --- PARTNERS (Suppliers & Buyers) --- */
#partners {
  background-color: white;
  overflow: hidden;
}

.partners-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.partner-column {
  flex: 1;
  min-width: 30px;
}

.partner-column h3 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.partner-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-list li i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* --- GALLERY --- */
#gallery {
  background-color: #111;
  color: white;
}

#gallery .section-title {
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
  background-color: var(--primary-color);
  color: white;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: white;
}

.footer-col p {
  color: #aaa;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.contact-info i {
  color: var(--accent-color);
  margin-top: 5px;
}

.contact-info a {
  color: #aaa;
  transition: var(--transition);
}

.contact-info a {
  color: #aaa;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  background-color: #051024;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: #777;
  font-size: 0.85rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  .logo img {
    max-width: 50px; /* Adjust the width to make the logo proportional */
    height: auto; /* Maintain aspect ratio */
    display: block;
  }
  .logo {
    font-size: 12px;
    color: var(--accent-color);
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hamburger {
    display: block;
  }

  .about-grid,
  .vm-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 250px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .vm-bottom-images {
    flex-direction: column;
    gap: 20px;
  }

  .vm-bottom-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .team-member {
    text-align: center;
  }
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shake animation for buttons */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

.btn.shake {
  animation: shake 0.5s ease;
}
