/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 40px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Announcements Box */
.announcement-box {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 350px;
    padding: 25px;
    border-radius: 24px;
    text-align: left;
    z-index: 10;
    animation: fadeInRight 1s ease-out;
}

.announcement-box h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item {
    border-left: 2px solid var(--red-base);
    padding-left: 15px;
}

.announcement-item .date {
    font-size: 0.7rem;
    color: var(--red-base);
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}

.announcement-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Legal Showcase Section */
.legal-showcase {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--secondary);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.legal-image {
    flex: 1;
    height: 500px;
    background: url('../assets/legal_courtroom_prosecutor_1778362987521.png');
    background-size: cover;
    background-position: center;
}

.legal-content {
    flex: 1;
    padding: 60px;
}

/* Gallery Section (Sliding Marquee) */
.gallery-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.gallery-section::before, .gallery-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-section::before { left: 0; background: linear-gradient(to right, var(--primary), transparent); }
.gallery-section::after { right: 0; background: linear-gradient(to left, var(--primary), transparent); }

.gallery-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollGallery 60s linear infinite;
    padding: 20px 0;
}

.gallery-item {
    flex: 0 0 500px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px; /* Thinner for elegance */
    background: linear-gradient(135deg, #ff1a1a, #dc2626, #7f1d1d, #dc2626, #ff1a1a);
    background-size: 200% auto;
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s ease;
    z-index: 2;
    pointer-events: none;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px;
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.6) grayscale(0.4);
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 15px 45px rgba(220, 38, 38, 0.25);
    z-index: 5;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    filter: brightness(1) grayscale(0);
    transform: scale(1.05);
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-500px * 3 - 40px * 3)); }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
    .announcement-box { position: relative; bottom: 0; right: 0; width: 100%; margin-top: 40px; }
    .legal-showcase { flex-direction: column; }
    .legal-image { width: 100%; height: 300px; }
}
