/* ========================================
   INSTANT SOLUTIONS - SHARED STYLES
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #F9C53D;
  --primary-dark: #e0a800;
  --primary-light: #fde68a;
  --primary-glow: rgba(249, 197, 61, 0.3);
  --dark: #0a0e17;
  --dark-2: #111827;
  --dark-3: #1a1f36;
  --dark-card: #151a2d;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-600: #4a5568;
  --gray-700: #2d3436;
  --white: #ffffff;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(249, 197, 61, 0.15);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: var(--dark);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(249, 197, 61, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* --- Cursor Effect --- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  transition: transform 0.15s, width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* --- Buttons --- */
.btn-primary-custom {
  background: var(--primary);
  color: var(--dark);
  border: none;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.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.3), transparent);
  transition: left 0.5s;
}

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

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 197, 61, 0.4);
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 12px 34px;
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 197, 61, 0.3);
}

/* --- Section Styles --- */
.section-padding {
  padding: 120px 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(249, 197, 61, 0.08);
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(249, 197, 61, 0.15);
}

/* --- Page Header (Inner Pages) --- */
.page-header {
  background: var(--dark);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(249, 197, 61, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(249, 197, 61, 0.03) 0%, transparent 50%);
}

.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 197, 61, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 197, 61, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb-custom {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
}

.breadcrumb-custom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-custom span {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 10px;
}

.breadcrumb-custom .current {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Navbar --- */
.navbar-custom {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  padding: 18px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(249, 197, 61, 0.08);
}

.navbar-custom.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: rgba(10, 14, 23, 0.98);
}

.navbar-custom .navbar-brand img {
  height: 75px;
  margin-right: 12px;
  transition: var(--transition);
}

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

.navbar-custom .navbar-brand span {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 18px !important;
  transition: var(--transition);
  position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary) !important;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: rgba(249, 197, 61, 0.3);
  padding: 8px 12px;
}

.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='%23F9C53D' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Particles Background --- */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(100px, -100px) scale(1.5);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50px, -200px) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translate(150px, -150px) scale(1.2);
    opacity: 0.4;
  }
}

/* --- Animated Lines --- */
.animated-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.animated-lines .line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  opacity: 0.1;
  animation: lineMove 8s infinite;
}

@keyframes lineMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger Children --- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* --- Card Hover Effects --- */
.card-hover {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}

.card-hover:hover::before {
  transform: scaleX(1);
}

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

/* --- Glow Effect --- */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  filter: blur(10px);
}

.glow-effect:hover::after {
  opacity: 0.3;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Counter Animation --- */
.counter-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.counter-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

/* --- Progress Bars --- */
.progress-custom {
  height: 8px;
  background: rgba(249, 197, 61, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-custom {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--dark);
}

.timeline-item h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Footer --- */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px;
  color: rgba(255, 255, 255, 0.5);
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footer-social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .section-title {
    font-size: 2.4rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .section-padding {
    padding: 80px 0;
  }
  
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .page-header {
    padding: 140px 0 60px;
  }
}
