/* Fallendoll Game Website - Complete UI Redesign */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0a1a;
    --bg-secondary: #1a1326;
    --bg-card: #241b33;
    --bg-hover: #2d2340;
    --accent-primary: #ff006e;
    --accent-secondary: #8338ec;
    --accent-tertiary: #3a86ff;
    --accent-gold: #ffbe0b;
    --text-primary: #ffffff;
    --text-secondary: #d4c5e8;
    --text-muted: #9d8bb0;
    --border-color: #3d2f4d;
    --gradient-primary: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
    --gradient-accent: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
    --gradient-gold: linear-gradient(135deg, #ffbe0b 0%, #fb8500 100%);
    --gradient-hero: linear-gradient(180deg, #0f0a1a 0%, #1a1326 50%, #241b33 100%);
    --shadow-sm: 0 2px 8px rgba(255, 0, 110, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 0, 110, 0.2);
    --shadow-lg: 0 8px 32px rgba(255, 0, 110, 0.3);
    --shadow-xl: 0 16px 64px rgba(255, 0, 110, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 0, 110, 0.6);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Space Grotesk', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(131, 56, 236, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(58, 134, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 110, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 110, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Header - New Design */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
    z-index: 1000;
    transition: var(--transition-base);
}

.header-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    transition: var(--transition-base);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.5));
}

.brand-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 0, 110, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition-base);
}

.menu-toggle:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Hero Section - New Design */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    text-align: center;
}

.game-title {
    font-size: clamp(64px, 12vw, 140px);
    font-weight: 900;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    animation: titleAppear 1s ease-out;
}

@keyframes titleAppear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.version-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 0, 110, 0.15);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.feature-pill {
    padding: 10px 22px;
    background: rgba(36, 27, 51, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.feature-pill:hover {
    background: rgba(255, 0, 110, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.3);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(255, 0, 110, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

/* Content Sections - New Design */
.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.section-heading {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 900;
    margin-bottom: 18px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* News Grid - New Design */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.news-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.news-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.news-article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.news-article:hover::before {
    transform: scaleX(1);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.article-category {
    padding: 6px 16px;
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.article-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-base);
}

.article-link:hover {
    gap: 12px;
}

/* Gallery Grid - New Design */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.gallery-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.gallery-image:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-image:hover img {
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100%);
    transition: var(--transition-base);
}

.gallery-image:hover .image-caption {
    transform: translateY(0);
}

.caption-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.caption-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Version Cards - New Design */
.version-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
}

.version-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-base);
    position: relative;
}

.version-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.version-tag {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-meta {
    text-align: right;
}

.version-date,
.version-size {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.version-platform {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.changes-list {
    margin-bottom: 28px;
}

.change-group {
    margin-bottom: 20px;
}

.change-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 17px;
}

.change-type i {
    color: var(--accent-primary);
    font-size: 18px;
}

.change-items {
    list-style: none;
    padding-left: 0;
}

.change-items li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
}

.change-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.version-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition-base);
    font-size: 15px;
}

.version-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.3);
}

/* Reviews Section - New Design */
.reviews-summary {
    text-align: center;
    margin-bottom: 70px;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 88px;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-details {
    text-align: left;
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.star-rating i {
    color: var(--accent-gold);
    font-size: 24px;
}

.rating-count {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rating-label {
    width: 45px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 700;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.rating-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 1.5s ease-out;
}

.rating-percent {
    width: 55px;
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.tag-item {
    padding: 10px 20px;
    background: rgba(36, 27, 51, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
}

.tag-item:hover {
    background: rgba(255, 0, 110, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-base);
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition-base);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.review-card:hover::before {
    transform: scaleY(1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.reviewer-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
}

.review-stars {
    display: flex;
    gap: 3px;
}

.review-stars i {
    color: var(--accent-gold);
    font-size: 16px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.cta-banner {
    text-align: center;
    padding: 90px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    animation: ctaRotate 25s linear infinite;
}

@keyframes ctaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-title {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 18px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

/* Footer - New Design */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 90px 40px 36px;
    margin-top: 120px;
    position: relative;
}

.footer-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column p,
.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.9;
    transition: var(--transition-base);
    font-size: 15px;
}

.footer-column a:hover {
    color: var(--accent-primary);
    padding-left: 6px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 14px;
    transition: var(--transition-base);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}

/* Back to Top - New Design */
.scroll-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 0, 110, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-wrapper {
        padding: 0 28px;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .content-wrapper {
        padding: 0 28px;
    }
    
    .version-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 100px 28px 80px;
    }
    
    .game-title {
        font-size: 56px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .game-stats {
        gap: 30px;
    }
    
    .content-section {
        padding: 80px 0;
    }
    
    .news-container,
    .gallery-container,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-display {
        flex-direction: column;
        gap: 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

