/* ===================================
   WIREGUARD SERVICE PAGE STYLES
   Premium Design for VIAMIKRO WireGuard
   =================================== */

/* WireGuard Hero Section */
/* WireGuard Hero Section */
.wg-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.wg-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.wg-hero-content {
    text-align: left;
    /* Align text to left for split layout */
}

.wg-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Animated Logo Container */
.wg-logo-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatLogo 6s ease-in-out infinite;
    cursor: pointer;
}

/* The Glass Shield/Orb Background */
.wg-glass-shield {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(136, 0, 0, 0.1),
        /* WireGuard Redish hint ?? Or keep it Blue/Cyan */
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
    z-index: 1;
}

/* The Logo Image */
.wg-main-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Energy Rings */
.energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(136, 21, 21, 0.3);
    /* WireGuard Red-ish */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 0;
    transition: all 0.5s;
}

.ring-1 {
    width: 110%;
    height: 110%;
    border-color: rgba(255, 255, 255, 0.1);
}

.ring-2 {
    width: 130%;
    height: 130%;
    border-style: dashed;
    animation: spinSlow 30s linear infinite;
}

/* HOVER EFFECTS - IMPRESSIVE */
.wg-logo-wrapper:hover .wg-main-logo {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.6));
    /* Red Glow for WireGuard */
}

.wg-logo-wrapper:hover .wg-glass-shield {
    box-shadow:
        0 0 60px rgba(220, 38, 38, 0.2),
        inset 0 0 30px rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.wg-logo-wrapper:hover .energy-ring {
    opacity: 1;
}

.wg-logo-wrapper:hover .ring-2 {
    animation-duration: 10s;
    /* Speed up spin */
    border-color: rgba(220, 38, 38, 0.2);
}

/* Animations */
@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spinSlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.wg-hero h1 {
    font-size: 3rem;
    /* Reduced from 3.5rem */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.wg-hero-content p {
    margin-bottom: 3rem;
    /* Increased spacing before buttons */
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.wg-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Left align CTA */
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Stats Banner */
.wg-stats {
    display: flex;
    justify-content: flex-start;
    /* Left align stats */
    gap: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    /* Reduced from 3rem */
    font-weight: 900;
    background: linear-gradient(135deg, #06B6D4, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    /* Reduced from 0.875rem */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WireGuard Features Grid */
.wg-features {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.wg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.wg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.wg-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}

.wg-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.wg-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.wg-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.wg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wg-list li {
    color: #94A3B8;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* Use Cases Section */
.wg-usecases {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #1a1f35);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Updated to 4 cols */
    gap: 2rem;
    margin-top: 4rem;
}

.usecase-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.usecase-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.usecase-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.usecase-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* How it Works Section */
.wg-how {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.wg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.wg-step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.wg-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
}

.wg-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wg-step-arrow {
    font-size: 2rem;
    color: rgba(6, 182, 212, 0.5);
    flex-shrink: 0;
}

/* Comparison Table */
.wg-comparison {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #1a1f35);
}

.comparison-table {
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row:last-child {
    border-bottom: none;
}

.header-row {
    background: rgba(6, 182, 212, 0.1);
    font-weight: 700;
}

.comparison-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
}

.comparison-cell.highlight {
    color: #06B6D4;
    font-weight: 600;
}

.header-row .comparison-cell {
    color: white;
}

/* FAQ */
.wg-faq {
    padding: 6rem 0;
    background: var(--bg-dark);
}

/* WireGuard CTA Section */
.wg-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1f35, var(--bg-dark));
}

/* Responsive */
@media (max-width: 900px) {

    .wg-grid,
    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .wg-steps {
        flex-direction: column;
    }

    .wg-step-arrow {
        transform: rotate(90deg);
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .comparison-cell {
        justify-content: flex-start;
        padding: 0.5rem 0;
    }

    .wg-hero h1 {
        font-size: 2.5rem;
    }

    .wg-stats {
        gap: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .wg-hero {
        padding: 8rem 0 4rem;
    }

    .wg-hero h1 {
        font-size: 2rem;
    }

    .wg-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wg-hero-content {
        text-align: center;
    }

    .wg-hero-cta {
        justify-content: center;
    }

    .wg-stats {
        justify-content: center;
    }

    .wg-logo-wrapper {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .wg-card,
    .usecase-card {
        padding: 2rem;
    }
}