@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --main-color: #162938;
    --light-bg: rgba(255, 255, 255, 0.85);
    --light-border: rgba(255, 255, 255, 0.8);
    --text-dark: #111;
    --text-light: #fff;
    --input-border-color: #111;
    --popup-shadow: rgba(0, 0, 0, 0.5);
    --header-padding: 20px 100px;
}
#features {
    scroll-margin-top: 80px; /* Adjust this to match your header's height */
}

#lmbtn {
    cursor: pointer !important;
    position: relative;
    z-index: 99; /* Pulls it to the front */
}

.cta-container {
    position: relative;
    z-index: 100;
}

/* 2. Apply it to your icon or logo */
@keyframes floatAndGlow {
  0% {
    transform: translateY(0px);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  }
  50% {
    transform: translateY(-15px);
    filter: drop-shadow(0 20px 30px rgba(0, 150, 255, 0.6)); /* Adjust color to match Astra */
  }
  100% {
    transform: translateY(0px);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: url('background.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    min-height: 100vh;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--text-light);
    animation: pageEntrance 1s ease-out forwards;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--header-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    position: fixed;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 2em;
    color: var(--text-light);
    user-select: none;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    transition: color 0.3s;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navigation a:hover {
    color: #ddd;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* --- THE FIX: Universal Card Animation --- */
.card, .credit-card, .update-log, .notice-section, .store-item {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    opacity: 0; /* Start hidden */
    animation: entranceSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.store-item {
    padding: 30px;
    text-align: center;
}

.price-tag {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 15px 0;
}

.btn-buy {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 5px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}
.btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--text-light);
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: var(--text-light);
    font-weight: 500;
    margin-left: 40px;
    transition: 0.5s;
}

.btnLogin-popup:hover {
    background: var(--text-light);
    color: var(--main-color);
    text-underline-offset: under;
}

.btnLogin-popup:focus {
    outline: 2px solid #ccc;
    outline-offset: 2px;
    text-underline-position: under;
}

.btn {
    width: 100%;
    height: 45px;
    background: var(--main-color);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    transition: 0.35s;
}

.btn:hover {
    background: #333;
}

.btn:focus {
    outline: 2px solid #555;
    outline-offset: 2px;
}

/* --- Features Section --- */

.features-section {
    padding: 80px 100px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.card {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05); /* Subtle dark glass effect */
    backdrop-filter: blur(10px);
    border: 2px solid var(--text-light);
    border-radius: 12px;
    color: var(--text-light);
    text-align: center;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: default;
    /* Entrance Animation */
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Staggered animation for cards */
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }

/* Match Login Button Hover Style (White Background) */
.card:hover {
    background: var(--text-light);
    color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-divider {
    width: 50px;
    height: 3px;
    background: var(--text-light);
    margin: 0 auto 20px;
    transition: 0.5s;
}

.card:hover .card-divider {
    background: var(--main-color);
    width: 80px;
}

.card p {
    font-size: 1em;
    line-height: 1.6;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .features-section {
        padding: 50px 20px;
    }
}

/* --- Hero Section --- */

.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.hero-logo {
    max-width: 180px; 
    margin-bottom: 30px;
    /* We removed the old filter because floatAndGlow handles the shadow now */
    animation: floatAndGlow 4s ease-in-out infinite;
}

.cta-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Base Hero Button Style (Hollow) */
.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.4s;
    border: 2px solid var(--text-light);
}

/* Primary Button - White Border, White Text */
.btn-primary {
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--text-light);
    color: var(--main-color);
}

/* Discord Button - Blurple Border/Text */
.btn-discord {
    color: #5865F2;
    border-color: #5865F2;
}

.btn-discord:hover {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.version-text {
    font-size: 0.9em;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Global Animation for Hero */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ensure the body stacks correctly */
body {
    flex-direction: column; /* Stacks Hero on top of Features */
    height: auto;
    overflow-x: hidden;
}

/* --- Download Notice --- */
.notice-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(22, 41, 56, 0.8);
    border-left: 5px solid #fff; /* Attention Gold */
    border-radius: 8px;
    color: var(--text-light);
}

.notice-section h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.notice-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.notice-section {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid #ffffff; /* Gold border for importance */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.release-date {
    display: inline-block;
    margin-top: 15px;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.5em;
    letter-spacing: 2px;
}

.credits-grid {
    display: grid; /* Switch from flex to grid */
    grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
    gap: 30px; /* Reduced gap slightly to ensure fit */
    padding: 100px 20px;
    width: 100%;
    max-width: 1200px; /* Matches your section width */
    margin: 0 auto;
}

.profile-pic {
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--text-light);
    margin-bottom: 15px;
}

.release-date {
    font-family: monospace;
    font-size: 1.2em;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.credit-card {
    width: 100%; /* Make card fill the grid column instead of fixed 400px */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--text-light);
    border-radius: 15px;
    color: var(--text-light);
    transition: 0.5s ease;
    /* Entrance Animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.credit-card:hover {
    background: var(--text-light);
    color: var(--main-color);
    transform: scale(1.05);
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--text-light);
    transition: 0.5s;
}

.credit-card:hover .profile-pic {
    border-color: var(--main-color);
}

.credit-card h2 { font-size: 1.5em; margin: 5px 0; }

.credit-card .username {
    font-size: 0.8em;
    opacity: 0.7;
    margin-bottom: 15px;
}

.credit-card .role {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Store & Capes Placeholder --- */
.coming-soon-container {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-card {
    padding: 60px 100px;
    border: 2px dashed var(--text-light);
    border-radius: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

.coming-soon-card h1 {
    font-size: 3em;
    color: var(--text-light);
    text-transform: uppercase;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* --- Global Animations --- */
@keyframes pageEntrance {
    from { opacity: 0; transform: scale(0.98); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('background.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    /* Page Load Animation */
    animation: pageEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Navigation Fix --- */
.navigation a.active::after {
    transform: scaleX(1); /* Keeps the line under the current page */
}

/* --- Card Upgrades --- */
.card, .credit-card, .notice-section, .coming-soon-card {
animation: slideUp 0.8s ease forwards; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover, .credit-card:hover {
    background: #fff !important;
    color: #162938 !important;
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

/* --- Updates Page Style --- */
.updates-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 50px auto 0 auto;
    margin-top: 50px;
}

.update-log {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--text-light);
}
/* Add this to style.css for the store/capes */
.coming-soon-card h1 {
    animation: glitch 1s linear infinite;
}

/* --- Sections --- */
section {
    padding-top: 140px; /* Space for fixed header */
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centers children horizontally */
    justify-content: center;
    padding-bottom: 100px; /* ADD THIS: This creates the "space down" you need */
}

/* --- Updates --- */
.update-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    margin-right: 10px;
}
.tag-new { background: #2ecc71; color: #fff; }
.tag-fix { background: #e74c3c; color: #fff; }

/* --- Store & Capes Grid --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.store-item { padding: 40px; text-align: center; }
.price { font-size: 1.8em; font-weight: 800; color: var(--accent-gold); margin: 15px 0; }

/* --- Animations --- */
@keyframes entranceSlide {
    from { opacity: 0; transform: translateY(50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pageFadeIn {
    from { filter: blur(10px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}

@keyframes glitch {
    0% { text-shadow: 2px 0 0 red, -2px 0 0 blue; }
    50% { text-shadow: -2px 0 0 red, 2px 0 0 blue; }
    100% { text-shadow: 2px 0 0 red, -2px 0 0 blue; }
}
/* Partners Section Container */
.partners-section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
}

.partner-heading {
    font-size: 3em;
    margin-bottom: 40px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

/* Horizontal Card Styling */
.horizontal-card {
    flex-direction: row !important; /* Force side-by-side */
    width: 100% !important;
    max-width: 800px;
    padding: 20px 40px !important;
    text-align: left !important;
    align-items: center;
    gap: 30px;
}

.horizontal-card .profile-pic {
    width: 70px !important; /* Smaller size for the list view */
    height: 70px !important;
    margin-bottom: 0 !important;
}

.horizontal-card .card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-card h2 {
    margin: 0;
    font-size: 1.4em;
}

.horizontal-card .role {
    color: var(--accent-gold);
    font-size: 0.85em;
    margin-top: 5px;
}

/* Fix for Mobile: stack them back up if screen is too small */
@media (max-width: 600px) {
    .horizontal-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px !important;
    }
}
.notice-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything horizontally inside the section */
    justify-content: center;
    text-align: center;
}

/* Fix the button container */
.cta-container {
    display: flex;
    justify-content: center; /* This is the key for centering the button */
    width: 100%;
    margin-top: 20px;
}
.grid > *:nth-child(1), .store-grid > *:nth-child(1) { animation-delay: 0.1s; }
.grid > *:nth-child(2), .store-grid > *:nth-child(2) { animation-delay: 0.2s; }
.grid > *:nth-child(3), .store-grid > *:nth-child(3) { animation-delay: 0.3s; }

.menu-icon {
    display: none;
    font-size: 2em;
    color: var(--text-light);
    cursor: pointer;
}

@media (max-width: 900px) {
    header {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
        background: rgba(22, 41, 56, 0.95);
    }

    .menu-icon {
        display: block;
    }

    .navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        margin-left: 0;
        font-size: 1.1em;
    }

    .btnLogin-popup {
        margin-left: 0; 
        width: 100%;
        max-width: 300px;
        margin-top: 15px;
    }

    section {
        padding-top: 50px; 
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-hero {
        width: 100%;
    }

    .credit-card {
        width: 100%;
        max-width: 350px;
    }
    
    .features-section {
        padding: 40px 20px;
    }
}
@media (max-width: 1100px) {
    .credits-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on smaller screens */
    }
}

@media (max-width: 700px) {
    .credits-grid {
        grid-template-columns: 1fr; /* 1 per row on phones */
    }

}
