:root {
    --bg-color: #F5F5F7;
    --text-color: #4A4A4A;
    --text-white: #E2E2E5;
    --primary-color: #ED1C24;
    --about-us-color: #1A73E8;
    --areas-of-work-color: #4CAF50;
    --current-events-color: #FFA726;
    --new-case-law-color: #E53935;
    --new-case-law-bg: #e8e8ea;
    --primary-dark: #971115;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.1);
    interpolate-size: allow-keywords;
}

@font-face {
  font-family: 'Orbitron Regular';
  src: url('/fonts/Orbitron-Regular.ttf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron Medium';
  src: url('/fonts/Orbitron-Medium.ttf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron Bold';
  src: url('/fonts/Orbitron-Bold.ttf') format('opentype');
  font-style: normal;
}

.arhiva-main-section {
    background-image: url('assets/bg-red.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0 11rem 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.arhiva-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.2);
    z-index: 1;
}

.arhiva-main-section .container {
    margin: 0 auto;
    padding: 0 275px;
    position: relative;
    z-index: 3;
}

.arhiva-main-section h1 {
    font-family: "Orbitron Regular", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.arhiva-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.arhiva-item {
    text-decoration: none;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.arhiva-content {
    background: white;
    border-radius: 20px;
    padding: 2rem 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.arhiva-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.arhiva-item:hover .arhiva-content::before {
    transform: translateY(0);
}

.arhiva-item:hover .arhiva-content {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.arhiva-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.arhiva-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.arhiva-item:hover .arhiva-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.arhiva-content h2 {
    font-family: "Orbitron Bold", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arhiva-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.arhiva-arrow {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.arhiva-arrow i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.arhiva-item:hover .arhiva-arrow {
    background: var(--primary-color);
    transform: translateX(5px);
}

.arhiva-item:hover .arhiva-arrow i {
    color: white;
}

.arhiva-dripping-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.arhiva-drip {
    position: absolute;
    background: linear-gradient(to bottom, transparent 0%, #ED1C241f 50%, #ED1C2459 100%);
    border-radius: 0 0 50% 50%;
    animation: arhiva-drip-fall linear infinite;
    opacity: 0;
}

/* Fewer drips for arhiva section - only 12 drips */
.arhiva-drip:nth-child(1) {
    left: 15%;
    width: 3px;
    height: 120px;
    animation-duration: 4.2s;
    animation-delay: 0s;
}

.arhiva-drip:nth-child(2) {
    left: 30%;
    width: 2px;
    height: 95px;
    animation-duration: 3.8s;
    animation-delay: 1.5s;
}

.arhiva-drip:nth-child(3) {
    left: 45%;
    width: 4px;
    height: 140px;
    animation-duration: 4.5s;
    animation-delay: 0.8s;
}

.arhiva-drip:nth-child(4) {
    left: 60%;
    width: 2px;
    height: 100px;
    animation-duration: 3.9s;
    animation-delay: 2.2s;
}

.arhiva-drip:nth-child(5) {
    left: 75%;
    width: 3px;
    height: 115px;
    animation-duration: 4.1s;
    animation-delay: 1.1s;
}

.arhiva-drip:nth-child(6) {
    left: 85%;
    width: 2px;
    height: 85px;
    animation-duration: 3.6s;
    animation-delay: 2.8s;
}

/* Second row with different timing */
.arhiva-drip:nth-child(7) {
    left: 20%;
    width: 3px;
    height: 105px;
    animation-duration: 4.0s;
    animation-delay: 3.5s;
}

.arhiva-drip:nth-child(8) {
    left: 40%;
    width: 2px;
    height: 90px;
    animation-duration: 3.7s;
    animation-delay: 4.2s;
}

.arhiva-drip:nth-child(9) {
    left: 55%;
    width: 4px;
    height: 125px;
    animation-duration: 4.3s;
    animation-delay: 3.8s;
}

.arhiva-drip:nth-child(10) {
    left: 70%;
    width: 2px;
    height: 95px;
    animation-duration: 3.9s;
    animation-delay: 4.5s;
}

.arhiva-drip:nth-child(11) {
    left: 10%;
    width: 3px;
    height: 110px;
    animation-duration: 4.1s;
    animation-delay: 4.0s;
}

.arhiva-drip:nth-child(12) {
    left: 90%;
    width: 2px;
    height: 88px;
    animation-duration: 3.8s;
    animation-delay: 3.3s;
}

@keyframes arhiva-drip-fall {
    0% {
        top: -100px;
        opacity: 0;
        transform: scaleY(0);
    }
    10% {
        opacity: 1;
        transform: scaleY(0.5);
    }
    90% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: scaleY(1);
    }
}

@media (max-width: 1800px) {
    
    .arhiva-main-section {
        padding: 3rem 0 6rem 0;
    }
}

@media (max-width: 1200px) {
    
    .arhiva-main-section h1 {
        font-size: 2.5rem;
    }
    
    .arhiva-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 1224px) {
    
    .arhiva-main-section .container {
        padding: 0 100px;
    }
    
    .arhiva-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .arhiva-content {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .arhiva-main-section {
        background-size: 200% auto;
        background-position: center center;
    }

    .arhiva-main-section::before {
        background-size: 150% auto;
        opacity: 0.3;
        top: -31%;
        left: -75%;
        width: 360%;
        height: 151%;
        background-image: url('assets/bg-red.png');
        background-position: center;
        transform: rotate(90deg);
        z-index: -1;
    }

    .arhiva-drip:nth-child(n+9) {
        display: none;
    }
    
    .arhiva-drip {
        animation-duration: 2.5s !important;
    }
    
    .arhiva-main-section {
        background-image: none;
    }
    
    .arhiva-main-section h1 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .arhiva-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .arhiva-content {
        padding: 2rem 1.5rem;
    }
    
    .arhiva-content h2 {
        font-size: 1.3rem;
    }
    
    .arhiva-icon {
        width: 70px;
        height: 70px;
    }
    
    .arhiva-icon i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .arhiva-main-section {
        padding: 1.5rem 0 3rem 0;
    }
    
    .arhiva-main-section .container {
        padding: 0 1.5rem;
    }
    
    .arhiva-main-section h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 2.5rem;
    }
    
    .arhiva-content {
        padding: 1.8rem 1.2rem;
    }
    
    .arhiva-content h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .arhiva-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .arhiva-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .arhiva-icon i {
        font-size: 1.5rem;
    }
    
    .arhiva-arrow {
        width: 45px;
        height: 45px;
    }
    
    .arhiva-arrow i {
        font-size: 1rem;
    }

    .arhiva-drip:nth-child(n+7) {
        display: none;
    }
    
    .arhiva-drip {
        width: 2px !important;
        height: 80px !important;
    }
}

@media (max-width: 360px) {
    .arhiva-main-section .container {
        padding: 0 1rem;
    }
    
    .arhiva-main-section h1 {
        font-size: 1.6rem;
    }
    
    .arhiva-content {
        padding: 1.5rem 1rem;
    }
}