/* 
 * DevStore - Custom Premium Stylesheet
 * Responsive Landing Page for Developers
 */

/* ==========================================
   1. Design System & Variables
   ========================================== */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-rgb: 37, 99, 235;
  --secondary-color: #0f172a;
  --secondary-rgb: 15, 23, 42;
  --text-color: #475569;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #f1f5f9;
  --star-color: #fbbf24;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px 0 rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================
   2. Base Styles
   ========================================== */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* ==========================================
   3. Utility Classes
   ========================================== */
.bg-light-custom {
  background-color: var(--bg-light);
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.badge-custom {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* ==========================================
   4. Buttons
   ========================================== */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(var(--primary-rgb), 0.5);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(var(--primary-rgb), 0.3);
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50px;
}

/* ==========================================
   5. Header & Navbar
   ========================================== */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand span {
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  margin: 0 0.15rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

.nav-action-btn {
  font-size: 1.25rem;
  color: var(--text-dark);
  position: relative;
  transition: color 0.2s ease;
}

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

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero-section {
  padding: 9rem 0 6rem 0;
  position: relative;
  background: radial-gradient(circle at 90% 10%, rgba(var(--primary-rgb), 0.06) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-heading {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subheading {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.hero-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-trust-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.hero-trust-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.hero-trust-desc {
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Hero Illustration floating & glow effects */
.hero-illustration-wrapper {
  position: relative;
}

.hero-illustration-wrapper::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-illustration {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================
   7. Featured Products Section
   ========================================== */
.section-title {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title-wrapper {
  margin-bottom: 3.5rem;
}

.section-underline {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto;
  border-radius: 5px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.product-rating .star {
  color: var(--star-color);
  font-size: 0.85rem;
}

.product-rating .rating-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: 0.25rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
}

.product-price span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-add-cart {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
}

.btn-add-cart:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-cart-icon {
  width: 38px;
  height: 38px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-cart-icon:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* ==========================================
   8. About Us / Solutions Section
   ========================================== */
.about-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 10% 90%, rgba(var(--primary-rgb), 0.05) 0%, rgba(255, 255, 255, 0) 50%);
}

.about-illustration-wrapper {
  position: relative;
  display: inline-block;
}

.about-illustration-wrapper::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(15px);
}

.about-illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 20px;
  animation: float-slow 8s ease-in-out infinite;
}

@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08);
}

.about-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.about-item-desc {
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 0;
}

/* ==========================================
   9. Testimonials Section
   ========================================== */
.testimonials-section {
  padding: 6rem 0;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.1);
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.25rem;
  color: var(--primary-light);
  line-height: 1;
}

.testimonial-stars {
  color: var(--star-color);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

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

/* ==========================================
   10. Feature Ribbon Section
   ========================================== */
.feature-ribbon-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ribbon-icon {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.ribbon-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.ribbon-desc {
  font-size: 0.8rem;
  color: var(--text-color);
  margin: 0;
}

/* ==========================================
   11. Newsletter Subscription
   ========================================== */
.newsletter-section {
  padding: 5rem 0;
}

.newsletter-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 4rem;
  box-shadow: var(--card-shadow);
}

.newsletter-icon {
  font-size: 2.25rem;
  color: var(--primary-color);
  background-color: var(--primary-light);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}

.newsletter-form-wrapper {
  display: flex;
  gap: 0.75rem;
}

.newsletter-input {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  flex-grow: 1;
  background-color: var(--bg-white);
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* ==========================================
   12. Footer Section
   ========================================== */
.footer {
  background-color: var(--secondary-color);
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-top {
  padding: 5rem 0 3.5rem 0;
  border-bottom: 1px solid #1e293b;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--bg-white) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background-color: #1e293b;
  color: #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.footer-title {
  color: var(--bg-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--bg-white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  background-color: #0b0f19;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: #64748b;
}

.footer-bottom-link:hover {
  color: #94a3b8;
}

/* ==========================================
   13. Responsiveness Adjustments
   ========================================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 7rem 0 4rem 0;
    text-align: center;
  }
  
  .hero-heading {
    font-size: 2.5rem;
  }
  
  .hero-trust-list {
    justify-content: center;
    max-width: 500px;
    margin: 2rem auto 0 auto;
  }
  
  .hero-trust-item {
    text-align: left;
  }
  
  .hero-illustration {
    margin-top: 3rem;
  }
  
  .newsletter-card {
    padding: 2.5rem 2rem;
  }
  
  .newsletter-form-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-input {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.85rem;
  }
  
  .about-section {
    text-align: center;
  }
  
  .about-illustration {
    margin-bottom: 3rem;
  }
  
  .about-item {
    text-align: left;
  }
  
  .feature-ribbon-section .ribbon-item {
    margin-bottom: 1.5rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
    margin-top: 1rem;
  }
}
