@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', 'VT323', monospace;
    background: #1a1f2e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(168, 218, 220, 0.03) 0px,
            rgba(168, 218, 220, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

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

.container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: flicker 0.15s infinite;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #a8dadc;
    text-shadow: 0 0 10px rgba(168, 218, 220, 0.5);
    border: 2px solid #a8dadc;
    padding: 20px;
    background: rgba(168, 218, 220, 0.08);
    position: relative;
}

header::before {
    content: '> ';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: blink 1s infinite;
}

header h1 {
    font-family: 'VT323', monospace;
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

header p {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 2px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.service-card {
    background: rgba(26, 31, 46, 0.6);
    border: 2px solid #a8dadc;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #a8dadc;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(168, 218, 220, 0.2);
    position: relative;
    overflow: visible;
    flex: 0 1 auto;
}

.service-card:hover {
    background: rgba(168, 218, 220, 0.12);
    box-shadow: 0 0 25px rgba(168, 218, 220, 0.4);
}

.service-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(26, 31, 46, 0.95);
    border: 2px solid #a8dadc;
    padding: 8px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #a8dadc;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(168, 218, 220, 0.3);
}

.service-card::after::before {
    content: '// ';
    opacity: 0.6;
}

.service-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.service-icon {
    font-size: 1.3rem;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.service-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #b4d4e1;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.service-name::before {
    content: '[ ';
    color: #a8dadc;
}

.service-name::after {
    content: ' ]';
    color: #a8dadc;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(168, 218, 220, 0.1);
    border: 2px solid #a8dadc;
    color: #a8dadc;
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(168, 218, 220, 0.5);
    box-shadow: 0 0 10px rgba(168, 218, 220, 0.2);
}

.logout-btn::before {
    content: '[ ';
}

.logout-btn::after {
    content: ' ]';
}

.logout-btn:hover {
    background: rgba(168, 218, 220, 0.2);
    box-shadow: 0 0 20px rgba(168, 218, 220, 0.4);
    transform: scale(1.05);
}

footer {
    text-align: center;
    color: #a8dadc;
    margin-top: 40px;
    opacity: 0.6;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .service-card {
        justify-content: center;
    }

    .logout-btn {
        position: static;
        display: block;
        margin: 0 auto 20px;
        width: fit-content;
    }

    header {
        padding-top: 20px;
    }
}

/* Authelia-specific styles (Material-UI components) */
#root {
    animation: flicker 0.15s infinite;
    position: relative;
    z-index: 2;
}

.MuiPaper-root {
    background: rgba(168, 218, 220, 0.08) !important;
    border: 2px solid #a8dadc !important;
    box-shadow: 0 0 15px rgba(168, 218, 220, 0.2) !important;
}

.MuiTypography-root,
.MuiInputBase-input,
.MuiFormLabel-root {
    font-family: 'Share Tech Mono', monospace !important;
    color: #a8dadc !important;
    text-shadow: 0 0 5px rgba(168, 218, 220, 0.3);
}

.MuiButton-root {
    font-family: 'VT323', monospace !important;
    background: rgba(168, 218, 220, 0.15) !important;
    border: 2px solid #a8dadc !important;
    color: #a8dadc !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.MuiButton-root:hover {
    background: rgba(168, 218, 220, 0.25) !important;
    box-shadow: 0 0 20px rgba(168, 218, 220, 0.4) !important;
    transform: scale(1.02);
}

.MuiOutlinedInput-root {
    border-color: #a8dadc !important;
}

.MuiOutlinedInput-notchedOutline {
    border-color: #a8dadc !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'VT323', monospace !important;
    color: #b4d4e1 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Resume content specific styles */
#resume-content h1,
#resume-content h2 {
    margin-bottom: 20px;
    margin-top: 30px;
    border-bottom: 2px solid #a8dadc;
    padding-bottom: 10px;
}

#resume-content h3 {
    margin-bottom: 10px;
    margin-top: 40px;
}

#resume-content h4,
#resume-content h5,
#resume-content h6 {
    margin-bottom: 10px;
    margin-top: 15px;
}

#resume-content h1 {
    margin-top: 0;
}

#resume-content p {
    margin-bottom: 15px;
    margin-top: 5px;
}

#resume-content ul,
#resume-content ol {
    margin-bottom: 20px;
    margin-top: 10px;
    padding-left: 25px;
}

#resume-content li {
    margin-bottom: 8px;
}

#resume-content strong {
    color: #b4d4e1;
}

#resume-content a {
    color: #b4d4e1;
    text-decoration: underline;
}

#resume-content a:hover {
    color: #a8dadc;
}

#resume-content table {
    margin-bottom: 20px;
    margin-top: 10px;
    border-collapse: collapse;
    width: 100%;
}

#resume-content th,
#resume-content td {
    border: 1px solid #a8dadc;
    padding: 10px;
    text-align: left;
}

#resume-content th {
    background: rgba(168, 218, 220, 0.1);
}

.MuiAlert-root {
    background: rgba(168, 218, 220, 0.1) !important;
    border: 1px solid #a8dadc !important;
    color: #a8dadc !important;
}
