/* ===========================
   PHOTON STUDIOS — style.css
   =========================== */

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #050508;
    color: #fff;
    overflow-x: hidden;
}

/* ================= VIDEO BG ================= */
#bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.dark-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 8, 0.4),
        rgba(5, 5, 8, 0.7) 50%,
        rgba(5, 5, 8, 0.95)
    );
    z-index: -1;
}

/* ================= NAV ================= */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 99;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}

nav.scrolled {
    background: rgba(5, 5, 8, 0.95);
}

.logo {
    font-weight: 900;
    font-size: 1.1rem;
    color: #7ed8ff;
    text-decoration: none;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.tag {
    font-size: 0.72rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(126, 216, 255, 0.6);
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin: 12px 0;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #fff 30%, #7ed8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.4);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-btns {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #7ed8ff, #4fa8d4);
    color: #000;
    box-shadow: 0 4px 20px rgba(126, 216, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(126, 216, 255, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

/* ================= SECTIONS ================= */
section {
    padding: 100px 24px;
    position: relative;
    z-index: 2;
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.label {
    color: #7ed8ff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-top: 6px;
}

/* ================= GAMES GRID ================= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

.game-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.game-info p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.game-info .btn {
    padding: 9px 22px;
    font-size: 0.82rem;
}

/* ================= ABOUT SECTION ================= */
.about {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about p {
    color: rgba(255, 255, 255, 0.35);
    max-width: 540px;
    margin: 14px auto 0;
    line-height: 1.7;
}

/* ================= STATS ================= */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #7ed8ff;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ================= CTA ================= */
.cta {
    text-align: center;
}

.cta .heading {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.cta p {
    color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.cta .hero-btns {
    margin-top: 28px;
    opacity: 1;
    animation: none;
}

/* ================= FOOTER ================= */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

footer span {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 16px;
    transition: color 0.2s;
}

footer a:hover {
    color: #7ed8ff;
}

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

/* Scroll reveal */
.r {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.r.v {
    opacity: 1;
    transform: translateY(0);
}

/* ================= SHORT HERO (sub-pages) ================= */
.hero-short {
    height: 50vh;
    min-height: 340px;
}

.hero-short .hero-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
}

/* ================= LOGIN BUTTON ================= */
.btn-login {
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ================= SECTION PADDING HELPER ================= */
.section-padded {
    padding: 80px 24px;
    position: relative;
    z-index: 2;
}

/* ================= BANNER IMAGE ================= */
.banner-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.banner-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* ================= CONTENT CARDS ================= */
.content-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 32px;
}

.content-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #7ed8ff;
}

.content-card p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.content-card strong {
    color: rgba(255, 255, 255, 0.7);
}

.content-card ul,
.content-card ol {
    padding-left: 20px;
    margin: 10px 0;
}

.content-card li {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* ================= VALUES GRID ================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.value-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px 20px;
    transition: background 0.25s, transform 0.25s;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.value-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.value-card p {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ================= TEAM GRID ================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.team-member {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.25s;
}

.team-member:hover {
    background: rgba(126, 216, 255, 0.08);
    transform: translateY(-2px);
}

/* ================= STORE CONTROLS ================= */
.store-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-search {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.store-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.store-search:focus {
    border-color: #7ed8ff;
}

.store-select {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.store-select:focus {
    border-color: #7ed8ff;
}

.store-select option {
    background: #111;
    color: #fff;
}

/* ================= GAME META ================= */
.game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-price {
    font-weight: 800;
    font-size: 0.9rem;
    color: #7ed8ff;
}

.game-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(126, 216, 255, 0.1);
    color: rgba(126, 216, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= NO RESULTS ================= */
.no-results {
    display: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    margin-top: 40px;
    padding: 40px 20px;
}

/* ================= DONATE FORM ================= */
.donate-form-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 32px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7ed8ff;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: #7ed8ff;
}

.donate-form-card .btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.donate-thanks {
    color: #7ed8ff;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    display: none;
}

.donate-thanks.show {
    display: block;
}

/* code snippets inside content cards */
.content-card code {
    background: rgba(126, 216, 255, 0.1);
    color: #7ed8ff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* ================= MOBILE ================= */
@media (max-width: 700px) {
    .nav-links { display: none; }
    .games-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 30px; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-img { height: 200px; }
    .content-card { padding: 22px 18px; }
    .store-controls { flex-direction: column; }
    .store-search { min-width: 100%; }
}
