/* Resources Hero Section */
.resources-hero {
    background: linear-gradient(135deg, rgba(0,139,139,0.95), rgba(75,0,130,0.95)),
                url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 150px;
    position: relative;
    text-align: center;
}

.resources-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.resources-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

/* Resources Grid */
.resources-grid {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.resources-grid .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.resources-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.resource-item {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item i {
    font-size: 2.5em;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.resource-item:hover i {
    animation: floatIcon 2s ease-in-out infinite;
}

.resource-item h2 {
    color: var(--text-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.resource-item p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link i {
    font-size: 0.9em;
    margin: 0;
}

/* Resource item colors */
.resource-item.purple {
    border-top: 4px solid var(--purple-btn);
}
.resource-item.purple i {
    color: var(--purple-btn);
}
.resource-item.purple .resource-link {
    background: var(--purple-btn);
}
.resource-item.purple .resource-link:hover {
    background: var(--secondary-color);
}

.resource-item.green {
    border-top: 4px solid var(--green-btn);
}
.resource-item.green i {
    color: var(--green-btn);
}
.resource-item.green .resource-link {
    background: var(--green-btn);
}
.resource-item.green .resource-link:hover {
    background: var(--secondary-color);
}

.resource-item.yellow {
    border-top: 4px solid var(--yellow-btn);
}
.resource-item.yellow i {
    color: var(--yellow-btn);
}
.resource-item.yellow .resource-link {
    background: var(--yellow-btn);
}
.resource-item.yellow .resource-link:hover {
    background: var(--secondary-color);
}

.resource-item.orange {
    border-top: 4px solid var(--orange-btn);
}
.resource-item.orange i {
    color: var(--orange-btn);
}
.resource-item.orange .resource-link {
    background: var(--orange-btn);
}
.resource-item.orange .resource-link:hover {
    background: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Staggered animations */
.resources-column:nth-child(1) .resource-item:nth-child(1) { animation-delay: 0.2s; }
.resources-column:nth-child(1) .resource-item:nth-child(2) { animation-delay: 0.4s; }
.resources-column:nth-child(1) .resource-item:nth-child(3) { animation-delay: 0.6s; }
.resources-column:nth-child(2) .resource-item:nth-child(1) { animation-delay: 0.3s; }
.resources-column:nth-child(2) .resource-item:nth-child(2) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-grid .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2.5em;
    }

    .resource-item {
        padding: 30px 20px;
    }

    .resource-item h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .resources-hero h1 {
        font-size: 2em;
    }

    .resource-item {
        padding: 25px 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .resource-item {
        animation: none !important;
        transform: none !important;
    }
    
    .resource-item:hover {
        transform: none !important;
    }
    
    .resource-item i:hover {
        animation: none !important;
    }
} 