body {
  margin: 0;
  font-family: sans-serif;
  background: #fafafa;
  color: #333;
   font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.gray {
  background: #f2f2f2;
}

.center {
  text-align: center;
}

.header {
  background: rgba(252, 252, 252, 0.2); /* ozgina fon */
  backdrop-filter: blur(10px);          /* blur effekti */
  -webkit-backdrop-filter: blur(10px);  /* Safari uchun */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #0a0701;
  font-weight: 600;
}
.hero-reveal {
    height: 100vh;
    background-image: url("assets/bg.png");
    background-size: cover;      
    background-position: center; 
    background-repeat: no-repeat;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 80vh;
  gap: 40px;
}

.hero-text{
    max-width: 540px;
}
.hero-text h2 {
  font-size: 3rem;
  color: white;
}

.hero-text p {
    color: white;
    font-size: 2rem;
}

.btn-primary {
  background: #e47b8d;
  border: none;
  padding: 12px 25px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.buy-btn {
  margin-top: auto;
  display: inline-block;
  padding: 10px 15px;
  background: #e47b8d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
  font-weight: 600;
}

.form-wrapper {
  position: relative;
  height: auto;
  width: 100%;
  padding-top: 800px; 
}

.form-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.product-action{
    display: flex;
    align-items: center;
    justify-content:space-between;
    gap: 8px;
}

.btn-outline {
  border: 2px solid #e47b8d;
  padding: 10px 25px;
  background: transparent;
  color: white;
}
.two-col{
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-img{
    height: 700px;
    width: 500px;
    border-radius: 10px;
}
.features-grid,
.product-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
}

.features-grid {
  grid-template-columns: repeat(4,1fr);
}

.product-grid {
  grid-template-columns: repeat(3,1fr);
}

.gallery-grid {
  grid-template-columns: repeat(4,1fr);
}
.product-card img{
    height: 500px;
    width:100%;
    border-radius: 10px;
}
.product-card,
.feature-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.product-card:hover,
.feature-card:hover {
  transform: translateY(-10px);
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ddd;
}

.footer {
  background: #222;
  color: white;
  padding: 30px 0;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    flex-direction: column;
    text-align: center;
  }

  .about-img {
    width: 100%;
    height: auto;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding-top: 120px; /* fixed header sabab */
  }

}
@media (max-width: 576px) {

  .section {
    padding: 50px 0;
  }
  .header{
     display: none;
  }

  .nav-wrapper {
    flex-direction: column;
    display: none;
    gap: 10px;
  }
  .nav-wrapper nav{
    display: none;
  }

  nav a {
    margin-left: 0;
    font-size: 14px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }
  .hero-buttons{
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 4px;
  }

  .features-grid,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: auto;
  }

  .product-action {
    flex-direction: column;
  }

  .form-wrapper {
    padding-top: 1000px; /* Google form balandligi */
  }

  .btn-primary,
  .btn-outline,
  .buy-btn {
    width: 100%;
    text-align: center
    border-radius: 4px;
    
  }

}
@media (max-width: 576px) {
  .header {
    padding: 8px 0;
  }
}

/* ===== CONTACT FORM DESIGN UPDATE ===== */

.contact-form {
  max-width: 500px;
  margin: 0px auto 40px auto;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Input va textarea stilini yangilash */
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal; /* forma ichida italic bo‘lmasligi uchun */
  transition: all 0.3s ease;
  background: #fafafa;
}

/* Fokus effekti */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e47b8d;
  box-shadow: 0 0 0 3px rgba(228,123,141,0.15);
  background: #ffffff;
}

/* Textarea */
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Submit button */
.contact-form button {
  padding: 14px;
  background: #e47b8d;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #d96a7c;
  transform: translateY(-2px);
}

.contact-form button:active {
  transform: scale(0.98);
}

/* Mobil optimizatsiya */
@media (max-width: 576px) {
  .contact-form {
    padding: 20px;
    margin-top: 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.error-message {
  color: #e53935;
  font-size: 13px;
  margin-top: 5px;
  min-height: 18px;
}

input.error,
textarea.error {
  border: 1px solid #e53935 !important;
}

input.success,
textarea.success {
  border: 1px solid #2e7d32 !important;
}

/* Button disabled */
#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loader */
.loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

.loading .loader {
  display: inline-block;
}

.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-message {
  margin-top: 15px;
  color: #2e7d32;
  font-weight: 600;
  min-height: 20px;
}