/* CSS Variables */
:root {
  --primary-color: #0a5eb0;
  --secondary-color: #0a5eb0;
  --accent-color: #ffffff;
  --text-color: #ffffff;
  --light-text: #ffffff;
  --dark-bg: #000000;
  --light-bg: #181d1e;
  --gray-bg: #2a2a2a;
  --transition-speed: 0.3s;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --header-height: 70px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
  height: var(--header-height);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  color: var(--light-text);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 2.5rem;
}

.nav-links a {
  color: var(--light-text);
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: all var(--transition-speed) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Header Section */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-text);
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
}

.header p {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Resources Container */
.resources-container {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
}

/* Resource Cards */
.resource-card {
  background: var(--gray-bg);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
  border: 1px solid rgba(10, 94, 176, 0.2);
}

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }
.resource-card:nth-child(5) { animation-delay: 0.5s; }

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Color-coded resource types */
.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: all var(--transition-speed) ease;
}

/* Registration - Green theme */
.resource-card:nth-child(1)::before {
  background: linear-gradient(90deg, #4caf50, #2e7d32);
}
.resource-card:nth-child(1) .resource-header {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}
.resource-card:nth-child(1) .resource-header h2 {
  color: #2e7d32;
}
.resource-card:nth-child(1) .download-btn {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

/* Conference Policy - Blue theme */
.resource-card:nth-child(2)::before {
  background: linear-gradient(90deg, #2196f3, #1565c0);
}
.resource-card:nth-child(2) .resource-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}
.resource-card:nth-child(2) .resource-header h2 {
  color: #1565c0;
}
.resource-card:nth-child(2) .download-btn {
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

/* Conference Schedule - Purple theme */
.resource-card:nth-child(3)::before {
  background: linear-gradient(90deg, #9c27b0, #6a1b9a);
}
.resource-card:nth-child(3) .resource-header {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}
.resource-card:nth-child(3) .resource-header h2 {
  color: #6a1b9a;
}
.resource-card:nth-child(3) .download-btn {
  background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
}

/* Delegate Handbook - Orange theme */
.resource-card:nth-child(4)::before {
  background: linear-gradient(90deg, #ff9800, #f57c00);
}
.resource-card:nth-child(4) .resource-header {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.resource-card:nth-child(4) .resource-header h2 {
  color: #f57c00;
}
.resource-card:nth-child(4) .download-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Conference Brochure - Teal theme */
.resource-card:nth-child(5)::before {
  background: linear-gradient(90deg, #009688, #00695c);
}
.resource-card:nth-child(5) .resource-header {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}
.resource-card:nth-child(5) .resource-header h2 {
  color: #00695c;
}
.resource-card:nth-child(5) .download-btn {
  background: linear-gradient(135deg, #009688 0%, #00695c 100%);
}

/* Add subtle glow effect on hover */
.resource-card:hover::before {
  height: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.resource-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(10, 94, 176, 0.8) 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}

.resource-header h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.resource-content {
  padding: 2.5rem 2rem;
}

.resource-content p {
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--light-text);
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.download-btn i {
  margin-right: 1rem;
  font-size: 1.8rem;
  transition: transform var(--transition-speed) ease;
}

.download-btn:hover i {
  transform: scale(1.1);
}

/* Date Styling */
.date {
  font-size: 1.3rem;
  color: #888;
  font-weight: 500;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 193, 7, 0.1);
  border-radius: 20px;
  margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Loading Animation */
.loading-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-logo {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .header h1 {
    font-size: 3rem;
  }
  
  .header p {
    font-size: 1.6rem;
  }
  
  .resources-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1rem;
  }
  
  .resource-header h2 {
    font-size: 2rem;
  }
  
  .resource-content p {
    font-size: 1.4rem;
  }
  
  .download-btn {
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
  }
}
