/* ============================================
   Fortress Fury Website Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-bg: #0a0e1a;
    --color-bg-alt: #0f1526;
    --color-bg-card: #141b2d;
    --color-bg-card-hover: #1a2340;
    --color-surface: #1e2742;
    --color-primary: #4da6ff;
    --color-primary-glow: #4da6ff80;
    --color-accent: #83baff;
    --color-accent-light: #9bd9f2;
    --color-text: #c8d6e5;
    --color-text-muted: #7f8fa6;
    --color-text-bright: #ffffff;
    --color-fire: #ff6b35;
    --color-ice: #00d4ff;
    --color-thunder: #ffd700;
    --color-earth: #8bc34a;
    --color-red-glow: #ff4444;
    --color-blue-glow: #4488ff;
    --color-dark-glow: #8844cc;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 30px var(--color-primary-glow);
    --transition: 0.3s ease;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utility --- */
.text-glow {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #4da6ff 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(77, 166, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(77, 166, 255, 0.5);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn--xl {
    padding: 20px 48px;
    font-size: 1.2rem;
}

.btn__icon {
    width: 24px;
    height: 24px;
}

.btn--xl .btn__icon {
    width: 28px;
    height: 28px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.nav--scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(77, 166, 255, 0.1);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-img {
    height: 40px;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--color-text-bright);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
    border-radius: 1px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    width: 100%;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/ui/back_header.png') center/cover no-repeat;
    z-index: 0;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.6) 60%, var(--color-bg) 100%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: visible;
}

.hero__text {
    flex: 1;
    min-width: 0;
}

.hero__logo {
    max-width: 340px;
    margin-bottom: 16px;
}

