/* Hero Section Enhancements */

/* Make hero full-width (override bundled section max-width) */
.hero {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Reduce background animation visibility slightly (-5%) */
.hero .code-canvas {
    opacity: 0.20;
}

/* 1. Main Card - Dark Blue Tech Style with Double Border */
.hero-main-pill {
    position: relative;
    /* Darker blue-tinted background */
    background: linear-gradient(
        180deg, 
        rgba(10, 25, 50, 0.65) 0%, 
        rgba(8, 20, 42, 0.87) 50%, 
        rgba(6, 15, 35, 0.90) 100%
    );
    backdrop-filter: blur(14px);
    /* Inner glowing border (30% more transparent) */
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 26px;
    box-shadow: 
        0 0 40px rgba(56, 189, 248, 0.08),
        inset 0 0 30px rgba(56, 189, 248, 0.03),
        /* Inner glow along border */
        inset 0 0 2px rgba(56, 189, 248, 0.28);
    
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Outer tech border frame */
.hero-main-pill::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    width: auto;
    height: auto;
    border-radius: inherit;
    padding: 4px;
    border: 1px solid rgba(56, 189, 248, 0.08);
    transform: none;
    animation: none;
    /* Gradient border effect */
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.14) 0%,
        rgba(56, 189, 248, 0.03) 25%,
        rgba(56, 189, 248, 0.03) 75%,
        rgba(56, 189, 248, 0.14) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Corner accent glows */
.hero-main-pill::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: inherit;
    background: 
        /* Top-left corner glow */
        radial-gradient(ellipse 60px 60px at 0% 0%, rgba(56, 189, 248, 0.32) 0%, transparent 70%),
        /* Top-right corner glow */
        radial-gradient(ellipse 60px 60px at 100% 0%, rgba(56, 189, 248, 0.32) 0%, transparent 70%),
        /* Bottom-left corner glow */
        radial-gradient(ellipse 60px 60px at 0% 100%, rgba(56, 189, 248, 0.24) 0%, transparent 70%),
        /* Bottom-right corner glow */
        radial-gradient(ellipse 60px 60px at 100% 100%, rgba(56, 189, 248, 0.24) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.hero-main-pill:hover {
    border-color: rgba(56, 189, 248, 0.33);
    box-shadow: 
        0 0 70px rgba(56, 189, 248, 0.15),
        inset 0 0 50px rgba(56, 189, 248, 0.08),
        inset 0 0 3px rgba(56, 189, 248, 0.33);
    transform: translateY(-2px);
}

.hero-main-pill:hover::after {
    opacity: 1;
}

/* 2. Typing Cursor for Code */
.subtitle.code-style {
    position: relative;
    display: inline-block;
}

.subtitle.code-style::after {
    content: '|';
    position: absolute;
    right: -12px;
    color: #38bdf8;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 3. Stat Pills (Cards) Enhancements */
.stat-pill {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.4);
    border-radius: 6px;
    overflow: hidden;
}

.stat-pill:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.3);
    z-index: 10;
}

.stat-pill .pill-icon {
    transition: transform 0.3s ease;
}

.stat-pill:hover .pill-icon {
    transform: scale(1.1) rotate(5deg);
    color: #38bdf8;
}

/* Shine effect on hover */
.stat-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.stat-pill:hover::before {
    left: 150%;
    transition: all 0.5s;
}

/* 4. Connectivity Animation */
.schematic-connectors .connector-horizontal-bar,
.schematic-connectors .connector-vertical-main,
.schematic-connectors .leg {
    position: relative;
    /* overflow: hidden;  <-- REMOVED to allow dots (::before/::after) to protrude */
}

/* Dots at Intersections */
/* 1. Central Junction (Main Vertical meets Horizontal) */
.schematic-connectors .connector-horizontal-bar::before {
    content: '';
    position: absolute;
    top: -3px; /* Center on the 1px line */
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(14, 17, 22, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    z-index: 5;
    opacity: 1; /* Override previous hidden state */
    display: block; /* Override display: none from 05-fixes */
    box-sizing: border-box;
}

/* 2. Leg Junctions (Horizontal meets Legs) — hollow */
.schematic-connectors .leg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; /* Align with border-left */
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(14, 17, 22, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    z-index: 5;
    box-sizing: border-box;
}

/* Avoid double dot in the center node (the middle leg meets the central junction dot) */
.schematic-connectors .connector-vertical-legs .leg:nth-child(3)::before {
    display: none;
}

/* 3. Leg Endpoints (bottom) — hollow */
.schematic-connectors .leg::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    transform: translate(-50%, 0);
    width: 6px;
    height: 6px;
    background: rgba(14, 17, 22, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    z-index: 5;
    box-sizing: border-box;
}

/* Data Flow Particles */
.schematic-connectors .connector-horizontal-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: #38bdf8;
    filter: blur(4px);
    box-shadow: 0 0 10px #38bdf8;
    animation: flow-horizontal 3s infinite linear;
    opacity: 0.6;
}


@keyframes flow-horizontal {
    0% { left: -20%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

/* 5. Status Badge Pulse */
.status-badge {
    position: relative;
    overflow: hidden;
    border-radius: 6px !important;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 6. Admin Panel Button - Tech Style */
.hero-tech-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 12px 28px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 6px;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-tech-btn .btn-scan-line {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56, 189, 248, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    animation: btnScan 2.8s infinite;
    pointer-events: none;
}

.hero-tech-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    box-shadow: 
        0 0 25px rgba(56, 189, 248, 0.25),
        inset 0 0 10px rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
    color: #fff;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.hero-tech-btn:active {
    transform: translateY(0);
}

.hero-tech-btn .btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.4s ease;
}

.hero-tech-btn:hover .btn-icon {
    transform: rotate(90deg);
}

.hero-tech-btn .btn-arrow {
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.hero-tech-btn:hover .btn-arrow {
    transform: translateX(4px);
    color: #38bdf8;
}

@keyframes btnScan {
    0%, 80% { left: -100%; }
    100% { left: 250%; }
}
