/* =====================================================
   CRYTEK-INSPIRED SITE — SHARED STYLESHEET
   style.css
   ===================================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ----- CSS Custom Properties ----- */
:root {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #1a1a1a;
  --bg-card-hover: #222222;
  --accent:        #e63946;
  --accent-hover:  #c1121f;
  --white:         #ffffff;
  --gray-light:    #cccccc;
  --gray-mid:      #888888;
  --nav-height:    70px;
  --transition:    0.3s ease;
  --font-heading:  'Oswald', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ----- Reset / Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  flex-shrink: 0;
}

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

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 8px 14px;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--accent);
}

.nav__link.active::after {
  transform: scaleX(1);
}

/* Right icons */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav__icon-btn {
  background: none;
  border: none;
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  padding: 6px;
}

.nav__icon-btn:hover {
  color: var(--accent);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}

.nav__drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__drawer .nav__link {
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__drawer .nav__link::after {
  display: none;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline-accent:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* =====================================================
   SOCIAL ICONS ROW
   ===================================================== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gray-light);
  transition: all var(--transition);
}

.social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 24px 32px;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: 14px;
  color: var(--gray-mid);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--accent);
}

.footer__col p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-top: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 13px;
  color: var(--gray-mid);
}

/* =====================================================
   SECTION LABELS / COMMON SECTION STYLES
   ===================================================== */
.section {
  padding: 100px 24px;
}

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

.section__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--gray-light);
  max-width: 600px;
  margin-bottom: 48px;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-accent { color: var(--accent); }
.text-gray   { color: var(--gray-light); }
.mt-auto     { margin-top: auto; }

/* =====================================================
   RESPONSIVE — NAVIGATION
   ===================================================== */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__drawer {
    display: flex;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 20px;
  }

  .section__title {
    font-size: 36px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .section__title {
    font-size: 28px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 13px;
  }
}
