* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #13001f 50%, #230040 100%);
    color: #d8d8d8;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

.star:nth-child(odd) {
    animation-delay: 1s;
}

.star:nth-child(3n) {
    animation-delay: 0.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Header / Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 0, 31, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #a020f0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 0 0 10px #a020f0;
    z-index: 1001;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #a020f0;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: #d8d8d8;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #cfa0ff;
    background: rgba(160, 32, 240, 0.2);
    box-shadow: 0 0 15px rgba(160, 32, 240, 0.3);
}

/* Main Content */
main {
    margin-top: 80px;
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(45deg, #1a001f, #2d0040, #1a001f);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 20px #a020f0;
    font-weight: 700;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #cfa0ff;
    font-weight: 400;
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #a020f0, #5de0e6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(160, 32, 240, 0.4);
}

/* About Section */
.about {
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 10px #a020f0;
    font-weight: 600;
}

.intro-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(26, 0, 31, 0.6);
    border: 1px solid #a020f0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(160, 32, 240, 0.3);
    border-color: #cfa0ff;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #cfa0ff;
    font-weight: 600;
}

.card p {
    line-height: 1.6;
    font-size: 1rem;
}

/* Community Section */
.community {
    text-align: center;
    background: rgba(26, 0, 31, 0.3);
    border-radius: 20px;
    border: 1px solid #a020f0;
    backdrop-filter: blur(10px);
}

.community h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 10px #a020f0;
    font-weight: 600;
}

.community p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.discord-widget {
    max-width: 500px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
}

.discord-widget iframe {
    border-radius: 10px;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 10px #a020f0;
    font-weight: 600;
}

.contact-info {
    margin: 2rem 0;
}

.contact-info a {
    color: #5de0e6;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-info a:hover {
    color: #cfa0ff;
    text-shadow: 0 0 10px #a020f0;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.social-btn {
    display: block;
    padding: 1.2rem 2rem;
    background: rgba(160, 32, 240, 0.2);
    border: 1px solid #a020f0;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: rgba(160, 32, 240, 0.4);
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.5);
    transform: translateY(-2px);
}

.social-btn small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #a020f0;
    box-shadow: 0 -5px 20px rgba(160, 32, 240, 0.2);
    margin-top: 4rem;
    background: rgba(26, 0, 31, 0.3);
    backdrop-filter: blur(10px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Glowing effects */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #a020f0; }
    to { text-shadow: 0 0 20px #a020f0, 0 0 30px #cfa0ff; }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .social-links {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 0, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 2rem 0;
        border-top: 1px solid #a020f0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(160, 32, 240, 0.2);
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .about h2, .community h2, .contact h2 {
        font-size: 2rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 1.5rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-btn {
        padding: 1rem 1.5rem;
    }
    
    .discord-widget {
        margin: 1.5rem auto;
    }
    
    .discord-widget iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .about h2, .community h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .nav-links.active {
        padding: 1rem 0;
    }
    
    .nav-links a {
        padding: 0.5rem 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero h1, .about h2, .community h2, .contact h2 {
        text-rendering: optimizeLegibility;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none;
    }
    
    .glow {
        animation: none;
    }
    
    .star {
        animation: none;
        opacity: 0.5;
    }
    
    * {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.nav-links a:focus,
.btn:focus,
.social-btn:focus {
    outline: 2px solid #cfa0ff;
    outline-offset: 2px;
}

.nav-toggle:focus {
    outline: 2px solid #a020f0;
    outline-offset: 2px;
}
