/* BudWiz App-Centric Clean Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
  /* Dark Theme */
  --dark-bg: #0A0A0F;
  --dark-surface: #12121A;
  --dark-card: #1A1A28;
  --dark-border: rgba(255, 255, 255, 0.08);
  
  /* Purple & Green */
  --purple: #8B5CF6;
  --purple-dark: #6D28D9;
  --purple-light: #A78BFA;
  --green: #22C55E;
  --green-dark: #15803D;
  --green-light: #4ADE80;
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, #8B5CF6 0%, #22C55E 100%);
  --gradient-dark: linear-gradient(180deg, #0A0A0F 0%, #12121A 100%);
  
  /* Effects */
  --glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Centered Logo Navigation */
.navbar-centered {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
}

.nav-left {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-right {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
}

.logo-main {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-main:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
  color: var(--purple);
}

.nav-btn {
  background: var(--gradient-main);
  color: var(--text-primary);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* Clean Hero Section */
.hero-app {
  margin-top: 90px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  position: relative;
}

.hero-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple-light);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.hero-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheading {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-hero-primary {
  background: var(--gradient-main);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--purple-light);
  border: 2px solid var(--purple);
}

.btn-hero-secondary:hover {
  background: var(--purple);
  color: var(--text-primary);
}

/* Main Content Layout with Sidebar */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.main-content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
}

/* Feature Cards - Simplified */
.features-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-simple {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--dark-border);
  transition: all 0.3s ease;
}

.feature-simple:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.feature-simple-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.feature-simple-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-simple-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.feature-simple-link {
  color: var(--green-light);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.feature-simple-link:hover {
  color: var(--green);
  transform: translateX(5px);
}

/* Products Grid - Clean */
.products-clean {
  margin-bottom: 4rem;
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.products-subtitle {
  color: var(--text-secondary);
}

.products-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-clean {
  background: var(--dark-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  transition: all 0.3s ease;
}

.product-clean:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.product-clean-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--dark-surface);
}

.product-clean-content {
  padding: 1.25rem;
}

.product-clean-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-clean-rating {
  color: var(--green);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-clean-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--gradient-main);
  color: var(--text-primary);
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: block;
  transition: all 0.3s ease;
}

.product-clean-btn:hover {
  transform: scale(1.02);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--dark-border);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--purple-light);
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-input {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--purple);
}

.newsletter-btn {
  background: var(--gradient-main);
  color: var(--text-primary);
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* News Sidebar */
.news-item-small {
  padding: 1rem 0;
  border-bottom: 1px solid var(--dark-border);
}

.news-item-small:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item-date {
  font-size: 0.8rem;
  color: var(--green-light);
  margin-bottom: 0.25rem;
}

.news-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-item-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.news-item-link:hover {
  color: var(--purple-light);
}

/* Contact Modal - Fixed Opacity */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background: #1A1A2E;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--purple);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--purple-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: #141420;
  border: 1px solid #2A2A3E;
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--gradient-main);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* Footer - Minimal */
.footer-minimal {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--purple-light);
}

/* Contact Float Button */
.contact-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  outline: none;
  color: var(--text-primary);
}

.contact-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.contact-float:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--purple-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--purple);
}

.mobile-menu-overlay {
  /* Styles now inline in HTML for reliability */
}

.mobile-menu-overlay.show {
  display: block !important;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu-items {
  /* Styles now inline in HTML for reliability */
}

.mobile-menu-link {
  /* Styles now inline in HTML for reliability */
}

/* Add hover effects via JavaScript since CSS wasn't working */

/* Mobile Responsive */
@media (max-width: 1024px) {
  .navbar-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1rem;
  }
  
  .nav-left,
  .nav-right {
    display: none;
  }
  
  .nav-center {
    grid-column: 2;
    justify-content: center;
  }
  
  .mobile-menu-btn {
    display: block;
    grid-column: 3;
    justify-self: end;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .features-simple {
    grid-template-columns: 1fr;
  }
  
  .products-grid-clean {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .hero-heading {
    font-size: 2rem;
  }
}