/* Additional styles for enhanced sections */

/* Preloader Animation */
.preloader .crown {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dash 3s ease-in-out forwards, crown-rotate 3s infinite ease-in-out;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Enhanced Hero Section */
.hero-3d-element {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1000px;
    pointer-events: none;
}

.floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: cube-rotate 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.face-front { transform: translateZ(30px); }
.face-back { transform: rotateY(180deg) translateZ(30px); }
.face-right { transform: rotateY(90deg) translateZ(30px); }
.face-left { transform: rotateY(-90deg) translateZ(30px); }
.face-top { transform: rotateX(90deg) translateZ(30px); }
.face-bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes cube-rotate {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Enhanced Server Visualization */
.server-rack {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(5deg);
    animation: server-float 6s infinite ease-in-out;
}

.server-unit {
    width: 100%;
    height: 60px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--primary);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.server-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(124, 58, 237, 0.1) 20%, 
        transparent 40%,
        transparent 60%,
        rgba(124, 58, 237, 0.1) 80%,
        transparent 100%);
    animation: server-scan 3s infinite linear;
}

.server-leds {
    display: flex;
    gap: 5px;
}

.server-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.led-green {
    background: #10b981;
    animation-delay: 0s;
}

.led-blue {
    background: #3b82f6;
    animation-delay: 0.5s;
}

.led-purple {
    background: #8b5cf6;
    animation-delay: 1s;
}

.server-label {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
}

@keyframes server-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes server-float {
    0%, 100% { transform: rotateY(-20deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-20deg) rotateX(5deg) translateY(-15px); }
}

/* Enhanced Bot Cards */
.bot-card-premium {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.6));
    z-index: 1;
}

.bot-card-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        transparent 25%, 
        transparent 75%, 
        var(--primary) 100%);
    z-index: -1;
    border-radius: var(--border-radius-lg);
    animation: border-flow 3s infinite linear;
}

.bot-card-premium .bot-header {
    position: relative;
}

.bot-card-premium .bot-header::after {
    content: 'PREMIUM';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-full);
    transform: rotate(15deg);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

@keyframes border-flow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced VPS Plans */
.vps-plan-popular {
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: scale(1.05);
}

.vps-plan-popular::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    top: -75px;
    right: -75px;
    transform: rotate(45deg);
    z-index: -1;
}

.vps-plan-popular::after {
    content: 'BEST VALUE';
    position: absolute;
    top: 15px;
    right: -25px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.vps-plan-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.vps-plan-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.vps-plan-spec-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.vps-plan-spec-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.vps-plan-spec-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Enhanced Game Server Cards */
.game-server-card {
    position: relative;
    overflow: hidden;
}

.game-server-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 50%, rgba(124, 58, 237, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-server-card:hover::after {
    opacity: 1;
}

.game-server-icon {
    position: relative;
    overflow: hidden;
}

.game-server-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(124, 58, 237, 0.1), 
        transparent 30%
    );
    animation: rotate-gradient 4s linear infinite;
}

@keyframes rotate-gradient {
    100% { transform: rotate(1turn); }
}

/* Enhanced Lavalink Section */
.lavalink-visualization {
    position: relative;
    height: 200px;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-wave {
    display: flex;
    align-items: center;
    height: 100px;
    gap: 5px;
}

.audio-bar {
    width: 5px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    animation: audio-wave 1.5s ease-in-out infinite;
}

.audio-bar:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.audio-bar:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.audio-bar:nth-child(3) { height: 80%; animation-delay: 0.3s; }
.audio-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }
.audio-bar:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.audio-bar:nth-child(6) { height: 50%; animation-delay: 0.6s; }
.audio-bar:nth-child(7) { height: 40%; animation-delay: 0.7s; }
.audio-bar:nth-child(8) { height: 60%; animation-delay: 0.8s; }
.audio-bar:nth-child(9) { height: 90%; animation-delay: 0.9s; }
.audio-bar:nth-child(10) { height: 40%; animation-delay: 1.0s; }

