* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f0f2f5;
  line-height: 1.6;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

/* Demo section styling */
.demo-section {
  background-color: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.demo-title {
  font-size: 22px;
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 10px;
  border-left: 4px solid #4a90e2;
  padding-left: 15px;
}

.demo-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  margin-left: 19px;
}

.code {
  background-color: #1e1e2e;
  color: #82b1ff;
  padding: 15px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  overflow-x: auto;
  margin-top: 25px;
}

hr {
  margin: 40px 0;
  border-color: #ddd;
}

/* ===================================
           GRID 1: BASIC FLEX WRAP
           =================================== */
.grid-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card-1 {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-1:hover {
  transform: translateY(-5px);
}

.card-1 h3 {
  color: #4a90e2;
  margin-bottom: 10px;
}

.card-1 p {
  color: #666;
  font-size: 14px;
}

/* ===================================
           GRID 2: RESPONSIVE CARDS (auto width)
           =================================== */
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.card-2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  padding: 25px;
  flex: 1 1 280px;
  min-width: 250px;
  transition: transform 0.3s ease;
}

.card-2:hover {
  transform: translateY(-8px);
}

.card-2 h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card-2 p {
  opacity: 0.9;
  font-size: 14px;
}

/* ===================================
           GRID 3: PRODUCT CARDS (equal width)
           =================================== */
.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  width: calc(33.333% - 20px);
  min-width: 250px;
  flex: 1 1 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
  height: 180px;
  background-color: #4a90e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  color: #1a1a2e;
  margin-bottom: 8px;
}

.product-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: #4a90e2;
}

/* ===================================
           GRID 4: BLOG POST CARDS
           =================================== */
.grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-img {
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-content {
  padding: 20px;
}

.blog-category {
  color: #4a90e2;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-content h3 {
  color: #1a1a2e;
  margin-bottom: 10px;
  font-size: 18px;
}

.blog-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.read-more {
  color: #4a90e2;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===================================
           GRID 5: TEAM MEMBERS
           =================================== */
.grid-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.team-card {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  width: 220px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
  transform: translateY(-8px);
}

.avatar {
  width: 100px;
  height: 100px;
  background-color: #4a90e2;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.team-card h3 {
  color: #1a1a2e;
  margin-bottom: 5px;
}

.team-title {
  color: #4a90e2;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.team-card p {
  color: #666;
  font-size: 13px;
}

/* ===================================
           GRID 6: FEATURE GRID
           =================================== */
.grid-6 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.feature-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 250px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  opacity: 0.8;
  font-size: 14px;
}

/* ===================================
           GRID 7: PICTURE GALLERY
           =================================== */
.grid-7 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.gallery-item {
  flex: 1 1 calc(25% - 15px);
  min-width: 150px;
  background-color: #ddd;
  height: 150px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* Color variations for gallery */
.gallery-item:nth-child(1) {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}
.gallery-item:nth-child(2) {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}
.gallery-item:nth-child(3) {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}
.gallery-item:nth-child(4) {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: white;
}
.gallery-item:nth-child(5) {
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: white;
}
.gallery-item:nth-child(6) {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  color: white;
}
.gallery-item:nth-child(7) {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: white;
}
.gallery-item:nth-child(8) {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: white;
}

footer {
  text-align: center;
  padding: 40px;
  color: #666;
  margin-top: 20px;
}
