/* ==============================================
   VPN Page Specific Styles
   YourIT - Modern, Conversion-Optimized Design
============================================== */

/* ===== VPN Hero Visual ===== */
.vpn-illustration {
    position: relative;
    width: 420px;
    height: 420px;
}

.tunnel-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.tunnel-inner {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, #00B4D8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 60px rgba(0, 212, 170, 0.4),
        0 0 100px rgba(0, 212, 170, 0.2);
    animation: tunnelPulse 3s ease-in-out infinite;
}

.tunnel-inner i {
    font-size: 42px;
    color: #fff;
}

@keyframes tunnelPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(0, 212, 170, 0.4), 0 0 100px rgba(0, 212, 170, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(0, 212, 170, 0.5), 0 0 120px rgba(0, 212, 170, 0.3);
    }
}

.tunnel-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 170, 0.2);
    transform: translate(-50%, -50%);
}

.tunnel-ring.ring-1 {
    width: 160px;
    height: 160px;
    animation: ringExpand 3s ease-out infinite;
}

.tunnel-ring.ring-2 {
    width: 230px;
    height: 230px;
    animation: ringExpand 3s ease-out infinite 1s;
}

.tunnel-ring.ring-3 {
    width: 300px;
    height: 300px;
    animation: ringExpand 3s ease-out infinite 2s;
}

@keyframes ringExpand {
    0% {
        opacity: 0.6;
        border-color: rgba(0, 212, 170, 0.4);
    }
    100% {
        opacity: 0;
        border-color: rgba(0, 212, 170, 0);
    }
}

/* Connection Nodes */
.connection-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.node {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 212, 170, 0.4);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: nodeFloat 4s ease-in-out infinite;
}

.node i {
    font-size: 22px;
    color: var(--primary);
}

.node span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.node-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.node-3 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.node-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes nodeFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, -8px);
    }
}

.node-1 {
    animation-name: nodeFloat1;
}

.node-2 {
    animation-name: nodeFloat2;
}

.node-3 {
    animation-name: nodeFloat3;
}

.node-4 {
    animation-name: nodeFloat4;
}

@keyframes nodeFloat1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes nodeFloat2 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(10px); }
}

@keyframes nodeFloat3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes nodeFloat4 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-10px); }
}

/* Secure Lines */
.secure-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.4;
}

.line-1 {
    width: 3px;
    height: 80px;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    animation: lineFlow1 2s ease-in-out infinite;
}

.line-2 {
    width: 80px;
    height: 3px;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    animation: lineFlow2 2s ease-in-out infinite 0.5s;
}

.line-3 {
    width: 3px;
    height: 80px;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    animation: lineFlow3 2s ease-in-out infinite 1s;
}

.line-4 {
    width: 80px;
    height: 3px;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    animation: lineFlow4 2s ease-in-out infinite 1.5s;
}

@keyframes lineFlow1 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@keyframes lineFlow2 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@keyframes lineFlow3 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@keyframes lineFlow4 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* ===== VPN Types Section ===== */
.vpn-types-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #191f28 0%, #2d3748 100%);
}

.vpn-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.vpn-type-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
}

.vpn-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(0, 212, 170, 0.3);
}

.vpn-type-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.2);
}

.vpn-type-card .popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    left: auto;
    transform: none;
}

.type-header {
    text-align: center;
    margin-bottom: 24px;
}

.type-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #00B4D8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-icon i {
    font-size: 32px;
    color: #fff;
}

.vpn-type-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.type-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 24px;
}

.type-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.type-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.type-features li:last-child {
    margin-bottom: 0;
}

.type-features li i {
    font-size: 14px;
    color: var(--primary);
}

.type-usecase {
    padding: 16px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.type-usecase strong {
    color: var(--primary);
}

/* ==============================================
   VPN Network Diagram Section
============================================== */
.vpn-diagram-section {
    padding: 100px 0;
    background: #f8fafb;
}

.vpn-diagram-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.vpn-diagram-tab {
    padding: 16px 32px;
    background: #fff;
    border: 2px solid #e5e8eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7684;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vpn-diagram-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vpn-diagram-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.vpn-diagram-tab i {
    font-size: 20px;
}

.vpn-diagram-content {
    display: none;
}

.vpn-diagram-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Network Diagram Container */
.network-diagram {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    border-radius: 24px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.diagram-title {
    text-align: center;
    margin-bottom: 50px;
}

.diagram-title h4 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.diagram-title p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

/* IPSec VPN Diagram - Site to Site */
.ipsec-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.site-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 280px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.site-box.headquarters {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.2);
}

.site-box.branch {
    border-color: #00B4D8;
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.2);
}

