/* HyprVPN Modern CSS */

:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --success-color: #00c896;
    --dark-bg: #0a0e27;
    --light-bg: #f8f9fa;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 14, 39, 0.98) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300d4ff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px);
}

.float-delay-1 {
    animation-delay: 2s;
    top: 20%;
    right: 10%;
}

.floating-card:first-child {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

/* Stats */
.stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
}

.feature-icon i {
    font-size: 2rem;
}

/* Technology Section */
.technology-comparison .card {
    transition: all 0.3s ease;
}

.technology-comparison .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.15);
}

.tech-specs {
    margin-top: 1rem;
}

.tech-specs .badge {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Protocol Diagram */
.protocol-diagram {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
    transition: transform 0.3s ease;
}

.node:hover {
    transform: scale(1.1);
}

.node p {
    position: absolute;
    bottom: -30px;
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-light);
}

.client { left: 10%; top: 50%; }
.server { right: 10%; top: 50%; }
.internet { right: 10%; bottom: 10%; }

.connection {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.wireguard {
    left: 25%;
    top: 30%;
    background: var(--success-color);
    transform: rotate(-15deg);
}

.xray {
    left: 25%;
    bottom: 30%;
    background: var(--secondary-color);
    transform: rotate(15deg);
}

/* Location Cards */
.location-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-color) !important;
}

.flag-emoji {
    font-size: 3rem;
    line-height: 1;
}

/* Tariff Cards */
.tariff-card {
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.2);
}

.tariff-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.tariff-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
}

.tariff-price {
    margin: 1.5rem 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--primary-color);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

/* Steps */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.step-icon i {
    font-size: 1.5rem;
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    background: white;
    color: #333;
    border: none;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-collapse {
    border: none;
}

/* Footer */
.footer {
    background: #0a0e27 !important;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

.btn-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }

    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-card {
        position: relative;
        margin: 1rem;
        animation: none;
    }

    .protocol-diagram {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .tariff-card.popular {
        transform: none;
    }

    .stats {
        margin-top: 2rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step-icon i {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 102, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052cc;
}