:root {
  --color-moonlight: #F8F9F5;
  --color-sage: #E1E5D8;
  --color-moss: #B0BFA8;
  --color-forest: #6E7A6D;
  --color-slate: #444B47;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 50%;
  
  --shadow-sm: 0 2px 8px rgba(68, 75, 71, 0.1);
  --shadow-md: 0 4px 16px rgba(68, 75, 71, 0.15);
  --shadow-lg: 0 8px 32px rgba(68, 75, 71, 0.2);
  --shadow-glow: 0 0 20px rgba(176, 191, 168, 0.4);
  
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-moonlight);
  color: var(--color-slate);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.overflow-hidden {
  overflow: hidden;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: linear-gradient(to bottom, rgba(68, 75, 71, 0.9), transparent);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform var(--transition-medium);
}

header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.logo {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-moonlight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
  0% {
    text-shadow: 0 0 10px rgba(176, 191, 168, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(176, 191, 168, 0.6);
  }
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--space-xs);
  z-index: 1001;
}

.burger-line {
  width: 1.5rem;
  height: 0.15rem;
  background-color: var(--color-moonlight);
  transition: var(--transition-medium);
  border-radius: 0.1rem;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.55rem);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.45rem, -0.5rem);
}

header nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

header nav a {
  color: var(--color-moonlight);
  font-weight: 500;
  font-size: var(--font-size-sm);
  position: relative;
  padding: var(--space-xs);
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-moss);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

header nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(176, 191, 168, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(176, 191, 168, 0.15) 0%, transparent 50%);
  animation: pulseBackground 8s infinite alternate;
}

@keyframes pulseBackground {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-lg);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-4xl);
  color: var(--color-moonlight);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--color-sage);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-moss);
  color: var(--color-slate);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.btn-primary:hover::before {
  width: 300%;
  height: 300%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn span {
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-3xl);
  color: var(--color-slate);
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section-title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 0.25rem;
  background: var(--color-moss);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-sm);
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  color: var(--color-forest);
  font-size: var(--font-size-lg);
}

.grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--color-moss), var(--color-forest));
  transform: scaleX(0);
  transition: transform var(--transition-medium);
  transform-origin: left;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: var(--font-size-3xl);
  color: var(--color-moss);
  margin-bottom: var(--space-sm);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

.card h3 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-forest);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.interactive-demo {
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-moonlight) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.demo-lights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: var(--space-md);
  max-width: 600px;
  margin: var(--space-lg) auto;
}

.light-bulb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-forest);
  border: 3px solid var(--color-moss);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
}

.light-bulb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-moss);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-medium);
}

.light-bulb.active {
  background: var(--color-moss);
  box-shadow: var(--shadow-glow), 0 0 30px rgba(176, 191, 168, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow-glow), 0 0 30px rgba(176, 191, 168, 0.6);
  }
  50% {
    box-shadow: var(--shadow-glow), 0 0 50px rgba(176, 191, 168, 0.9);
  }
}

.light-bulb.active::before {
  transform: translate(-50%, -50%) scale(1);
}

.contact-section {
  background: var(--color-sage);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.contact-item:hover {
  background: var(--color-moonlight);
}

.contact-item i {
  font-size: var(--font-size-xl);
  color: var(--color-moss);
  margin-top: 0.25rem;
}

.contact-item-content h4 {
  font-size: var(--font-size-base);
  color: var(--color-slate);
  margin-bottom: 0.25rem;
}

.contact-item-content p {
  font-size: var(--font-size-sm);
  color: var(--color-forest);
}

.contact-form {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-sage);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: var(--transition-fast);
  background: var(--color-moonlight);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-moss);
  box-shadow: 0 0 0 3px rgba(176, 191, 168, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: var(--font-size-xs);
  color: var(--color-forest);
  margin-bottom: 0;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--color-slate);
  color: var(--color-moonlight);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-medium);
}

