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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  background-color: #0b0f1a;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.layer {
  position: absolute;
  width: 100%;
  height: 120%;
  top: 0;
  left: 0;
}

.layer-back {
  background: linear-gradient(180deg, #1a2a6c, #0b0f1a);
  z-index: 1;
}

.layer-middle {
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-content button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  background: #ffffff;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
}

/* ================= SECTIONS ================= */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1rem;
  opacity: 0.8;
}

/* ================= FLIP CARDS ================= */
.cards-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.flip-card {
  width: 220px;
  height: 260px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  font-size: 1.1rem;
  padding: 1rem;
  text-align: center;
}

.flip-front {
  background: #1a2a6c;
}

.flip-back {
  background: #111827;
  transform: rotateY(180deg);
}

/* ================= HORIZONTAL SCROLL ================= */
.horizontal-section {
  height: 100vh;
  overflow: hidden;
}

.horizontal-wrapper {
  display: flex;
  width: 400%;
  height: 100%;
}

.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1f2933, #020617);
}

/* ================= FOOTER ================= */
.footer {
  padding: 2rem;
  text-align: center;
  background: #05070d;
  font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .panel {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .horizontal-wrapper {
    width: 400%;
  }

  .panel {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }
}

/* ================= CROSS-BROWSER ================= */
button {
  -webkit-appearance: none;
  appearance: none;
}

.flip-inner {
  will-change: transform;
}
