:root {
  --gradient-main: linear-gradient(135deg, #0ea5e9, #0284c7, #10b981);
  --text-light: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-card: rgba(255, 255, 255, 0.95);
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--gradient-main);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login {
  background: transparent;
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-login:hover {
  background: rgba(255,255,255,0.1);
}

.btn-signup, .btn-cta, .btn-primary {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 0.6rem 1.5rem;
}

.btn-signup:hover, .btn-cta:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-menu {
  background: transparent;
  color: var(--text-light);
  font-size: 1.5rem;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 8rem 5% 6rem;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.btn-cta {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* Consultants Grid */
.consultants-section {
  padding: 5rem 5%;
}

.consultants-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.consultant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.consultant-card {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.consultant-card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.status-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.status-indicator.online {
  background: #dcfce7;
  color: #166534;
}

.status-indicator.offline {
  background: #f1f5f9;
  color: #64748b;
}

.status-indicator.busy {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.rating {
  color: #f59e0b;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  gap: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid #cbd5e1;
  flex: 1;
  padding: 0.6rem;
}

.btn-primary {
  flex: 1;
  padding: 0.6rem;
}

/* About Section */
.about-section {
  padding: 5rem 5%;
  background: rgba(0,0,0,0.2);
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-container p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* Footer */
.home-footer {
  padding: 4rem 5% 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  font-size: 1.2rem;
}

.social-icons i {
  cursor: pointer;
  transition: transform 0.3s;
}

.social-icons i:hover {
  transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body { display: flex; flex-direction: column; min-height: 100vh; justify-content: safe center; }
  .home-header { padding: 1rem 5%; flex-wrap: wrap; }
  .header-actions { margin-top: 0.5rem; justify-content: center; width: 100%; gap: 0.5rem; }
  
  /* Aggressively compress Hero mapping to 667px (iPhone SE) to 932px (Pro Max/Galaxy) viewports */
  .hero-section { padding: 2rem 5% 1.5rem; }
  .hero-content h1 { font-size: 2.1rem; line-height: 1.2; margin-bottom: 0.8rem; }
  .hero-content p { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .btn-cta { padding: 0.8rem 1.5rem; font-size: 1rem; width: 100%; }

  /* Compress Section spacing to guarantee Consultant 1 is above the fold */
  .consultants-section { padding: 1.5rem 5% 3rem; }
  .consultants-section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
  
  .search-bar { flex-direction: column; border-radius: 8px; }
  .search-bar input { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .search-bar button { width: 100%; justify-content: center; }
  .consultant-grid, .features-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { flex-direction: column; text-align: center; gap: 2rem; padding-bottom: 1rem; margin-bottom: 1rem; }
  .footer-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}
