:root {
    --bg-dark: #0f1115;
    --text-main: #f0f2f5;
    --text-muted: #94a3b8;
    --accent: #ff3b30;
    --accent-glow: rgba(255, 59, 48, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: url('background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 40%);
    opacity: 0.15;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite alternate;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    margin-bottom: 3rem;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.message-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 700px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
    animation: fadeUp 1s ease-out;
}

.message-container:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Loader animation */
.loader {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.circle {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: bounce 0.5s alternate infinite ease;
}

.circle:nth-child(2) {
    animation-delay: 0.16s;
}

.circle:nth-child(3) {
    animation-delay: 0.32s;
}

/* Footer styling */
.footer {
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 1s ease-out 0.5s both;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.footer-link:hover::after {
    width: 100%;
}

.separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Animations */
@keyframes bounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.5); }
}

@keyframes pulse {
    0% { opacity: 0.1; transform: scale(0.95); }
    100% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 1.5rem; }
    .title { font-size: 2rem; margin-bottom: 1rem; }
    .subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .message-container { padding: 2.5rem 1.5rem; width: 100%; max-width: 100%; }
    .logo-img { max-height: 100px; margin-bottom: 2rem; }
    .modal-container { width: 95%; max-height: 90vh; }
    .modal-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 1rem; }
    .title { font-size: 1.5rem; }
    .subtitle { font-size: 0.95rem; }
    .message-container { padding: 2rem 1rem; }
    .logo-img { max-height: 80px; }
    .footer-nav { flex-direction: column; gap: 0.5rem; }
    .separator { display: none; }
    .modal-header { padding: 1rem; }
    .modal-content { padding: 1rem; }
    .modal-content h1 { font-size: 1.5rem; }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-container {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.modal-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-content p, .modal-content ul, .modal-content li {
    margin-bottom: 1rem;
}

.modal-content ul {
    padding-left: 2rem;
}

.modal-content .company-info {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.modal-content .company-info p {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
