/* style.css */
/* Design Tokens */
:root {
  /* Colors */
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-700: #334155;
  --white: #ffffff;
  
  /* Typography */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --fs-xl: clamp(2.5rem, 5vw, 4rem);
  --fs-lg: clamp(1.5rem, 3vw, 2.5rem);
  --fs-md: clamp(1.125rem, 2vw, 1.5rem);
  --fs-sm: clamp(0.875rem, 1.5vw, 1rem);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Effects */
  --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);
  --radius: 0.75rem;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-serif);
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(50px);
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(50px);
}

.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(50px);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  background: #059669;
}

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

.animate-slide-up {
  animation: slideUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

/* Section Titles */
.section-title {
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Zigzag Services */
.services {
  padding: var(--space-xl) 0;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-card.left {
  margin-right: auto;
  transform: translateX(-50px);
}

.service-card.right {
  margin-left: auto;
  transform: translateX(50px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.service-icon.solar {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.service-icon.pv {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.service-icon.consult {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.service-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
  color: var(--dark);
}

.service-card p {
  color: var(--gray-700);
  font-size: var(--fs-sm);
}

/* 3D Demo */
.demo-section {
  padding: var(--space-xl) 0;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

#solarPanel {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--gray-100), var(--white));
}

.demo-info h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

/* Company Info */
.company-info {
  padding: var(--space-xl) 0;
  background: var(--white);
}

.company-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.detail-card {
  background: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-md);
}

.detail-card.full-width {
  grid-column: 1 / -1;
}

.map-link {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

/* FAQ */
.faq-section {
  padding: var(--space-xl) 0;
  background: var(--gray-100);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.faq-question {
  padding: var(--space-lg);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--gray-100);
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: var(--space-lg);
  margin: 0;
}

/* Contact */
.contact {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

.contact-info p {
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
  padding: var(--space-md);
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: inherit;
  font-size: var(--fs-sm);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .demo-container,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card.left,
  .service-card.right {
    margin: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Parallax */
.parallax-bg {
  will-change: transform;
}