.btn-submit:hover {
  background: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

footer {
  background: linear-gradient(180deg, var(--color-slate) 0%, #373d3a 100%);
  color: var(--color-sage);
  padding: var(--space-lg) var(--space-sm);
  font-size: var(--font-size-sm);
  border-top: 4px solid var(--color-moss);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.footer-content > p {
  margin: 0;
  line-height: 1.8;
  font-size: var(--font-size-sm);
  color: var(--color-sage);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
}

.footer-links a {
  color: var(--color-sage);
  transition: all var(--transition-fast);
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a i {
  font-size: var(--font-size-base);
  transition: transform var(--transition-fast);
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-moss), var(--color-sage));
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.footer-links a:hover {
  color: var(--color-moss);
  background: rgba(176, 191, 168, 0.1);
  transform: translateY(-2px);
}

.footer-links a:hover::before {
  width: 80%;
}

.footer-links a:hover i {
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(68, 75, 71, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: var(--space-sm);
  animation: fadeIn var(--transition-medium);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--transition-medium);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: var(--font-size-2xl);
  color: var(--color-forest);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-sage);
  color: var(--color-slate);
}

.modal-content h2 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

.modal-content p {
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.thank-you-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.thank-you-content {
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-moss);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.thank-you-content h1 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-3xl);
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.thank-you-content p {
  font-size: var(--font-size-lg);
  color: var(--color-forest);
  margin-bottom: var(--space-lg);
}

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.error-content {
  max-width: 600px;
}

.error-number {
  font-family: var(--font-secondary);
  font-size: 8rem;
  color: var(--color-moss);
  line-height: 1;
  margin-bottom: var(--space-sm);
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0%, 100% {
    text-shadow: 2px 2px 0 var(--color-sage), -2px -2px 0 var(--color-forest);
  }
  25% {
    text-shadow: -2px 2px 0 var(--color-sage), 2px -2px 0 var(--color-forest);
  }
  50% {
    text-shadow: 2px -2px 0 var(--color-sage), -2px 2px 0 var(--color-forest);
  }
  75% {
    text-shadow: -2px -2px 0 var(--color-sage), 2px 2px 0 var(--color-forest);
  }
}

.error-content h1 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.error-content p {
  font-size: var(--font-size-lg);
  color: var(--color-forest);
  margin-bottom: var(--space-lg);
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image i {
  display: none;
}

.product-card:nth-child(1) .product-image {
  background: url('../gallery/image-1.webp') center/cover no-repeat;
}

.product-card:nth-child(2) .product-image {
  background: url('../gallery/image-2.webp') center/cover no-repeat;
}

.product-card:nth-child(3) .product-image {
  background: url('../gallery/image-3.webp') center/cover no-repeat;
}

.product-content {
  padding: var(--space-md);
}

.product-content h3 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  color: var(--color-slate);
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-moss);
  margin-bottom: var(--space-sm);
}

.product-content p {
  color: var(--color-forest);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.loading {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--color-sage);
  border-top-color: var(--color-moss);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.25rem;
    --space-xxl: 4rem;
  }

  .burger-menu {
    display: flex;
  }

  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-slate);
    padding: var(--space-lg) var(--space-md);
    transition: right var(--transition-medium);
    box-shadow: var(--shadow-lg);
    display:none;
  }

  header nav.active {
    display:flex;
    right: 0;
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  header nav a {
    font-size: var(--font-size-base);
    padding: var(--space-sm) 0;
    width: 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
    padding: 0;
  }

  .footer-content > p {
    order: 2;
    font-size: var(--font-size-xs);
  }

  .footer-links {
    order: 1;
    width: 100%;
    justify-content: center;
    gap: var(--space-xs);
  }

  .footer-links a {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    background: rgba(176, 191, 168, 0.15);
    border: 1px solid rgba(176, 191, 168, 0.2);
  }

  .footer-links a:hover {
    background: rgba(176, 191, 168, 0.3);
    border-color: var(--color-moss);
    transform: translateY(-3px);
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

  .demo-lights {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: var(--space-sm);
  }

  .light-bulb {
    width: 50px;
    height: 50px;
  }

  .logo{
    font-size:1.1rem;
  }

  footer {
    padding: var(--space-md) var(--space-xs);
  }

  .footer-content {
    gap: var(--space-md);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem var(--space-sm);
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 320px) {
  :root {
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
  }
}

@media (max-width: 850px) {
  header nav ul{
    gap:1rem;
  }
}