/* ====================================================== */
/* NEW TEBA Marine Fenders - Custom CSS */
/* ====================================================== */

:root {
  /* Colors */
  --primary-color: #1a365d;
  --secondary-color: #2d5aa0;
  --warning-color: #ffd700;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
  --warning-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);

  /* Spacing */
  --section-padding: 80px 0;
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-family-ar: "Cairo", sans-serif;
  --font-family-en: "Roboto", sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ====================================================== */
/* Base Styles */
/* ====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-ar);
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* Arabic/English Font Classes */
.font-ar {
  font-family: var(--font-family-ar);
}

.font-en {
  font-family: var(--font-family-en);
}

/* Typography Utilities */
.fw-600 {
  font-weight: var(--font-weight-semibold);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.text-white-90 {
  color: rgba(255, 255, 255, 0.9);
}

/* ====================================================== */
/* Navigation */
/* ====================================================== */

.navbar-custom {
  background: var(--primary-gradient);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--box-shadow);
}

.navbar-brand {
  transition: transform var(--transition-fast);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--warning-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

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

.dropdown-menu {
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ====================================================== */
/* Buttons */
/* ====================================================== */

.btn-primary-custom {
  background: var(--warning-gradient);
  border: none;
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
  color: var(--primary-color);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ====================================================== */
/* Sections */
/* ====================================================== */

.hero-section {
  background: var(--primary-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.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 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
  animation: wave 20s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: translateX(-25px);
  }
  50% {
    transform: translateX(25px);
  }
}

.hero-content {
  z-index: 2;
  position: relative;
}

.stats-section {
  padding: var(--section-padding);
  background: var(--light-color);
}

.content-section {
  padding: var(--section-padding);
}

.content-section.bg-light {
  background: var(--light-color);
}

/* ====================================================== */
/* Cards & Components */
/* ====================================================== */

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  display: block;
  margin: 1rem 0 0.5rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all var(--transition-normal);
}

.stat-card:hover .icon-circle {
  transform: scale(1.1) rotate(10deg);
}

.product-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal);
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.product-card .card-header {
  background: var(--primary-gradient);
  color: white;
  padding: 1.25rem;
  border-bottom: none;
}

.product-card .card-body {
  padding: 1.5rem;
}

/* ====================================================== */
/* Section Titles */
/* ====================================================== */

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--warning-gradient);
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ====================================================== */
/* Language Sections */
/* ====================================================== */

.language-section {
  position: relative;
}

.language-divider {
  height: 80px;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.language-divider::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 1200 120"><path d="M600,112.77C268.63,112.77,0,65.52,0,7.23V120H1200V7.23C1200,65.52,931.37,112.77,600,112.77Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ====================================================== */
/* Forms */
/* ====================================================== */

.form-control,
.form-select {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.15);
  transform: translateY(-2px);
}

.form-label {
  font-weight: var(--font-weight-medium);
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* ====================================================== */
/* Footer */
/* ====================================================== */

.footer-custom {
  background: var(--primary-gradient);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
}

/* ====================================================== */
/* Back to Top Button */
/* ====================================================== */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--warning-gradient);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 1000;
  display: none;
  box-shadow: var(--box-shadow);
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--box-shadow-hover);
}

/* ====================================================== */
/* Notifications */
/* ====================================================== */

#successNotification {
  z-index: 9999;
  transition: all 0.4s ease;
  max-width: 400px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#overlay {
  z-index: 9998;
  transition: opacity 0.3s ease;
}

/* ====================================================== */
/* Animations */
/* ====================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ====================================================== */
/* Responsive Design */
/* ====================================================== */

@media (max-width: 1200px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px 0;
  }

  .navbar-nav {
    background: rgba(26, 54, 93, 0.95);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(20px);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .product-card .card-body {
    padding: 1rem;
  }

  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 30px 0;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }

  #successNotification {
    max-width: 320px;
    margin: 0 20px;
  }
}

/* ====================================================== */
/* Print Styles */
/* ====================================================== */

@media print {
  .navbar,
  .footer-custom,
  #backToTop,
  .btn,
  #successNotification,
  #overlay {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    page-break-after: always;
  }

  .content-section {
    page-break-inside: avoid;
  }
}

/* ====================================================== */
/* Accessibility Enhancements */
/* ====================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--warning-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --warning-color: #ffff00;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
}

/* ====================================================== */
/* Custom Utilities */
/* ====================================================== */

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(120, 120, 120, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(120, 120, 120, 0.3) 0%,
      transparent 50%
    );
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ====================================================== */
/* Loading Animation */
/* ====================================================== */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--warning-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ====================================================== */
/* ISO */
/* ====================================================== */
/* .stat-card img {
  width: 10%;
  height: 10%;
} */
