/* Solar Home Glow - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: hsl(142, 71%, 45%);
  --primary-foreground: hsl(142, 71%, 98%);
  --secondary: hsl(0, 0%, 90%);
  --secondary-foreground: hsl(210, 100%, 12%);
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(210, 100%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 100%, 12%);
  --muted: hsl(142, 6%, 94%);
  --muted-foreground: hsl(210, 20%, 35%);
  --accent: hsl(142, 8%, 92%);
  --accent-foreground: hsl(210, 100%, 12%);
  --border: hsl(0, 0%, 90%);
  --input: hsl(0, 0%, 75%);
  --ring: hsl(142, 71%, 45%);
  --chart-3: hsl(47, 92%, 55%);
}

.dark {
  --primary: hsl(142, 65%, 55%);
  --primary-foreground: hsl(142, 65%, 10%);
  --secondary: hsl(210, 15%, 18%);
  --secondary-foreground: hsl(210, 15%, 85%);
  --background: hsl(210, 25%, 8%);
  --foreground: hsl(210, 15%, 85%);
  --card: hsl(210, 20%, 12%);
  --card-foreground: hsl(210, 15%, 85%);
  --muted: hsl(142, 8%, 15%);
  --muted-foreground: hsl(210, 15%, 65%);
  --accent: hsl(142, 12%, 17%);
  --accent-foreground: hsl(210, 15%, 85%);
  --border: hsl(210, 20%, 18%);
  --input: hsl(210, 20%, 35%);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.font-serif {
  font-family: 'Poppins', serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

nav.scrolled {
  background-color: rgba(var(--background), 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--primary), var(--chart-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.nav-links a:hover {
  background-color: var(--accent);
}

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

/* Button Styles */
.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Card Styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Section Styles */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(var(--ring), 0.1);
}

/* Footer */
footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.bg-card {
  background-color: var(--card);
}

.text-muted {
  color: var(--muted-foreground);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Dark Mode Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--foreground);
}

.theme-toggle:hover {
  background-color: var(--accent);
}

/* Project Card */
.project-card {
  overflow: hidden;
}

.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* Testimonial Card */
.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.rating {
  display: flex;
  gap: 0.25rem;
}

.star {
  width: 1rem;
  height: 1rem;
  fill: var(--chart-3);
  color: var(--chart-3);
}
