@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #2196F3;
    --text-color: #ffffff;
    --text-muted: #e0e0e0;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
}

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

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

/* Glass Element Class (can be applied anywhere) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Header & Hero */
.hero {
    padding: 6rem 1rem 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.logo {
    width: 130px;
    height: 130px;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Server Status */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.loading { background-color: #FFC107; }
.status-indicator.online { background-color: #4CAF50; box-shadow: 0 0 15px #4CAF50; }
.status-indicator.online::after { border: 2px solid rgba(76, 175, 80, 0.5); }
.status-indicator.offline { background-color: #F44336; box-shadow: 0 0 15px #F44336; }
.status-indicator.offline::after { border: 2px solid rgba(244, 67, 54, 0.5); animation: none; }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.btn.primary::before { background: linear-gradient(45deg, #4CAF50, #2E7D32); }
.btn.secondary::before { background: linear-gradient(45deg, #2196F3, #1565C0); }

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
}
.btn:hover::before { opacity: 1; }

.btn:active { transform: translateY(0); }

/* Sections */
section {
    padding: 5rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.about p, .cta p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 40, 0.5);
    border-color: rgba(255,255,255,0.3);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: #fff;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    border: 1px solid var(--glass-border);
}

.carousel-slide {
    display: none;
    width: 100%;
    animation: fade 0.6s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.placeholder-img {
    width: 100%;
    height: 450px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #aaa;
    border-radius: 20px;
}

.carousel-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    color: #aaa;
    font-size: 1.2rem;
    text-align: center;
    line-height: 450px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Footer */
footer {
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
    border-top: none;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-content p {
    margin-bottom: 0.8rem;
}

.kofi-link {
    color: #FF5E5B;
    text-decoration: none;
    font-weight: 700;
    transition: text-shadow 0.3s;
}

.kofi-link:hover {
    text-shadow: 0 0 10px rgba(255, 94, 91, 0.6);
}

.infra-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Background Blobs for Glass Effect */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: #4CAF50;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 600px; height: 600px;
    background: #2196F3;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 60%;
    width: 400px; height: 400px;
    background: #9C27B0;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
