/**
 * ByteHost Redesign - Dark Professional Theme
 * ============================================
 * Complete CSS foundation for the website redesign.
 * This file contains all design tokens and component styles.
 */

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */

:root {
    /* ------------------------------------------
     COLORS: Backgrounds
     ------------------------------------------ */
    --bg-deep: #0A0B0E;
    --bg-surface: #121519;
    --bg-elevated: #1A1D24;
    --bg-hover: #22262F;

    /* ------------------------------------------
     COLORS: Borders
     ------------------------------------------ */
    --border-subtle: #2A2F38;
    --border-accent: #434A57;
    --border-focus: #1D4FFE;

    /* ------------------------------------------
     COLORS: Text
     ------------------------------------------ */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A5AE;
    --text-muted: #6B7280;
    --text-disabled: #4B5563;

    /* ------------------------------------------
     COLORS: Accents
     ------------------------------------------ */
    --accent-primary: #1D4FFE;
    --accent-primary-hover: #3B6AFF;
    --accent-primary-muted: rgba(29, 79, 254, 0.15);

    --accent-success: #10B981;
    --accent-success-muted: rgba(16, 185, 129, 0.15);

    --accent-warning: #F59E0B;
    --accent-warning-muted: rgba(245, 158, 11, 0.15);

    --accent-danger: #EF4444;
    --accent-danger-muted: rgba(239, 68, 68, 0.15);

    --accent-info: #06B6D4;
    --accent-info-muted: rgba(6, 182, 212, 0.15);

    /* ------------------------------------------
     GRADIENTS
     ------------------------------------------ */
    --gradient-hero: linear-gradient(180deg, rgba(29, 79, 254, 0.08) 0%, transparent 40%);
    --gradient-card-accent: linear-gradient(90deg, #1D4FFE 0%, #06B6D4 100%);

    /* ------------------------------------------
     TYPOGRAPHY
     ------------------------------------------ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --font-size-hero: 56px;
    --font-size-h1: 48px;
    --font-size-h2: 40px;
    --font-size-h3: 24px;
    --font-size-h4: 20px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-caption: 12px;
    --font-size-button: 15px;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.1;
    --line-height-snug: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.01em;

    /* ------------------------------------------
     SPACING
     ------------------------------------------ */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* ------------------------------------------
     BORDERS & RADIUS
     ------------------------------------------ */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ------------------------------------------
     SHADOWS
     ------------------------------------------ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);

    /* ------------------------------------------
     TRANSITIONS
     ------------------------------------------ */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* ------------------------------------------
     Z-INDEX SCALE
     ------------------------------------------ */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
    background-color: var(--bg-surface);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */

/* Force dark backgrounds on all sections */
.section,
section {
    background-color: var(--bg-deep);
}

.bg-light {
    background-color: var(--bg-surface) !important;
}

.bg-dark {
    background-color: var(--bg-deep) !important;
}

/* Text color overrides */
.text-dark {
    color: var(--text-primary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
.h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
}

h2,
.h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
}

h3,
.h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    color: var(--text-primary);
}

h4,
.h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

h5,
.h5 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

h6,
.h6 {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
}

.title {
    color: var(--text-primary) !important;
}

.para-desc {
    color: var(--text-secondary) !important;
    max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-family: var(--font-family);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    border: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-primary-hover) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 16px rgba(29, 79, 254, 0.3);
    transform: translateY(-1px);
}

/* Secondary/Outline Button */
.btn-outline-primary {
    background-color: transparent !important;
    color: var(--accent-primary) !important;
    border: 1px solid var(--accent-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
}

/* Light Button */
.btn-light {
    background-color: var(--text-primary) !important;
    color: var(--bg-deep) !important;
    border: none !important;
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--text-secondary) !important;
    color: var(--bg-deep) !important;
}

/* Outline Light Button */
.btn-outline-light {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-accent) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
}

/* Success Button */
.btn-success {
    background-color: var(--accent-success) !important;
    color: var(--text-primary) !important;
    border: none !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #0EA472 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Warning Button */
.btn-warning {
    background-color: var(--accent-warning) !important;
    color: var(--bg-deep) !important;
    border: none !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #D97706 !important;
}

/* Pill Buttons */
.rounded-pill {
    border-radius: var(--radius-full) !important;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: var(--border-accent) !important;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

/* Card with accent border */
.card-accent {
    position: relative;
    overflow: hidden;
}

.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-card-accent);
}

/* Feature Cards */
.features.card,
.card.features {
    background-color: var(--bg-surface) !important;
}

