/* =========================================
   1. IMPORTS & FONTS
   ========================================= */
@import url("https://fonts.cdnfonts.com/css/technos");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap");

@font-face {
  font-family: "Technos-Fallback";
  src: local("Impact"), local("Arial Black");
  font-weight: bold;
  font-style: normal;
}

/* =========================================
   2. VARIABLES
   ========================================= */
:root {
  --primary-red: #ff0033;
  --dark-red: #cc0026;
  --black: #0a0a0a;
  --white: #fff;
  --gray: #333;
  --light-gray: #555;
  --very-light-gray: #999;

  /* Modern additions */
  --card-bg: rgba(20, 20, 25, 0.8);
  --card-border: rgba(255, 0, 51, 0.15);
  --card-hover-border: rgba(255, 0, 51, 0.4);
  --glass-bg: rgba(10, 10, 10, 0.85);
  --glass-blur: blur(16px);
  --gradient-red: linear-gradient(135deg, #ff0033 0%, #ff3366 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, rgba(5, 5, 10, 0.95) 100%);
  --shadow-glow: 0 0 30px rgba(255, 0, 51, 0.15);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
  --border-accent: 1px solid rgba(255, 0, 51, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;

  --primary-font: "Montserrat", sans-serif;
  --logo-font: "Technos", "Impact", "Arial Black", sans-serif;
  --headline-font: "Play", sans-serif;

  --transition-speed: 0.3s;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --glow-effect: 0 0 15px rgba(255, 0, 51, 0.5);
  --text-glow: 0 0 10px rgba(255, 0, 51, 0.3);
  --neon-border: 1px solid rgba(255, 0, 51, 0.3);

  --vh: 1vh;
}

/* =========================================
   3. RESET & GLOBAL STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--primary-font);
  background-color: var(--black);
  color: var(--white);
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  font-size: 16px;
}

input,
select,
textarea,
button {
  font-family: var(--primary-font);
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-speed);
}

ul {
  list-style: none;
}

/* Background Effects */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 0, 51, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(255, 0, 51, 0.05) 1px, transparent 1px) 0 0 / 20px 20px;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 0, 51, 0.05) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* =========================================
   5. PAGE LAYOUT
   ========================================= */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 20px 60px;
}

@media screen and (max-width: 927px) {
  .page-container {
    padding: 100px 15px 40px;
  }


}

.c-wrap {
  width: 100%;
}

.section-title {
  font-family: var(--headline-font);
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-red);
  border-radius: 2px;
}

.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--headline-font);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.huge-title {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #ff0033 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* =========================================
   6. UI COMPONENTS
   ========================================= */
.btn-custom-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-red);
  color: var(--white);
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 45px;
  border: none;
  border-radius: 8px;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(255, 0, 51, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-custom-discord span {
  display: block;
}

.btn-custom-discord:hover {
  box-shadow: 0 6px 30px rgba(255, 0, 51, 0.6);
  transform: translateY(-3px);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: var(--glow-effect);
  border: var(--neon-border);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 0, 51, 0.4);
}

.btn-primary:hover {
  background-color: var(--dark-red);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gray);
  color: var(--white);
  border-radius: 4px;
  transition: border-color var(--transition-speed);
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 8px rgba(255, 0, 51, 0.2);
}

form button {
  padding: 12px 24px;
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: var(--dark-red);
}

/* =========================================
   7. FEATURE SECTION
   ========================================= */
.feature-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 30px 0;
  margin-bottom: 10px;
}

.feature-split.layout-left-text .feature-content {
  flex: 1;
  max-width: 520px;
  padding-right: 30px;
  order: 1;
}

.feature-split.layout-left-text .feature-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  order: 2;
}

.text-left-align {
  text-align: left;
}

.feature-desc {
  color: #b5b5b5;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.75;
}

.btn-wrapper-left {
  margin-bottom: 40px;
  text-align: left;
}

.highlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  max-width: 600px;
}

.chips-left {
  justify-content: flex-start;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.3);
  font-size: 14px;
  color: #eee;
  font-family: var(--primary-font);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255, 0, 51, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 51, 0.1);
}

.chip i {
  color: var(--primary-red);
  font-size: 18px;
}

/* Glass Window Effect */
.glass-window {
  position: relative;
  border-radius: 12px;
  padding: 15px;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.liquid-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 0, 51, 0.15);
  border-color: rgba(255, 0, 51, 0.3);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}

.liquid-glass:hover::before {
  left: 150%;
}

.window-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 5px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f56;
}

.dot.yellow {
  background-color: #ffbd2e;
}

.dot.green {
  background-color: #27c93f;
}

.feature-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  opacity: 0.95;
  min-height: 350px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-caption {
  text-align: center;
  font-size: 13px;
  color: #888;
  padding: 12px 5px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 10px;
  font-family: var(--primary-font);
  letter-spacing: 0.5px;
}

