/* =========================
   GLOBAL TRANSPARENCY & CANVAS - ENHANCED DARK GRADIENT THEME
   ========================= */
:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glass-blur: 14px;
  --scrim: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0.2));
  
  /* Enhanced dark gradient theme colors */
  --dark-primary: #000000;
  --dark-secondary: #1a1a1a;
  --dark-tertiary: #2d2d2d;
  --dark-accent: #404040;
  --dark-mid: #606060;
  --dark-light: #808080;
  --light-accent: #f5f5f5;
  --mid-gray: #808080;
  --professional-white: #ffffff;
  
  /* Professional spacing and typography */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-max-width: 1400px;
  --border-radius-soft: 12px;
  --border-radius-smooth: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-professional: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html, body { 
  background: linear-gradient(135deg, 
    #000000 0%, 
    #0a0a0a 12%, 
    #1a1a1a 25%, 
    #2d2d2d 50%, 
    #1a1a1a 75%, 
    #0a0a0a 88%, 
    #000000 100%) !important; 
  min-height: 100%; 
  scroll-behavior: smooth;
}

/* Enhanced typography for better readability */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  line-height: 1.6;
  color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-rendering: optimizeLegibility;
}

/* Keep stacking sane */
.z-top { position: relative; z-index: 10; }

/* =========================
   ENHANCED HERO LAYOUT
   ========================= */

/* FULLSCREEN hero for 3D model display */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;  /* TRUE FULLSCREEN */
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0;  /* No border radius for fullscreen */
}

/* Make each slide fill the hero box */
.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }

/* Hide hero images to reveal 3D canvas, preserve layout */
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none !important;
}

/* Enhanced contrast behind overlay text for dark theme */
.hero-scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  z-index: 1;
  padding: var(--section-padding);
}

.hero-overlay .blockquote,
.hero-overlay .blockquote-footer,
.hero-overlay h1, .hero-overlay h3, .hero-overlay h5 {
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.8);
}

/* =========================
   ENHANCED BOOTSTRAP SURFACE TRANSPARENCY - PROFESSIONAL THEME
   ========================= */

.navbar {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-professional);
  transition: var(--transition-smooth);
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Enhanced navbar styling for professional look */
.navbar-brand {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.navbar-brand:hover {
  color: #FFD700 !important;
  transform: translateY(-1px);
}

.navbar .nav-link {
  color: #f5f5f5 !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-smooth);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  border-radius: var(--border-radius-smooth);
  transition: var(--transition-smooth);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.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");
}



/* persist the underline when active */
.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
  width: 80%;
}

/* Remove underline effect from dropdown toggles */
.navbar .nav-link.dropdown-toggle::after {
  content: none !important;   /* kills the yellow underline */
}

/* Keep Bootstrap's caret arrow visible & styled */
.navbar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: 0.25em;
  border-top: 0.4em solid;
  border-right: 0.4em solid transparent;
  border-left: 0.4em solid transparent;
  border-bottom: 0;
  color: #fff; /* make the caret match your nav text */
}

/* Enhanced dropdown styling for professional look */
.dropdown-menu {
  background: rgba(0, 0, 0, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-soft);
  box-shadow: var(--shadow-professional);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #f5f5f5 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  transform: translateX(5px);
}

/* Make general sections transparent so the canvas shows */
.container,
.container-fluid,
section,
footer,
.bg-body,
.bg-body-tertiary,
.bg-light,
.bg-white {
  background: transparent !important;
}

/* Enhanced cards with professional glassmorphism */
.card {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-professional);
  color: #fff;
  border-radius: var(--border-radius-soft);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card .card-title,
.card .card-text { 
  color: #fff; 
  margin-bottom: 1rem;
}

.card .card-title {
  font-weight: 700;
  font-size: 1.25rem;
}

/* Enhanced text elements with better contrast */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
}

p, .text-muted {
  color: #f5f5f5 !important;
  line-height: 1.7;
}

.lead {
  color: #e0e0e0;
  font-size: 1.125rem;
  font-weight: 400;
}

/* =========================
   UNIVERSAL MODERN BUTTONS - GOLDEN THEME
   ========================= */

.button-52, .button-51, .button, .btn {
  cursor: pointer;
  padding: 1em;
  font-size: 1em;
  width: auto;
  min-width: 7em;
  aspect-ratio: auto;
  color: #000;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  background-size: cover;
  background-blend-mode: overlay;
  border-radius: 0.5em;
  outline: 0.1em solid rgba(255, 215, 0, 0.3);
  border: 0;
  box-shadow: 0 0 1em 1em rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease-in-out;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-align: center;
}

.button-52:hover, .button-51:hover, .button:hover, .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 1em 0.45em rgba(255, 215, 0, 0.2);
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  background: radial-gradient(
    circle at bottom,
    rgba(255, 215, 0, 0.8) 10%,
    #FFD700 70%
  );
  outline: 0;
  color: #000;
  text-decoration: none;
}

.button-52:active, .button-51:active, .button:active, .btn:active {
  transform: scale(1.05);
}

.button-52 .icon, .button-51 .icon, .button .icon, .btn .icon {
  fill: #000;
  width: 1em;
  aspect-ratio: 1;
  top: 0;
  left: 0;
  margin: auto;
  transform: translate(-35%, 10%);
}

.button-52 span, .button-51 span, .button span, .btn span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* Specific sizing for different button types */
.button-52 {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-width: 8em;
}

.button-51 {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  min-width: 7em;
}

@media (min-width: 768px) {
  .button-52 { padding: 1rem 2.5rem; font-size: 1.2rem; }
  .button-51 { padding: 1rem 2rem; font-size: 1.1rem; }
}

/* Enhanced footer with professional gradients */
.site-footer {
  background: linear-gradient(135deg, 
    #000000 0%, 
    #1a1a1a 25%, 
    #2d2d2d 50%, 
    #1a1a1a 75%, 
    #000000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--section-padding) 0;
}

.site-footer h5,
.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.site-footer .footer-link {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
  display: inline-block;
}

.site-footer .footer-link:hover {
  text-decoration: none;
  color: #FFD700;
  transform: translateX(5px);
}

/* Scroll Up Button Styling - Box Shape */
.scroll-up-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  border-radius: var(--border-radius-smooth);
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: none;
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.scroll-up-button.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-up-button:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.scroll-up-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
  .scroll-up-button {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    left: 15px;
    bottom: 15px;
  }
}

/* Professional section spacing */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* Enhanced container max-width for better design */
.container {
  max-width: var(--container-max-width);
}

/* Professional loading states */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1) 25%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Enhanced accessibility and focus states */
*:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Professional responsive improvements */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2rem, 6vw, 4rem);
  }
  
  .hero-overlay {
    padding: 2rem 1rem;
  }
  
  .button-52,
  .button-51 {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* ================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ================================ */

/* Improve readability on mobile */
@media (max-width: 576px) {
  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }
  
  h4 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  }
  
  p, .card-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
  }
}

/* Card improvements for mobile */
@media (max-width: 576px) {
  .card {
    border-radius: 8px;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Better spacing on mobile */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
}

/* Navbar improvements for mobile */
@media (max-width: 991px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-toggler {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }
}

/* Modal improvements for mobile */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-body {
    padding: 1.5rem 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
}