/* SUNCORE Website Styles */

/* Base Styles */
body,h1,h2,h3,h4,h5 {font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}
body {font-size:16px; margin: 0; position: relative;}

/* Particles Background Container */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
}

#tsparticles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.dark-mode #tsparticles {
  background: transparent;
}

/* Thumbnail Gallery */
.thumbnail-container {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.thumbnail-container:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.thumbnail-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.4s ease;
  display: block;
}

.thumbnail-container img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.thumbnail-caption {
  padding: 12px 16px;
  background-color: #f9f9f9;
  margin: 0;
  font-size: 14px;
  color: #555;
  text-align: center;
  border-top: 2px solid #f44336;
}

/* Team Card Styles */
.team-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: #f1f1f1;
}

.team-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  transition: all 0.4s ease;
  display: block;
}

.team-card:hover img {
  transform: scale(1.08);
}

.team-card .sc-container {
  padding: 16px;
}

/* Product Card Styles */
.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 25px 25px 0px 25px;
}

.product-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.product-description {
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-size: 14px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.product-features li {
  padding: 5px 0;
  color: #555;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f44336;
  font-weight: bold;
}

.price-section {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: #f44336;
  margin: 0;
}

.price-period {
  font-size: 14px;
  color: #999;
  font-weight: normal;
}

.buy-button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.buy-button:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Services Section - Zigzag Layout */
.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  min-height: 400px;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image-wrapper {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.service-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
  display: block;
  cursor: pointer;
}

.service-image-wrapper:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  flex: 0 0 35%;
  padding: 20px;
}

.service-content.active .service-title {
  font-weight: 700;
}

.service-content.active .service-description {
  font-weight: 600;
}

.service-image.swap-out {
  opacity: 0;
  transform: scale(0.96);
}

.service-image.swap-in {
  opacity: 1;
  transform: scale(1);
}

.service-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #333;
  transition: font-weight 0.3s ease;
}

.service-description {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  transition: font-weight 0.3s ease;
}

/* Hidden products */
.hidden-product {
  display: none;
}

