/**
 * LAYOUT STYLES
 *
 * Page layout and structural styles:
 * - Card system and containers
 * - Hero sections and content areas
 * - Background patterns and overlays
 * - Grid and flex layout systems
 */

/* Layout and Grid Styles */

/* Card Layout */
.card {
  /* Use single tall image for both cards */
  background-image: url('../../background1.png');
  background-size: 120% 200%;      /* width fits; height is 200% so each card sees half */
  background-repeat: no-repeat;
  background-attachment: local;     /* keep existing scroll behaviour */
  background-position-x: center;    /* horizontally centred */

  /* Restored layout properties */
  min-height: 100vh;                /* each card fills viewport height */
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;          /* default vertical centring, overridden per card */
  position: relative;
  overflow: hidden;
}

/* Top half of the image */
.card-1 {
  background-position-y: top;       /* show first 50% */
}

/* Bottom half of the image */
.card-2 {
  background-position-y: bottom;    /* show last 50% */
}

/* Flipped version of Card 2's background for seamless transition */
.card-3 {
  background-position-y: bottom;    /* use same as Card 2 */
  transform: scaleY(-1);            /* flip vertically */
  justify-content: space-between;   /* distribute content across full height */
  padding-top: 3rem;                /* space from top */
  padding-bottom: 2rem;             /* space from bottom */
}

/* Counter-flip the content to keep it readable */
.card-3 .container {
  transform: scaleY(-1);            /* flip content back to normal */
}

/* Container */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Content */
.content {
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  width: 100%;
}

/* Hero Section */
.hero {
  margin-bottom: 2rem;
  max-width: 64rem;
  width: 100%;
  text-align: center;
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: black;
  text-align: center;
  filter: drop-shadow(8.61111px 8px 4px rgba(0, 0, 0, 0.25));
}

.hero p {
  font-size: 1rem;
  line-height: 1.6;
  color: black;
  margin: 0 auto;
  height: 4.8rem;
  overflow: hidden;
  transition: opacity 0.5s ease;
  text-align: center;
}

.hero .typewriter-text {
  font-weight: 700; /* universal - font-size now controlled per breakpoint */
}

.hero .typewriter-text.gradient {
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Pattern */
.bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}

.bg-circle-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 8rem;
  height: 8rem;
  background: white;
  border-radius: 50%;
  filter: blur(3rem);
}

.bg-circle-2 {
  position: absolute;
  bottom: 10rem;
  right: 2.5rem;
  width: 10rem;
  height: 10rem;
  background: #86efac;
  border-radius: 50%;
  filter: blur(3rem);
}

.bg-circle-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15rem;
  height: 15rem;
  background: #6ee7b7;
  border-radius: 50%;
  filter: blur(3rem);
}

/* Top Fade Overlay for Logo Contrast */
.top-fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.03) 70%,
    rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Tutorial Content Layout */
.card-2 .tutorial-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Footer */
.footer {
  margin-top: 1.5rem;
  text-align: center;
}

.footer-features {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: black;
}

.footer-features svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.75rem;
  color: black;
}

.footer-links a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: black;
}