/* Documents Page Styles - Professional Design Following Project Pattern */

.documents-sec {
    margin-top: 8rem;
    margin-bottom: 8rem;
    min-height: auto;
    height: auto;
}

.documents-sec .container {
    max-width: 1400px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .sec-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-header .sec-title .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Document Card */
.document-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-low));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-card:hover::before {
    opacity: 1;
}

/* Document Icon */
.document-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-low));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.document-card:hover .document-icon {
    transform: scale(1.1) rotate(5deg);
}

.document-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Document Content */
.document-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.document-desc {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Document Details */
.document-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark-low);
}

.detail-item i {
    width: 16px;
    color: var(--primary-color);
}

/* Document Actions */
.document-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.document-actions .primaryBtn,
.document-actions .secondaryBtn {
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.document-actions .primaryBtn {
    background: var(--primary-color);
    color: white;
}

.document-actions .primaryBtn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

.document-actions .secondaryBtn {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.document-actions .secondaryBtn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Documents Contact Section */
.documents-contact {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-color-light), var(--card-bg));
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.contact-card:hover::before {
    right: 100%;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark-dark);
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-actions .primaryBtn,
.contact-actions .secondaryBtn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-actions .primaryBtn {
    background: var(--primary-color);
    color: white;
}

.contact-actions .primaryBtn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-actions .secondaryBtn {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.contact-actions .secondaryBtn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 1.5rem;
    }
    
    .section-header .sec-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .documents-sec {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .document-card {
        padding: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header .sec-title {
        font-size: 2rem;
    }
    
    .section-header .sec-title .subtitle {
        font-size: 1rem;
        top: -15px;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions .primaryBtn,
    .contact-actions .secondaryBtn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        padding: 1.2rem;
    }
    
    .document-actions {
        flex-direction: column;
    }
    
    .document-actions .primaryBtn,
    .document-actions .secondaryBtn {
        text-align: center;
        justify-content: center;
    }
    
    .section-header .sec-title {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-content h3 {
        font-size: 1.4rem;
    }
    
    .contact-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .documents-sec {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header .sec-title {
        font-size: 1.6rem;
    }
    
    .section-header .sec-title .subtitle {
        font-size: 0.9rem;
        top: -12px;
    }
    
    .document-content h3 {
        font-size: 1.2rem;
    }
    
    .document-desc {
        font-size: 0.9rem;
    }
    
    .document-icon {
        width: 50px;
        height: 50px;
    }
    
    .document-icon i {
        font-size: 1.2rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 350px) {
    .document-card {
        padding: 1rem;
    }
    
    .section-header .sec-title {
        font-size: 1.4rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-content h3 {
        font-size: 1.2rem;
    }
    
    .document-actions .primaryBtn,
    .document-actions .secondaryBtn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .contact-actions .primaryBtn,
    .contact-actions .secondaryBtn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 180px;
    }
}

/* Animation Classes */
.document-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.document-card:nth-child(even) {
    animation-delay: 0.2s;
}

.document-card:nth-child(odd) {
    animation-delay: 0.1s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation for Document Icons */
.document-icon {
    position: relative;
}

.document-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color-low));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.document-card:hover .document-icon::after {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