@keyframes audio-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Enhanced Pterodactyl Section */
.pterodactyl-visualization {
    position: relative;
    height: 200px;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pterodactyl-logo {
    width: 150px;
    height: 150px;
    position: relative;
}

.pterodactyl-wing {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary), transparent);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    animation: wing-flap 4s infinite ease-in-out;
}

.pterodactyl-wing:nth-child(1) {
    top: 0;
    left: 50%;
    transform-origin: bottom left;
}

.pterodactyl-wing:nth-child(2) {
    top: 0;
    right: 50%;
    transform: scaleX(-1);
    transform-origin: bottom right;
    animation-delay: 0.2s;
}

@keyframes wing-flap {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(30deg); }
}

/* Enhanced Database Section */
.database-visualization {
    position: relative;
    height: 200px;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.database-cylinder {
    width: 150px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: database-rotate 10s infinite linear;
}

.database-top, .database-bottom {
    position: absolute;
    width: 150px;
    height: 40px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 50%;
}

.database-top {
    top: 0;
    transform: rotateX(90deg) translateZ(20px);
}

.database-bottom {
    bottom: 0;
    transform: rotateX(90deg) translateZ(20px);
}

.database-middle {
    position: absolute;
    width: 150px;
    height: 120px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.5);
    top: 40px;
    transform-style: preserve-3d;
}

.database-row {
    position: absolute;
    width: 100%;
    height: 20px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    padding: 0 20px;
    align-items: center;
}

.database-row:nth-child(1) { top: 0; }
.database-row:nth-child(2) { top: 20px; }
.database-row:nth-child(3) { top: 40px; }
.database-row:nth-child(4) { top: 60px; }
.database-row:nth-child(5) { top: 80px; }
.database-row:nth-child(6) { top: 100px; }

.database-cell {
    width: 10px;
    height: 10px;
    background: rgba(124, 58, 237, 0.3);
    margin-right: 10px;
    animation: database-blink 3s infinite;
}

@keyframes database-rotate {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

@keyframes database-blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Enhanced Testimonials */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: var(--accent);
}

/* Enhanced FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    background: linear-gradient(to right, rgba(124, 58, 237, 0.1), rgba(30, 41, 59, 0.4));
    border-color: var(--primary);
}

.faq-question {
    position: relative;
    overflow: hidden;
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: scaleX(1);
}

/* Enhanced Contact Form */
.form-group input:focus, .form-group textarea:focus {
    animation: input-pulse 1s infinite alternate;
}

@keyframes input-pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.2); }
    100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2); }
}

.contact-form button {
    position: relative;
    overflow: hidden;
}

.contact-form button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.contact-form button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Enhanced Footer */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMGYxNzJhIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMxZTI5M2IiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.3;
}

.footer-social .social-link:hover {
    transform: translateY(-5px) rotate(360deg);
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: var(--border-radius-full);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    z-index: 1;
    transform: rotate(15deg);
}

/* Floating Elements */
.floating-element {
    animation: float 6s infinite ease-in-out;
}

.floating-element-fast {
    animation: float 4s infinite ease-in-out;
}

.floating-element-slow {
    animation: float 8s infinite ease-in-out;
}

/* Glow Effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px 5px rgba(124, 58, 237, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: var(--gradient-primary);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.comparison-table tbody tr {
    background: var(--background-card);
    border-bottom: 1px solid var(--border-secondary);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.comparison-table .feature-name {
    text-align: right;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table .check {
    color: var(--success);
}

.comparison-table .times {
    color: var(--error);
}

/* Feature Cards */
.feature-card {
    background: var(--background-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-full);
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-full);
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    transition: width 0.5s ease;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background: var(--background-tertiary);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--background-tertiary) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .floating-server, .server-rack, .lavalink-visualization, 
    .pterodactyl-visualization, .database-visualization {
        transform: scale(0.8);
    }
    
    .hero-3d-element {
        display: none;
    }
}

@media (max-width: 576px) {
    .floating-server, .server-rack, .lavalink-visualization, 
    .pterodactyl-visualization, .database-visualization {
        transform: scale(0.6);
    }
}
