@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* Global Styles */
:root {
  /* Modern Color Palette */
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-accent: #ec4899;
  --color-accent-light: #f472b6;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --color-gradient-2: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  color: var(--color-text-primary);
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
  font-family: var(--font-display);
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
  font-family: var(--font-display);
  color: var(--color-text-primary);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Page Headers */
.page-header {
  margin-bottom: 8rem;
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.hero-compact {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-primary), #0052a3);
  color: white;
  text-align: center;
}

.hero-compact h1 {
  color: white;
  margin: 0 0 var(--space-md) 0;
}

.hero-compact .lead {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

ul, ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #4338ca 100%);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn:active,
.btn:focus {
  color: white;
  outline: none;
}

.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.9rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
}

/* Force white text on all button states to prevent grey hover */
button.btn, a.btn, input[type="button"].btn {
  color: white !important;
}

button.btn:hover, a.btn:hover, input[type="button"].btn:hover {
  color: white !important;
}

button.btn:active, a.btn:active, input[type="button"].btn:active {
  color: white !important;
}

/* Forms */
input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Material Design Icons */
.material-icons {
  display: inline-flex;
  vertical-align: middle;
  font-size: 1.5rem;
  height: 1.5rem;
  width: 1.5rem;
  line-height: 1.5rem;
  color: var(--color-primary);
}

.skill-icon {
  font-size: 1.3rem;
  height: 1.3rem;
  width: 1.3rem;
  line-height: 1.3rem;
  margin-right: var(--space-xs);
  vertical-align: middle;
}

.newsletter-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.newsletter-features li {
  display: flex;
  align-items: center;
  padding: var(--space-sm) 0;
  margin: 0;
  color: var(--color-text-primary);
}

.newsletter-features .material-icons {
  margin-right: var(--space-md);
  flex-shrink: 0;
}

/* Cards */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header & Navigation */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--color-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}

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

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

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--color-surface) 0%, #f3f4f6 100%);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  margin-top: 0;
  color: var(--color-primary);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Improve contrast for secondary text */
.org-card p,
.guide-card p,
.gap-card p,
.involvement-card p {
  color: var(--color-text-primary);
}

.why-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-primary);
}

.why-card h3 .material-icons {
  margin-right: 0;
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }

  .nav-menu {
    gap: var(--space-md);
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
