:root {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --text: #f8f9fa;
    --text-secondary: #adb5bd;
    --bg: #18191c;
    --bg-secondary: #23272a;
    --glass: rgba(35, 39, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --highlight: #00b894;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    overflow: hidden;
    z-index: -1;
}

/* Star field with twinkling stars */
.star-field {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Regular stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.5;
}

/* Twinkling stars */
.twinkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

/* Shooting stars container */
.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Nebula effect */
.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(88, 101, 242, 0.15) 0%, rgba(0, 0, 0, 0) 25%),
        radial-gradient(circle at 80% 70%, rgba(170, 132, 255, 0.15) 0%, rgba(0, 0, 0, 0) 25%);
    opacity: 0.5;
    animation: nebulaPulse 15s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@keyframes nebulaPulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.3;
    }
}





.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-icon {
    font-size: 1.75rem;
}

.logo h1 {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

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

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

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

.cta-container {
    display: flex;
    gap: 1rem;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.discord-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.discord-btn img {
    width: 20px;
    height: 20px;
}

.pulse {
    animation: pulse 2s infinite;
}

main {
    padding-top: 100px;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 10%;
    text-align: center;
}

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

.hero h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-2px);
}

.command-preview {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    width: fit-content;
    margin: 0 auto 2rem;
}

.terminal-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--highlight);
    margin-right: 0.5rem;
}

.command {
    color: var(--primary);
}

.argument {
    color: var(--text-secondary);
}


.command-space {
    display: none; /* Initially hidden */
}

.typing-cursor {
    width: 8px;
    height: 1.2rem;
    background: var(--text);
    display: inline-block;
    margin-left: 0.25rem;
    animation: blink 1s infinite;
}

.features-section, .commands-section {
    padding: 5rem 10%;
}
.features-section, .demo-section {
    padding: 5rem 10%;
}
.features-section h2, .commands-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.features-section h2, .demo-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Command search and list styles */
.command-search {
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.command-search input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.command-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.command-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.command-search button:hover {
    background: var(--primary-dark);
}

.commands-list {
    display: grid;
    gap: 1.5rem;
}

.command-item {
    padding: 1.5rem;
    transition: transform 0.3s;
}

.command-item:hover {
    transform: translateX(5px);
}

.command-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.command-name {
    font-weight: 600;
    color: var(--primary);
}

.command-usage {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.command-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bot-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.avatar-container {
    display: flex;
    align-items: center;
}

.name-timestamp {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.message-preview {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.message-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
}

.message-content {
    padding: 12px 16px;
}

/* Discord embed styling */
.discord-embed {
    display: flex;
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.embed-pill {
    width: 4px;
    background-color: #FFD700; /* Gold color */
    flex-shrink: 0;
}

.embed-inner {
    padding: 12px 16px;
    width: 100%;
}

.embed-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.emoji {
    margin-right: 4px;
}

.embed-fields {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

.embed-field {
    margin-bottom: 12px;
}

.full-width {
    width: 100%;
}

.half-width {
    width: 50%;
    padding-right: 8px;
}

.field-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.field-value {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.field-value p {
    margin: 0 0 2px;
}

.field-value strong {
    color: var(--text);
    font-weight: 600;
}

.field-value em {
    color: var(--highlight);
    font-style: normal;
}

.field-value code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0 3px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

.embed-field-spacer {
    width: 100%;
    height: 8px;
}

.calculation-note {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.embed-footer img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensures the full image is visible */
}


/* Footer styles */
.glass-footer {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 10% 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-discord h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

@keyframes gradientRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero {
        padding: 3rem 5%;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .glass-nav {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .features-section, .commands-section, .hero {
        padding: 3rem 5%;
    }
    
    .features-section, .demo-section, .hero {
        padding: 3rem 5%;
    }
    
    .half-width {
        width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .message-preview {
        width: 95%;
    }
    
    .embed-fields {
        flex-direction: column;
    }
    
    .half-width {
        width: 100%;
    }
}
