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

:root {
    /* Backgrounds */
    --bg-primary: #0F172A; /* Deep Navy */
    --bg-secondary: #1E293B;
    --bg-vault: #0F172A;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: 18px;
    --glass-border: rgba(37, 99, 235, 0.2); /* Electric Blue */

    /* Gradients */
    --royal-gold: linear-gradient(135deg, #F97316, #FACC15); /* Orange to Sunny Yellow */
    --luxury-amber: linear-gradient(135deg, #F97316, #EA580C);
    --gem-emerald: linear-gradient(135deg, #2563EB, #3B82F6); /* Electric Blue */
    --sapphire-accent: linear-gradient(135deg, #1E3A8A, #60A5FA);

    /* Glows */
    --glow-gold: rgba(250, 204, 21, 0.45); /* Sunny Yellow */
    --glow-emerald: rgba(37, 99, 235, 0.35); /* Electric Blue */
    --glow-blue: rgba(96, 165, 250, 0.30);

    /* Typography */
    --text-primary: #FFFFFF;
    --text-secondary: #FACC15; /* Sunny Yellow */
    --text-muted: #94A3B8;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --radius-btn: 18px;
    --radius-card: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

a:hover {
    color: #FACC15;
}

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

/* Glass & Vault Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vault-panel {
    background: var(--bg-vault);
    border-radius: var(--radius-card);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Typography Classes */
.text-gold {
    background: var(--royal-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--royal-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-gold);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--gem-emerald);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-emerald);
}

.btn-secondary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #FACC15;
    color: #FACC15;
}

.btn-outline:hover {
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 15px var(--glow-gold);
}

/* Header & Top Bar */
.top-bar {
    background: #2563EB;
    color: #FFFFFF;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 100%;
}

.site-header {
    position: absolute; /* Header fixed in position, can't move with scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.site-header .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-header .glass-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    border-radius: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.main-nav a:hover {
    color: #FACC15;
    text-shadow: 0 0 10px var(--glow-gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 190px 0 80px;
    background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, var(--bg-primary) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/funeverydy-hero-background.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(250, 204, 21, 0.2);
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-legal {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-vault);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
}

/* Game Section */
.section-padding {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.game-showcase {
    background: var(--bg-secondary);
}

.game-container {
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(180deg, var(--bg-vault) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.game-container:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.6);
}

.game-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.game-info h3 {
    font-size: 28px;
    margin-bottom: 4px;
}

.game-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.feature-card {
    grid-column: span 4;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(250, 204, 21, 0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-vault);
    border: 1px solid var(--glass-border);
}

.feature-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-card h4 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Page Headers (About, Contact, Legal) */
.page-header {
    padding: 200px 0 80px;
    background: linear-gradient(180deg, var(--bg-vault) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--glass-border);
}

/* Forms */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #FACC15;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Content Blocks for Legal Pages */
.content-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
}

.content-block h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: #FACC15;
}

.content-block p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.content-block ul {
    margin-left: 24px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.content-block li {
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: var(--bg-vault);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand {
    grid-column: span 4;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    grid-column: span 8;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.footer-nav h5 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-nav a:hover {
    color: #FACC15;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.8;
}

.footer-disclaimer strong {
    color: var(--text-primary);
}

.copyright {
    color: rgba(148, 163, 184, 0.5);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-padding { padding: 80px 0; }
    .hero-title { font-size: 48px; }
    .feature-card { grid-column: span 6; }
    .footer-links { gap: 40px; justify-content: flex-start; }
    .footer-brand { grid-column: span 12; }
    .footer-links { grid-column: span 12; }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 6px 8px;
    }
    .section-padding { padding: 60px 0; }
    .hero-title { font-size: 36px; }
    .feature-card { grid-column: span 12; }
    .main-nav { display: none; }
    .hero-actions { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 40px; }
    .game-top-bar { flex-direction: column; gap: 16px; text-align: center; }
}