/* =====================================================
   HOMEPAGE SPECIFIC STYLES
   home.css
   ===================================================== */

/* =====================================================
   HERO SECTION
   ===================================================== */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  /* Gradient background serves as fallback if video doesn't load */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 30%, #0d0d1a 60%, #0a0a0a 100%);
  z-index: 0;
}

/* Video background styling
   - Ensures video covers entire hero area
   - Maintains aspect ratio while covering the space
   - Centered both horizontally and vertically
*/
.home-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
  .home-hero__video {
    display: none;
  }
  
  /* Disable animated orbs for reduced motion */
  .home-hero__bg::before,
  .home-hero__bg::after {
    animation: none;
  }
}

/* Animated gradient orbs for visual interest */
.home-hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
  animation: orb-move 8s ease-in-out infinite alternate;
}

.home-hero__bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(50, 50, 180, 0.1) 0%, transparent 70%);
  animation: orb-move 10s ease-in-out infinite alternate-reverse;
}

@keyframes orb-move {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

/* Grid overlay texture */
.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.6) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.85) 100%
  );
  z-index: 2;
}

.home-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: hero-fade-in 1.2s ease forwards;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  animation: hero-fade-in 1s ease 0.2s both;
}

.home-hero__eyebrow::before,
.home-hero__eyebrow::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
  animation: hero-fade-in 1s ease 0.4s both;
}

.home-hero__title span {
  color: var(--accent);
}

.home-hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: hero-fade-in 1s ease 0.6s both;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: hero-fade-in 1s ease 0.8s both;
}

/* Scroll indicator */
.home-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-mid);
  animation: hero-fade-in 1s ease 1.2s both;
}

.home-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}

/* =====================================================
   LATEST NEWS SECTION
   ===================================================== */
.news-section {
  background: #f5f5f5;
  padding: 100px 24px;
}

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

.news-section .section__label {
  color: var(--accent);
}

.news-section .section__title {
  color: #111111;
}

.news-section .section__subtitle {
  color: #555555;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.news-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0505 0%, #2a1010 50%, #0d0d1a 100%);
  position: relative;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: 12px;
  color: #999999;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card__excerpt {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.news-card__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.news-card__link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

/* =====================================================
   WHO WE ARE SECTION
   ===================================================== */
.about-section {
  background: var(--bg-secondary);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.about-section__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-section__text .section__title {
  margin-bottom: 24px;
}

.about-section__body {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-section__stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 13px;
  color: var(--gray-mid);
  margin-top: 4px;
}

.about-section__visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-section__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.2);
}

.about-placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
}

.about-placeholder-text svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.about-placeholder-text span {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* =====================================================
   FEATURED PRODUCTS
   ===================================================== */
.products-section {
  background: var(--bg-primary);
  padding: 100px 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__bg {
  transform: scale(1.08);
}

.product-card--hunt .product-card__bg {
  background: linear-gradient(160deg, #1a0505 0%, #2d0909 40%, #0a0a0a 100%);
}

.product-card--crysis .product-card__bg {
  background: linear-gradient(160deg, #051a0a 0%, #092d12 40%, #0a0a0a 100%);
}

.product-card--cryengine .product-card__bg {
  background: linear-gradient(160deg, #05051a 0%, #090924 40%, #0a0a0a 100%);
}

/* placeholder graphic elements */
.product-card__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 50px 50px;
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  transition: background var(--transition);
}

.product-card:hover .product-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1) 100%);
}

.product-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.product-card:hover .product-card__icon {
  border-color: var(--accent);
}

.product-card__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.product-card__tag {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}

.product-card__tagline {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.product-card:hover .product-card__tagline {
  opacity: 1;
  transform: translateY(0);
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.product-card:hover .product-card__btn {
  opacity: 1;
  transform: translateY(0);
}

.product-card__btn:hover {
  background: var(--accent-hover);
}

/* large placeholder icons in center of card */
.product-card__center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 80px;
  height: 80px;
  fill: rgba(255,255,255,0.05);
  transition: fill var(--transition);
}

.product-card:hover .product-card__center-icon {
  fill: rgba(255,255,255,0.08);
}

/* =====================================================
   HOME-SPECIFIC RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-section__visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    aspect-ratio: 16/9;
  }

  .product-card__tagline,
  .product-card__btn {
    opacity: 1;
    transform: translateY(0);
  }

  .about-section__stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: center;
  }
}
