/* ENHANCED BRUTALIST THEME - BIRTAMOD.ONLINE LEGAL DOCUMENTS */

/* GOOGLE FONTS - CLEAR BOLD FONTS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

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

/* BASE STYLES */
:root {
    --black: #0a0a0a;
    --white: #FFFFFF;
    --gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --red: #ff3333;
    --red-hover: #cc0000;
    --tint: rgba(255, 51, 51, 0.03);
    --border: 3px solid var(--white);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray) 100%);
    background-attachment: fixed;
    color: var(--white);
    line-height: 1.7;
    font-size: 17px;
    font-weight: 500;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tint);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* HEADER */
.header {
    background: var(--black);
    color: var(--white);
    padding: 80px 0;
    border-bottom: var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--red) 48%, var(--red) 52%, transparent 52%);
    background-size: 50px 50px;
    opacity: 0.03;
    pointer-events: none;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.logo {
    max-width: 300px;
    height: auto;
    display: inline-block;
    transition: var(--transition);
    filter: brightness(1.1);
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.3) drop-shadow(0 0 20px var(--red));
}

.site-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.4s both;
    text-shadow: 2px 2px 0px var(--red);
}

.site-title:hover {
    animation: glitch 0.3s ease;
}

.subtitle {
    font-size: 22px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.6s both;
    opacity: 0.9;
}

/* MAIN CONTENT */
.main {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.intro {
    border: var(--border);
    padding: 40px;
    margin-bottom: 80px;
    background: var(--gray);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.8s both;
    transition: var(--transition);
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    transition: var(--transition);
}

.intro:hover::before {
    left: 100%;
    opacity: 0.1;
    transition: left 0.8s ease;
}

.intro:hover {
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2);
}

.intro p {
    font-size: 20px;
    line-height: 1.9;
    font-weight: 500;
    text-align: center;
}

/* SECTION TITLES */
.section-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-bottom: var(--border);
    padding-bottom: 20px;
    animation: slideInRight 0.8s ease both;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* DOCUMENTS SECTION */
.documents {
    margin-bottom: 80px;
}

.doc-item {
    border: var(--border);
    padding: 50px;
    margin-bottom: 40px;
    background: var(--gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.doc-item:nth-child(1) {
    animation-delay: 1s;
}

.doc-item:nth-child(2) {
    animation-delay: 1.2s;
}

.doc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.1), transparent);
    transition: left 0.6s ease;
}

.doc-item:hover::before {
    left: 100%;
}

.doc-item:hover {
    background: var(--light-gray);
    border-color: var(--red);
    box-shadow: 0 10px 40px rgba(255, 51, 51, 0.3);
    transform: translateY(-5px);
}

.doc-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    opacity: 0.05;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--transition);
}

.doc-item:hover .doc-number {
    opacity: 0.15;
    color: var(--red);
}

.doc-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-transform: uppercase;
    transition: var(--transition);
}

.doc-item:hover .doc-title {
    color: var(--red);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.doc-description {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.9;
}

.doc-link {
    display: inline-block;
    padding: 18px 40px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    border: 3px solid var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.doc-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--red);
    transition: left 0.4s ease;
    z-index: -1;
}

.doc-link:hover::before {
    left: 0;
}

.doc-link:hover {
    color: var(--white);
    border-color: var(--red);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.4);
}

/* CONTACT SECTION */
.contact {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 1.4s both;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-item {
    border: var(--border);
    padding: 35px;
    background: var(--gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: width 0.4s ease;
}

.contact-item:hover::after {
    width: 100%;
}

.contact-item:hover {
    background: var(--light-gray);
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.2);
}

.contact-item strong {
    display: block;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--red);
}

.contact-item p {
    font-size: 17px;
    font-weight: 500;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.contact-item a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* META SECTION */
.meta {
    border: var(--border);
    padding: 40px;
    text-align: center;
    background: var(--gray);
    animation: fadeInUp 0.8s ease 1.6s both;
    transition: var(--transition);
}

.meta:hover {
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.2);
}

.meta p {
    margin: 20px 0;
    font-size: 17px;
    font-weight: 600;
}

.back-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--white);
    transition: var(--transition);
    padding: 5px 10px;
}

.back-link:hover {
    background: var(--red);
    border-bottom-color: var(--red);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.4);
}

/* FOOTER */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0;
    border-top: var(--border);
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 15px;
    margin: 12px 0;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.8;
}

/* DOCUMENT PAGES */
.document-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px;
    animation: fadeIn 0.8s ease;
}

