/* ============================================
   THE HULLBREAKERS - CINEMATIC LANDING PAGE
   Professional Dark, Tactical, Futuristic Pirate Aesthetic
   ============================================ */

/* CSS Variables */
:root {
  --color-black: #000000;
  --color-dark: #0a0a0a;
  --color-dark-metallic: #141414;
  --color-darker-metallic: #1a1a1a;
  --color-card-bg: #1e1e1e;
  --color-orange: #ff4d00;
  --color-orange-glow: #ff4d00;
  --color-orange-dim: #cc3d00;
  --color-red: #ff2a2a;
  --color-red-glow: #ff2a2a;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-border: #2a2a2a;
  --color-border-light: #3a3a3a;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  --glow-orange: 0 0 30px rgba(255, 77, 0, 0.4);
  --glow-orange-strong: 0 0 50px rgba(255, 77, 0, 0.6);
  --glow-red: 0 0 30px rgba(255, 42, 42, 0.4);

  --blur-strength: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-black);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 77, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.875rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.5));
  transition: filter var(--transition-normal);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 30px rgba(255, 77, 0, 0.7));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-orange);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-discord {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dim));
  color: var(--color-text);
  padding: 0.625rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: var(--glow-orange);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

.nav-discord:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-orange-strong);
  border-color: var(--color-orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-logo img {
    width: 51px;
    height: 51px;
  }

  .nav-menu {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    border-bottom: 1px solid rgba(255, 77, 0, 0.2);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ============================================
   SECTION SCROLL ANIMATIONS
   ============================================ */

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  opacity: 1;
  transform: none;
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 77, 0, 0.3), transparent);
  z-index: 10;
  pointer-events: none;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0.6) 100%
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  margin-bottom: 3rem;
  animation: pulse 3s ease-in-out infinite;
}

.hero-logo img {
  width: 680px;
  height: 680px;
  filter: drop-shadow(0 0 80px rgba(255, 77, 0, 0.7));
  max-width: 85vw;
  max-height: 85vw;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 8px;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(255, 77, 0, 0.6);
  line-height: 1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-orange);
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(255, 77, 0, 0.4);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dim));
  color: var(--color-text);
  box-shadow: var(--glow-orange);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-orange-strong);
  border-color: var(--color-orange);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-orange);
}

.btn-secondary:hover {
  background: rgba(255, 77, 0, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--glow-orange);
  border-color: var(--color-orange);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1rem;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
  padding: 8rem 2rem;
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   HISTORY SECTION
   ============================================ */

.history {
  background: var(--color-dark);
  position: relative;
  margin-top: 0;
  padding-top: 0;
}

.history::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 77, 0, 0.02) 2px,
    rgba(255, 77, 0, 0.02) 4px
  );
  pointer-events: none;
}

.history-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.history-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.history-header-image {
  width: 100vw;
  height: 400px;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.history-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.15) saturate(0.8);
  transition: transform 8s ease-out;
}

.history-header-image:hover img {
  transform: scale(1.05);
}

.history-header-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
}

.history-header-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(255, 77, 0, 0.03) 4px,
    rgba(255, 77, 0, 0.03) 8px
  );
  pointer-events: none;
}

.history-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 3rem;
  text-shadow: 0 0 40px rgba(255, 77, 0, 0.3);
  line-height: 1.1;
}

.story-block {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--transition-slow);
}

.story-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-block p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.story-block .highlight {
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1.15rem;
}

.story-block .quote {
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-text);
  text-align: center;
  padding: 2rem;
  border-left: 4px solid var(--color-orange);
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.08), transparent);
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.story-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-orange), transparent);
  margin: 3.5rem 0;
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-visual {
    position: relative;
    top: 0;
    order: -1;
  }
}

/* ============================================
   SEPARATOR SECTION
   ============================================ */

.separator {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.separator-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.1);
}

.separator-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.separator-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.4) 20%,
    rgba(10, 10, 10, 0.2) 50%,
    rgba(10, 10, 10, 0.4) 80%,
    rgba(10, 10, 10, 0.85) 100%
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  z-index: 2;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ============================================
   PIRATE CODE SECTION
   ============================================ */

.pirate-code {
  background: var(--color-dark);
  position: relative;
}

.pirate-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 77, 0, 0.06) 0%, transparent 50%),
  radial-gradient(circle at 80% 50%, rgba(255, 42, 42, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.pirate-code h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(255, 77, 0, 0.3);
  line-height: 1.1;
}

.pirate-code-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

.pirate-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.code-card {
  background: linear-gradient(135deg, var(--color-card-bg), var(--color-dark-metallic));
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--color-orange), var(--color-red));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.code-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 77, 0, 0.15);
  border-color: var(--color-border-light);
}

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

.code-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 77, 0, 0.15);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.code-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--color-orange);
  padding-right: 3rem;
  line-height: 1.3;
}

.code-card p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.pirate-code-footer {
  text-align: center;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.08), transparent);
  border-radius: 16px;
  border: 1px solid rgba(255, 77, 0, 0.2);
}

.pirate-flag {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.pirate-slogan {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  color: var(--color-orange);
  text-shadow: 0 0 40px rgba(255, 77, 0, 0.4);
  line-height: 1.1;
}

.pirate-motto {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ============================================
   JOIN SECTION
   ============================================ */

.join {
  background: linear-gradient(to bottom, var(--color-dark), var(--color-black));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.join-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: blur(1px) brightness(1.2);
  animation: slowZoom 25s ease-in-out infinite alternate;
}

.join::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.05) 3px,
    rgba(0, 0, 0, 0.05) 6px
  );
  z-index: 2;
  pointer-events: none;
}

.join-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.join h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  text-shadow: 0 0 50px rgba(255, 42, 42, 0.4);
  line-height: 1.1;
}

.join-subtitle {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.join-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.join-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-border);
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.4));
}

.footer-slogan {
  font-size: 1.1rem;
  color: var(--color-orange);
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 500;
}

.footer-social {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  padding: 0.5rem;
}

.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) brightness(0.7);
  transition: filter var(--transition-normal);
}

.footer-social a:hover img {
  filter: grayscale(100%) brightness(1.5);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  section {
    padding: 5rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .join-buttons {
    flex-direction: column;
    align-items: center;
  }

  .pirate-code-grid {
    grid-template-columns: 1fr;
  }

  .pirate-code-footer {
    padding: 3rem 1.5rem;
  }

  .pirate-slogan {
    font-size: 1.8rem;
    letter-spacing: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}