.features .icon,
.card .icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--accent-primary-muted);
    color: var(--accent-primary);
    font-size: 24px;
}

/* Service Cards */
.service-card {
    background-color: var(--bg-surface) !important;
    text-align: center;
}

/* Pricing Cards - Fix Stretched Height */
.pricing.card,
.card.pricing,
.pricing {
    height: auto !important;
    align-self: flex-start;
}

.pricing.sticky-top {
    position: sticky;
    top: 100px;
    height: fit-content !important;
}

/* Ensure pricing cards don't stretch in flex containers */
.row>[class*="col-"]>.pricing,
.row>[class*="col-"]>.card.pricing {
    height: auto !important;
}

/* Compact pricing card feature icons */
.card .list-unstyled .icon.h5,
.pricing .list-unstyled .icon.h5,
.card-body .list-unstyled .icon.h5 {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    display: inline-flex !important;
    font-size: inherit;
}

/* Compact list items in pricing cards */
.card-body .list-unstyled li.h6,
.pricing .list-unstyled li.h6 {
    margin-bottom: 12px !important;
}

/* Compact pricing feature sections */
.pricing .pricing-features {
    padding: 12px 16px !important;
}

.pricing .pricing-features h5 {
    margin-bottom: 8px !important;
    font-size: 11px !important;
}

.pricing .pricing-features .feature li {
    padding: 2px 0 !important;
    margin-bottom: 4px !important;
    font-size: 13px !important;
}

.pricing .pricing-features .feature li .icon {
    margin-right: 6px !important;
}

.pricing .price-header {
    padding: 20px 16px !important;
}

.pricing .border-bottom.py-4 {
    padding: 16px !important;
}

.service-card .icon-round {
    width: 80px;
    height: 80px;
    background-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
}

/* ============================================
   BADGES & PILLS
   ============================================ */

.badge {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-medium);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.bg-soft-primary,
.badge.bg-soft-primary {
    background-color: var(--accent-primary-muted) !important;
    color: var(--accent-primary) !important;
}

.bg-soft-success {
    background-color: var(--accent-success-muted) !important;
    color: var(--accent-success) !important;
}

.bg-soft-warning {
    background-color: var(--accent-warning-muted) !important;
    color: var(--accent-warning) !important;
}

.bg-soft-info {
    background-color: var(--accent-info-muted) !important;
    color: var(--accent-info) !important;
}

.bg-soft-danger {
    background-color: var(--accent-danger-muted) !important;
    color: var(--accent-danger) !important;
}

.bg-soft-dark {
    background-color: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

#topnav {
    background-color: transparent;
    transition: all var(--transition-normal);
}

#topnav.nav-sticky {
    background-color: rgba(10, 11, 14, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

#topnav .navigation-menu>li>a {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

#topnav .navigation-menu>li>a:hover,
#topnav .navigation-menu>li>a:focus {
    color: var(--accent-primary);
}

/* Dropdown Menu */
#topnav .navigation-menu .submenu {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-accent) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm) 0;
}

#topnav .navigation-menu .submenu li a {
    color: var(--text-secondary) !important;
    padding: 10px 20px;
    transition: all var(--transition-fast);
}

#topnav .navigation-menu .submenu li a:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-elevated);
}

/* ============================================
   HERO SECTION
   ============================================ */

.bg-half-260,
.bg-half-170 {
    background-color: var(--bg-surface) !important;
    background-image: none !important;
}

.bg-overlay {
    display: none !important;
}

/* Hero Typography */
.heading {
    color: var(--text-primary) !important;
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.text-white-50 {
    color: var(--text-secondary) !important;
}

/* Typed.js Cursor */
.typed-cursor {
    color: var(--accent-primary);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--space-4xl) 0;
    background-color: var(--bg-deep);
}

.section-title .title {
    color: var(--text-primary) !important;
}

/* Alternating Section Backgrounds */
.section:nth-child(even) {
    background-color: var(--bg-surface);
}

/* Section Title */
.section-title {
    margin-bottom: var(--space-2xl);
}

/* ============================================
   COUNTERS / STATISTICS
   ============================================ */

.counter-box {
    padding: var(--space-lg);
}

.counter-box i {
    color: var(--accent-primary) !important;
    font-size: 48px;
}

.counter-box h1,
.counter-box .counter-value {
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-bold);
}

.counter-box .counter-head {
    color: var(--text-secondary) !important;
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */

.accordion-item {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.accordion-button {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-medium);
    padding: var(--space-md) var(--space-lg);
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-elevated) !important;
    color: var(--accent-primary) !important;
    border-left: 3px solid var(--accent-primary) !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-deep) !important;
    color: var(--text-secondary);
}