.hero__tagline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hero__stores {
    display: flex;
    gap: 16px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.store-badge img {
    width: 24px;
    height: 24px;
}

.store-badge:hover {
    border-color: rgba(77, 166, 255, 0.3);
    background: var(--color-bg-card-hover);
}

.hero__character {
    flex: 0 0 auto;
    position: relative;
}

.hero__character-img {
    max-height: 550px;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(77, 166, 255, 0.2));
    animation: float 6s ease-in-out 1 forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero__scroll {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    animation: bounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.hero__scroll--hidden {
    opacity: 0;
    pointer-events: none;
}

.hero__scroll-icon {
    width: 28px;
    height: auto;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-text-bright);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.section__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================
   About / Trailer Section
   ============================================ */
.section--about {
    background: var(--color-bg-alt);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.about__wizard {
    flex: 0 0 auto;
}

.about__wizard-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(77, 166, 255, 0.3));
}

.about__text {
    flex: 1;
}

.about__highlights {
    list-style: none;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about__highlights li {
    font-size: 0.95rem;
    color: var(--color-accent-light);
    padding-left: 20px;
    position: relative;
}

.about__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

/* --- Trailer --- */
.trailer {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.trailer__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.trailer:hover .trailer__poster {
    transform: scale(1.03);
}

.trailer__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 2;
    transition: all var(--transition);
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.trailer:hover .trailer__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.trailer__player {
    position: absolute;
    inset: 0;
    display: none;
}

.trailer__player iframe {
    width: 100%;
    height: 100%;
}

.trailer--playing .trailer__poster,
.trailer--playing .trailer__play {
    display: none;
}

.trailer--playing .trailer__player {
    display: block;
}

/* ============================================
   Features Section
   ============================================ */
.section--features {
    background: var(--color-bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(77, 166, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text-bright);
    margin-bottom: 12px;
}

.feature-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   Towers Section
   ============================================ */
.section--towers {
    background: var(--color-bg-alt);
    overflow: hidden;
}

.towers__showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    padding-top: 20px;
}

.tower-card {
    position: relative;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}

.tower-card:hover {
    transform: translateY(-10px);
}

.tower-card__glow {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
    transition: opacity var(--transition);
}

.tower-card:hover .tower-card__glow {
    opacity: 0.5;
}

.tower-card__glow--red { background: var(--color-red-glow); }
.tower-card__glow--blue { background: var(--color-blue-glow); }
.tower-card__glow--dark { background: var(--color-dark-glow); }

.tower-card__img {
    position: relative;
    z-index: 1;
    width: 240px;
    height: auto;
    transition: transform var(--transition);
}

.tower-card--featured .tower-card__img {
    width: 280px;
}

.tower-card:hover .tower-card__img {
    transform: scale(1.05);
}

.tower-card__name {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-top: 16px;
    letter-spacing: 0.03em;
}

/* ============================================
   Arsenal Section
   ============================================ */
.section--arsenal {
    background: var(--color-bg);
}

.arsenal__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.element-group {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.element-group:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.element-group__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.element-group__title--fire { color: var(--color-fire); text-shadow: 0 0 20px rgba(255, 107, 53, 0.4); }
.element-group__title--ice { color: var(--color-ice); text-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
.element-group__title--thunder { color: var(--color-thunder); text-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
.element-group__title--earth { color: var(--color-earth); text-shadow: 0 0 20px rgba(139, 195, 74, 0.4); }

.element-group__weapons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.weapon-icon {
    width: 64px;
    height: 64px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: all var(--transition);
}

.weapon-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.3);
}

.weapon-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.arsenal__element-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Screenshots Section
   ============================================ */
.section--screenshots {
    background: var(--color-bg-alt);
}

.screenshots__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.screenshot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.screenshot:hover {
    transform: scale(1.02);
    border-color: rgba(77, 166, 255, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.screenshot__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.screenshot:hover .screenshot__img {
    transform: scale(1.05);
}

/* ============================================
   Community Section
   ============================================ */
.section--community {
    background: var(--color-bg);
    padding-bottom: 120px;
}

.community__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    transition: all var(--transition);
}

.community-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(77, 166, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.community-card__icon {
    width: 48px;
    height: 48px;
}

.community-card__label {
    font-weight: 700;
    color: var(--color-text-bright);
    font-size: 1.05rem;
}

.community-card__action {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.community__cta {
    text-align: center;
}

.community__platforms {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
}

.footer__studio {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer__heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__link {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox--open {
    opacity: 1;
    pointer-events: all;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: opacity var(--transition);
}

.lightbox__close:hover {
    opacity: 0.7;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        align-items: center;
        width: 100%;
    }

    .hero__cta .btn--lg {
        max-width: 100%;
    }

    .hero__character-img {
        max-height: 350px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__info {
        justify-content: center;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .towers__showcase {
        gap: 24px;
    }

    .tower-card__img {
        width: 180px;
    }

    .tower-card--featured .tower-card__img {
        width: 210px;
    }

    .arsenal__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .nav__links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

    .nav__links--open {
        display: flex;
    }

    .nav__links--open .nav__link {
        font-size: 1.3rem;
    }

    .nav__burger {
        display: flex;
        z-index: 1001;
    }

    .nav__burger--open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__burger--open span:nth-child(2) {
        opacity: 0;
    }

    .nav__burger--open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .hero__content {
        padding: 40px 20px 0;
    }

    .hero__logo {
        max-width: 220px;
    }

    .hero__tagline {
        font-size: 1rem;
    }

    .hero__desc {
        font-size: 0.95rem;
    }

    .hero__character-img {
        max-height: 260px;
    }

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

    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .about__info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about__highlights {
        grid-template-columns: 1fr;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .towers__showcase {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .tower-card__img {
        width: 200px;
    }

    .tower-card--featured .tower-card__img {
        width: 240px;
    }

    .arsenal__grid {
        grid-template-columns: 1fr 1fr;
    }

    .screenshots__gallery {
        grid-template-columns: 1fr;
    }

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

    .community-card {
        width: 100%;
        max-width: 300px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section__title {
        font-size: 1.5rem;
    }

    .section__subtitle {
        font-size: 0.9rem;
        margin-bottom: 36px;
    }

    .hero__logo {
        max-width: 180px;
    }

    .hero__tagline {
        font-size: 0.9rem;
    }

    .hero__desc {
        font-size: 0.88rem;
    }

    .btn--lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn--xl {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .btn--sm {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .nav__logo-img {
        height: 32px;
    }

    .arsenal__grid {
        grid-template-columns: 1fr;
    }

    .weapon-icon {
        width: 56px;
        height: 56px;
    }

    .community-card {
        padding: 24px 32px;
    }
}

/* --- Particle styles (injected by JS) --- */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0;
    pointer-events: none;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.5);
    }
}