/* Top Navigation Bar */
.top-nav {
  background: linear-gradient(90deg, #f44336 0%, #e53935 50%, #d32f2f 100%);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
}

/* Hide navigation when scrolling down */
.top-nav.hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #f44336;
  font-weight: bold;
  font-size: 20px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.nav-menu a:hover {
  background-color: rgba(255,255,255,0.2);
}

.nav-menu a.active {
  background-color: rgba(255,255,255,0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Main Content */
.main-content {
  margin-top: 80px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
  position: relative;
  z-index: 10;
  background: transparent;
}

/* Smooth scroll - Enhanced */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

* {
  scroll-behavior: smooth;
}

/* Footer */
.footer {
  background-color: #4d3838;
  color: white;
  padding: 32px;
  /*margin-top: 75px;*/
  text-align: center;
}

/* Footer with menu */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  text-align: left;
}

.footer-services {
  text-align: left;
}

.footer-services h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.footer-services a {
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
}

.footer-services a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-menu h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  font-size: 14px;
}

.footer-menu a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  opacity: 0.8;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Google Map Section Styles */
.map-section {
  background-color: #f9f9f9;
  padding: 60px 0;
  margin: 0 -40px;
}

.map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.company-info h1 {
  margin-bottom: 20px;
}

.contact-details {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 24px;
  margin-right: 15px;
  margin-top: 5px;
  min-width: 30px;
}

.contact-text h4 {
  margin: 0 0 8px 0;
  color: #f44336;
  font-size: 18px;
  font-weight: 600;
}

.contact-text p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.contact-text a {
  color: #f44336;
  text-decoration: none;
  font-weight: 500;
}

.contact-text a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-links h4 {
  margin: 0 0 15px 0;
  color: #f44336;
  font-size: 18px;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: #f44336;
  color: white;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #d32f2f;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.map-wrapper {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-title {
  margin: 0 0 20px 0;
  color: #f44336;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.map-container-inner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container-inner iframe {
  border-radius: 8px;
}

.map-note {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-style: italic;
  font-size: 14px;
}

/* Clients Section */
.clients-section {
  background-color: #f8f9fa;
  padding: 20px 0;
  margin: 0 -20px;
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.client-item {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.client-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.client-logo {
  width: 150px;
  height: 150px;
/* background-color: #f44336; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.client-name {
  font-size: 16px;
  font-weight: 600;
  color: #686767;
  margin: 0 0 8px 0;
  display: inline-block;
}

.client-industry {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Ripple effect for buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #f44336;
    padding: 20px;
    gap: 10px;
    z-index: 2000; /* ensure menu overlays content on mobile */
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 2001; /* above the dropdown */
  }
  
  .nav-container {
    padding: 15px 20px;
  }
  
  .main-content {
    padding: 0 20px;
  }
  
  .map-section {
    margin: 0 -20px;
    padding: 40px 0;
  }
  
  .map-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .contact-item {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .contact-icon {
    font-size: 20px;
    margin-right: 12px;
  }
  
  .contact-text h4 {
    font-size: 16px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }
  
  .map-wrapper {
    padding: 20px;
  }
  
  .map-title {
    font-size: 20px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .clients-section {
    margin: 0 -20px;
    padding: 40px 0;
  }
  
  .clients-container {
    padding: 0 20px;
  }
  
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .client-item {
    padding: 20px 15px;
  }
  
  .client-logo {
    width: 120px;
    height: 120px;
    font-size: 20px;
  }
  
  .client-name {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-brand { text-align: center; }
  .footer-menu { text-align: center; }
  .footer-services { text-align: center; }

  .service-item {
    flex-direction: column !important;
    gap: 20px;
    margin-bottom: 40px;
    min-height: auto;
  }

  .service-image-wrapper {
    flex: 0 0 100%;
  }

  .service-image {
    height: 250px;
  }

  .service-content {
    flex: 0 0 100%;
    padding: 0;
  }

  .service-title {
    font-size: 22px;
  }

  .service-description {
    font-size: 14px;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.reveal.fade-up { 
  transform: translateY(30px); 
}

.reveal.fade-left { 
  transform: translateX(-30px); 
}

.reveal.fade-right { 
  transform: translateX(30px); 
}

.reveal-visible.fade-left,
.reveal-visible.fade-right,
.reveal-visible.fade-up { 
  transform: translate(0, 0) !important; 
}

/* Slightly nicer section headings */
.sc-container > h1.sc-xxxlarge {
  letter-spacing: 0.2px;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #ffffff;
}

body.dark-mode .main-content {
  background-color: #1a1a1a;
}

body.dark-mode .product-card {
  background: #2d2d2d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .product-title {
  color: #ffffff;
}

body.dark-mode .product-description {
  color: #cfcfcf;
}

body.dark-mode .product-features li {
  color: #cfcfcf;
}

body.dark-mode .team-card {
  background-color: #2d2d2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .thumbnail-caption {
  background-color: #2d2d2d;
  color: #cfcfcf;
  border-top: 2px solid #f44336;
}

body.dark-mode .map-section {
  background-color: #1f1f1f;
}

body.dark-mode .contact-item {
  background: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .contact-text p {
  color: #ffffff;
}

body.dark-mode .contact-text h4 {
  color: #f44336;
}

body.dark-mode .map-wrapper {
  background: #2d2d2d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .client-item {
  background: #2d2d2d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .client-name {
  color: #ffffff;
}

body.dark-mode .client-industry {
  color: #cfcfcf;
}

body.dark-mode .service-title {
  color: #ffffff;
}

body.dark-mode .service-description {
  color: #cfcfcf;
}

body.dark-mode p {
  color: #cfcfcf;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5 {
  color: #ffffff;
}

body.dark-mode .sc-container {
  color: #cfcfcf;
}

body.dark-mode .sc-text-red {
  color: #f44336 !important;
}

body.dark-mode .sc-opacity {
  opacity: 0.8;
}

body.dark-mode .sc-light-grey,
body.dark-mode .sc-light-gray {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

body.dark-mode .sc-dark-grey,
body.dark-mode .sc-dark-gray {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .theme-toggle {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 16px;
    position: relative;
    z-index: 2002;
  }
  
  .nav-container {
    position: relative;
  }
}


