/* ===================================
   FIXEMBED - DISCORD PREMIUM THEME
   Modern, animated, glassmorphism design
   =================================== */

:root {
    /* Discord-inspired color palette */
    --primary-color: #5865F2;
    --primary-light: #7289DA;
    --primary-glow: rgba(88, 101, 242, 0.4);
    --accent-green: #57F287;
    --accent-yellow: #FEE75C;
    --accent-pink: #EB459E;
    --accent-cyan: #00D4FF;
    
    /* Dark theme backgrounds */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: rgba(22, 27, 34, 0.8);
    --bg-card-hover: rgba(33, 38, 45, 0.9);
    
    /* Text colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(88, 101, 242, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5865F2 0%, #EB459E 50%, #FEE75C 100%);
    --gradient-hero: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    --gradient-card: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(235, 69, 158, 0.1) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 50%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    bottom: -15%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: var(--accent-green);
    top: 30%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(50px, 20px) scale(1.02);
    }
}

/* ===================================
   BASE LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-light);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===================================
   NAVIGATION
   =================================== */
header {
    position: relative;
    overflow: hidden;
}

nav {
    padding: 20px 0;
    position: relative;
    z-index: 100;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--glow-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.github-link {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.github-link:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.invite-btn {
    background: var(--gradient-hero);
    color: var(--text-primary) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px var(--glow-color);
    transition: all 0.3s ease;
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    padding: 120px 0 140px;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-mobile {
    display: none;
}

.hero-content {
    flex: 1;
    max-width: 55%;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--gradient-hero);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 24px var(--glow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--glow-color);
    color: var(--text-primary);
}

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

.secondary-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.hero-image {
    flex: 1;
    max-width: 45%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px var(--shadow-color),
                0 0 40px var(--glow-color);
    border: 1px solid var(--glass-border);
}

/* ===================================
   GLASSMORPHISM CARDS
   =================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 40px var(--shadow-color),
                0 0 30px rgba(88, 101, 242, 0.15);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 40px var(--shadow-color),
                0 0 30px rgba(88, 101, 242, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--glow-color);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
    transform: translateX(10px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.step-number {
    background: var(--gradient-hero);
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--glow-color);
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
}

.step-content code {
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* ===================================
   PLATFORMS SECTION
   =================================== */
.platforms-section {
    padding: 120px 0;
    position: relative;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.platform-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 40px var(--shadow-color),
                0 0 30px rgba(88, 101, 242, 0.15);
}

.platform-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.platform-card:hover .platform-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 40px var(--glow-color);
}

.platform-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 1rem;
    color: #fff;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .primary-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .primary-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   HOSTING SECTION
   =================================== */
.hosting-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.hosting-content {
    display: flex;
    justify-content: center;
}

.hosting-text {
    max-width: 800px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
}

.code-block {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.code-block pre {
    margin: 0;
}

code {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    color: var(--accent-cyan);
    font-size: 0.95rem;
}

.note {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-secondary);
    padding: 16px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* ===================================
   SUPPORT SECTION
   =================================== */
.support-section {
    padding: 120px 0;
    position: relative;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.support-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 40px var(--shadow-color),
                0 0 30px rgba(88, 101, 242, 0.15);
}

.support-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--glow-color);
}

.support-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--gradient-hero);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
    color: var(--text-primary);
}

/* ===================================
   CREDITS SECTION
   =================================== */
.credits-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.credits-section > .container > p {
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.credit-link {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.credit-link:hover {
    border-color: var(--primary-color);
    background: rgba(88, 101, 242, 0.15);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    flex: 1;
    min-width: 280px;
}

.footer-right {
    flex: 1;
    min-width: 280px;
    text-align: right;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

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

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-section {
        padding: 80px 0 100px;
        min-height: auto;
    }
    
    .hero-desktop {
        display: none;
    }
    
    .hero-mobile {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-mobile h1 {
        margin-bottom: 1.5rem;
    }
    
    .hero-mobile .subtitle {
        max-width: 600px;
        margin: 0 auto 2rem;
    }
    
    .mobile-buttons {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 48px;
        flex-wrap: wrap;
    }
    
    .hero-image-mobile {
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .hero-image-mobile img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 20px 60px var(--shadow-color),
                    0 0 40px var(--glow-color);
        border: 1px solid var(--glass-border);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-grid,
    .platforms-grid,
    .support-options,
    .credits-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section,
    .how-it-works-section,
    .platforms-section,
    .cta-section,
    .hosting-section,
    .support-section,
    .credits-section {
        padding: 80px 0;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .mobile-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-left p {
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid,
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-color);
    }
    50% {
        box-shadow: 0 0 40px var(--glow-color), 0 0 60px rgba(88, 101, 242, 0.3);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
