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

*:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

:root {
  --primary-color: #1c39bb;
  --secondary-color: #4169e1;
  --accent-color: #6495ed;
  --text-dark: #2c2c2c;
  --text-light: #666;
  --bg-light: #f0f4ff;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(254, 254, 254);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.logo {
  display: flex;
  align-items: center;
  order: 1;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img:hover {
  opacity: 0.8;
}

.menu-toggle {
  order: 3;
}

.nav-menu {
  order: 2;
}

@media (max-width: 968px) {
  .logo {
    order: 3;
  }
  
  .menu-toggle {
    order: 1;
  }
  
  .nav-menu {
    order: 2;
  }
  
  .logo-img {
    height: 65px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 55px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 50px;
  }
}

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

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

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 5px;
  transition: var(--transition);
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(28, 57, 187, 0.1);
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  background-image: url("images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>')
    no-repeat center;
  background-size: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  animation: fadeInUp 1s ease;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 1s ease 0.2s both;
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-text {
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease 0.3s both;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.4s both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  animation: fadeInUp 1s ease 0.5s both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.hero-info-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  min-width: 250px;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (hover: none) {
  .info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
    box-shadow: none;
  }
}

.info-card-combined {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 2rem;
  min-width: auto;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.info-divider {
  width: 2px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.info-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

a.info-value:hover,
a.info-value:focus {
  opacity: 0.9;
  text-decoration: underline;
}

@media (hover: none) {
  a.info-value:hover {
    opacity: 1;
    text-decoration: none;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.7s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  height: 62px;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(100, 149, 237, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

@media (hover: none) {
  .btn:hover::before {
    width: 0;
    height: 0;
  }
}

.btn-icon {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-white);
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.01);
}

@media (hover: none) {
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: transparent;
  }
  
  .btn-primary:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scroll 2s infinite;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* About Section */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  object-fit: cover;
  max-height: 500px;
}

.about-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (hover: none) {
  .about-img:hover {
    transform: none;
  }
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Types Section */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.type-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

@media (hover: none) {
  .type-card:hover {
    transform: none;
  }

  .type-card:active {
    transform: scale(0.98);
  }
}

.type-image {
  height: 250px;
  overflow: hidden;
}

.fabric-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: var(--transition);
}

.type-image .image-placeholder {
  height: 100%;
  border-radius: 0;
}

.type-content {
  padding: 1.5rem;
}

.type-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.type-content p {
  color: var(--text-light);
  line-height: 1.8;
}

.type-content p strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  border-bottom: 1px solid transparent;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

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

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

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-white);
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 70px);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    gap: 1rem;
    overflow-y: auto;
  }

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

  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.15rem;
    padding: 0 1rem;
  }

  .hero-info-cards {
    flex-direction: column;
    gap: 1rem;
  }

  .info-card-combined {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    width: 100%;
    max-width: 400px;
  }

  .info-divider {
    width: 80%;
    height: 2px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 350px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-img {
    max-height: 400px;
  }

  .types-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    min-height: 550px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 1.05rem;
    padding: 0 1rem;
    line-height: 1.7;
  }

  .info-card-combined {
    padding: 1rem 1.2rem;
  }

  .info-label {
    font-size: 0.8rem;
  }

  .info-value {
    font-size: 1rem;
  }

  .types-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .type-image {
    height: 220px;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.9;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
}

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

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
  }

  .hero-description {
    font-size: 0.95rem;
    padding: 0 0.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-info-cards {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .info-card-combined {
    padding: 1rem 1rem;
    gap: 1rem;
    max-width: 100%;
  }

  .info-item {
    gap: 0.8rem;
  }

  .info-label {
    font-size: 0.75rem;
  }

  .info-value {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }

  .btn-icon {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 0.8rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .type-image {
    height: 200px;
  }

  .type-content {
    padding: 1.2rem;
  }

  .type-content h3 {
    font-size: 1.3rem;
  }

  .type-content p {
    font-size: 0.9rem;
  }

  .about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }

  .footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

/* Price Modal Button */
.price-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: var(--transition);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.price-btn:hover,
.price-btn:focus {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(28, 57, 187, 0.3);
}

.price-btn:active {
  transform: translateY(-1px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  margin: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: white;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
  flex-shrink: 0;
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-body {
  padding: 2rem;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

.price-table thead {
  background: var(--bg-light);
}

.price-table th {
  padding: 1rem;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.price-table td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.price-table tbody tr:hover,
.price-table tbody tr:focus-within {
  background: var(--bg-light);
  transition: var(--transition);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table .price {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.price-table .fabric-name {
  font-weight: 500;
  color: var(--text-dark);
}

.price-table .fabric-name small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 0.3rem;
  line-height: 1.6;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .price-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .modal {
    padding: 15px;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    margin: auto;
    border-radius: 15px;
  }

  .modal-header {
    padding: 1.5rem 1rem;
    border-radius: 15px 15px 0 0;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }

  .modal-body {
    padding: 1.5rem 1rem;
  }

  .price-table {
    font-size: 0.85rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.8rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .price-btn {
    bottom: 15px;
    right: 15px;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 96%;
    max-width: none;
    border-radius: 12px;
  }

  .modal-header {
    padding: 1.2rem 0.8rem;
    border-radius: 12px 12px 0 0;
  }

  .modal-header h2 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1rem 0.8rem;
    overflow-x: auto;
  }

  .price-table {
    font-size: 0.75rem;
    min-width: 300px;
  }

  .price-table th,
  .price-table td {
    padding: 0.6rem 0.3rem;
  }

  .price-table .fabric-name {
    font-size: 0.7rem;
  }

  .price-table .fabric-name small {
    font-size: 0.65rem;
    line-height: 1.4;
  }

  .price-table .price {
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .modal {
    padding: 5px;
  }

  .modal-content {
    width: 98%;
    border-radius: 10px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 1rem 0.6rem;
    border-radius: 10px 10px 0 0;
  }

  .modal-header h2 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 0.8rem 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-table {
    font-size: 0.65rem;
    min-width: 280px;
  }

  .price-table th,
  .price-table td {
    padding: 0.4rem 0.25rem;
  }

  .price-table th {
    font-size: 0.6rem;
  }

  .price-table .price {
    font-size: 0.7rem;
  }

  .price-table .fabric-name {
    font-size: 0.6rem;
  }

  .price-table .fabric-name small {
    font-size: 0.55rem;
    line-height: 1.3;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .menu-toggle,
  .scroll-indicator,
  .footer,
  .price-btn,
  .modal {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* Smooth Scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

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

/* Loading state */
.loaded .hero-content,
.loaded .type-card,
.loaded .about-content {
  animation: fadeInUp 0.8s ease;
}

/* Utility classes for better mobile experience */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Better image loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improved text readability */
p,
li,
td,
th {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Better selection color */
::selection {
  background: var(--accent-color);
  color: white;
}

::-moz-selection {
  background: var(--accent-color);
  color: white;
}
