/**
 * ID Shipping - Main Stylesheet
 * Component styles and layout
 */

/* ========================================
   1. NAVBAR
   ======================================== */

.navbar-modern {
  /* Positioning handled by modifier classes */
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  z-index: var(--z-fixed);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.navbar-modern.navbar-fixed-mode {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
 /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

@media (max-width: 768px) {
.navbar-modern.navbar-fixed-mode {
  top: 0px;
}
}

.navbar-modern.navbar-static-mode {
  position: relative;
  background: var(--white);
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  padding: var(--space-4) 0;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm); /* Optional: adds separation */
}

.navbar-modern.navbar-static-mode .nav-link {
  color: var(--text-dark) !important; /* Force black/dark text */
}

/* Maintain hover state for static mode */
.navbar-modern.navbar-static-mode .nav-link:hover,
.navbar-modern.navbar-static-mode .nav-link.active {
  color: var(--accent) !important;
}

.navbar-modern.navbar-static-mode .container {
  /* Ensure container alignment */
}

.navbar-modern.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3) var(--space-8);
  border-color: rgba(0, 0, 0, 0.05);
}
@media (max-width: 768px) {
.navbar-modern .navbar-brand img {
  height: 50px;
  transition: all var(--transition-base);
}
}
@media (min-width: 768px) {
.navbar-modern .navbar-brand img {
  height: 148px;
  transition: all var(--transition-base);
}
}

.navbar-modern.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-modern .nav-item {
  margin-left: var(--space-4);
}

.navbar-modern .nav-link {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-4) !important;
  transition: color var(--transition-fast);
  position: relative;
}

@media (max-width: 768px) {
.navbar-modern .nav-link {
  color:  #000;
}
.navbar-collapse{
  background-color: #fff;
}
}


.navbar-modern.scrolled .nav-link {
  color: var(--text-primary);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
  color: var(--accent);
}

.navbar-modern .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
  width: 80%;
}

/* Dropdown */
.navbar-modern .dropdown-menu {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  min-width: 220px;
}

.navbar-modern .dropdown-item {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.navbar-modern .dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
  transform: translateX(5px);
}

/* Mobile Toggle */
.navbar-toggler-modern {
  border: none;
  background: transparent;
  padding: var(--space-2);
  cursor: pointer;
}

.navbar-toggler-modern span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

.navbar-modern.scrolled .navbar-toggler-modern span {
  background: var(--text-primary);
}

/* Top Bar */
.top-bar {
  background: var(--secondary);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  transition: transform 0.4s ease;
  position: relative;
  z-index: var(--z-fixed);
}

.top-bar.hidden {
  transform: translateY(-100%);
}

/* ========================================
   2. HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 85vh;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  overflow: hidden;
  padding-top: 100px; /* Space for the floating navbar */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  opacity: 0.5;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 12, 31, 0.4) 0%, rgba(0, 12, 31, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--space-8);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--gray-200);
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glass-box {
  /* Glass effect removed */
  padding: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll-indicator a {
  color: var(--white);
  font-size: var(--text-2xl);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.hero-scroll-indicator a:hover {
  opacity: 1;
}

/* Wave decoration */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  overflow: hidden;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ========================================
   3. SERVICES SECTION
   ======================================== */

.services-section {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  height: 100%;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-lg);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card .icon-box {
  margin: 0 auto var(--space-6);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.service-card .btn {
  width: 100%;
}

/* ========================================
   4. ABOUT/PROMO SECTION
   ======================================== */

.promo-section {
  padding: var(--space-20) 0;
  background: var(--secondary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.promo-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.promo-content h2 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.promo-content p {
  color: var(--gray-300);
  font-size: var(--text-lg);
}

/* ========================================
   5. SHIPYARD CARDS
   ======================================== */

.shipyard-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 400px;
}

.shipyard-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.shipyard-card:hover img {
  transform: scale(1.1);
}

.shipyard-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: var(--white);
}

.shipyard-card h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.shipyard-card p {
  color: var(--gray-300);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   6. STATS SECTION
   ======================================== */

.stats-section {
  padding: var(--space-24) 0;
  background: var(--bg-gradient);
  position: relative;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.1"/></svg>');
  background-size: 50px 50px;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: var(--space-6);
}

.stat-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-2);
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
}

/* ========================================
   7. FOOTER
   ======================================== */

.footer-modern {
  background: var(--gray-900);
  color: var(--gray-300);
  padding-top: var(--space-16);
}

.footer-modern h4 {
  color: var(--white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-modern h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

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

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--gray-400);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact i {
  color: var(--accent);
  font-size: var(--text-lg);
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: var(--space-6) 0;
  margin-top: var(--space-12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ========================================
   8. PAGE HEADER
   ======================================== */

.page-header-modern {
  background: var(--bg-gradient);
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
  overflow: hidden;
}

.page-header-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
  background-size: 50px 50px;
}

.page-header-modern h1 {
  color: var(--white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  position: relative;
}

.breadcrumb-modern {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.breadcrumb-modern li {
  color: var(--gray-300);
  font-size: var(--text-sm);
}

.breadcrumb-modern li a {
  color: var(--accent);
}

.breadcrumb-modern li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--gray-500);
}

/* ========================================
   9. SCROLL TO TOP
   ======================================== */

.scroll-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ========================================
   10. LOADING SPINNER
   ======================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Loading spinner removed in favor of GIF */

/* ========================================
   11. CONTACT PAGE
   ======================================== */

.contact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--primary);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.contact-card .btn-map {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: var(--font-medium);
}

.contact-card .btn-map:hover {
  color: var(--accent);
}

/* ========================================
   12. BLOG CARDS
   ======================================== */

.blog-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

.blog-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: var(--space-6);
}

.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.blog-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.blog-card h3 a {
  color: var(--text-dark);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

/* ========================================
   13. RESPONSIVE OVERRIDES
   ======================================== */

@media (max-width: 991px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .stat-number {
    font-size: var(--text-4xl);
  }
  
  .shipyard-card {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: var(--space-32) 0 var(--space-16);
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .page-header-modern {
    padding: 260px 0 var(--space-12);
  }
  
  .page-header-modern h1 {
    font-size: var(--text-3xl);
  }
  
  .scroll-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 45px;
    height: 45px;
  }
  
  .footer-modern {
    text-align: center;
  }
  
  .footer-modern h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-social {
    justify-content: center;
  }
}
