/* Color Palette Variables */
:root {
  --primary-orange: #D49960;
  --light-orange: #E8B680;
  --warm-beige: #E5D6C3;
  --dark-gray: #5C5149;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  max-width: none;
}

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

/* Blog Section Specific Styles */
.blog-section {
  background: #fafbfc;
  min-height: 100vh;
}

.blog-main {
  background: #fafbfc;
  min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

/* Header & Navigation */
header {
  background: var(--white);
  border-bottom: 1px solid var(--warm-beige);
  box-shadow: 0 2px 4px rgba(92, 81, 73, 0.1);
  margin-bottom: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: var(--white);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand .brand-link {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-orange);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 400;
  margin-top: 0.25rem;
}

.navbar-menu nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.navbar-menu nav ul li {
  margin: 0;
}

.navbar-menu nav ul li a {
  color: var(--text-dark) !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.navbar-menu nav ul li a:hover {
  color: var(--primary-orange) !important;
  background: rgba(212, 153, 96, 0.1);
  text-decoration: none;
}

.navbar-menu nav ul li a.active,
.navbar-menu nav ul li a[aria-current="page"] {
  color: var(--primary-orange) !important;
  background: rgba(212, 153, 96, 0.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-menu nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .brand-name {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .brand-tagline {
    text-align: center;
  }
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: var(--white);
  border-top: none;
  margin-top: 2rem;
  padding: 2rem 0;
  text-align: center;
}

/* Links */
a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-gray);
  text-decoration: underline;
}

/* Landing Page Styles */
.landing-page {
  margin: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-gray) 100%);
  color: white;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Section */
.services-section {
  background: var(--warm-beige);
  padding: 4rem 0;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(92, 81, 73, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(212, 153, 96, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(92, 81, 73, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-appsource {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--dark-gray);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
}

.btn-appsource {
  background: var(--light-orange);
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-appsource:hover {
  background: var(--primary-orange);
  color: white;
  text-decoration: none;
}

/* Apps Carousel Section */
.apps-carousel {
  background: var(--white);
  padding: 4rem 0;
}

.apps-carousel h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-gray);
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.app-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(92, 81, 73, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--warm-beige);
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(92, 81, 73, 0.15);
  border-color: var(--primary-orange);
}

.app-screenshot {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--warm-beige);
}

.app-card h3 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.app-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  background: var(--warm-beige);
  padding: 4rem 0;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3,
.contact-form h3 {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid var(--primary-orange);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--dark-gray);
  box-shadow: 0 0 0 2px rgba(212, 153, 96, 0.2);
}

/* Blog Preview Section */
.blog-preview {
  background: var(--white);
  padding: 4rem 0;
}

.blog-preview h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-gray);
}

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

.blog-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(92, 81, 73, 0.1);
  border: 1px solid var(--warm-beige);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 15px rgba(92, 81, 73, 0.15);
  border-color: var(--primary-orange);
}

.blog-card h3 {
  margin-bottom: 1rem;
}

.blog-card h3 a {
  color: var(--dark-gray);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--primary-orange);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: var(--warm-beige);
  color: var(--dark-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
}

.read-more {
  color: var(--primary-orange);
  font-weight: 600;
}

.read-more:hover {
  color: var(--dark-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .app-cards,
  .blog-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-menu nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .brand-name {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .brand-tagline {
    text-align: center;
  }
  
  .blog-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-search {
    width: 100%;
  }
  
  .blog-post-card {
    margin-bottom: 1.5rem;
  }
}

/* Enhanced Blog Styles */
.blog-page {
  background: var(--white);
  min-height: 100vh;
  padding: 2rem 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--warm-beige) 0%, rgba(229, 214, 195, 0.3) 100%);
  border-radius: 10px;
}

.blog-header h1 {
  color: var(--dark-gray);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-description {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--warm-beige);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 25px;
  padding: 0.5rem;
  border: 2px solid var(--primary-orange);
  min-width: 300px;
}

.blog-search input {
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: transparent;
  flex: 1;
}

.blog-search button {
  background: var(--primary-orange);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.blog-search button:hover {
  background: var(--dark-gray);
}

.blog-filters {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--dark-gray);
  white-space: nowrap;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-orange);
  border-radius: 5px;
  background: var(--white);
  color: var(--dark-gray);
  font-size: 0.9rem;
  min-width: 150px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--dark-gray);
}

#clear-filters {
  background: var(--dark-gray);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#clear-filters:hover {
  background: var(--primary-orange);
}

.blog-stats {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

#filtered-count {
  color: var(--primary-orange);
  font-weight: 600;
}

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

.blog-post-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(92, 81, 73, 0.1);
  border: 1px solid var(--warm-beige);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(92, 81, 73, 0.15);
  border-color: var(--primary-orange);
}

.blog-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-post-card:hover::before {
  transform: scaleX(1);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.read-time {
  background: var(--warm-beige);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--dark-gray);
}

.post-title {
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--primary-orange);
}

.post-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.post-tags .tag {
  background: var(--warm-beige);
  color: var(--dark-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.post-tags .tag:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--warm-beige);
}

.read-more-btn {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: var(--dark-gray);
}

.post-stats {
  font-size: 0.8rem;
  color: var(--text-light);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.no-results h3 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.load-more-section {
  text-align: center;
  margin-top: 3rem;
}