.doc-header {
    background: var(--black);
    color: var(--white);
    padding: 60px 50px;
    margin-bottom: 50px;
    border: var(--border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.doc-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--red) 48%, var(--red) 52%, transparent 52%);
    background-size: 50px 50px;
    opacity: 0.03;
    pointer-events: none;
}

.doc-header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px var(--red);
}

.back-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    border: 3px solid var(--white);
    margin-bottom: 40px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--red);
    transition: left 0.4s ease;
    z-index: -1;
}

.back-button:hover::before {
    left: 0;
}

.back-button:hover {
    color: var(--white);
    border-color: var(--red);
    transform: translateX(-10px);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.4);
}

.last-updated {
    background: var(--gray);
    padding: 25px;
    border: var(--border);
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease 0.6s both;
    transition: var(--transition);
}

.last-updated:hover {
    border-color: var(--red);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.2);
}

.doc-content {
    background: var(--gray);
    padding: 50px;
    border: var(--border);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.doc-content h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 50px 0 25px 0;
    text-transform: uppercase;
    border-bottom: var(--border);
    padding-bottom: 20px;
    color: var(--red);
}

.doc-content h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    border-left: 6px solid var(--red);
    padding-left: 20px;
    transition: var(--transition);
}

.doc-content h2:hover {
    transform: translateX(10px);
}

.doc-content h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    color: var(--red);
}

.doc-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.doc-content p {
    margin-bottom: 20px;
    line-height: 1.9;
    text-align: justify;
    font-weight: 400;
    font-size: 17px;
}

.doc-content ul,
.doc-content ol {
    margin: 25px 0 25px 50px;
}

.doc-content li {
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 400;
}

.doc-content strong {
    font-weight: 700;
    color: var(--red);
}

.doc-content em {
    font-style: italic;
}

.doc-content a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--red);
    transition: var(--transition);
}

.doc-content a:hover {
    background: var(--red);
    color: var(--white);
    padding: 2px 8px;
}

.doc-content hr {
    border: none;
    border-top: var(--border);
    margin: 50px 0;
}

.doc-content code {
    background: var(--black);
    color: var(--red);
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid var(--red);
    font-weight: 600;
}

.doc-content pre {
    background: var(--black);
    padding: 25px;
    border: var(--border);
    overflow-x: auto;
    margin: 25px 0;
}

.doc-content blockquote {
    border-left: 6px solid var(--red);
    padding-left: 30px;
    margin: 25px 0;
    font-style: italic;
    opacity: 0.9;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: var(--border);
}

.doc-content table th,
.doc-content table td {
    border: 2px solid var(--white);
    padding: 18px;
    text-align: left;
}

.doc-content table th {
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-content table tr:hover {
    background: var(--light-gray);
}

.doc-footer {
    border: var(--border);
    padding: 40px;
    margin-top: 80px;
    text-align: center;
    background: var(--gray);
    animation: fadeInUp 0.8s ease 1s both;
    transition: var(--transition);
}

.doc-footer:hover {
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.2);
}

.doc-footer p {
    margin: 15px 0;
    font-weight: 600;
}

.doc-footer a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--white);
    transition: var(--transition);
    padding: 5px 10px;
}

.doc-footer a:hover {
    background: var(--red);
    border-bottom-color: var(--red);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.4);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border: 2px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-hover);
}

/* SELECTION */
::selection {
    background: var(--red);
    color: var(--white);
}

/* PRINT STYLES */
@media print {
    body {
        background: white;
        color: black;
    }

    .header,
    .footer,
    .back-button,
    .doc-footer {
        display: none;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .site-title {
        font-size: 38px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 28px;
    }

    .doc-title {
        font-size: 24px;
    }

    .doc-item {
        padding: 35px 25px;
    }

    .doc-number {
        font-size: 48px;
    }

    .doc-link {
        padding: 15px 30px;
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .doc-header h1 {
        font-size: 32px;
    }

    .doc-content {
        padding: 30px 20px;
    }

    .doc-content h1 {
        font-size: 28px;
    }

    .doc-content h2 {
        font-size: 24px;
    }

    .doc-content h3 {
        font-size: 20px;
    }

    .doc-content ul,
    .doc-content ol {
        margin-left: 30px;
    }

    .logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 50px 0;
    }

    .site-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .main {
        padding: 50px 0;
    }

    .intro,
    .doc-item,
    .meta {
        padding: 25px 20px;
    }

    .doc-title {
        font-size: 20px;
    }

    .doc-link {
        padding: 12px 20px;
        font-size: 13px;
    }

    .contact-item {
        padding: 25px 20px;
    }

    .doc-content {
        padding: 25px 15px;
    }

    .logo {
        max-width: 150px;
    }
}

/* PERFORMANCE OPTIMIZATION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
