/**
 * DeltaNodes - VPS Page Styles
 * ============================
 * Hacker/Terminal theme for VPS hosting
 */

/* Hacker Background */
.hacker-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #0a0a0a;
}

#hacker-canvas {
    width: 100%;
    height: 100%;
}

.vps-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.85) 50%,
            rgba(0, 0, 0, 0.95) 100%);
}

/* VPS Hero Styles */
.vps-hero {
    text-align: center;
}

.vps-icon {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 255, 65, 0.05)) !important;
}

.vps-icon svg {
    color: #00ff41 !important;
}

/* Terminal Preview */
.terminal-preview {
    max-width: 600px;
    margin: 2rem auto 0;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.1),
        0 0 100px rgba(0, 255, 65, 0.05);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    min-height: 60px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: #00ff41;
}

.typing-text {
    color: #fff;
}

.cursor {
    color: #00ff41;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Interactive Terminal Enhancements */
.interactive-terminal {
    max-width: 850px;
    width: 100%;
}

.interactive-terminal .terminal-body {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.terminal-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.history-entry {
    animation: fadeIn 0.3s ease;
}

.history-cmd {
    margin-bottom: 5px;
}

.history-cmd .prompt {
    color: #00ff41;
}

.history-output {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ccc;
    padding-left: 12px;
    margin-left: 8px;
    border-left: 2px solid rgba(0, 255, 65, 0.3);
    white-space: pre;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Terminal output colors */
.output-green {
    color: #00ff41;
}

.output-cyan {
    color: #00d4ff;
}

.output-yellow {
    color: #ffcc00;
}

.output-white {
    color: #ffffff;
}

.output-red {
    color: #ff4444;
}

.active-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.active-line .prompt {
    white-space: nowrap;
    margin-right: 8px;
}

/* Terminal Input Field */
.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    caret-color: #00ff41;
    width: 1ch;
    padding: 0;
    margin: 0;
}

.cursor {
    color: #00ff41;
    animation: blink 0.7s infinite;
}

.terminal-input:focus+.cursor {
    animation: blink 0.7s infinite;
}

.interactive-terminal:focus-within {
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.2),
        0 0 100px rgba(0, 255, 65, 0.1);
}

.interactive-terminal .terminal-title {
    transition: color 0.3s;
}

.interactive-terminal:focus-within .terminal-title {
    color: #00ff41;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.5);
}

/* =============================================
   VPS OS SECTION - Premium Redesign
   ============================================= */

.vps-os-section {
    padding: 5rem 2rem;
    position: relative;
}

.vps-os-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
}

.vps-os-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.vps-os-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.vps-os-tagline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00ff41;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    margin-bottom: 1.5rem;
}

.vps-os-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.vps-os-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Categories */
.vps-os-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.vps-os-category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    padding-left: 4px;
}

.vps-os-category-label svg {
    color: rgba(0, 255, 65, 0.5);
}

/* OS Cards Grid */
.vps-os-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Individual Card */
.vps-os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.8rem 1.2rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.vps-os-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 65, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vps-os-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.03);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(0, 255, 65, 0.05);
}

.vps-os-card:hover::before {
    opacity: 1;
}

/* Windows card blue accent */
.vps-os-card-windows::before {
    background: radial-gradient(circle at 50% 0%, rgba(0, 173, 239, 0.06), transparent 70%) !important;
}

.vps-os-card-windows:hover {
    border-color: rgba(0, 173, 239, 0.3);
    background: rgba(0, 173, 239, 0.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(0, 173, 239, 0.05);
}

/* OS Icon */
.vps-os-card-icon {
    width: 52px;
    height: 52px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.vps-os-card:hover .vps-os-card-icon {
    transform: scale(1.12);
}

.vps-os-card-icon svg {
    width: 100%;
    height: 100%;
}

/* OS Name */
.vps-os-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.vps-os-card:hover .vps-os-card-name {
    color: #00ff41;
}

.vps-os-card-windows:hover .vps-os-card-name {
    color: #00ADEF;
}

/* Version Label */
.vps-os-card-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Info Callout */
.vps-os-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
}

.vps-os-callout svg {
    flex-shrink: 0;
    color: #00ff41;
    opacity: 0.7;
}

.vps-os-callout a {
    color: #00ff41;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.vps-os-callout a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* VPS Plan Card Adjustments */
.vps-page .plan-card.ultimate {
    border-color: rgba(0, 255, 65, 0.3);
}

.vps-page .plan-card.ultimate::before {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 255, 65, 0.02));
}