/* =========================================
   8. STANDARDS / CARDS SECTION
   ========================================= */
.standards-section {
  padding: 30px 0;
}

.container-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step-card {
  padding: 35px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--transition-smooth);
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: var(--headline-font);
  font-size: 56px;
  font-weight: bold;
  color: rgba(255, 0, 51, 0.08);
  line-height: 1;
  pointer-events: none;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
  transform: scale(1.05);
}

.step-icon i {
  font-size: 26px;
}

.step-title {
  font-family: var(--headline-font);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.step-text {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.7;
  flex-grow: 1;
}

/* =========================================
   9. TEAM & GALLERY STYLES
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px 0;
  width: 100%;
}

.team-member {
  background-color: rgba(20, 20, 20, 0.8);
  border: var(--neon-border);
  transition: all var(--transition-speed);
  overflow: hidden;
  position: relative;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 0, 51, 0.2);
}

.member-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}

.team-member:hover .member-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.member-info {
  padding: 25px;
  background: rgba(10, 10, 10, 0.8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-info h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 600;
}

.member-title {
  color: var(--primary-red);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 16px;
  text-shadow: var(--text-glow);
}

.timeline-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.timeline-item {
  background: #111;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.timeline-item:hover {
  transform: scale(1.05);
}

#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding-top: 60px;
}

#lightbox img {
  max-width: 80%;
  max-height: 70%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(179, 1, 1, 0.783);
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-up.waiting-for-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media screen and (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 927px) {

  /* Mobile Layout Adjustments */
  .feature-split.layout-left-text {
    flex-direction: column;
    gap: 25px;
  }

  /* TEXT/TITLE FIRST on mobile */
  .feature-split.layout-left-text .feature-content {
    width: 100%;
    order: 1;
    padding-right: 0;
    text-align: center;
  }

  /* TERMINAL SECOND on mobile */
  .feature-split.layout-left-text .feature-visual {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .text-left-align {
    text-align: center;
  }

  .btn-wrapper-left {
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .huge-title {
    text-align: center;
  }

  .chips-left {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    /* Tighter gap on mobile */
  }

  .standards-section {
    padding: 20px 0;
    /* Even less padding on mobile */
  }

  .huge-title {
    font-size: 32px;
    /* Smaller title on mobile */
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  /* ======== COMPREHENSIVE MOBILE FIXES ======== */

  /* PROPER HORIZONTAL PADDING - Critical for readability */
  .page-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 70px !important;
  }

  .container-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-content {
    padding: 0 5px;
  }

  /* TERMINAL - Smaller and more compact */
  .glass-window {
    padding: 8px;
    max-width: 260px;
    margin: 0 auto;
  }

  .window-header {
    padding: 6px 10px;
    gap: 5px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .feature-img {
    min-height: 120px !important;
    max-height: 160px;
  }

  .feature-visual {
    max-width: 260px;
    margin: 0 auto;
  }

  .window-caption {
    font-size: 11px;
    padding: 8px 5px 5px;
  }

  /* TYPOGRAPHY - Better sizing and spacing */
  .hero-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .section-eyebrow {
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
  }

  .feature-desc {
    color: #d0d0d0 !important;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 22px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  /* GAPS - Tighter vertical spacing */
  .feature-split {
    gap: 20px !important;
    padding: 15px 0 !important;
  }

  .c-wrap {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .standards-section {
    padding: 25px 0 !important;
    margin-top: 0 !important;
  }

  /* BUTTON - Proper mobile sizing */
  .btn-custom-discord {
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 1px;
    width: auto;
    max-width: 220px;
  }

  .btn-wrapper-left {
    margin-top: 5px;
    margin-bottom: 10px;
  }

  /* CARDS - Compact and readable */
  .cards-grid {
    gap: 16px !important;
    padding: 0 !important;
  }

  .step-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .step-number {
    font-size: 28px;
    top: 12px;
    right: 14px;
    opacity: 0.15;
  }

  .step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .step-icon i {
    font-size: 22px;
  }

  .step-title {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .step-text {
    color: #d5d5d5 !important;
    font-size: 13px;
    line-height: 1.6;
  }

  /* HEADER - brand handled by styles.css */

  .step-number {
    font-size: 32px;
    top: 15px;
    right: 15px;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .step-icon i {
    font-size: 24px;
  }

  .step-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  /* 5. FIX SECTION GAPS */
  .feature-split {
    gap: 25px !important;
    padding: 20px 0 !important;
    margin-bottom: 10px !important;
  }

  .page-container {
    padding-top: 80px !important;
    padding-bottom: 30px !important;
  }


  /* 7. FIX FOOTER GAPS */
  footer {
    margin-top: 40px !important;
    padding: 30px 15px !important;
  }

  .footer-links {
    padding: 25px 0 !important;
    gap: 20px !important;
  }

  .footer-links a {
    font-size: 16px !important;
  }

  /* End Mobile Layout Adjustments */
}