:root {
    --bg-color: #060511;
    --cyan: #00f3ff;
    --magenta: #ff003c;
    --purple: #bc13fe;
    --text-primary: #e0e0e0;
    --text-secondary: #8c8c9e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    user-select: none;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    background-image: 
        linear-gradient(rgba(188, 19, 254, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(188, 19, 254, 0.35) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 15s linear infinite;
    z-index: -2;
    opacity: 0.9;
    /* Hardware acceleration for smoother animation */
    will-change: background-position;
    /* Fade out the grid in the distance to prevent the Moiré pattern (lines overlapping) */
    -webkit-mask-image: radial-gradient(ellipse at center 60%, black 10%, transparent 60%);
    mask-image: radial-gradient(ellipse at center 60%, black 10%, transparent 60%);
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
}

.title-container {
    position: relative;
    display: inline-block;
}

/* Retro Neon Palm Tree Background */
.palm-tree-bg {
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background-image: url('assets/neon_palm_tree.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1; /* Positive z-index allows proper composting for mix-blend-mode screen */
    opacity: 0.6;
    mix-blend-mode: screen; /* Blends the neon palm perfectly into the dark background */
    pointer-events: none;
    /* Soft fade at edges to remove sharp image borders */
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

.container {
    width: 100%;
    max-width: none;
    padding: 2rem 4vw;
    z-index: 1;
}

.header {
    margin: 0 auto 5rem auto;
    width: max-content;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--cyan);
    letter-spacing: 2px;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    font-size: inherit;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 83px, 0); }
    5% { clip: rect(69px, 9999px, 88px, 0); }
    10% { clip: rect(98px, 9999px, 32px, 0); }
    15% { clip: rect(21px, 9999px, 14px, 0); }
    20% { clip: rect(51px, 9999px, 9px, 0); }
    25% { clip: rect(8px, 9999px, 16px, 0); }
    30% { clip: rect(41px, 9999px, 7px, 0); }
    35% { clip: rect(72px, 9999px, 84px, 0); }
    40% { clip: rect(14px, 9999px, 95px, 0); }
    45% { clip: rect(88px, 9999px, 22px, 0); }
    50% { clip: rect(55px, 9999px, 49px, 0); }
    55% { clip: rect(2px, 9999px, 73px, 0); }
    60% { clip: rect(43px, 9999px, 12px, 0); }
    65% { clip: rect(18px, 9999px, 64px, 0); }
    70% { clip: rect(77px, 9999px, 38px, 0); }
    75% { clip: rect(52px, 9999px, 21px, 0); }
    80% { clip: rect(11px, 9999px, 56px, 0); }
    85% { clip: rect(96px, 9999px, 81px, 0); }
    90% { clip: rect(33px, 9999px, 4px, 0); }
    95% { clip: rect(65px, 9999px, 92px, 0); }
    100% { clip: rect(24px, 9999px, 37px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(56px, 9999px, 12px, 0); }
    5% { clip: rect(23px, 9999px, 84px, 0); }
    10% { clip: rect(89px, 9999px, 41px, 0); }
    15% { clip: rect(14px, 9999px, 76px, 0); }
    20% { clip: rect(58px, 9999px, 9px, 0); }
    25% { clip: rect(7px, 9999px, 62px, 0); }
    30% { clip: rect(31px, 9999px, 28px, 0); }
    35% { clip: rect(94px, 9999px, 55px, 0); }
    40% { clip: rect(45px, 9999px, 17px, 0); }
    45% { clip: rect(72px, 9999px, 93px, 0); }
    50% { clip: rect(19px, 9999px, 34px, 0); }
    55% { clip: rect(81px, 9999px, 68px, 0); }
    60% { clip: rect(38px, 9999px, 11px, 0); }
    65% { clip: rect(63px, 9999px, 49px, 0); }
    70% { clip: rect(2px, 9999px, 86px, 0); }
    75% { clip: rect(51px, 9999px, 24px, 0); }
    80% { clip: rect(27px, 9999px, 75px, 0); }
    85% { clip: rect(84px, 9999px, 4px, 0); }
    90% { clip: rect(13px, 9999px, 98px, 0); }
    95% { clip: rect(46px, 9999px, 32px, 0); }
    100% { clip: rect(91px, 9999px, 67px, 0); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--cyan);
    letter-spacing: 6px;
    margin-top: 1rem;
    text-shadow: 0 0 5px var(--cyan);
    text-transform: uppercase;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-indicator:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: scale(1.05);
}

.status-indicator:hover .status-text {
    text-shadow: 0 0 8px var(--cyan);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    position: relative;
    background: rgba(11, 9, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Card Corners */
.card-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.top-left {
    top: -1px;
    left: -1px;
    border-top-color: rgba(255,255,255,0.2);
    border-left-color: rgba(255,255,255,0.2);
}

.bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom-color: rgba(255,255,255,0.2);
    border-right-color: rgba(255,255,255,0.2);
}

.service-card:hover .top-left {
    top: -5px;
    left: -5px;
}

.service-card:hover .bottom-right {
    bottom: -5px;
    right: -5px;
}

.service-card:hover {
    background: rgba(11, 9, 20, 0.9);
    transform: translateY(-10px) scale(1.02);
}

.service-card:nth-child(1):hover {
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.05);
}
.service-card:nth-child(1):hover .top-left, .service-card:nth-child(1):hover .bottom-right { border-color: var(--cyan); }

.service-card:nth-child(2):hover {
    border-color: rgba(255, 0, 60, 0.5);
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.2), inset 0 0 20px rgba(255, 0, 60, 0.05);
}
.service-card:nth-child(2):hover .top-left, .service-card:nth-child(2):hover .bottom-right { border-color: var(--magenta); }

.service-card:nth-child(3):hover {
    border-color: rgba(188, 19, 254, 0.5);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.2), inset 0 0 20px rgba(188, 19, 254, 0.05);
}
.service-card:nth-child(3):hover .top-left, .service-card:nth-child(3):hover .bottom-right { border-color: var(--purple); }

