/* OMNIX EMPIRE Premium Design System */

:root {
    --gold-primary: #FFD700;
    --gold-glow: #FFB800;
    --gold-dark: #B8860B;
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 215, 0, 0.15);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-blue: #00C2FF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-glow-1,
.bg-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.15;
    animation: flow 15s infinite ease-in-out alternate;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    background: var(--gold-glow);
}

.bg-glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--accent-blue);
    animation-delay: -5s;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

@keyframes flow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-speed);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    color: #fff;
    border-color: #fff;
}

.btn-gold-subtle {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-gold-subtle:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-primary);
    transition: 0.3s;
    box-shadow: 0 0 8px var(--gold-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 15px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .text-gold {
    background: linear-gradient(to right, var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    /* Reset simpler text-shadow for gradient text */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.hero-tagline {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    /* Fallback */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-primary);
}

/* Featured Section */
.featured-section {
    margin-top: -50px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.featured-card {
    display: flex;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-primary);
}

.featured-content {
    flex: 1;
    z-index: 2;
}

.featured-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.featured-image img {
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-15deg);
    transition: 0.5s;
}

.featured-card:hover .featured-image img {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.badge {
    background: var(--gold-primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin: 20px 0 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.feature-list li i {
    color: var(--gold-primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 80px;
    background: var(--gold-primary);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--gold-primary);
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.app-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.app-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.app-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.app-info .version {
    font-size: 0.85rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.app-info .version.discontinued {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.app-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Wide Card (Web Section) */
.wide-card {
    text-align: center;
    padding: 60px;
    background-image: radial-gradient(circle at center, rgba(0, 194, 255, 0.05) 0%, transparent 70%);
}

.wide-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.community-card {
    padding: 30px;
    text-align: center;
    text-decoration: none;
    display: block;
    color: #fff;
}

.community-card.restricted {
    border-color: rgba(255, 0, 0, 0.3);
}

.community-card.restricted:hover {
    border-color: #ff4444;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
}

.community-card .icon-glow {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold-primary);
    transition: 0.3s;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.community-card:hover .icon-glow {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 20px #fff;
}

.community-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.community-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020202;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-3px);
}

.copyright p {
    color: #444;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .featured-card {
        flex-direction: column-reverse;
        /* Stack appropriately for mobile */
        padding: 30px;
        text-align: center;
    }

    .featured-image {
        justify-content: center;
        margin-bottom: 30px;
    }

    .featured-image img {
        transform: none !important;
        /* Disable 3D on mobile for performance/layout */
        max-width: 100%;
    }

    .feature-list li {
        justify-content: center;
    }
}