/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #4a90e2;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #001c38;
}

/* Resources Section Styles */
.resources-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.resources-section-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources-section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.resources-section-title h2 {
    font-size: 2.5rem;
    color: var(--cyber-light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.resources-section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.resources-section-title p {
    font-size: 1.2rem;
    color: #c2c2c2;;
    max-width: 700px;
    margin: 0 auto;
}

.resources-section-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.resources-section-item {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 280px;
    background-color: #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.resources-section-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.resources-section-item-visual {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.resources-section-item-visual:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.resources-section-item-visual[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.resources-section-item-visual[style*="background-image"]:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    z-index: 1;
}

.resources-section-item-visual[style*="background-image"] .resources-section-item-icon {
    z-index: 2;
}

.resources-section-item-visual-1 {
    background-color: #3498db;
    position: relative;
}

.resources-section-item-visual-1:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.2) 10px,
        rgba(255, 255, 255, 0.2) 20px
    );
}

.resources-section-item-visual-2 {
    background-color: #2ecc71;
    position: relative;
}

.resources-section-item-visual-2:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 30%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0.1) 80%, transparent 80%);
    background-size: 40px 40px;
}

.resources-section-item-visual-3 {
    background-color: #9b59b6;
    position: relative;
}

.resources-section-item-visual-3:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
}

.resources-section-item-visual-4 {
    background-color: #e74c3c;
    position: relative;
}

.resources-section-item-visual-4:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.5) 3px, transparent 3px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 3px, transparent 3px);
    background-size: 75% 75% !important;
}

.resources-section-item-visual-5 {
    background-color: #f39c12;
    position: relative;
}

.resources-section-item-visual-5:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 5%, transparent 5%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 5%, transparent 5%),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.2) 5%, transparent 5%),
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.2) 5%, transparent 5%);
    background-size: 40px 40px;
}

.resources-section-item-visual-6 {
    background-color: #1abc9c;
    position: relative;
}

.resources-section-item-visual-6:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 60px 60px;
}

.resources-section-item-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.resources-section-item-content {
    padding: 30px;
}

.resources-section-item-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.resources-section-item-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.resources-section-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.resources-section-item-size {
    display: flex;
    align-items: center;
}

.resources-section-item-size i {
    margin-right: 5px;
}

.resources-section-buttons {
    display: flex;
    gap: 10px;
}

.resources-section-preview-btn,
.resources-section-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resources-section-preview-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.resources-section-preview-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.resources-section-download-btn {
    background-color: var(--primary-color);
    color: white;
}

.resources-section-download-btn:hover {
    background-color: #2980b9;
}

/* Modal Styles */
.resources-section-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.resources-section-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.resources-section-modal {
    background-color: #e4e4e4;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.resources-section-modal-overlay.active .resources-section-modal {
    transform: translateY(0);
    opacity: 1;
}

.resources-section-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.resources-section-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.resources-section-modal-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-right: 30px;
}

.resources-section-modal-content {
    padding: 30px;
}

.resources-section-modal-preview {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.resources-section-modal-preview-pdf,
.resources-section-modal-preview-excel,
.resources-section-modal-preview-word,
.resources-section-modal-preview-video,
.resources-section-modal-preview-images,
.resources-section-modal-preview-book {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.resources-section-modal-preview-pdf {
    background-color: #e74c3c;
}

.resources-section-modal-preview-excel {
    background-color: #2ecc71;
}

.resources-section-modal-preview-word {
    background-color: #3498db;
}

.resources-section-modal-preview-video {
    background-color: #9b59b6;
}

.resources-section-modal-preview-images {
    background-color: #f39c12;
}

.resources-section-modal-preview-book {
    background-color: #1abc9c;
}

.resources-section-modal-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666;
}

.resources-section-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #888;
}

.resources-section-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resources-section-modal-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.resources-section-modal-download:hover {
    background-color: #2980b9;
}

/* Decorative Elements */
.resources-section-shape-decorator-1 {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.resources-section-shape-decorator-2 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.resources-section-dots-decorator {
    position: absolute;
    top: 80px;
    right: 10%;
    z-index: 1;
}

.resources-section-dots-decorator span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 12px;
    opacity: 0.5;
}

.resources-section-wave-decorator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ecf0f1'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ecf0f1'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ecf0f1'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
    transform: rotate(180deg);
}

/* Animations */
@keyframes fadeIn {

    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes dotsPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.resources-section {
    animation: fadeIn 1.2s ease-out;
}

.resources-section-title h2 {
    position: relative;
    display: inline-block;
}

.resources-section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #24abff);
    animation: expandWidth 1.5s ease-out forwards 0.5s;
}

@keyframes expandWidth {
    from { width: 10px; }
    to { width: 70px; }
}

.resources-section-shape-decorator-1 {
    animation: float 8s ease-in-out infinite;
}

.resources-section-shape-decorator-2 {
    animation: float 12s ease-in-out infinite reverse;
}

.resources-section-dots-decorator span {
    animation: dotsPulse 3s ease-in-out infinite;
}

.resources-section-dots-decorator span:nth-child(1) { animation-delay: 0s; }
.resources-section-dots-decorator span:nth-child(2) { animation-delay: 0.5s; }
.resources-section-dots-decorator span:nth-child(3) { animation-delay: 1s; }
.resources-section-dots-decorator span:nth-child(4) { animation-delay: 1.5s; }
.resources-section-dots-decorator span:nth-child(5) { animation-delay: 2s; }
.resources-section-dots-decorator span:nth-child(6) { animation-delay: 2.5s; }

.resources-section-item {
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.resources-section-item:nth-child(1) { animation-delay: 0.1s; }
.resources-section-item:nth-child(2) { animation-delay: 0.2s; }
.resources-section-item:nth-child(3) { animation-delay: 0.3s; }
.resources-section-item:nth-child(4) { animation-delay: 0.4s; }
.resources-section-item:nth-child(5) { animation-delay: 0.5s; }
.resources-section-item:nth-child(6) { animation-delay: 0.6s; }

.resources-section-item-icon {
    animation: float 5s ease-in-out infinite;
}

.resources-section-item-visual:after {
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

.resources-section-download-btn:hover i {
    animation: pulse 1s infinite;
}

.resources-section-modal {
    animation: slideInUp 0.3s ease-out;
}

.resources-section-modal-preview-pdf i,
.resources-section-modal-preview-excel i,
.resources-section-modal-preview-word i,
.resources-section-modal-preview-book i {
    animation: float 3s ease-in-out infinite;
}

.resources-section-modal-preview-video i,
.resources-section-modal-preview-images i {
    animation: pulse 2s ease-in-out infinite;
}

.resources-section-item-visual-1 {
    background: linear-gradient(45deg, #3498db, #2980b9);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.resources-section-item-visual-2 {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.resources-section-item-visual-3 {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.resources-section-item-visual-4 {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.resources-section-item-visual-5 {
    background: linear-gradient(45deg, #f39c12, #d35400);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.resources-section-item-visual-6 {
    background: linear-gradient(45deg, #1abc9c, #16a085);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Loading indicator */
.loading-resources {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-color, #fff);
    animation: pulse 1.5s infinite;
}

.no-resources {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-color, #fff);
}

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