/* Modern CSS for Jaysun Solar Website */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1677bd;
  --secondary-color: #87a30d;
  --accent-color: #87222a;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: #6a820a;
}

/* Header Styles */
header {
  background: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  height: 60px;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  margin: 0 10px;
  font-weight: 500;
  position: relative;
  padding: 10px 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

/* Hero Section */
.hero {
  overflow: hidden;
}
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

/* Carousel styling */
.carousel-item {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.carousel-item.active {
  background-size: cover;
  background-position: center;
}

.carousel-caption {
  position: relative;
  z-index: 2;
  color: white;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary-color);
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--secondary-color);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--light-color);
}

.feature-box {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 30px;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-box i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Products Section */
.products {
  padding: 80px 0;
  background: var(--light-color);
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.product-content {
  padding: 20px;
}

/* Technology Section */
.technology {
  padding: 80px 0;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tech-item {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.tech-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--light-color);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 119, 189, 0.1);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 0;
}

.footer-content {
  padding-bottom: 40px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-title {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-links a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: #adb5bd;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mb-30 {
  margin-bottom: 30px;
}

.mb-50 {
  margin-bottom: 50px;
}

.pt-50 {
  padding-top: 50px;
}

.pb-50 {
  padding-bottom: 50px;
}

/* Custom styles for benefits list */
.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}

.benefits-list li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--secondary-color);
  background: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Testimonial Section */
.testimonials {
  padding: 80px 0;
  background: url('../images/bg_main.png');
  background-size: cover;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 20px;
  text-align: center;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background: var(--primary-color);
  color: white;
}

.stat-item {
  text-align: center;
  margin: 20px 0;
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Mobile menu button */
.navbar-toggler {
  border: none;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 350px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
}

/* Modern Design Enhancements */

/* Hero Section Enhancements */
.hero {
  background: linear-gradient(135deg, #1a4a8c 0%, #0d2a5a 100%) !important;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-title {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInDown 1s ease-out;
}

.hero-stats .stat-item {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-stats .stat-item:nth-child(1) { animation-delay: 0.2s; }
.hero-stats .stat-item:nth-child(2) { animation-delay: 0.4s; }
.hero-stats .stat-item:nth-child(3) { animation-delay: 0.6s; }

.hero-tags .badge {
  font-size: 0.9rem;
  animation: bounceIn 1s ease-out;
}

.tech-highlights .highlight-item {
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.8s ease-out;
}

/* New Component Styles */
.bg-gradient {
  background: linear-gradient(135deg, #1a4a8c 0%, #2c6dcc 100%) !important;
}

.max-w-800 {
  max-width: 800px;
}

.mission-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.mission-icon {
  transition: transform 0.3s ease;
}

.mission-card:hover .mission-icon {
  transform: scale(1.1);
}

.commitment-section ul {
  list-style: none;
  padding: 0;
}

.commitment-section li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.commitment-section li i {
  margin-right: 15px;
  min-width: 24px;
}

.system-overview {
  border-left: 5px solid #1a4a8c;
}

.application-card {
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.application-card:hover {
  transform: translateY(-8px);
  border-top-color: #1a4a8c;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.application-list {
  list-style: none;
  padding: 0;
}

.application-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.application-list li:last-child {
  border-bottom: none;
}

.application-list li:before {
  content: "\2022";
  color: #1a4a8c;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.tech-feature-card {
  transition: all 0.3s ease;
}

.tech-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.tech-benefits {
  list-style: none;
  padding: 0;
}

.tech-benefits li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.tech-benefits li:before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #28a745;
  position: absolute;
  left: 0;
}

.innovation-showcase {
  position: relative;
  overflow: hidden;
}

.innovation-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.contact-form-container {
  border-top: 5px solid #1a4a8c;
}

.input-group-text {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.form-control:focus, .form-select:focus {
  border-color: #1a4a8c;
  box-shadow: 0 0 0 0.25rem rgba(26, 74, 140, 0.25);
}

.contact-info-card {
  border-left: 4px solid #1a4a8c;
}

.info-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.info-section:last-child {
  border-bottom: none;
}

.support-card {
  animation: pulse 2s infinite;
}

.experience-badge {
  animation: bounce 2s infinite;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 2rem !important;
  }
  
  .stat-item h3 {
    font-size: 2rem !important;
  }
  
  .contact-sidebar {
    position: static !important;
  }
  
  .hero-tags .badge {
    margin: 5px;
  }
  
  .tech-highlights .highlight-item {
    margin: 5px;
    font-size: 0.9rem;
  }
}