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

:root {
  /* Dynamic & Vibrant Colors */
  --primary: #4F46E5;      /* Indigo */
  --primary-hover: #4338CA;
  --secondary: #10B981;    /* Emerald Teal */
  --accent: #F43F5E;       /* Rose */
  --accent-light: #FFE4E6;
  
  /* Background & Surfaces */
  --bg-color: #F8FAFC;     /* Slate 50 */
  --surface: #FFFFFF;
  --surface-dim: #F1F5F9;  
  
  /* Text Colors */
  --text-main: #0F172A;    /* Slate 900 */
  --text-muted: #64748B;   /* Slate 500 */
  --text-light: #FFFFFF;
  
  /* Utilities */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; border: none; outline: none; }

/* Layout containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
main {
  flex: 1;
}

/* Header & Glassmorphism Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}
header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
nav a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: var(--shadow-md);
}
nav a.btn-primary { color: white; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Tutors List Layout */
.tutors-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 4rem;
}
.tutor-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tutor-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.tutor-card .badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tutor-card .email {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
}
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}
input:focus, textarea:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
textarea { resize: vertical; min-height: 120px; }

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-radius: var(--radius-xl);
  margin-top: 2rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Content Sections */
.page-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}
.content-section {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}
.content-section:nth-child(2n) {
  border-top-color: var(--secondary);
}
.content-section:nth-child(3n) {
  border-top-color: var(--accent);
}
.content-section h2 { margin-bottom: 1rem; color: var(--text-main); }

/* Lead Form Section */
.lead-form-wrapper {
  max-width: 600px;
  margin: 4rem auto;
}
.lead-form-heading { text-align: center; margin-bottom: 2rem; }
.lead-form-heading h2 { font-size: 2rem; font-weight: 700; }

/* Auth Layout */
.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}
.auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 440px;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
}
.auth-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-main);
}
.auth-card .btn-primary { width: 100%; margin-top: 1rem; }

/* Footer */
footer {
  background: #0f172a; /* Slate 900 */
  color: #94a3b8; /* Slate 400 */
  padding: 3rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}