/* Custom styles for Gulfstar 49 */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #333; /* Fallback color */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-width: 100vw;
  min-height: 100vh;
}

.hero-section .hero-title {
  text-wrap: balance;
  max-width: 100%;
  line-height: 1.3;
}

.hero-section img[src*="gulfstar-name"] {
  filter: brightness(0) invert(1);
}

.hero-background img {
  transition: transform 0.5s ease;
}

.hero-section:hover .hero-background img {
  transform: scale(1.05);
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Navigation Enhancements */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 70px;
  background-color: #003399 !important;
  border-bottom: 4px solid #ffffff;
  position: relative;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ff0000;
}

.navbar-brand {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand img {
  filter: brightness(0) invert(1);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.navbar-center img {
  filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
  color: white !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffd700 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffd700;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure navbar items don't overlap on smaller screens */
@media (max-width: 991px) {
  .navbar-center {
    position: static;
    transform: none;
  }
  
  .navbar-nav .nav-link {
    color: white !important;
  }
}

/* Center navbar title between logo and menu on large screens */
@media (min-width: 992px) {
  .navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar-center {
    position: static;        /* override absolute */
    transform: none;         /* reset transform */
    display: flex !important;
    justify-content: center;
    pointer-events: none;    /* prevent blocking menu clicks */
  }

  .navbar-collapse {
    justify-content: flex-end;
  }
}

/* Card Hover Effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Gallery Styles */
.gallery-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.overlay {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.gallery-item:hover .overlay {
  opacity: 1 !important;
}

/* Form Styling */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Background Gradients */
.bg-gradient-to-top {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Social Links */
.social-links a {
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    height: 80vh !important;
  }
  
  .hero-section img {
    max-width: 300px !important;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .hero-section {
    height: 70vh !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Utilities */
.object-fit-cover {
  object-fit: cover;
}

.transition {
  transition: all 0.3s ease;
}

.z-3 {
  z-index: 3;
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Navbar Brand Enhancement */
.navbar-brand {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

/* Contact Section Background */
#contact {
  background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

/* About section float layout for desktop */
.about-wrap::after {
  content: "";
  display: table;
  clear: both; /* clearfix to contain floated image */
}

.about-float-img {
  width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .about-float-img {
    float: left;
    max-width: 50%;
    margin: 0 2rem 1.25rem 0; /* space to the right/bottom */
  }
}

/* Specs table styling */
.specs-table th {
  width: 40%;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.specs-table td {
  text-align: right;
}

.specs-table tr + tr td,
.specs-table tr + tr th {
  border-top: 1px solid rgba(0,0,0,.06);
}

.specs-group + .specs-group {
  border-top: 1px solid rgba(0,0,0,.08);
}

/* Feature stats row (About section) */
.feature-row {
  row-gap: 1rem;
}

.feature-box {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  min-height: 72px; /* consistent height so baselines align */
}

.feature-box h5 {
  line-height: 1.2;
}

@media (min-width: 992px) {
  .feature-row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 15px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10050;
  border-top: 3px solid var(--primary-color);
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  backdrop-filter: blur(10px);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-banner p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.cookie-consent-banner .btn-sm {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  min-width: 80px;
}

.cookie-consent-banner .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-banner .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: none;
  box-shadow: none;
}

.cookie-consent-banner .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: none;
  box-shadow: none;
  min-height: auto;
}

.cookie-consent-banner .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  transform: none;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

.cookie-policy-link {
  color: var(--primary-color) !important;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-policy-link:hover {
  color: #0b5ed7 !important;
}

/* Responsive adjustments for cookie banner */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 12px 0;
  }
  
  .cookie-consent-banner p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .cookie-consent-banner .btn-sm {
    font-size: 12px;
    padding: 5px 12px;
    min-width: 70px;
  }
}

