/* ==================== Base styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --primary-color: #ff4b4b;
  --secondary-color: #333;
  --text-color: #444;
  --light-gray: #f5f5f5;
  --dark-gray: #666;
  --white: #fff;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== Buttons ==================== */
button {
  cursor: pointer;
  border: none;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
}

.start-btn,
.recipe-btn,
.more-blogs-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrow {
  font-size: 18px;
}

/* ==================== Navbar ==================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a.active {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ==================== Hero Section ==================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0 100px;
  position: relative;
  background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  min-height: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1495195134817-aeb325a55b65?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 1;
}

.hero-content {
  padding: 80px 60px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff7676 100%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 25px;
  box-shadow: 0 10px 15px -3px rgba(255, 75, 75, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -1px;
}


.hero h1 .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 75, 75, 0.2);
  z-index: -1;
  border-radius: 10px;
}

.hero p {
  margin-bottom: 35px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark-gray);
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.primary-btn {
  background: linear-gradient(to right, var(--primary-color), #ff7676);
  color: var(--white);
  padding: 16px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(255, 75, 75, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 75, 75, 0.4);
}

.primary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.primary-btn:hover::after {
  transform: translateX(100%);
}

.watch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 50px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.watch-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: auto;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
}

.stat-label {
  font-size: 14px;
  color: var(--dark-gray);
}

.hero-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 24px 24px 0;
  transition: transform 0.5s ease;
}

.floating-card {
  position: absolute;
  bottom: 40px;
  left: -30px;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 250px;
  z-index: 10;
  transition: transform 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-10px);
}

.card-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.floating-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.floating-card p {
  font-size: 14px;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dark-gray);
}

/* ==================== Recipes Section ==================== */
.recipes-section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
}

.search-sort {
  display: flex;
  gap: 20px;
  align-items: center;
}

.search-bar {
  position: relative;
}

.search-bar input {
  padding: 10px 40px 10px 15px;
  border: 1px solid #eee;
  border-radius: 30px;
  font-size: 14px;
  width: 250px;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--dark-gray);
}

.dropdown-arrow {
  font-size: 10px;
}

.category-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--light-gray);
  border-radius: 30px;
  font-size: 14px;
  color: var(--dark-gray);
}

.filter-btn.active {
  background-color: var(--secondary-color);
  color: var(--white);
}

.recipe-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.recipe-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-info {
  padding: 20px;
}

.recipe-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--dark-gray);
}

.chef,
.time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  color: #ffc107;
}

/* ==================== Trending Section ==================== */
.trending-section {
  margin-bottom: 80px;
  position: relative;
}

.trending-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.trending-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.trending-card {
  min-width: 250px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.trending-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.trending-card h3 {
  padding: 15px;
  font-size: 16px;
}

.trending-card p {
  padding: 0 15px 15px;
  font-size: 14px;
  color: var(--dark-gray);
}

.slider-controls {
  display: flex;
  gap: 10px;
  position: absolute;
  right: 0;
  top: 10px;
}

.prev-btn,
.next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== Testimonial Section ==================== */
.testimonial-section {
  margin-bottom: 80px;
  position: relative;
  background-color: #fff5f5;
  padding: 60px 0;
  border-radius: var(--border-radius);
}

.testimonial-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.testimonial-container {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  gap: 40px;
  align-items: center;
}

.testimonial-image {
  flex: 0 0 300px;
}

.testimonial-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.testimonial-content {
  position: relative;
}

.quote-mark {
  font-size: 60px;
  color: var(--primary-color);
  position: absolute;
  top: -40px;
  left: -20px;
}

.testimonial-text {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.author-name {
  font-weight: 600;
  font-size: 18px;
}

.author-title {
  color: var(--dark-gray);
  font-size: 14px;
}

/* ==================== Blog Section ==================== */
.blog-section {
  margin-bottom: 80px;
  text-align: center;
}

.blog-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card {
  text-align: left;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-card h3 {
  padding: 20px 20px 10px;
  font-size: 18px;
}

.blog-card p {
  padding: 0 20px 15px;
  font-size: 14px;
  color: var(--dark-gray);
}

.read-more {
  display: inline-block;
  padding: 0 20px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* ==================== Gallery Section ==================== */
.gallery-section {
  margin-bottom: 80px;
}

.gallery-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.gallery-item.large {
  grid-row: span 2;
  grid-column: span 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== App Download Section ==================== */
.app-download {
  display: flex;
  align-items: center;
  background-color: #fff5f5;
  border-radius: var(--border-radius);
  padding: 60px;
  margin-bottom: 80px;
}

.app-content {
  flex: 1;
}

.app-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.app-content p {
  margin-bottom: 30px;
  max-width: 400px;
}

.app-buttons {
  display: flex;
  gap: 20px;
}

.app-buttons a {
  height: 50px;
}

.app-buttons img {
  height: 100%;
}

.app-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.app-image img {
  max-height: 400px;
  object-fit: contain;
}

/* ==================== Footer ==================== */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 60px 0 20px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 60px;
}

.footer-logo {
  max-width: 300px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-logo p {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Individual social icon colors on hover */
.social-icons a:nth-child(1):hover {
  background-color: #E1306C; /* Instagram color */
}

.social-icons a:nth-child(2):hover {
  background-color: #4267B2; /* Facebook color */
}

.social-icons a:nth-child(3):hover {
  background-color: #1DA1F2; /* Twitter color */
}

.social-icons a:nth-child(4):hover {
  background-color: #E60023; /* Pinterest color */
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-column h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.link-column ul {
  list-style: none;
}

.link-column li {
  margin-bottom: 10px;
}

.link-column a {
  text-decoration: none;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.link-column a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding: 20px 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-content {
    padding: 60px 40px;
    text-align: center;
  }
  
  .hero p {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image {
    height: 400px;
    position: relative;
  }
  
  .hero-image img {
    position: relative;
    border-radius: 0 0 24px 24px;
  }
  
  .floating-card {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .floating-card:hover {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 768px) {
  .hero {
    margin: 30px 0 70px;
  }
  
  .hero-content {
    padding: 50px 30px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    max-width: 100%;
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .hero-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    margin: 20px 0 50px;
  }
  
  .hero-content {
    padding: 40px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-image {
    height: 250px;
  }
  
  .floating-card {
    max-width: 200px;
  }
}

/* ==================== Smooth Scrolling ==================== */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px; /* Adjust based on your navbar height */
}

/* Recipe page specific styles */
.recipe-header {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.recipe-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.recipe-details {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.recipe-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-detail-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.ingredients-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.ingredients-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.ingredients-list {
  list-style: none;
}

.ingredients-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.ingredients-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 15px;
}

.instructions-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.instructions-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.instructions-list {
  list-style: none;
  counter-reset: step-counter;
}

.instructions-list li {
  padding: 20px 0 20px 50px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.instructions-list li:last-child {
  border-bottom: none;
}

.instructions-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.recipe-tips {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 60px;
}

.tips-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.tips-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.tip-icon {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.tip-title {
  font-size: 18px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .recipe-main {
    grid-template-columns: 1fr;
  }

  .tips-content {
    grid-template-columns: 1fr;
  }
}
