* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #8a2be2;
    --primary-dark: #6a1b9a;
    --dark: #0a0a14;
    --darker: #050508;
    --light: #f0f0f0;
    --glass: rgba(25, 25, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--darker);
    color: var(--light);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Ensure all text is white by default */
    color: #ffffff;
}

/* Ensure all text elements use the light color */
p, h1, h2, h3, h4, h5, h6, span, a, li, td, th, label, input, textarea, select, button {
    color: #ffffff;
}

/* Override any green colors in links */
a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: #c792ea; /* Light purple on hover */
}

/* Make sure form elements don't have green text */
input, textarea, select, button {
    color: #ffffff;
    background-color: rgba(25, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Override any green text in buttons */
button, .btn, .button, input[type="button"], input[type="submit"] {
    color: #ffffff;
}

body.loaded {
    opacity: 1;
}

/* Animated Background */
.gradient-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(-45deg, #0f0a1a, #1a0f2e, #1e0d33, #2d1b4e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Glow Effects */
.glow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    background: radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
    animation: pulseGlow1 8s ease-in-out infinite alternate;
}

.glow-2 {
    background: radial-gradient(circle at 80% 70%, rgba(106, 27, 154, 0.15) 0%, transparent 50%);
    animation: pulseGlow2 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow1 {
    from { opacity: 0.5; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.1); }
}

@keyframes pulseGlow2 {
    from { opacity: 0.3; transform: scale(1) rotate(0deg); }
    to { opacity: 0.6; transform: scale(1.2) rotate(5deg); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    color: var(--light);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary), #4a00e0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.discord-link:hover {
    transform: translateY(-2px);
    background: rgba(114, 137, 218, 0.2);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.3);
}

.discord-link i {
    color: #7289da;
    font-size: 1.4rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.4);
}

.discord-link:hover .avatar {
    transform: scale(1.1);
    border-color: rgba(114, 137, 218, 0.8);
    box-shadow: 0 0 25px rgba(114, 137, 218, 0.6);
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 4rem 6rem;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite, fadeIn 1s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-width: 90%;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.3);
}

.glass-card:hover::before {
    opacity: 0.8;
}

.title {
    color: var(--light);
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #c792ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    line-height: 1.2;
    transform: translateZ(30px);
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 1px;
    transform: translateZ(20px);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, #8a2be2, #6a1b9a);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 4px 15px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(138, 43, 226, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
    transform: translateZ(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    z-index: -1;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(138, 43, 226, 0.3);
    letter-spacing: 2px;
    background: linear-gradient(45deg, #9b42f5, #7d2ac1);
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 10px rgba(138, 43, 226, 0.4),
        0 0 15px rgba(138, 43, 226, 0.2);
}

.download-btn i {
    margin-left: 10px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: translateX(5px);
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.01); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(138, 43, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.98);
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .title {
        font-size: 3.5rem;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 3rem 2rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .title {
        font-size: 2.8rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }
    
    .download-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .discord-link {
        padding: 0.4rem 1rem;
        font-size: 1rem;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    
    .download-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .discord-link span {
        display: none;
    }
    
    .discord-link {
        padding: 0.5rem;
        border-radius: 50%;
    }
    
    .discord-link i {
        margin: 0;
    }
}

/* ===========================================
   Responsive Design - Mobile First Approach
   =========================================== */

/* Base mobile styles (up to 480px) */
@media screen and (max-width: 480px) {
    .gradient-bg {
        padding: 1rem;
    }
    
    header {
        padding: 1rem;
        position: relative;
        background: rgba(10, 10, 20, 0.8);
        backdrop-filter: blur(10px);
    }
    
    .logo {
        font-size: 1.4rem;
        padding: 0.3rem 0.8rem;
    }
    
    .discord-link {
        padding: 0.5rem;
        border-radius: 50%;
    }
    
    .discord-link span {
        display: none;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .download-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Adjust particle density for mobile */
    .particle {
        display: none; /* Hide particles on very small screens */
    }
}

/* Small tablets and large phones (481px to 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .gradient-bg {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .glass-card {
        padding: 2.5rem 2rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .download-btn {
        padding: 1rem 2.2rem;
    }
    
    /* Show fewer particles on small tablets */
    .particle {
        opacity: 0.5;
    }
}

/* Tablets (768px to 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .gradient-bg {
        padding: 1.5rem 2rem;
    }
    
    .logo {
        font-size: 1.7rem;
    }
    
    .glass-card {
        padding: 3rem 2.5rem;
        max-width: 90%;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 1.1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Small desktops and large tablets (1024px to 1279px) */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
    .gradient-bg {
        padding: 2rem 3rem;
    }
    
    .glass-card {
        padding: 3.5rem 3rem;
        max-width: 85%;
    }
    
    .title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .download-btn {
        padding: 1.2rem 3rem;
    }
}

/* Medium desktops (1280px to 1439px) */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
    .glass-card {
        padding: 4rem 4rem;
        max-width: 80%;
    }
    
    .title {
        font-size: 4rem;
    }
}

/* Large desktops (1440px and up) */
@media screen and (min-width: 1440px) {
    .glass-card {
        padding: 4.5rem 5rem;
        max-width: 1200px;
    }
    
    .title {
        font-size: 4.5rem;
    }
}

/* iPad Pro specific adjustments (portrait) */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 2) {
    .gradient-bg {
        padding: 2rem;
    }
    
    .glass-card {
        padding: 3.5rem 3rem;
        max-width: 90%;
    }
    
    .title {
        font-size: 3.5rem;
    }
}

/* iPad Pro specific adjustments (landscape) */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {
    .glass-card {
        padding: 3rem 4rem;
        max-width: 80%;
    }
}

/* iPhone X/XS/11 Pro - portrait */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3)
  and (orientation: portrait) { 
    .gradient-bg {
        padding-bottom: 2rem;
    }
    
    .glass-card {
        margin-top: 3rem;
    }
}

/* iPhone X/XS/11 Pro - landscape */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3)
  and (orientation: landscape) { 
    .gradient-bg {
        padding: 1rem;
    }
    
    .glass-card {
        margin: 1rem auto;
        padding: 2rem 1.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Smooth transitions for all interactive elements */
@media (prefers-reduced-motion: no-preference) {
    .glass-card,
    .download-btn,
    .discord-link,
    .logo {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Adjust for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle {
        display: none;
    }
}
