/* ==========================================================================
   HKGATE - Premium Minimalist Glassmorphic Theme CSS (English Only)
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
    --bg-dark: #07080a;
    
    --color-primary: #00f2fe; /* Cyber Cyan */
    --color-secondary: #7f00ff; /* Neon Purple */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #475569;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
    
    --glass-bg: rgba(13, 18, 30, 0.45);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-glow: rgba(0, 242, 254, 0.15);
    --glass-blur: 16px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--bg-dark);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden; /* Lock scroll as it is a single screen page */
}

body {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Interactive Canvas Background --- */
#portalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0c101a 0%, var(--bg-dark) 100%);
    pointer-events: none;
}

.radial-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 254, 0.04) 0%, rgba(127, 0, 255, 0.04) 30%, transparent 70%);
    pointer-events: none;
    transition: background 0.1s ease;
}

/* --- Utility Typography --- */
.font-mono {
    font-family: var(--font-mono);
}

.glow-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.35);
}

.highlight {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.text-white {
    color: #ffffff;
}

.hidden {
    display: none !important;
}

/* --- Glassmorphism Panel --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.06);
}

/* --- Navigation Header --- */
.main-header {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 100;
    padding: 12px 25px;
    border-radius: 50px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    user-select: none;
}

.logo-icon {
    font-size: 1.5rem;
    animation: rotatePortal 15s linear infinite;
}

@keyframes rotatePortal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    user-select: none;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.animated-pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 14px #10b981; }
}

/* --- Main Layout --- */
.content-wrapper.centered-layout {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
}

.hero-section {
    width: 100%;
    max-width: 580px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Main Domain Card --- */
.main-domain-card {
    position: relative;
    padding: 50px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(circle at var(--card-glow-x, 50%) var(--card-glow-y, 50%), rgba(0, 242, 254, 0.12) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-domain-card:hover .card-glow {
    opacity: 1;
}
.card-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    transform: translateZ(30px);
}

.card-header-icon {
    font-size: 2.2rem;
    display: inline-block;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid rgba(0, 242, 254, 0.12);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    transform: translateZ(25px);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 35px;
    transform: translateZ(15px);
}

.card-footer-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.72rem;
    color: var(--text-dark);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(10px);
}

/* --- Footer --- */
.main-footer {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--glass-border);
    padding: 25px 0;
    z-index: 20;
    width: 100%;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.footer-link {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-copyright {
    color: var(--text-dark);
}

/* --- Modals for Legal Pages (Imprint / GDPR) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    padding: 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-content-area {
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.6;
    font-size: 0.92rem;
}

.modal-content-area h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.modal-content-area h3 {
    font-size: 1.1rem;
    margin: 18px 0 8px 0;
    color: var(--text-main);
}

.modal-content-area p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .main-header {
        width: 95%;
        padding: 10px 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .main-domain-card {
        padding: 40px 25px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}
