/* NIAT - National Institute for Applied Trades
   Theme: Industrial Authority (Navy Blue, Blaze Orange, Steel Gray, Clean White) */

:root {
  --navy-deep: #070F1E;
  --navy-dark: #0A192F;
  --navy-card: #112240;
  --navy-light: #1E3A8A;
  --orange-blaze: #FF5722;
  --orange-hover: #F97316;
  --orange-glow: rgba(255, 87, 34, 0.35);
  --steel-gray: #475569;
  --steel-light: #94A3B8;
  --text-bright: #F8FAFC;
  --text-muted: #CBD5E1;
  --bg-gradient: linear-gradient(135deg, #070F1E 0%, #0A192F 50%, #0F172A 100%);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--navy-deep);
  color: var(--text-bright);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-blaze);
}

/* Glassmorphism utility */
.glass-card {
  background: rgba(17, 34, 64, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 1rem;
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 12px 40px 0 rgba(255, 87, 34, 0.15);
}

.glass-nav {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glowing text and borders */
.text-orange-glow {
  text-shadow: 0 0 20px rgba(255, 87, 34, 0.6);
}

.border-orange-glow {
  box-shadow: 0 0 25px var(--orange-glow);
}

/* Institutional Brand Strength Utilities */
.brand-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.025);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 0.9;
}

.text-gradient-metallic {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #FF5722 75%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FDBA74 0%, #FF5722 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.institutional-seal {
  background: radial-gradient(circle, rgba(255,87,34,0.15) 0%, rgba(10,25,47,0.8) 70%);
  border: 1px solid rgba(255, 87, 34, 0.3);
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.15);
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.animate-pulse-glow {
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-ticker {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 32s linear infinite;
  will-change: transform;
}

.animate-ticker:hover {
  animation-play-state: paused;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--orange-blaze);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-light);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #FF5722 0%, #EA580C 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.35);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F97316 0%, #DD6B20 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

/* Toast alert */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Badge tags */
.badge-orange {
  background: rgba(255, 87, 34, 0.15);
  color: #FF7043;
  border: 1px solid rgba(255, 87, 34, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-navy {
  background: rgba(30, 58, 138, 0.3);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tab active state */
.tab-btn.active {
  background: var(--orange-blaze);
  color: #fff;
  border-color: var(--orange-blaze);
}
