/* 
   SI HUB - Intelligent Engineering Design System
   Thematic: High-Tech / Industrial / Premium
*/

:root {
    --navy-blue: #0A192F;
    --navy-blue-rgb: 10, 25, 47;
    --tech-cyan: #00E5FF;
    --tech-cyan-rgb: 0, 229, 255;
    --tech-red: #FF3366;
    --tech-green: #00FF9D;
    --slate-grey: #64748B;
    --text-light: #E2E8F0;
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(0, 229, 255, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-heading: 'Montserrat', sans-serif;
}

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

body {
    background-color: #030712;
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Image Overlay */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #030712;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
}

/* Scanline / Digital Effect */
.bg-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

/* --- Pre-loader (Boot Sequence) --- */
#boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    font-family: var(--font-mono);
    color: var(--tech-cyan);
    font-size: 1.1rem;
    transition: opacity 0.8s ease-in-out;
}

.boot-line {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease-out;
}

.boot-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: var(--tech-cyan);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Main Dashboard --- */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

main.visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border: 2px solid var(--tech-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.logo-si {
    width: 50px;
    height: 50px;
    background: #000;
    border: 2px solid var(--tech-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-si img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--tech-cyan);
}

.system-status {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--slate-grey);
    text-align: right;
}

.status-indicator {
    color: var(--tech-green);
    font-weight: bold;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-family: var(--font-mono);
    color: var(--tech-cyan);
    letter-spacing: 1px;
}

/* Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--tech-cyan);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
}

.tool-card:hover::before {
    left: 100%;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));
}

.tool-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
    text-transform: uppercase;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--slate-grey);
    margin-bottom: 20px;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.tool-status {
    color: var(--tech-cyan);
}

.btn-open {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* Footer */
footer {
    margin-top: 100px;
    padding-bottom: 40px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--slate-grey);
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .system-status {
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Modal System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 15, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--tech-cyan);
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--slate-grey);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--tech-red);
    border-color: var(--tech-red);
    transform: rotate(90deg);
}

.modal-header-si {
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.modal-header-si h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 2px;
}

.modal-header-si p {
    color: var(--tech-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 5px;
}

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

.matrix-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s;
}

.matrix-card:hover {
    border-color: var(--tech-cyan);
    background: rgba(0, 229, 255, 0.03);
}

.matrix-card h4 {
    color: var(--tech-cyan);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.matrix-card ul {
    list-style: none;
}

.matrix-card ul li {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.matrix-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--tech-cyan);
}

.modal-footer-si {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.modal-footer-si h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.contract-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-si-action {
    padding: 15px 30px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-pne { border: 1px solid var(--tech-cyan); color: var(--tech-cyan); }
.btn-pne:hover { background: var(--tech-cyan); color: var(--navy-blue); box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }

.btn-pse { border: 1px solid #B026FF; color: #B026FF; }
.btn-pse:hover { background: #B026FF; color: #fff; box-shadow: 0 0 20px rgba(176, 38, 255, 0.5); }

.btn-poe { border: 1px solid #00FF66; color: #00FF66; }
.btn-poe:hover { background: #00FF66; color: var(--navy-blue); box-shadow: 0 0 20px rgba(0, 255, 102, 0.5); }

/* Hide scrollbar for modal content but keep functionality */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

/* --- MODAL CLOUD HETZNER --- */
.cloud-theme {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important; /* Hetzner Red hint */
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.1) !important;
}

.hetzner-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #ff0000;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.cloud-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.cloud-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.cloud-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.3);
}

.cloud-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cloud-card h4 {
    color: #ff0000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.cloud-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.infra-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.btn-hetzner {
    background: linear-gradient(90deg, #ff0000, #b91c1c) !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3) !important;
    color: #fff !important;
}

.btn-hetzner:hover {
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.5) !important;
    transform: scale(1.05) translateY(-2px);
}