.service-card:nth-child(4):hover {
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.05);
}
.service-card:nth-child(4):hover .top-left, .service-card:nth-child(4):hover .bottom-right { border-color: var(--cyan); }

.card-content {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.service-card:hover .icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card:nth-child(1):hover .icon {
    background: var(--cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.service-card:nth-child(2):hover .icon {
    background: var(--magenta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--magenta));
}

.service-card:nth-child(3):hover .icon {
    background: var(--purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--purple));
}

.service-card:nth-child(4):hover .icon {
    background: var(--cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.flickering-card:hover .normal-state .icon {
    background: var(--cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.service-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Hover "ACCESS GRANTED" text */
.service-card::after {
    content: attr(data-hover);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-card:nth-child(1)::after { color: var(--cyan); }
.service-card:nth-child(2)::after { color: var(--magenta); }
.service-card:nth-child(3)::after { color: var(--purple); }
.service-card:nth-child(4)::after { color: var(--cyan); }

.service-card:hover::after {
    bottom: 15px;
    opacity: 1;
    text-shadow: 0 0 5px currentColor;
}



/* Operators Section */
.operators-section {
    margin-top: 6rem;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.operators-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.operator-card {
    background: rgba(11, 9, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    width: 360px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.operator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.operator-card.cyan-theme:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}

.operator-card.magenta-theme:hover {
    border-color: var(--magenta);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
    transform: translateY(-5px);
}

.operator-frame {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.operator-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.operator-card:hover .operator-frame img {
    transform: scale(1.08);
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(6, 5, 17, 0.9));
    pointer-events: none;
}

.operator-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.operator-card.cyan-theme h3 { color: var(--cyan); }
.operator-card.magenta-theme h3 { color: var(--magenta); }

.operator-info .role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.status-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.status-bar .fill {
    height: 100%;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.operator-card.cyan-theme:hover .status-bar .fill {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.operator-card.magenta-theme:hover .status-bar .fill {
    background: var(--magenta);
    box-shadow: 0 0 8px var(--magenta);
}

/* Flickering Card Styling */
.service-card.flickering-card {
    background: transparent !important;
    border-color: transparent !important;
}

/* Background layers */
.card-bg {
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: rgba(11, 9, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flickering-card .normal-bg {
    animation: normalFlicker 10s infinite;
}

.flickering-card .error-bg {
    background: rgba(40, 5, 5, 0.8);
    border-color: rgba(255, 51, 0, 0.3);
    animation: errorFlicker 10s infinite;
}

/* Hover Effects applied to backgrounds based on which is active */
.flickering-card:hover .normal-bg {
    background: rgba(11, 9, 20, 0.9);
    border-color: rgba(0, 243, 255, 0.5); /* Cyan theme hover */
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.05);
}
.flickering-card:hover .normal-bg .top-left,
.flickering-card:hover .normal-bg .bottom-right {
    border-color: var(--cyan);
}

.flickering-card:hover .error-bg {
    background: rgba(40, 5, 5, 0.9);
    border-color: rgba(255, 51, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.4), inset 0 0 15px rgba(255, 51, 0, 0.2);
}
.flickering-card:hover .error-bg .top-left,
.flickering-card:hover .error-bg .bottom-right {
    border-color: #ff3300;
}

/* Base states */
.flickering-card .normal-state {
    animation: normalFlicker 10s infinite;
}

.flickering-card .error-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    animation: errorFlicker 10s infinite;
    transform: translateZ(30px);
}

/* Hover Texts inside card-content */
.flicker-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.flicker-label.granted {
    bottom: -60px; /* Initially hidden below */
    opacity: 0;
    color: var(--cyan);
}
.flickering-card:hover .flicker-label.granted {
    bottom: -25px; /* Aligns with bottom: 15px of card */
    opacity: 1;
}

.flicker-label.denied {
    bottom: 15px; /* Always visible in error state, inside the card */
    opacity: 1;
    color: #ff3300;
    text-shadow: 0 0 5px #ff3300;
}

/* Flicker keyframes to act like a broken neon sign (10s loop)
   0-35%: Normal is visible
   35-40%: Flickers twice
   40-95%: Error is visible (60% split total with flickers)
   95-100%: Flickers back to normal
*/
@keyframes normalFlicker {
    0%, 35% { opacity: 1; }
    35.1%, 36% { opacity: 0; }
    36.1%, 37% { opacity: 1; }
    37.1%, 38% { opacity: 0; }
    38.1%, 39% { opacity: 1; }
    39.1%, 95% { opacity: 0; }
    95.1%, 96% { opacity: 1; }
    96.1%, 97% { opacity: 0; }
    97.1%, 98% { opacity: 1; }
    98.1%, 99% { opacity: 0; }
    99.1%, 100% { opacity: 1; }
}

@keyframes errorFlicker {
    0%, 35% { opacity: 0; }
    35.1%, 36% { opacity: 1; }
    36.1%, 37% { opacity: 0; }
    37.1%, 38% { opacity: 1; }
    38.1%, 39% { opacity: 0; }
    39.1%, 95% { opacity: 1; }
    95.1%, 96% { opacity: 0; }
    96.1%, 97% { opacity: 1; }
    97.1%, 98% { opacity: 0; }
    98.1%, 99% { opacity: 1; }
    99.1%, 100% { opacity: 0; }
}

/* The error state details */
.flickering-card .error-state .icon {
    background: #ff3300;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px #ff3300);
    transform: scale(1.15); 
}

.flickering-card .error-state h2 {
    color: #ff3300;
    text-shadow: 0 0 10px rgba(255, 51, 0, 0.5);
}

.flickering-card .error-state .denied-subtext {
    color: #ff3300;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
}

/* Small Glitch Effect */
.glitch-small {
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px #ff3300 !important;
}
.glitch-small::before {
    text-shadow: -2px 0 var(--cyan) !important;
}
.glitch-small::after {
    text-shadow: 2px 0 var(--cyan) !important; /* using cyan to offset */
}

/* Operator Modal Styling */
.operator-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(6, 5, 17, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.operator-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.operator-modal-content {
    background: rgba(11, 9, 20, 0.85);
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1), inset 0 0 20px rgba(0, 243, 255, 0.05);
    padding: 3rem;
    width: 90%;
    max-width: 650px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
}

.operator-modal-overlay.active .operator-modal-content {
    transform: translateY(0) scale(1);
}

.operator-modal-content.magenta-theme {
    border-color: rgba(255, 0, 60, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.1), inset 0 0 20px rgba(255, 0, 60, 0.05);
}

.operator-modal-content.cyan-theme {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1), inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff3300;
    text-shadow: 0 0 10px #ff3300;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-role {
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
}

.operator-modal-content.magenta-theme .modal-role {
    color: var(--magenta);
}

.operator-modal-content.cyan-theme .modal-role {
    color: var(--cyan);
}

.modal-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.modal-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #b0b0c0;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    .header {
        margin-bottom: 3rem;
        width: 100%;
    }
    .palm-tree-bg {
        display: none;
    }
    .glitch { 
        font-size: clamp(1.8rem, 10vw, 2.5rem); 
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }
    .subtitle { 
        font-size: 0.9rem; 
        letter-spacing: 3px;
    }
    .status-indicator {
        margin-top: 1rem;
    }
    .services-grid { 
        gap: 1rem; 
        grid-template-columns: repeat(2, 1fr); 
    }
    .service-card { 
        padding: 1.5rem 0.5rem; 
    }
    .flickering-card .error-state {
        padding: 1.5rem 0.5rem;
    }
    .flicker-label.granted {
        bottom: -40px;
    }
    .flickering-card:hover .flicker-label.granted {
        bottom: -9px;
    }
    .service-card h2 {
        font-size: 1.1rem;
    }
    .service-card p {
        font-size: 0.75rem;
    }
    .icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    .operators-section {
        margin-top: 4rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .operators-grid {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    .operator-card {
        width: 100%;
        max-width: 360px;
    }
}

/* Cyberpunk HUD Elements */
.hud-bottom-left, .hud-bottom-right {
    position: fixed;
    bottom: 2rem;
    z-index: 10;
    font-family: 'Rajdhani', sans-serif;
    pointer-events: none;
}

.hud-bottom-left {
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--cyan);
    text-shadow: 0 0 5px var(--cyan);
}

.hud-stat {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-connection {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    letter-spacing: 2px;
    opacity: 0.7;
    color: var(--magenta);
    text-shadow: 0 0 5px var(--magenta);
}

.hud-bottom-right {
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.hud-balance {
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    color: var(--magenta);
    text-shadow: 0 0 8px var(--magenta);
}

.currency-symbol {
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.hud-ammo {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    font-family: 'Orbitron', sans-serif;
}

.ammo-current {
    font-size: 2.5rem;
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan);
    line-height: 0.8;
}

.ammo-total {
    font-size: 1.2rem;
    color: var(--magenta);
    line-height: 1;
}

/* HUD Mobile Scaling */
@media (max-width: 768px) {
    .hud-bottom-left, .hud-bottom-right {
        bottom: 0.5rem;
        transform: scale(0.6);
    }
    .hud-bottom-left {
        left: 0.5rem;
        transform-origin: bottom left;
    }
    .hud-bottom-right {
        right: 0.5rem;
        transform-origin: bottom right;
    }
}