.vps-page .ultimate-badge {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #000;
}

.vps-page .btn-ultimate {
    background: linear-gradient(135deg, #00ff41, #00cc33) !important;
    color: #000 !important;
}

.vps-page .btn-ultimate:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

/* =============================================
   VPS FEATURES SECTION - Premium Redesign
   ============================================= */

.vps-features-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.vps-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
}

.vps-features-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.vps-features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.vps-features-tagline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00ff41;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.vps-features-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.vps-features-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid */
.vps-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Feature Card */
.vps-feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    animation: vpsFeatureFadeIn 0.6s ease both;
}

.vps-feature-card[data-aos="1"] {
    animation-delay: 0s;
}

.vps-feature-card[data-aos="2"] {
    animation-delay: 0.1s;
}

.vps-feature-card[data-aos="3"] {
    animation-delay: 0.2s;
}

.vps-feature-card[data-aos="4"] {
    animation-delay: 0.3s;
}

.vps-feature-card:hover {
    background: rgba(0, 255, 65, 0.03);
    border-color: rgba(0, 255, 65, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 255, 65, 0.06);
}

/* Glow effect behind card on hover */
.vps-feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 65, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.vps-feature-card:hover .vps-feature-glow {
    opacity: 1;
}

/* Icon Wrap */
.vps-feature-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 255, 65, 0.03));
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff41;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.vps-feature-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.vps-feature-card:hover .vps-feature-icon-wrap {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.25), rgba(0, 255, 65, 0.08));
    border-color: rgba(0, 255, 65, 0.4);
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.15);
}

.vps-feature-card:hover .vps-feature-icon-wrap::after {
    opacity: 1;
}

.vps-feature-icon-wrap svg {
    width: 30px;
    height: 30px;
}

/* Text */
.vps-feature-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.vps-feature-text h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.vps-feature-card:hover .vps-feature-text h3 {
    color: #00ff41;
}

.vps-feature-text p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.92rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.vps-feature-card:hover .vps-feature-text p {
    color: rgba(255, 255, 255, 0.6);
}

/* Feature Number */
.vps-feature-number {
    position: absolute;
    bottom: 12px;
    right: 18px;
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
    z-index: 0;
}

.vps-feature-card:hover .vps-feature-number {
    color: rgba(0, 255, 65, 0.07);
}

/* Animation */
@keyframes vpsFeatureFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VPS Green Accents (original overrides) */
.vps-page .gold-text {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vps-page .check-icon {
    stroke: #00ff41 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-preview {
        margin: 1.5rem 0.5rem 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .terminal-body {
        padding: 12px;
        font-size: 0.7rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-header {
        padding: 8px 12px;
    }

    .terminal-title {
        font-size: 0.6rem;
    }

    .terminal-dot {
        width: 10px;
        height: 10px;
    }

    .terminal-input {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .terminal-body {
        padding: 10px;
        font-size: 0.6rem;
    }

    .terminal-title {
        font-size: 0.5rem;
    }
}

@media (max-width: 600px) {

    /* VPS Features Responsive */
    .vps-features-section {
        padding: 4rem 1.2rem;
    }

    .vps-features-header h2 {
        font-size: 1.8rem;
    }

    .vps-features-subtitle {
        font-size: 0.95rem;
    }

    .vps-features-grid {
        grid-template-columns: 1fr;
    }

    .vps-feature-card {
        padding: 1.8rem 1.5rem;
    }

    .vps-feature-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .vps-feature-icon-wrap svg {
        width: 24px;
        height: 24px;
    }

    .vps-feature-number {
        font-size: 2.5rem;
    }

    /* VPS OS Responsive */
    .vps-os-section {
        padding: 3.5rem 1.2rem;
    }

    .vps-os-header h2 {
        font-size: 1.8rem;
    }

    .vps-os-subtitle {
        font-size: 0.92rem;
    }

    .vps-os-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .vps-os-card {
        padding: 1.4rem 1rem 1.2rem;
    }

    .vps-os-card-icon {
        width: 42px;
        height: 42px;
    }

    .vps-os-card-name {
        font-size: 0.85rem;
    }

    .vps-os-callout {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    .vps-features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .vps-features-header h2 {
        font-size: 2.2rem;
    }

    .vps-os-header h2 {
        font-size: 2.2rem;
    }
}