/* ==========================================================================
   Hindustan Electronics - Premium Stylesheet
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #0B3C5D;
  --primary-light: #165682;
  --secondary-color: #FFFFFF;
  --accent-color: #FF6B00;
  --accent-hover: #E56000;
  --bg-color: #F7F8FA;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #E2E8F0;
  --card-bg: #FFFFFF;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-hover: 0 15px 30px rgba(11, 60, 93, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Global Resets & Base Styles
   ========================================================================== */
html, body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: all var(--transition-normal);
}

.navbar-custom.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-text {
  display: inline-block;
  line-height: 1.1;
  color: var(--primary-color);
}

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

.navbar-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar-custom.scrolled .navbar-logo {
  width: 44px;
  height: 44px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 10px;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11,60,93,0.9) 0%, rgba(11,60,93,0.7) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--secondary-color);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0.9;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--bg-color);
}

.section-bg-white {
  background-color: #FFFFFF;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.category-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.category-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.category-card:hover .category-icon {
  color: var(--accent-color);
  transform: scale(1.1);
}

.category-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  color: var(--primary-color);
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect ratio */
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img-wrapper img {
  transform: translate(-50%, -50%) scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-features li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.product-features li i {
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 0.8rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Brands Carousel
   ========================================================================== */
.brand-item {
  padding: 30px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: all var(--transition-normal);
}

.brand-item img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.brand-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   Timeline (Customer Journey)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-icon {
  position: absolute;
  top: 0;
  right: -25px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 0 0 4px white, inset 0 0 0 2px var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-icon {
  right: auto;
  left: -25px;
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content::after {
  right: auto;
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-brand .footer-widget-title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-brand .footer-widget-title::after {
  display: none;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-widget-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-contact-info li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact-info i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 3px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all var(--transition-normal);
}

.social-icons a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #082d47;
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 20px 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-top: 1px solid var(--border-color);
}

.cookie-banner.show {
  bottom: 0;
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.fab:hover {
  transform: scale(1.1);
  color: white;
}

.fab-whatsapp {
  background-color: #25D366;
}

.fab-call {
  background-color: var(--primary-color);
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form-wrapper {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.form-control, .form-select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .navbar-brand {
    font-size: 1.3rem;
    gap: 8px;
  }
  .navbar-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }
  .timeline-item:nth-child(even) {
    padding-left: 60px;
  }
  .timeline-icon {
    left: 0 !important;
    right: auto !important;
  }
  .timeline-content::after {
    left: -10px !important;
    right: auto !important;
    border-width: 10px 10px 10px 0 !important;
    border-color: transparent white transparent transparent !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.15rem;
    gap: 6px;
  }
  .navbar-logo {
    width: 40px;
    height: 40px;
  }
}
