/* ============================================
   NAROG GAMES - Site Styles
   Color palette derived from logo & Shard Cycle
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-deep: #0a0a0c;
    --bg-surface: #131316;
    --bg-card: #1a1a1f;
    --bg-card-hover: #222228;
    --border-subtle: #2a2a30;
    --border-glow: #c4922a;

    --amber: #c4922a;
    --amber-light: #d4a843;
    --amber-glow: rgba(196, 146, 42, 0.3);
    --cyan: #00c8ff;
    --cyan-glow: rgba(0, 200, 255, 0.3);
    --jadeite: #3ecf6e;
    --amberit: #e6862a;
    --sparkquartz: #4daeff;
    --onyx: #7a7a82;

    --text-primary: #e8e6e3;
    --text-secondary: #9a989a;
    --text-muted: #5e5c5e;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--amber) var(--bg-deep);
}

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

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

a:hover {
    color: var(--amber);
}

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

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -20px); }
    50% { transform: translate(-5px, -35px); }
    75% { transform: translate(-15px, -15px); }
}

@keyframes float-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-12px, -25px); }
    50% { transform: translate(8px, -40px); }
    75% { transform: translate(15px, -10px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.95);
    border-bottom-color: var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--amber-light);
    background: rgba(196, 146, 42, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(196, 146, 42, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 200, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, var(--bg-surface) 0%, var(--bg-deep) 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
}

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

.hero-logo {
    width: 140px;
    height: auto;
    margin-bottom: 24px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--amber-glow));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--amber-light) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s linear infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: var(--amber);
    animation: scroll-bounce 2s ease-in-out infinite;
    opacity: 0.6;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: var(--bg-deep);
    box-shadow: 0 4px 20px var(--amber-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--amber-glow);
    color: var(--bg-deep);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--amber-light);
    border: 1px solid var(--amber);
}

.btn-secondary:hover {
    background: rgba(196, 146, 42, 0.15);
    transform: translateY(-2px);
    color: var(--amber-light);
}

.btn-outline {
    background: transparent;
    color: var(--amber-light);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--amber);
    background: rgba(196, 146, 42, 0.08);
    color: var(--amber-light);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border: 1px solid #5865F2;
    display: inline-flex;
    align-items: center;
}

.btn-discord:hover {
    background: #4752C4;
    border-color: #4752C4;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Game Showcase --- */
.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.game-card-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.4s ease;
}

.game-card-featured:hover {
    border-color: var(--amber);
}

.game-card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--amber-glow), transparent, var(--cyan-glow));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card-featured:hover .game-card-glow {
    opacity: 1;
}

.game-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.game-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(196, 146, 42, 0.9);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-showcase-info {
    padding: 20px 0;
}

.game-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.game-genre {
    color: var(--amber-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.crystal {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transform: rotate(45deg);
}

.crystal-onyx { background: var(--onyx); box-shadow: 0 0 8px rgba(122, 122, 130, 0.5); }
.crystal-jadeite { background: var(--jadeite); box-shadow: 0 0 8px rgba(62, 207, 110, 0.5); }
.crystal-amberit { background: var(--amberit); box-shadow: 0 0 8px rgba(230, 134, 42, 0.5); }
.crystal-sparkquartz { background: var(--sparkquartz); box-shadow: 0 0 8px rgba(77, 174, 255, 0.5); }

/* --- Dev Cards --- */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dev-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dev-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dev-card-icon {
    color: var(--cyan);
    margin-bottom: 20px;
}

.dev-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.dev-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.dev-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: var(--jadeite);
    box-shadow: 0 0 10px rgba(62, 207, 110, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
}

.status-dot.planned {
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber-glow);
}

/* --- Current Work Section --- */
.current-work {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 200, 255, 0.03) 0%, transparent 50%),
        var(--bg-surface);
}

/* --- News Cards --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber);
}

.news-date {
    font-size: 0.8rem;
    color: var(--amber);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.news-link {
    font-weight: 600;
    font-size: 0.9rem;
}

.section-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Page Header --- */
.page-header {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 40px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196, 146, 42, 0.06) 0%, transparent 60%),
        var(--bg-surface);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* --- Games Page --- */
.game-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.gallery-main {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--amber);
}

.game-detail-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.game-tagline {
    color: var(--amber-light);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.game-detail-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.game-status-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.game-status-badge.coming-soon {
    background: rgba(196, 146, 42, 0.15);
    color: var(--amber-light);
    border: 1px solid var(--amber);
}

.detail-section-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-top: 32px;
    margin-bottom: 16px;
}

.crystal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crystal-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.crystal-item .crystal {
    flex-shrink: 0;
}

.crystal-item strong {
    color: var(--text-primary);
    display: block;
    font-size: 0.9rem;
}

.crystal-item span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-item {
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.module-item strong {
    color: var(--cyan);
}

.game-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-feature-list li {
    padding: 10px 16px 10px 36px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.game-cta {
    margin-top: 32px;
}

.game-feature-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber-glow);
    border-radius: 2px;
}

/* --- Blog Page --- */
.blog-empty {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.blog-empty h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.blog-empty p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* --- About Page --- */
.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-top: 36px;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-values {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-values li {
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-values li strong {
    color: var(--amber-light);
    display: block;
    margin-bottom: 4px;
}

/* --- Contact Page --- */
.contact-grid {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.contact-method:hover {
    border-color: var(--amber);
}

.contact-method svg {
    color: var(--amber);
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contact-method a {
    font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
    background: var(--bg-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-left: 8px;
}

.social-link {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: #5865F2;
    transform: scale(1.15);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .game-showcase,
    .game-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-logo-text {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        width: 100px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
