/* ============================================
   WAR VETERAN INC - Custom Styles
   ============================================ */

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

html {
  scrollbar-width: thin;
  scrollbar-color: #c9a84c #0a0f0a;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0f0a;
}
::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 3px;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* --- Navigation --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 15, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#navbar.scrolled .nav-link {
  font-size: 0.75rem;
}

.nav-link.active {
  color: #c9a84c !important;
}

/* --- Hero Section --- */
.camo-overlay {
  background-size: 300px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

.gold-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
  height: 1px;
}

.gold-line-1 {
  top: 30%;
  left: 0;
  right: 0;
  animation: shimmer 8s ease-in-out infinite;
}

.gold-line-2 {
  top: 70%;
  left: 0;
  right: 0;
  animation: shimmer 8s ease-in-out infinite 4s;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

/* Scroll Indicator */
.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 10px;
  position: relative;
}

.scroll-dot {
  width: 3px;
  height: 6px;
  background: #c9a84c;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* --- Skill Bars --- */
.skill-bar {
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-bar.animated {
  /* width is set via data-width attribute in JS */
}

/* --- Experience Tabs --- */
.exp-tab {
  cursor: pointer;
}

.exp-tab.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.4);
  color: #c9a84c;
}

.exp-tab:not(.active):hover {
  border-color: rgba(201, 168, 76, 0.2);
  color: #dfc070;
}

.exp-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.exp-content.hidden {
  display: none;
}

/* --- Gallery Lightbox --- */
#lightbox {
  transition: opacity 0.3s ease;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  animation: lightboxIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Reveal Animations --- */
/* Elements always visible. Reveal class adds a subtle entrance animation. */
.reveal-up.revealed {
  animation: revealPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealPop {
  from { opacity: 0.7; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Service Cards Glow --- */
.service-card:hover .bg-gold\/10 {
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

/* --- Grain Texture Overlay (subtle) --- */
/* Removed SVG noise overlay - caused rendering issues in some browsers */

/* --- Counter Pulse --- */
.counter {
  position: relative;
}

.counter::after {
  content: '+';
  font-size: 0.6em;
  color: rgba(201, 168, 76, 0.6);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  .gallery-item .absolute.bottom-0 p {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .exp-tab {
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
  }
}

/* --- Parallax helper --- */
.parallax-bg {
  will-change: transform;
}

/* --- Loading state --- */
body.loading {
  overflow: hidden;
}

/* --- Hero entrance animations (CSS-based for reliability) --- */
.hero-element {
  opacity: 0;
  transform: translateY(50px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.3s; }
.hero-element:nth-child(2) { animation-delay: 0.5s; }
.hero-element:nth-child(3) { animation-delay: 0.65s; }
.hero-element:nth-child(4) { animation-delay: 0.8s; }
.hero-element:nth-child(5) { animation-delay: 0.95s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero .scroll-indicator {
  animation: heroReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
  opacity: 0;
}

/* --- Smooth image loading --- */
img {
  transition: opacity 0.5s ease;
}