.footer-border {
    border-top: 1px solid var(--border-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.footer-py-60 {
    padding: var(--space-3xl) 0;
}

.footer-py-30 {
    padding: var(--space-lg) 0;
}

.footer-head {
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-semibold);
}

.footer-list li a {
    color: var(--text-secondary) !important;
    transition: color var(--transition-fast);
}

.footer-list li a:hover {
    color: var(--text-primary) !important;
}

.foot-social-icon li a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.foot-social-icon li a:hover {
    background-color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px var(--accent-primary-muted) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-sm);
}

/* ============================================
   TABLES
   ============================================ */

.table {
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: var(--font-weight-semibold);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr:hover {
    background-color: var(--bg-hover);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    border: none;
}

.alert-primary {
    background-color: var(--accent-primary-muted);
    color: var(--accent-primary);
}

.alert-success {
    background-color: var(--accent-success-muted);
    color: var(--accent-success);
}

.alert-warning {
    background-color: var(--accent-warning-muted);
    color: var(--accent-warning);
}

.alert-danger {
    background-color: var(--accent-danger-muted);
    color: var(--accent-danger);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    background-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    background-color: var(--accent-primary-hover) !important;
    transform: translateY(-2px);
}

/* ============================================
   COOKIE POPUP
   ============================================ */

.cookie-popup {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* ============================================
   STEP NUMBERS / PROCESS
   ============================================ */

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    background-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    border-radius: 50%;
}

.work-process.card {
    background-color: var(--bg-surface) !important;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.bg-gradient-primary {
    background: var(--bg-surface) !important;
    border-top: 2px solid var(--accent-primary);
}

.cta-content h2 {
    color: var(--text-primary) !important;
}

.cta-content p {
    color: var(--text-secondary) !important;
}

/* ============================================
   COURSE FEATURE CARDS (Product Pages)
   ============================================ */

.course-feature {
    background-color: var(--bg-surface) !important;
}

.course-feature .icons i {
    color: var(--accent-primary) !important;
}

.course-feature .title {
    color: var(--text-primary) !important;
}

.course-feature .full-img {
    color: var(--border-subtle) !important;
    opacity: 0.2;
}

/* ============================================
   UTILITIES
   ============================================ */

/* Background Utilities */
.bg-primary {
    background-color: var(--accent-primary) !important;
}

/* Border Utilities */
.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Text Colors */
.text-primary {
    color: var(--accent-primary) !important;
}

.text-success {
    color: var(--accent-success) !important;
}

.text-warning {
    color: var(--accent-warning) !important;
}

.text-info {
    color: var(--accent-info) !important;
}

.text-danger {
    color: var(--accent-danger) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    :root {
        --font-size-hero: 40px;
        --font-size-h1: 36px;
        --font-size-h2: 32px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 767px) {
    :root {
        --font-size-hero: 32px;
        --font-size-h1: 28px;
        --font-size-h2: 24px;
        --font-size-h3: 20px;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .card-body {
        padding: var(--space-md);
    }
}

/* ============================================
   SVG WAVE SHAPE COLORS
   ============================================ */

.shape svg path {
    fill: var(--bg-deep) !important;
}

.text-color-white .shape svg path {
    fill: var(--bg-surface) !important;
}

/* ============================================
   ANIMATED SERVER RACK
   ============================================ */

.server-rack-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    perspective: 1000px;
}

.server-rack {
    transform: rotateX(25deg) rotateZ(-5deg);
    transform-style: preserve-3d;
}

.server-chassis {
    width: 400px;
    height: 280px;
    background: linear-gradient(145deg, #2a2d35 0%, #1a1d24 100%);
    border-radius: 8px;
    border: 2px solid #3a3f4a;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.top-panel {
    width: 100%;
    height: 100%;
    padding: 15px;
    position: relative;
}

/* CPU Section */
.cpu-section {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 30px;
}

.cpu {
    width: 70px;
    height: 70px;
    background: #0d0f12;
    border: 2px solid #3a3f4a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatsink {
    width: 55px;
    height: 55px;
    background: repeating-linear-gradient(90deg,
            #4a4f5a 0px,
            #4a4f5a 3px,
            #2a2f35 3px,
            #2a2f35 6px);
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* RAM Section */
.ram-section {
    position: absolute;
    top: 25px;
    right: 20px;
    display: flex;
    gap: 4px;
}

.ram-stick {
    width: 8px;
    height: 60px;
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.ram-stick:nth-child(odd) {
    background: linear-gradient(180deg, #1D4FFE 0%, #1a3fd4 100%);
    box-shadow: 0 0 8px rgba(29, 79, 254, 0.4);
}

/* Fan Section */
.fan-section {
    position: absolute;
    top: 110px;
    left: 25px;
    display: flex;
    gap: 15px;
}

.fan {
    width: 40px;
    height: 40px;
    background: #0d0f12;
    border-radius: 50%;
    border: 2px solid #3a3f4a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fan-blade {
    width: 30px;
    height: 30px;
    background:
        linear-gradient(45deg, transparent 40%, #4a4f5a 40%, #4a4f5a 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, #4a4f5a 40%, #4a4f5a 60%, transparent 60%);
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

.fan-2 .fan-blade {
    animation-duration: 0.4s;
}

.fan-3 .fan-blade {
    animation-duration: 0.6s;
}

.fan-4 .fan-blade {
    animation-duration: 0.45s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Cable Section */
.cable-section {
    position: absolute;
    top: 100px;
    left: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cable {
    width: 100px;
    height: 6px;
    background: #1a1d24;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.cable-1 {
    transform: rotate(-15deg);
}

.cable-2 {
    transform: rotate(5deg);
    margin-left: 20px;
}

.cable-3 {
    transform: rotate(-8deg);
    margin-left: -10px;
}

.data-flow {
    position: absolute;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #1D4FFE, #06B6D4, transparent);
    animation: dataFlow 1.5s linear infinite;
    border-radius: 3px;
}

.cable-2 .data-flow {
    animation-delay: 0.5s;
}

.cable-3 .data-flow {
    animation-delay: 1s;
}

@keyframes dataFlow {
    0% {
        left: -20px;
    }

    100% {
        left: 100px;
    }
}

/* Storage Section */
.storage-section {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
}

.drive {
    width: 50px;
    height: 35px;
    background: linear-gradient(180deg, #2a2d35 0%, #1a1d24 100%);
    border: 1px solid #3a3f4a;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 5px;
}

.drive-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.led-active {
    background: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
    animation: blink 0.3s ease-in-out infinite alternate;
}

.led-idle {
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

@keyframes blink {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Status LEDs */
.status-leds {
    position: absolute;
    bottom: 25px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.led-power {
    background: #10B981;
    box-shadow: 0 0 10px #10B981, 0 0 20px rgba(16, 185, 129, 0.5);
}

.led-network {
    background: #1D4FFE;
    box-shadow: 0 0 10px #1D4FFE;
    animation: networkBlink 0.15s ease-in-out infinite;
}

.led-hdd {
    background: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
    animation: hddBlink 0.2s ease-in-out infinite;
}

.led-status {
    background: #06B6D4;
    box-shadow: 0 0 8px #06B6D4;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes networkBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes hddBlink {

    0%,
    30%,
    60%,
    100% {
        opacity: 1;
    }

    15%,
    45% {
        opacity: 0.2;
    }
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 0.6;
        box-shadow: 0 0 8px #06B6D4;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px #06B6D4, 0 0 25px rgba(6, 182, 212, 0.5);
    }
}

/* Network Section */
.network-section {
    position: absolute;
    bottom: 60px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.eth-port {
    width: 22px;
    height: 18px;
    background: #0d0f12;
    border: 1px solid #3a3f4a;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

.port-led {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.port-active {
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
    animation: portBlink 0.8s ease-in-out infinite;
}

.port-idle {
    background: #4a4f5a;
}

@keyframes portBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .server-rack {
        transform: rotateX(15deg) rotateZ(-3deg) scale(0.7);
    }

    .server-chassis {
        width: 320px;
        height: 220px;
    }
}

/* ============================================
   ANIMATED NETWORK TOPOLOGY
   ============================================ */

.network-topology-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.network-topology {
    width: 300px;
    height: 300px;
    position: relative;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.conn-line {
    stroke: #3a3f4a;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -10;
    }
}

.data-packet {
    fill: #1D4FFE;
    filter: drop-shadow(0 0 6px #1D4FFE);
}

.packet-1 {
    animation: packet1 2s ease-in-out infinite;
}

.packet-2 {
    animation: packet2 2s ease-in-out infinite 0.3s;
}

.packet-3 {
    animation: packet3 2s ease-in-out infinite 0.6s;
}

.packet-4 {
    animation: packet4 2s ease-in-out infinite 0.9s;
}

.packet-5 {
    animation: packet5 2s ease-in-out infinite 1.2s;
}

.packet-6 {
    animation: packet6 2s ease-in-out infinite 1.5s;
}

@keyframes packet1 {

    0%,
    100% {
        cx: 150;
        cy: 150;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        cx: 75;
        cy: 50;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

@keyframes packet2 {

    0%,
    100% {
        cx: 150;
        cy: 150;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        cx: 225;
        cy: 50;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

@keyframes packet3 {

    0%,
    100% {
        cx: 150;
        cy: 150;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        cx: 270;
        cy: 150;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

@keyframes packet4 {

    0%,
    100% {
        cx: 150;
        cy: 150;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        cx: 225;
        cy: 250;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

@keyframes packet5 {

    0%,
    100% {
        cx: 150;
        cy: 150;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        cx: 75;
        cy: 250;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

@keyframes packet6 {

    0%,
    100% {
        cx: 150;
        cy: 150;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        cx: 30;
        cy: 150;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }
}

.node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #2a2d35 0%, #1a1d24 100%);
    border: 2px solid #3a3f4a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.node:hover {
    border-color: #1D4FFE;
    box-shadow: 0 0 20px rgba(29, 79, 254, 0.4);
    transform: scale(1.1);
}

.node-icon {
    font-size: 20px;
    color: #A0A5AE;
}

.node:hover .node-icon {
    color: #1D4FFE;
}

.node-central {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1D4FFE 0%, #1a3fd4 100%);
    border-color: #3B6AFF;
}

.node-central .node-icon {
    font-size: 28px;
    color: #FFFFFF;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #1D4FFE;
    animation: nodePulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.node-1 {
    top: 25px;
    left: 50px;
}

.node-2 {
    top: 25px;
    right: 50px;
    left: auto;
}

.node-3 {
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    left: auto;
}

.node-4 {
    bottom: 25px;
    right: 50px;
    top: auto;
    left: auto;
}

.node-5 {
    bottom: 25px;
    left: 50px;
    top: auto;
}

.node-6 {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .network-topology {
        transform: scale(0.75);
    }
}

/* ============================================
   ANIMATED AUDIO WAVEFORM
   ============================================ */

.audio-waveform-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 120px;
    padding: 20px;
    background: linear-gradient(145deg, #1a1d24 0%, #121519 100%);
    border-radius: 16px;
    border: 1px solid #3a3f4a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wave-bar {
    width: 6px;
    min-height: 8px;
    background: linear-gradient(180deg, #1D4FFE 0%, #06B6D4 100%);
    border-radius: 3px;
    animation: waveAnim 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) {
    animation-delay: 0s;
    height: 30px;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.05s;
    height: 50px;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.1s;
    height: 35px;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.15s;
    height: 70px;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.2s;
    height: 55px;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.25s;
    height: 85px;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.3s;
    height: 45px;
}

.wave-bar:nth-child(8) {
    animation-delay: 0.35s;
    height: 60px;
}

.wave-bar:nth-child(9) {
    animation-delay: 0.4s;
    height: 75px;
}

.wave-bar:nth-child(10) {
    animation-delay: 0.45s;
    height: 100px;
}

.wave-bar:nth-child(11) {
    animation-delay: 0.5s;
    height: 75px;
}

.wave-bar:nth-child(12) {
    animation-delay: 0.55s;
    height: 60px;
}

.wave-bar:nth-child(13) {
    animation-delay: 0.6s;
    height: 45px;
}

.wave-bar:nth-child(14) {
    animation-delay: 0.65s;
    height: 85px;
}

.wave-bar:nth-child(15) {
    animation-delay: 0.7s;
    height: 55px;
}

.wave-bar:nth-child(16) {
    animation-delay: 0.75s;
    height: 70px;
}

.wave-bar:nth-child(17) {
    animation-delay: 0.8s;
    height: 35px;
}

.wave-bar:nth-child(18) {
    animation-delay: 0.85s;
    height: 50px;
}

.wave-bar:nth-child(19) {
    animation-delay: 0.9s;
    height: 30px;
}

.wave-bar:nth-child(20) {
    animation-delay: 0.95s;
    height: 25px;
}

@keyframes waveAnim {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.mic-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #1D4FFE 0%, #1a3fd4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    box-shadow: 0 8px 32px rgba(29, 79, 254, 0.4);
}

.mic-icon i {
    font-size: 32px;
    color: #FFFFFF;
}

.mic-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #1D4FFE;
    animation: micPulse 1.5s ease-out infinite;
}

@keyframes micPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .audio-waveform {
        gap: 3px;
        padding: 15px;
    }

    .wave-bar {
        width: 4px;
    }

    .mic-icon {
        width: 60px;
        height: 60px;
    }

    .mic-icon i {
        font-size: 24px;
    }
}