html {
    font-size: clamp(18px, 2.5vw, 20px);
    scroll-behavior: smooth;
}

body {
    font-family: "Bubblegum Sans", sans-serif;
    font-weight: 200;
    font-style: normal;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 10px; /* kis oldalsó margó mobilon */
    background: linear-gradient(to bottom, #678166, #3a5038);
    background-image: url(photos/background.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    color: #836641;
    text-shadow: 1px 1px 2px rgb(163, 141, 109);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh; /* van "tartalék" lefelé */
    
    background-image: url("photos/background.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    z-index: -1;
    will-change: transform;
}

.content {
    min-height: 200vh; /* csak hogy legyen scroll */
}

main, .description, .developers, .privacy {
    margin: 0 auto;
}

/* =======================
   HEADER
======================= */
header .logo {
    width: 500px;
    max-width: 80vw; /* kisebb képernyőkön arányosan csökken */
    margin: 20px 0;
    border-radius: 15px;
}

.logo {
    transition: transform 0.3s, filter 0.3s;
}

.logo:hover {
    transform: scale(1.1);
}

#CuddlecadosLogo {
    width: 800px;
    margin-top: 10%;
    margin-bottom: 2%;
}

/* =======================
   SOCIAL IKONOK
======================= */
.socials {
    display: flex;
    flex-wrap: wrap; /* kis képernyőn több sorba törik */
    gap: 30px;
    justify-content: center;
    margin: 20px auto 30px;
    width: 100%;
    max-width: 700px;
}

.socials img {
    width: 37px;
    height: 37px;

    filter:
        invert(33%)
        sepia(28%)
        saturate(400%)
        hue-rotate(80deg)
        brightness(100%)
        contrast(80%);

    transition: transform 0.3s, filter 0.3s;
}

.socials img:hover {
    transform: scale(1.2);
    filter: invert(80%) sepia(30%) hue-rotate(60deg);
}

/* =======================
   LEÍRÁS
======================= */
.description {
    color: #836641;
    max-width: 900px;
    padding: 20px;
    background:linear-gradient(to bottom, #eae5bb, #c5accf);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.privacy {
    text-align: left;
    color: #836641;
    max-width: 900px;
    padding: 20px;
    background:linear-gradient(to bottom, #eae5bb, #c5accf);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.priv-label {
    font-weight: bold;
}

h1, h2 {
    color: cornsilk;
    text-shadow: 3px 1px 3px rgb(78, 68, 47);
}

.description h1,
.description h2,
.developers h1,
.developers h2 {
    color: #4e654c;
    text-shadow: 3px 1px 3px rgb(172, 150, 102);
}

.privacyh1 {
    text-align: center;
    color: #41513e;
    text-shadow: 2px 1px 5px rgba(0,0,0,0.2);
}

ul {
    text-align: left;
    display: inline-block;
}

/* =======================
   TRAILER
======================= */
.trailer iframe {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9; /* automatikus méret */
    height: auto;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
}

/* =======================
   SCREENSHOTS
======================= */
.screenshots {
    max-width: 1000px;
    margin-bottom: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* =======================
   FEJLESZTŐK
======================= */
.developers {
    background: linear-gradient(to bottom, #c8b3d3, #eae5bb);
    padding: 30px;
    border-radius: 15px;
    max-width: 900px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dev-logo {
    width: 250px;
    max-width: 80vw;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.publisher-logo {
    width: 150px;
    max-width: 80vw;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.dev-pics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.dev-card img {
    width: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.dev-card img:hover {
    transform: scale(1.1);
}

.dev-card p {
    margin-top: 10px;
    font-weight: bold;
}

.dev-logo:hover {
    transform: scale(1.1);
}

.publisher-logo:hover {
    transform: scale(1.1);
}

/* =======================
   FOOTER
======================= */
footer {
    width: 100%;
    background: linear-gradient(to bottom, #2e3a2c, #181e17) ;
    color: #f3f0e8;
    padding: 20px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    text-align: center;
}

.footer-links a {
    color: #f3f0e8;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c1d8a9;
}

/* =======================
   RESZPONZIVITÁS
======================= */

/* Tablet nézet (max 900px) */
@media (max-width: 900px) {
    .description, .developers, .privacy {
        padding: 15px;
    }

    .dev-card img {
        width: 130px;
        height: 130px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobil nézet (max 600px) */
@media (max-width: 600px) {
    header .logo {
        width: 220px;
    }

    .socials img {
        width: 32px;
        height: 32px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery img {
        width: 100%;
        border-radius: 12px;
    }   

    .dev-card img {
        width: 100px;
        height: 100px;
    }

    footer {
        font-size: 0.9em;
        padding: 15px 0;
    }
}

/* =======================
   LIGHTBOX (Képnagyítás)
======================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 85%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.lightbox img:hover {
    transform: scale(1.02);
}

/* HERO PANEL */
.hero-demo {
  position: relative;
  background: linear-gradient(180deg,  #f9cb81 0%,  #b36017 100%);
  padding: 60px 20px;
  border-radius: 25px;
  margin-bottom: 50px;
  overflow: hidden;
}

/* GLOW EFFECT */
.hero-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(144, 238, 144, 0.3) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatGlow 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes floatGlow {
  0% { transform: translate(0,0); }
  100% { transform: translate(40px,40px); }
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* TEXT */
.hero-text {
  flex: 1;
  min-width: 260px;
  animation: fadeUp 1s ease forwards;
}

.hero-text h2 {
  color: #fffce1;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-family: 'Bubblegum Sans', cursive;
}

.hero-text p {
  color: #eae5bb;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

/* BUTTON */
.demo-button {
  display: inline-block;
  background: linear-gradient(135deg, #dc78d2, #87dde8);
  color: white;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
}

.demo-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4);
}

/* VIDEO */
.hero-video {
  flex: 1;
  min-width: 300px;
  animation: fadeUp 1.2s ease forwards;
}

.hero-video iframe {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* FADE ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-demo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 200, 0.4) 50%,
    transparent 60%
  );

  transform: translateX(-100%) translateY(-100%) rotate(10deg);

  animation: shimmerMove 5s linear infinite;

  pointer-events: none;
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(10deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(10deg);
  }
}

@keyframes cuteBounce {
  0%, 100% {
    transform: translateY(0) scale(1,1);
  }
  10% {
    transform: translateY(-10px) scale(1.05, 0.95);
  }
  20% {
    transform: translateY(0) scale(0.95, 1.05);
  }
  30% {
    transform: translateY(-7px) scale(1.02, 0.98);
  }
  40% {
    transform: translateY(0) scale(1,1);
  }
}

/* gomb animáció */
.demo-button {
  animation: cuteBounce 3s ease-in-out infinite;
}

.demo-button {
  display: inline-block;
  background: linear-gradient(135deg, #dc78d2, #87dde8);
  color: white;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.2rem;
  text-decoration: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover növekedés */
.demo-button:hover {
  transform: scale(1.1);
  box-shadow: 0 1px 30px rgba(255, 238, 170, 0.385);
}

.demo-button-wrapper {
  position: relative;
  display: inline-block;
}

.games-section {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 45px;
    box-sizing: border-box;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

.game-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #836641;
    background: linear-gradient(to bottom, #eae5bb, #c5accf);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.game-cover {
    width: 100%;
    aspect-ratio: 2 / 3; /* Steam könyvtári álló (600x900) képarány */
    border-radius: 10px;
    overflow: hidden;
    background-color: #678166;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.game-card:hover .game-cover img {
    transform: scale(1.04);
}

.game-meta {
    margin-top: 12px;
    padding: 0 4px 4px;
}

.game-title {
    margin: 0 0 4px;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    -webkit-text-stroke: 3px #000000; /* Körvonal színe és vastagsága */
    paint-order: stroke fill; /* Szebb, kevésbé elmosódó körvonal */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.game-date {
    margin: 0;
    margin-top: 10px;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: #3d523b;
    text-shadow: none;
}

/* Reszponzív finomhangolás */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .game-card {
        padding: 9px;
        border-radius: 12px;
    }

    .game-title {
        font-size: 0.98rem;
    }

    .game-date {
        font-size: 0.78rem;
    }
}