/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Dark Theme */
body.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #e0e0e0 !important;
}

body.dark-theme::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(155, 89, 182, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(46, 204, 113, 0.4) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-theme header {
    background: rgba(44, 62, 80, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    color: #764ba2;
}

body.dark-theme .logo a {
    color: #74b9ff !important;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

body.dark-theme .nav-links a {
    color: #e0e0e0 !important;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
    background: rgba(116, 185, 255, 0.2) !important;
    color: #74b9ff !important;
}

.theme-toggle {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

body.dark-theme .theme-toggle {
    background: #74b9ff !important;
    color: #2c3e50 !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%) !important;
}

.bot-hero {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.9) 0%, rgba(162, 155, 254, 0.9) 100%);
}

.terms-hero,
.privacy-hero {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9) 0%, rgba(142, 68, 173, 0.9) 100%);
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn.donation {
    background: linear-gradient(45deg, #0070ba, #00457c);
    color: white;
}

.btn.donation:hover {
    background: linear-gradient(45deg, #005ea6, #003d6b);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 112, 186, 0.3);
}

.btn.github {
    background: linear-gradient(45deg, #333, #24292e);
    color: white;
}

.btn.github:hover {
    background: linear-gradient(45deg, #24292e, #1b1f23);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(36, 41, 46, 0.3);
}

/* Features Section */
.features,
.bot-features-section,
.bot-showcase {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

body.dark-theme .features,
body.dark-theme .bot-features-section,
body.dark-theme .bot-showcase {
    background: rgba(44, 62, 80, 0.9) !important;
}

.features h2,
.bot-features-section h2,
.bot-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

body.dark-theme .features h2,
body.dark-theme .bot-features-section h2,
body.dark-theme .bot-showcase h2 {
    color: #e0e0e0 !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.dark-theme .feature-card {
    background: rgba(52, 73, 94, 0.8) !important;
    color: #e0e0e0 !important;
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

body.dark-theme .feature-card i {
    color: #74b9ff !important;
}

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

body.dark-theme .feature-card h3 {
    color: #e0e0e0 !important;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

body.dark-theme .feature-card p {
    color: #bdc3c7 !important;
}

/* Bot Features */
.bot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.bot-feature {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

body.dark-theme .bot-feature {
    background: rgba(52, 73, 94, 0.8) !important;
    color: #e0e0e0 !important;
}

.bot-feature h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

body.dark-theme .bot-feature h3 {
    color: #74b9ff !important;
}

/* Commands Section */
.commands-section {
    padding: 4rem 0;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
}

body.dark-theme .commands-section {
    background: rgba(44, 62, 80, 0.9) !important;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.command-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

body.dark-theme .command-card {
    background: rgba(52, 73, 94, 0.9) !important;
    color: #e0e0e0 !important;
}

.command-card h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

body.dark-theme .command-card h3 {
    color: #74b9ff !important;
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.command-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

body.dark-theme .command-item {
    background: rgba(116, 185, 255, 0.1) !important;
}

body.dark-theme .command-item:hover {
    background: rgba(116, 185, 255, 0.2) !important;
}

.command-item code {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: bold;
    color: #667eea;
}

body.dark-theme .command-item code {
    background: rgba(116, 185, 255, 0.2) !important;
    color: #74b9ff !important;
}

.command-item span {
    color: #666;
    flex: 1;
    margin-left: 1rem;
}

body.dark-theme .command-item span {
    color: #bdc3c7 !important;
}

/* Philosophy Section */
.bot-philosophy {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

body.dark-theme .bot-philosophy {
    background: rgba(44, 62, 80, 0.9) !important;
}

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

.philosophy-text h3 {
    color: #667eea;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.philosophy-text h3:first-child {
    margin-top: 0;
}

body.dark-theme .philosophy-text h3 {
    color: #74b9ff !important;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

body.dark-theme .philosophy-text p {
    color: #bdc3c7 !important;
}

/* Support Section */
.support-section,
.support-development {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    text-align: center;
    backdrop-filter: blur(10px);
}

body.dark-theme .support-section,
body.dark-theme .support-development {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1) 0%, rgba(162, 155, 254, 0.1) 100%) !important;
}

.support-section h2,
.support-development h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

body.dark-theme .support-section h2,
body.dark-theme .support-development h2 {
    color: #e0e0e0 !important;
}

.support-section p,
.support-development p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-theme .support-section p,
body.dark-theme .support-development p {
    color: #bdc3c7 !important;
}

.support-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Terms and Privacy Content */
.terms-content,
.privacy-content {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

body.dark-theme .terms-content,
body.dark-theme .privacy-content {
    background: rgba(44, 62, 80, 0.9) !important;
    color: #e0e0e0 !important;
}

.terms-section,
.privacy-section {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terms-section h2,
.privacy-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

body.dark-theme .terms-section h2,
body.dark-theme .privacy-section h2 {
    color: #74b9ff !important;
}

.terms-section h3,
.privacy-section h3 {
    color: #764ba2;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

body.dark-theme .terms-section h3,
body.dark-theme .privacy-section h3 {
    color: #a29bfe !important;
}

.terms-section p,
.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

body.dark-theme .terms-section p,
body.dark-theme .privacy-section p {
    color: #bdc3c7 !important;
}

.terms-section ul,
.privacy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.terms-section li,
.privacy-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

body.dark-theme .terms-section li,
body.dark-theme .privacy-section li {
    color: #bdc3c7 !important;
}

.terms-section a,
.privacy-section a {
    color: #667eea;
    text-decoration: none;
}

.terms-section a:hover,
.privacy-section a:hover {
    text-decoration: underline;
}

body.dark-theme .terms-section a,
body.dark-theme .privacy-section a {
    color: #74b9ff !important;
}

/* Footer */
footer {
    background: rgba(44, 62, 80, 0.9);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    backdrop-filter: blur(10px);
}

body.dark-theme footer {
    background: rgba(23, 32, 42, 0.9) !important;
}

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

.footer-section h3 {
    color: #74b9ff;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #74b9ff;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .support-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .command-card {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}