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

:root {
  --primary: #3b82f6;
  --secondary: #f0f9ff;
  --accent: #10b981;
  --text: #1f2937;
  --bg: #ffffff;
  --shadow: rgba(59, 130, 246, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

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

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

/* Custom hero styles */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

/* Card system */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: 0 25px 50px var(--shadow-dark);
}

.card img {
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.05);
}

/* Button system */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid var(--primary);
  min-height: 44px;
}

.btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
  z-index: -1;
}

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

.btn:hover {
  color: white;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary::before {
  background: var(--primary);
}

.btn-secondary:hover {
  color: white;
}

/* Section dividers */
.section-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--secondary) 0%, transparent 50%, var(--accent) 100%);
  clip-path: ellipse(70% 100% at 50% 100%);
}

/* Navigation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-menu a {
  position: relative;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 767px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
  background: white;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 400px;
  z-index: 1000;
  display: none;
}

.cookie-consent.show {
  display: block;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
}

/* Custom page-specific styles */
.about-hero {
  background: linear-gradient(45deg, var(--accent) 0%, var(--secondary) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.faq-item {
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  margin-top: 10px;
}

.faq-answer.open {
  display: block;
}

/* Override Tailwind defaults */
.bg-white { background-color: white !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.shadow { box-shadow: 0 10px 30px var(--shadow) !important; }