/* VOYAGER CHARTERING - Modern Premium Styles */

:root {
  --primary-color: #0b1e36;
  /* Deep nautical blue */
  --secondary-color: #ffffff;
  --accent-color: #d4af37;
  /* Refined metallic gold */
  --accent-hover: #b5952f;
  --text-dark: #2c3e50;
  --text-light: #5a6c7d;
  --bg-light: #f4f7f6;
  /* Slightly cooler off-white */
  --border-color: #e2e8f0;
  --font-main: 'Inter', 'Roboto', sans-serif;
  --font-heading: 'Outfit', 'Montserrat', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Top Bar (New) --- */
.top-bar {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 5%;
  font-size: 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  font-weight: 500;
}

.top-bar i {
  margin-right: 5px;
}

/* --- Navigation --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: padding 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 2px;
  background-color: var(--secondary-color);
  margin: 6px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  height: 85vh;
  background: linear-gradient(rgba(11, 30, 54, 0.7), rgba(11, 30, 54, 0.6)), url('../images/isartal/WhatsApp%20Image%202026-01-19%20at%2015.09.06%20(1).jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--secondary-color);
  padding: 0 1rem;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: var(--secondary-color);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin: 0 auto 2.5rem auto;
  max-width: 700px;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.3s backwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  animation: fadeInUp 1s ease 0.6s backwards;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  margin-left: 1rem;
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- Sections --- */
.section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-text-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* --- Modern Activities Grid --- */
.activities-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.activity-media-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.activity-media-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.media-container {
  height: 240px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.media-container img, .media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-media-card:hover .media-container img,
.activity-media-card:hover .media-container video {
  transform: scale(1.05);
}

.media-text {
  padding: 2rem 1.5rem;
  flex-grow: 1;
}

.media-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-text i {
  color: var(--accent-color);
}

.media-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.activity-card {
  background: white;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), transparent);
  transition: var(--transition);
  z-index: 0;
}

.activity-card:hover::before {
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-color);
}

.activity-card>* {
  position: relative;
  z-index: 1;
}

.activity-card i {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* --- Fleet List View --- */
.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ship-list-item {
  display: flex;
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ship-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.ship-list-img {
  width: 350px;
  flex-shrink: 0;
}

.ship-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ship-list-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ship-list-info h3 {
  margin-bottom: 0.5rem;
}

.ship-specs-mini {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.ship-specs-mini div strong {
  color: var(--primary-color);
  display: block;
}

/* --- Departments (Contact) --- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.dept-card {
  background: white;
  padding: 2rem;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ship-list-item {
    flex-direction: column;
  }

  .ship-list-img {
    width: 100%;
    height: 300px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 4.5rem 5%;
  }

  .activities-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    height: 100vh;
    top: 0;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .top-bar {
    display: none;
  }

  .hero {
    height: 60vh;
    min-height: 50vh !important;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-content {
      padding: 0 1.5rem;
      width: 100%;
      box-sizing: border-box;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .activity-card {
    padding: 2rem 1.5rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
  }

  .ship-specs-mini {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .ship-specs-mini div {
    flex: 1 1 45%;
  }
  
  .ship-list-info .btn {
      align-self: center !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 5%;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .ship-list-img {
    height: 220px;
  }

  .ship-list-info {
    padding: 1.5rem;
  }

  .ship-specs-mini div {
    flex: 1 1 100%;
  }
  
  .specs-table th,
  .specs-table td {
      padding: 0.8rem;
      font-size: 0.9rem;
  }
}

/* --- Page Loader --- */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Hero Slider --- */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 6s ease-out;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(13, 37, 63, 0.7), rgba(13, 37, 63, 0.6));
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}