:root {
    --bg-color: #050508;
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.5);
    --secondary: #4b0082;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --card-bg: rgba(20, 20, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow); }
    50% { text-shadow: 0 0 20px rgba(138,43,226,0.8), 0 0 40px rgba(138,43,226,0.8), 0 0 60px rgba(138,43,226,1); }
    100% { text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow); }
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 10px rgba(138, 43, 226, 0.4); }
    50% { box-shadow: 0 0 25px rgba(138, 43, 226, 0.8); }
    100% { box-shadow: 0 0 10px rgba(138, 43, 226, 0.4); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

canvas#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Scanline overlay for that retro/hacker vibe */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 51%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideUpFade 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    animation: neonPulse 2s infinite alternate;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--text-main);
    transition: all 0.3s ease;
    animation: btnPulse 3s infinite;
}

.nav-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    color: #fff;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 0 20px;
    animation: slideUpFade 1.2s ease-out;
}

.glitch {
    font-family: 'Poppins', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite, neonPulse 3s infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    animation: btnPulse 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
    background: #9d4edd;
}

/* Shine effect on primary button */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 300px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: transform 0.1s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px);
}

.card.visible {
    animation: slideUpFade 0.8s ease-out forwards;
}

.card:hover {
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3), inset 0 0 20px rgba(138, 43, 226, 0.1);
    z-index: 10;
}

.card.popular {
    border-color: var(--primary);
}

.card.popular:hover {
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.5), inset 0 0 30px rgba(138, 43, 226, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    box-shadow: 0 0 15px var(--primary-glow);
    animation: neonPulse 2s infinite alternate;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
    transform: translateZ(30px);
}

.card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    transform: translateZ(20px);
}

.features li {
    margin-bottom: 1rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.features li:hover {
    transform: translateX(5px);
    color: #fff;
}

.features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    text-shadow: 0 0 5px var(--primary-glow);
}

.card-btn {
    display: block;
    text-align: center;
    padding: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    transform: translateZ(30px);
}

.card-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.card-btn.primary {
    background: var(--primary);
    border: none;
    color: #fff;
}

.card-btn.primary:hover {
    background: #9d4edd;
    box-shadow: 0 0 25px var(--primary-glow);
}

/* 2PC Rent Card */
.rent-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(138, 43, 226, 0.15));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.15);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px);
}

.rent-card.visible {
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.rent-card:hover {
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.4);
}

.rent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    transform: translateZ(30px);
}

.rent-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

.rent-info p {
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

.rent-btn {
    white-space: nowrap;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    background: rgba(5, 5, 8, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .glitch {
        font-size: 3.5rem;
    }
    
    .rent-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9d4edd;
}

/* Custom Cursor */
body {
    cursor: crosshair;
}
a, button, .faq-question, .nav-btn, .card-btn, .btn-primary, .btn-secondary {
    cursor: pointer;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.text-green {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

/* Features Grid */
.features-grid-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-box {
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

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

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(138, 43, 226, 0.5);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    background: rgba(5, 5, 8, 0.5);
    user-select: none;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

/* Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Anime Mascot */
.mascot-container {
    position: fixed;
    bottom: -10px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.3));
}

.mascot-container:hover {
    transform: translateY(-20px) scale(1.05);
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.6));
}

.mascot-img {
    height: 350px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}

.speech-bubble {
    position: absolute;
    top: -50px;
    left: -100px;
    background: rgba(20, 20, 30, 0.9);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--primary-glow);
    pointer-events: none;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
    display: block;
    width: 0;
}

.mascot-container.show-speech .speech-bubble {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@media (max-width: 768px) {
    .mascot-container {
        display: none; /* Hide on mobile so it doesn't block content */
    }
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(138, 43, 226, 0.1);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding: 10px 0;
    margin: 2rem 0 4rem 0;
    position: relative;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content .separator {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Mouse Tracking Glow Effect */
.card::before, .rent-card::before, .feature-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(138, 43, 226, 0.15),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::before, .rent-card:hover::before, .feature-box:hover::before {
    opacity: 1;
}

/* Ensure content stays above glow */
.card > *, .rent-card > *, .feature-box > * {
    position: relative;
    z-index: 1;
}

/* Easter Egg Red Theme Modifier */
body.easter-egg-active {
    --primary: #ff0000;
    --primary-glow: rgba(255, 0, 0, 0.7);
    --secondary: #cc0000;
}
body.easter-egg-active .glitch {
    color: #ff0000;
    text-shadow: 2px 2px #cc0000, -2px -2px #ff4444;
}

/* Easter Egg Modal */
.easter-egg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(25, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easter-egg-modal.show {
    display: flex;
    opacity: 1;
}

.easter-egg-content {
    background: rgba(30, 10, 10, 0.9);
    border: 2px solid #ff0000;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easter-egg-modal.show .easter-egg-content {
    transform: scale(1);
}

.easter-egg-content p {
    color: #aaa;
    font-size: 1.1rem;
}

.secret-code {
    background: #ff0000;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}
