/* Resources Page Responsive CSS */

/* Enhanced Base Styles */
:root {
  --primary-color: #4361ee;
  --secondary-color: #df950b;
  --accent-color: #f72585;
  --dark-color: #1d2144;
  --light-color: #f8f9fa;
  --text-color: #2b2d42;
  --text-light: #6c757d;
  --transition-speed: 0.3s;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-color);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Base responsive styles */
@media screen and (max-width: 1200px) {
  .hero-container, 
  .top-nav-container,
  .resources-container {
    max-width: 95%;
  }
}

/* Enhanced Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 10%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 0%, transparent 10%);
  animation: pulse 8s infinite ease-in-out;
}

.hero-container {
  position: relative;
  z-index: 2;
  padding: 120px 0 70px;
}

.hero-title {
  animation: fadeIn 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  animation: fadeIn 1.2s ease-out;
  max-width: 700px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 35px;
}

/* Enhanced Resource Cards */
.resources-section {
  padding: 100px 0;
  background-color: var(--light-color);
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  margin-bottom: 70px;
}

.resource-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0,0,0,0.03);
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.resource-card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.resource-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.resource-card:hover .resource-card-header::before {
  opacity: 1;
  transform: scale(1);
}

.resource-card-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  opacity: 0.2;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.resource-card:hover .resource-card-icon {
  transform: scale(1.2) rotate(10deg);
  opacity: 0.3;
}

.resource-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  color: white;
}

.resource-card-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.resource-card-body {
  padding: 25px;
}

.resource-card-description {
  margin-bottom: 25px;
  line-height: 1.8;
  color: var(--text-light);
  font-size: 1.05rem;
}

.resource-card-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-speed);
}

.resource-card-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-speed);
}

.resource-card-link:hover {
  color: var(--accent-color);
}

.resource-card-link:hover::after {
  width: 100%;
}

/* Tablet styles */
@media screen and (max-width: 768px) {
  /* Navigation adjustments */
  .top-nav-links {
    gap: 10px;
  }
  
  /* Hero section adjustments */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Resources grid adjustments */
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .resource-card {
    padding: 15px;
  }
}

/* Scroll Animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 20%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.1) 0%, transparent 20%);
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  background-color: white;
  color: var(--secondary-color);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 80px 0 30px;
}

.footer-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.footer-link a {
  position: relative;
  display: inline-block;
  padding: 3px 0;
  transition: color var(--transition-speed);
}

.footer-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width var(--transition-speed);
}

.footer-link a:hover::after {
  width: 100%;
}

/* Mobile styles */
@media screen and (max-width: 480px) {
  /* Navigation adjustments */
  .top-nav-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .top-nav-logo {
    margin-bottom: 10px;
  }
  
  .top-nav-links {
    width: 100%;
    justify-content: space-around;
  }
  
  /* Hero section adjustments */
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .hero-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Resources grid adjustments */
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .resource-card {
    margin-bottom: 15px;
  }
  
  .resource-title {
    font-size: 1.1rem;
  }
  
  .resource-description {
    font-size: 0.9rem;
  }
  
  /* Button adjustments */
  .btn {
    width: 100%;
    text-align: center;
  }
  
  /* CTA adjustments */
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}

/* Small mobile styles */
@media screen and (max-width: 320px) {
  .hero-title {
    font-size: 1.3rem;
  }
  
  .resource-card {
    padding: 10px;
  }
}