/* Custom brand colors and utility classes */
:root {
  --aq-navy: #0b2340;
  --aq-silver: #bfc8cc;
  --aq-accent: #9aa6ad;
  --aq-dark: #071228;
  --aq-darker: #04121a;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Glass morphism effect */
.glass {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Brand gradients */
.brand-navy {
  background: linear-gradient(180deg, var(--aq-navy), #062033);
}

.mirror-sheen {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  mix-blend-mode: overlay;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Fade in animation for sections */
section {
  animation: fadeIn 0.6s ease-out;
}

/* Navigation link active state */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aq-silver);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animation */
#mobile-nav {
  transition: all 0.3s ease;
}

#mobile-nav.hidden {
  display: none;
}

/* Form input focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(191, 200, 204, 0.1);
}

/* Button hover effects */
button,
a[role="button"] {
  transition: all 0.2s ease;
}

/* Card hover effects */
.glass:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--aq-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Selection color */
::selection {
  background: rgba(191, 200, 204, 0.3);
  color: white;
}

/* Loading state for buttons */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error message styling */
.error-message {
  display: block;
  margin-top: 4px;
}

.error-message.hidden {
  display: none;
}

/* Success message */
.success-message {
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #4ade80;
  margin-top: 16px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Print styles */
@media print {
  .glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
  }
}

/* Progress bar styles */
.progress-container {
width: 100%;
height: 12px;
background: #2a2f3a;
border-radius: 10px;
overflow: hidden;
margin-top: 5px;
}

.progress-bar {
height: 12px;
width: 0%;
background: linear-gradient(90deg, #4d9eff, #00d4ff);
transition: width 1s ease;
border-radius: 10px;
}

/* ICO Progress Bar - Single Bar Style */
.ico-progress-container {
  width: 100%;
  height: 24px;
  background: rgba(15, 22, 32, 0.8);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ico-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, 
    rgba(191, 200, 204, 0.8) 0%, 
    rgba(158, 168, 174, 0.9) 50%,
    rgba(191, 200, 204, 1) 100%);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  --glow-opacity: 0.3;
  --glow-blur: 8px;
  box-shadow: 0 0 var(--glow-blur) rgba(191, 200, 204, var(--glow-opacity)),
              0 0 calc(var(--glow-blur) * 1.5) rgba(191, 200, 204, calc(var(--glow-opacity) * 0.6)),
              inset 0 0 10px rgba(255, 255, 255, 0.1);
  animation: glowBreathe 3s ease-in-out infinite;
}

.ico-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
  border-radius: 12px;
}

.ico-progress-bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, 
    rgba(191, 200, 204, 0.4) 0%, 
    rgba(158, 168, 174, 0.5) 50%,
    rgba(191, 200, 204, 0.4) 100%);
  border-radius: 12px;
  filter: blur(4px);
  z-index: -1;
  opacity: var(--glow-opacity);
  animation: glowBreathe 3s ease-in-out infinite;
}

/* Stage Markers */
.ico-stage-marker {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 2;
  transform: translateX(-50%);
}

.ico-stage-marker::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, 0.3);
}

.ico-stage-marker::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(255, 255, 255, 0.3);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes glowBreathe {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}