.site-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #00B4D8 100%);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.site-box.branch .site-label {
    background: linear-gradient(135deg, #00B4D8 0%, #0096c7 100%);
}

.site-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-icon i {
    font-size: 36px;
    color: var(--primary);
}

.site-box.branch .site-icon {
    background: rgba(0, 180, 216, 0.1);
}

.site-box.branch .site-icon i {
    color: #00B4D8;
}

.site-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.site-ip {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Monaco', 'Consolas', monospace;
    margin-bottom: 16px;
}

.site-devices {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.device-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* VPN Gateway Box */
.vpn-gateway {
    position: relative;
    z-index: 3;
}

.gateway-box {
    background: linear-gradient(135deg, var(--primary) 0%, #00B4D8 100%);
    border-radius: 16px;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.4);
}

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

.gateway-icon i {
    font-size: 28px;
    color: #fff;
}

.gateway-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* Internet Cloud */
.internet-cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.cloud-shape {
    width: 200px;
    height: 100px;
    position: relative;
}

.cloud-shape::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(100, 120, 150, 0.15);
    border-radius: 50px;
    filter: blur(20px);
}

.cloud-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cloud-label i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
}

.cloud-label span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* Animated Connection Lines */
.connection-line {
    position: absolute;
    top: 50%;
    height: 4px;
    background: rgba(0, 212, 170, 0.3);
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.connection-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: dataFlow 2s linear infinite;
}

.connection-line.left {
    left: 280px;
    width: calc(50% - 380px);
    transform: translateY(-50%);
}

.connection-line.right {
    right: 280px;
    width: calc(50% - 380px);
    transform: translateY(-50%);
}

.connection-line.right::after {
    animation: dataFlowReverse 2s linear infinite;
}

@keyframes dataFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes dataFlowReverse {
    0% { left: 100%; }
    100% { left: -100%; }
}

/* Encryption Badge */
.encryption-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 100px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.encryption-badge i {
    font-size: 16px;
    color: var(--primary);
}

.encryption-badge span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* SSL VPN Diagram - Remote Access */
.ssl-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.remote-users {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.remote-user {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    width: 140px;
    transition: all 0.3s ease;
}

.remote-user:hover {
    border-color: rgba(0, 212, 170, 0.4);
    transform: translateY(-5px);
}

.remote-user .user-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remote-user .user-icon i {
    font-size: 24px;
    color: var(--primary);
}

.remote-user .user-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.remote-user .user-ip {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* SSL Gateway Center */
.ssl-gateway-center {
    position: relative;
    margin-bottom: 60px;
    z-index: 3;
}

.ssl-gateway-box {
    background: linear-gradient(135deg, var(--primary) 0%, #00B4D8 100%);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 212, 170, 0.4);
}

.ssl-gateway-box .gateway-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.ssl-gateway-box .gateway-icon i {
    font-size: 36px;
}

.ssl-gateway-box .gateway-label {
    font-size: 18px;
    margin-bottom: 8px;
}

.ssl-gateway-box .gateway-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Server Zone */
.server-zone {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 50px;
    position: relative;
    z-index: 2;
}

.zone-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2332;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
}

.server-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

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

.server-item .server-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-item .server-icon i {
    font-size: 28px;
    color: #00B4D8;
}

.server-item .server-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.server-item .server-ip {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Vertical Connection Lines */
.v-connection {
    position: relative;
    height: 40px;
    display: flex;
    justify-content: center;
}

.v-line {
    width: 4px;
    height: 100%;
    background: rgba(0, 212, 170, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.v-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    animation: vDataFlow 1.5s linear infinite;
}

@keyframes vDataFlow {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Multi-line connections from users */
.user-connections {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
}

/* Diagram Description */
.diagram-description {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.desc-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.desc-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.desc-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.desc-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .vpn-types-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .ipsec-diagram {
        flex-direction: column;
        gap: 30px;
    }

    .site-box {
        width: 100%;
        max-width: 320px;
    }

    .connection-line {
        display: none;
    }

    .remote-users {
        flex-wrap: wrap;
    }

    .diagram-description {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vpn-illustration {
        display: none;
    }

    .vpn-diagram-tabs {
        flex-direction: column;
        align-items: center;
    }

    .vpn-diagram-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .network-diagram {
        padding: 40px 20px;
    }

    .server-list {
        flex-wrap: wrap;
    }
}
