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

:root {
  --primary-color: #1a202c;
  --accent-color: #d69e2e;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  min-width: 160px;
}

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

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin: 0;
  position: relative;
}

.logo h1:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 80px;
}

.hero-content {
  flex: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: 24px;
  color: var(--primary-color);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 1s ease-out;
}

.section-header h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Products Section */
.products {
  padding: 120px 0;
  background: var(--bg-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 1s ease-out;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 32, 44, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.view-details-btn {
  background: var(--accent-color);
  color: var(--bg-white);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.view-details-btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.product-info {
  padding: 30px;
}

.product-info h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.product-info p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  font-family: 'Playfair Display', serif;
}

/* Story Section */
.story {
  padding: 120px 0;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  margin-top: 80px;
}

.story-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  animation: fadeInUp 1s ease-out;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.story-icon {
  margin-bottom: 30px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.story-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.story-card:hover .story-icon img {
  transform: scale(1.1);
}

.story-content h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.contact-form {
  background: var(--bg-white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-white);
  margin: 2% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-modal:hover {
  background: var(--accent-color);
  color: var(--bg-white);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image {
  height: 500px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.modal-info {
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-info h2 {
  color: var(--primary-color);
  margin: 0;
  font-size: 2rem;
}

.modal-price {
  font-size: 2rem;
  color: var(--accent-color);
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.modal-description h4,
.modal-sizes h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.modal-description div {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: var(--bg-white);
}

.modal-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--bg-white);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --max-width: 100%;
  }
  
  .container {
    padding: 0 20px;
  }

  .hero {
    flex-direction: column-reverse;
    gap: 60px;
    text-align: center;
    padding: 100px 20px 60px;
  }

  .hero-image img {
    height: 400px;
  }

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

  .story-steps {
    gap: 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 300px;
  }

  .modal-image img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    padding: 40px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    min-width: 200px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .story-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 30px 25px;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-info {
    padding: 30px 25px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 15px 20px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 80px 16px 40px;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .products,
  .story,
  .contact {
    padding: 60px 0;
  }

  .product-info {
    padding: 20px;
  }

  .story-card {
    padding: 25px 20px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px;
  }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
  }
}