:root[data-theme="light"] {
  --primary: #0057b8;
  --primary-light: #f0f4fa;
  --secondary: #4d94ff;
  --dark: #0a0a0a;
  --light: #ffffff;
  --accent: #f72585;
  --bg-color: #f8fafc;
  --text-color: #1a1a1a;
  --text-gray: #2d3748;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --footer-bg: #f1f3f6;
  --header-bg: #ffffff;
  --gradient-start: #f0f4fa;
  --gradient-end: #f8fafc;
}

:root[data-theme="dark"] {
  --primary: #00eaff;
  --primary-light: rgba(0, 234, 255, 0.08);
  --secondary: #4d94ff;
  --dark: #0a0a0a;
  --light: #ffffff;
  --accent: #f72585;
  --bg-color: #10141a;
  --text-color: #e6e6e6;
  --text-gray: #b0b8c1;
  --card-bg: #181c23;
  --card-border: #23272f;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.5);
  --footer-bg: rgba(16, 20, 26, 0.95);
  --header-bg: rgba(16, 20, 26, 0.95);
  --gradient-start: #181c23;
  --gradient-end: #10141a;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 10px var(--card-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  padding: 0 2rem;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

[data-theme="light"] .logo {
  color: #000000;
  background: none;
  -webkit-text-fill-color: #000000;
}

[data-theme="dark"] .logo {
  background: linear-gradient(45deg, #e6faff, #b3eaff 60%, #00eaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 16px rgba(255,255,255,0.35),
    0 0 2px #fff;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 160px 0 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  transition: background 0.3s ease;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary), #4d94ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem 0;
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--card-shadow);
  color: var(--text-color);
  cursor: pointer;
}

.resource-card::before {
  display: none;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--card-shadow);
  border-color: var(--primary);
}

.resource-card:hover h3 {
  color: var(--primary);
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.resource-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.resource-card .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #e3eaf6;
  color: #0057b8;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Footer Styles */
.footer {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.8));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-text strong {
  color: var(--primary);
  font-weight: 500;
}

.theme-toggle-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.theme-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--light);
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
  opacity: 1;
  color: var(--primary);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  color: var(--light);
}

[data-theme="light"] .theme-btn svg {
  color: #0057b8;
}

.resources-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  width: 100%;
}

.nav-home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0, 87, 184, 0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  color: var(--primary);
  text-decoration: none;
  border: none;
  outline: none;
}

.nav-home-icon:hover, .nav-home-icon:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 87, 184, 0.15);
  transform: translateY(-2px) scale(1.05);
}

.nav-home-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

@media (max-width: 768px) {
  .footer {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .header-content {
    flex-direction: row;
    height: 80px;
    padding: 0 1rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] .footer-text {
  color: #1a1a1a;
}

[data-theme="light"] .footer-text strong {
  color: var(--primary);
}

[data-theme="light"] .footer {
  background: linear-gradient(to top, #ffffff 95%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
} 

[data-theme="dark"] .hero h1 {
  background: linear-gradient(45deg, #e6faff, #b3eaff 60%, #00eaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 16px rgba(255,255,255,0.35),
    0 0 2px #fff;
} 