/* Theme Variables */
:root {
    /* Light Theme */
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --primary: #00a67c;
    --secondary: #0066cc;
    --accent: #00ffaa;
    --glass: rgba(248, 250, 252, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.9);
}

.dark-theme {
    /* Dark Theme */
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #00ffaa;
    --secondary: #0088ff;
    --accent: #00ffaa;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 41, 59, 0.9);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

/* Glass Effect */
.glass-nav, .glass-footer, .app-preview, .feature-card, .modal-content {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-signup {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-signup {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-signup:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-profile span {
    font-weight: 500;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 6.5rem;
    right: 2rem;
    z-index: 100;
}

#theme-switcher {
    display: none;
}

.toggle-slider {
    position: relative;
    display: block;
    width: 4rem;
    height: 2rem;
    background: var(--glass);
    border-radius: 2rem;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.toggle-slider i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: all 0.3s;
}

.toggle-slider .fa-moon {
    left: 0.5rem;
    color: var(--text-color);
}

.toggle-slider .fa-sun {
    right: 0.5rem;
    color: #ffbb33;
    opacity: 0;
}

.toggle-ball {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s;
}

#theme-switcher:checked + .toggle-slider .toggle-ball {
    transform: translateX(2rem);
}

#theme-switcher:checked + .toggle-slider .fa-moon {
    opacity: 0;
}

#theme-switcher:checked + .toggle-slider .fa-sun {
    opacity: 1;
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 170, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-preview {
    width: 300px;
    height: 450px;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00C851;
    box-shadow: 0 0 10px #00C851;
}

.speed-meter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gauge {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 85%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
}

.server-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.server-location i {
    color: var(--primary);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9375rem;
}

/* Footer */
.glass-footer {
    margin-top: 5rem;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-color);
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-section ul a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 1rem;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.modal h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-login-submit, .btn-signup-submit {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-login-submit:hover, .btn-signup-submit:hover {
    opacity: 0.9;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .theme-toggle {
        top: 5.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .app-preview {
        width: 100%;
        height: 400px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}/* Add these new styles to your existing CSS */

/* Search Modal */
#search-modal .modal-content {
    max-width: 600px;
}

.search-container {
    display: flex;
    margin-bottom: 1.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

#search-button {
    padding: 0 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.search-result-item p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Connection Indicator */
.connection-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    z-index: 100;
}

.status-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00C851;
    box-shadow: 0 0 0 0 rgba(0, 200, 81, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 81, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 200, 81, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 81, 0);
    }
}

/* Server Locations */
.server-locations {
    padding: 5rem 0;
    text-align: center;
}

.server-map {
    position: relative;
    height: 400px;
    background-image: url('https://cdn.pixabay.com/photo/2018/08/15/13/10/galaxy-3608029_960_720.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    margin: 2rem auto;
    max-width: 800px;
}

.location {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.pulse-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7);
    animation: pulse 2s infinite;
}

.location-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.location:hover .location-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Animations */
.animate__animated {
    opacity: 0;
}

.animate__fadeInLeft, .animate__fadeInRight, .animate__fadeInUp {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.7s; }

.location:nth-child(1) { animation-delay: 0.2s; }
.location:nth-child(2) { animation-delay: 0.4s; }
.location:nth-child(3) { animation-delay: 0.6s; }
.location:nth-child(4) { animation-delay: 0.8s; }
.location:nth-child(5) { animation-delay: 1s; }

/* Add to your existing responsive styles */
@media (max-width: 768px) {
    .server-map {
        height: 300px;
    }
    
    .connection-indicator {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .server-map {
        height: 200px;
    }
    
    .connection-indicator {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}/* VPS Management Styles */
.vps-management {
    padding: 5rem 0;
}

.vps-container {
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.vps-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 0.5rem;
}

.vps-credentials {
    margin: 2rem 0;
}

.credential-box {
    margin: 1.5rem 0;
}

.copy-box {
    display: flex;
    margin-top: 0.5rem;
}

.copy-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem 0 0 0.5rem;
    color: var(--text-color);
}

.btn-copy {
    padding: 0 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
}

.vps-controls {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.client-list {
    margin-top: 3rem;
}

.client-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(0, 255, 170, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .vps-controls {
        flex-direction: column;
    }
    
    table {
        display: block;
    }
}