:root {
  --primary-color: #ff6b00; /* Safety Orange - Action */
  --secondary-color: #4a6c42; /* Forest Green */
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --font-heading: "Anton", sans-serif;
  --font-subheading: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  background-color: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Texture/Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMTIxMjEyIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZTFlMWUiLz4KPC9zdmc+");
  background-repeat: repeat;
  opacity: 0.1;
  z-index: -2;
  pointer-events: none;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}

.logo-container img {
  height: 80px; /* Adjust based on logo aspect ratio */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.social-nav a {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.social-nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 1rem;
  /* Add a subtle gradient background behind the text for readability if needed, 
       but we are using cards for images below. Let's make the hero abstract or 
       use a darkened version of one of the images as a parallax bg. */
  background: radial-gradient(
    circle at center,
    rgba(30, 30, 30, 0.4) 0%,
    rgba(18, 18, 18, 1) 100%
  );
}

.hero-content {
  max-width: 800px;
  z-index: 10;
}

/* Hero Logo - hidden on desktop, shown on mobile */
.hero-logo {
  display: none;
  margin-bottom: 1.5rem;
}

.hero-logo img {
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.pre-title {
  font-family: var(--font-subheading);
  color: var(--primary-color);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-main);
    letter-spacing: 2px;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip-path: inset(58% 0 43% 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

/* Violent Glitch State */
.glitch.violent::before {
    animation: glitch-anim-1 0.2s infinite linear alternate-reverse;
    left: 4px;
    text-shadow: -4px 0 #ff0000;
}

.glitch.violent::after {
    animation: glitch-anim-2 0.2s infinite linear alternate-reverse;
    left: -4px;
    text-shadow: -4px 0 #00ffff;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

.tagline {
  font-family: var(--font-subheading);
  font-size: 1.5rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.status-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 3rem;
  backdrop-filter: blur(5px);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 4px;
  width: 300px;
  max-width: 100%;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-subheading);
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition:
    transform 0.2s,
    background 0.2s;
}

.newsletter-form button:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

/* Features/Categories Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  min-height: 50vh;
}

.feature-card {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: background 0.3s ease;
}

.feature-card:hover .card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.feature-card:hover .card-content {
  transform: translateY(0);
}

.card-content .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--dark-bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-small {
  font-size: 0.8rem;
  opacity: 0.5;
}

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

.box-reveal.active,
.card-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide header logo on mobile - logo moves to hero */
    .logo-container {
        display: none;
    }

    .main-header {
        justify-content: center;
        padding: 0.8rem 1rem;
        background: linear-gradient(to bottom, rgba(18,18,18,1) 40%, rgba(18,18,18,0) 100%);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }

    .social-nav a {
        font-size: 1.2rem;
        margin: 0 0.8rem;
    }

    /* Show hero logo on mobile */
    .hero-logo {
        display: block;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-content {
        margin-top: 1rem;
        padding: 0 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}
