/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000000;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(25, 19, 38, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #96D4FF 0%, #191326 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #96D4FF;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(150, 212, 255, 0.1);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(150, 212, 255, 0.2);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(150, 212, 255, 0.1);
    border: 1px solid rgba(150, 212, 255, 0.3);
    color: #96D4FF;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.language-btn:hover {
    background: rgba(150, 212, 255, 0.2);
    color: #ffffff;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #191326;
    border: 1px solid rgba(150, 212, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #96D4FF;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 14px;
}

.language-dropdown a:hover {
    background: rgba(150, 212, 255, 0.1);
    color: #ffffff;
}

.language-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.language-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    background-image: url('assets/backgroud.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.main-content .container {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Document Header */
.document-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.doc-title {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #191326 0%, #2b2833 100%);
    border: 2px solid #96D4FF;
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(150, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.doc-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(150, 212, 255, 0.4);
}

.doc-title i {
    font-size: 28px;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: #96D4FF;
    font-size: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(150, 212, 255, 0.2);
    border-top: 3px solid #96D4FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading.hidden {
    display: none;
}

/* Document Content */
.document-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(150, 212, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-bottom: 40px;
}

.document-content.show {
    opacity: 1;
    transform: translateY(0);
}

.document-content h1 {
    color: #191326;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #191326 0%, #96D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.document-content h2 {
    color: #191326;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(150, 212, 255, 0.3);
}

.document-content h3 {
    color: #2b2833;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
}

.document-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.document-content ul {
    margin: 1rem 0 1rem 2rem;
}

.document-content li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.document-content a {
    color: #96D4FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.document-content a:hover {
    color: #191326;
    text-decoration: underline;
}

.document-content strong {
    color: #191326;
    font-weight: 600;
}

.document-content em {
    color: #2b2833;
    font-style: italic;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #191326 0%, #2b2833 100%);
    border: none;
    border-radius: 50%;
    color: #96D4FF;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2b2833 0%, #191326 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: #191326;
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand-text {
    font-size: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #96D4FF;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(150, 212, 255, 0.2);
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .doc-title {
        font-size: 20px;
        padding: 16px 24px;
    }
    
    .doc-title i {
        font-size: 24px;
    }
    
    .document-content {
        padding: 30px 20px;
        margin: 0 10px 40px 10px;
    }
    
    .document-content h1 {
        font-size: 2rem;
    }
    
    .document-content h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .language-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .document-content {
        padding: 20px 15px;
    }
    
    .document-content h1 {
        font-size: 1.8rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
