/* ============================================================
   GRAY OWL GAMES — styles.css
   ============================================================ */

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

/* --- Design Tokens (from splash.png palette) --- */
:root {
  /* Palette */
  --color-black:         #000000;
  --color-charcoal:      #1A1C1F;
  --color-deep-moss:     #21281A;
  --color-steel:         #252830;
  --color-owl-gray:      #8D939F;
	--color-light-gray:      #cabacc;
  --color-moss:          #8E9933;
  --color-white:         #FFFFFF;
  --color-white-dim:     rgba(255, 255, 255, 0.55);

  /* Section backgrounds */
  --bg-hero:             var(--color-black);
  --bg-about:            var(--color-charcoal);
  --bg-biome:            var(--color-black);
  --bg-dude:             #030302;
  --bg-connect:          var(--color-charcoal);

  /* Typography */
  --font-family:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base:      clamp(1rem, 1.1vw, 1.25rem);
  --font-size-heading:   clamp(1.6rem, 3vw, 2.8rem);
  --font-size-subhead:   clamp(1.1rem, 1.8vw, 1.5rem);
  --font-size-small:     clamp(0.75rem, 0.9vw, 0.875rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Misc */
  --max-text-width:      620px;
  --transition-speed:    0.35s;
}

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

html {
  height: 100%;
  overflow: hidden; /* Lock native document scroll */
}

body {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory; /* Move snap scroll explicitly to body container */
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-white);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

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

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

/* --- Full-viewport section base --- */
.section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic height dynamically matched to layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  padding: var(--space-lg) var(--space-md);
}

/* ============================================================
   1. HERO / LANDING
   ============================================================ */
.section--hero {
  background: var(--bg-hero);
  padding: 0;
}

.hero__image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero__image {
  max-width: min(95%, 1400px);
  max-height: 85vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* Global scroll-down arrow — fixed to viewport, visible on all sections except last */
.scroll-arrow {
  position: fixed;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--transition-speed), visibility 0s linear 0s;
  z-index: 100;
  background: none;
  border: none;
  padding: 0;
}
.scroll-arrow:hover {
  opacity: 0.85;
}
.scroll-arrow svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 1.5;
  animation: arrow-bob 2s ease-in-out infinite;
}
.scroll-arrow--hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility 0s linear var(--transition-speed);
}

@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================================
   2. ABOUT
   ============================================================ */
.section--about {
  background: var(--bg-about);
}

.about__title {
  font-size: var(--font-size-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.about__text {
  max-width: var(--max-text-width);
  color: var(--color-owl-gray);
  font-weight: 300;
  line-height: 1.85;
  text-align: left;
}

/* ============================================================
   3. PROJECTS (shared)
   ============================================================ */
.section--project {
  padding: var(--space-lg) var(--space-md);
}

.section--biome {
  background: var(--bg-biome);
}

.section--dude {
  position: relative;
  background: var(--bg-dude);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.dude__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.dude__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.dude__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dude__content {
  position: absolute;
  bottom: 6vh;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: center;
}

.dude__description {
  max-width: var(--max-text-width);
  width: 100%;
  color: var(--color-owl-gray);
  font-weight: 400;
  font-size: var(--font-size-subhead);
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.project__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 900px;
  width: 100%;
}

.project__image {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.project__description {
  max-width: var(--max-text-width);
  color: var(--color-owl-gray);
  font-weight: 300;
  line-height: 1.85;
  text-align: left;
}

/* ============================================================
   4. CONNECT
   ============================================================ */
.section--connect {
  background: var(--bg-connect);
}

.connect__title {
  font-size: var(--font-size-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.connect__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 4.5vw, 3.6rem);
  flex-wrap: wrap;
}

.connect__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
  opacity: 0.55;
}
.connect__link:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.connect__link svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

/* ============================================================
   5. FOOTER  (inside Connect section)
   ============================================================ */
.footer {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--color-white-dim);
  letter-spacing: 0.04em;
}

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

	@media( max-width:900px){
		 .dude__image {
    object-fit: contain;
  }
	} 
@media (max-width: 768px) {
  .section {
    padding: var(--space-md) var(--space-sm);
  }

  .hero__image {
    max-width: 90%;
  }

  .project__content {
    gap: var(--space-sm);
  } 

  .connect__link {
    width: 44px;
    height: 44px;
  }
  .connect__link svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .about__text,
  .project__description {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero__image {
    max-width: 95%;
  }
}

/* 4K / ultra-wide cap */
@media (min-width: 2560px) {
  :root {
    --font-size-base:    1.3rem;
    --font-size-heading: 3.2rem;
    --max-text-width:    760px;
  }
}
