/* Global Typography - Montserrat Font, Non-Bold, Small Sizes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500&display=swap');

/* Smart Factory - Uniform with Website Design */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family: 'Montserrat' !important;
  font-weight: 400 !important;
}

html, body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400 !important;
}

strong, b {
  font-weight: 400 !important;
}

nav, nav a, .navbar, .nav-link, .menu-item, .main-nav a, .mobile-nav-link {
  font-size: 12px !important;
  font-weight: 400 !important;
  font-family: 'Montserrat' !important;
}

p {
  font-size: 13px;
  font-weight: 400 !important;
}

:root {
  --gold: #d4a000;
  --bg: #f5f5f5;
  --paper: #ffffff;
  --muted: #666666;
  --dark: #1a1a1a;
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-orange: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-green: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-blue: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-yellow: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-pink: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-cyan: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Section - Uniform Style */
.smart-factory-hero {
  padding: 120px 40px 80px;
  /* Smart Factory hero background image with dark overlay for readability */
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 100%),
    url('../web/pictures/smartfacotry%20hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  margin-top: 60px;
  color: #ffffff;
}

.hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-main-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: 'Montserrat';
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.hero-underline {
  width: 100px;
  height: 4px;
  background: var(--gold);
  margin: 0 auto 30px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #f3f3f3;
  font-weight: 400;
  font-family: 'Montserrat';
  margin-bottom: 30px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-cta-button {
  display: inline-block;
  background: var(--gold);
  color: #000000;
  padding: 15px 40px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Montserrat';
  border: 2px solid var(--gold);
}

.hero-cta-button:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-illustration {
  display: none;
}

/* Feature Section with Image */
.smart-factory-feature {
  padding: 80px 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.smart-factory-feature::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 3px solid rgba(212, 160, 0, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.smart-factory-feature::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border: 3px solid rgba(212, 160, 0, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.feature-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-image-wrapper {
  position: relative;
}

.feature-image-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;

}

.feature-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-image-placeholder .feature-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 400px;
  align-items: center;
  justify-content: center;
}

.feature-image-placeholder svg {
  width: 100%;
  height: 100%;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-text {
  margin-bottom: 10px;
}

.feature-text-main {
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--dark);
  font-family: 'Montserrat';
  font-weight: 400;
  margin: 0;
}

.feature-highlight {
  color: var(--gold);
  font-weight: 400;
  display: inline-block;
}

.feature-cta-box {
  background: var(--gold);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(212, 160, 0, 0.3);
}

.feature-cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  font-family: 'Montserrat';
  font-weight: 400;
}

/* One-Line Intro */
.smart-factory-intro {
  padding: 60px 0;
  background: var(--paper);
  text-align: center;
}

.smart-factory-intro h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000000;
  margin-bottom: 20px;
  font-family: 'Montserrat';
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.intro-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: 'Montserrat';
  font-weight: 400;
}

/* Technologies Section - Row Layout */
.technologies-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(212,160,0,0.05) 0%, rgba(212,160,0,0.02) 100%);
  position: relative;
  overflow: hidden;
}

.technologies-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 160, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 160, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.technologies-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.technologies-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tech Row - Each technology in its own row */
.tech-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-bottom: 2px solid rgba(212, 160, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tech-row.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.tech-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.tech-row:hover::before {
  transform: scaleY(1);
}

.tech-row:last-child {
  border-bottom: none;
}

.tech-row:hover {
  background: linear-gradient(90deg, rgba(212, 160, 0, 0.05) 0%, rgba(212, 160, 0, 0.02) 100%);
  transform: translateX(5px);
  box-shadow: -5px 0 20px rgba(212, 160, 0, 0.1);
}

.tech-row:nth-child(even) {
  /* Reverse order for even rows: content left, image right */
}

.tech-row:nth-child(even) .tech-media {
  order: 2;
}

.tech-row:nth-child(even) .tech-content {
  order: 1;
}

.tech-row:nth-child(even):hover {
  transform: translateX(-5px);
  box-shadow: 5px 0 20px rgba(212, 160, 0, 0.1);
}

/* Tech Media - Image/Video on the left */
.tech-media {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212,160,0,0.1) 0%, rgba(212,160,0,0.05) 100%);
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.tech-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 160, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.tech-row:hover .tech-media::after {
  opacity: 1;
}

/* Smoky gradient blend on the right edge of image (left side for even rows) */
.tech-media::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 245, 245, 0.3) 20%,
    rgba(245, 245, 245, 0.6) 50%,
    rgba(245, 245, 245, 0.8) 80%,
    rgba(245, 245, 245, 0.95) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.tech-row:nth-child(even) .tech-media::before {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, 
    rgba(245, 245, 245, 0.95) 0%,
    rgba(245, 245, 245, 0.8) 20%,
    rgba(245, 245, 245, 0.6) 50%,
    rgba(245, 245, 245, 0.3) 80%,
    transparent 100%
  );
}

.tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: brightness(0.95) contrast(1.05);
}

.tech-row:hover .tech-media img {
  transform: scale(1.1) translateX(5px);
  filter: brightness(1) contrast(1.1);
}

.tech-row:nth-child(even):hover .tech-media img {
  transform: scale(1.1) translateX(-5px);
}

.tech-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-row:hover .tech-media video {
  transform: scale(1.1);
}

.tech-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,160,0,0.1) 0%, rgba(212,160,0,0.05) 100%);
  color: rgba(212, 160, 0, 0.3);
}

.tech-media-placeholder svg {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.tech-row:hover .tech-media-placeholder svg {
  transform: scale(1.1) rotate(5deg);
}

/* Tech Content - Description on the right side, but text left-aligned */
.tech-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 80px 80px 80px 100px;
  position: relative;
  background: linear-gradient(135deg, 
    rgba(245, 245, 245, 0.95) 0%, 
    rgba(245, 245, 245, 0.9) 5%,
    rgba(255, 255, 255, 0.7) 20%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transition: all 0.4s ease;
  min-height: 400px;
}

.tech-row:nth-child(even) .tech-content {
  padding: 80px 100px 80px 80px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.7) 80%,
    rgba(245, 245, 245, 0.9) 95%,
    rgba(245, 245, 245, 0.95) 100%
  );
}

.tech-row:hover .tech-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
  padding-left: 90px;
}

.tech-row:nth-child(even):hover .tech-content {
  padding-left: 80px;
  padding-right: 90px;
}

.tech-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-row:nth-child(even) .tech-content::before {
  left: auto;
  right: 0;
}

.tech-row:hover .tech-content::before {
  opacity: 1;
}

.tech-name {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 20px 0;
  color: var(--dark);
  font-family: 'Montserrat';
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.tech-row:hover .tech-name {
  color: var(--gold);
  transform: translateX(5px);
}

.tech-row:nth-child(even):hover .tech-name {
  transform: translateX(-5px);
}

.tech-name::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-row:hover .tech-name::after {
  transform: scaleX(1);
}

.tech-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  font-family: 'Montserrat';
  text-align: left;
  max-width: 90%;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.tech-row:hover .tech-description {
  opacity: 1;
  color: #444;
  transform: translateX(5px);
}

/* Featured Video Section */
.featured-video-section {
  padding: 80px 0;
  background: var(--paper);
}

.featured-video-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.video-section-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Montserrat';
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;
  background: var(--dark);
}

.featured-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.video-placeholder svg {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.video-placeholder p {
  font-size: 1.25rem;
  font-family: 'Montserrat';
}

/* CTA Section */
.smart-factory-cta {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--tech-blue) 0%, var(--tech-blue-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.smart-factory-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-container h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #000000;
  margin-bottom: 20px;
  font-family: 'Montserrat';
}

.cta-container p {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 40px;
  font-family: 'Montserrat';
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  padding: 18px 50px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid #000000;
  font-family: 'Montserrat';
}

.cta-button:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-illustration {
    height: 300px;
  }

  .tech-row {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }

  .tech-media {
    height: 200px;
  }
}

@media (max-width: 800px) {
  .smart-factory-hero {
    padding: 100px 20px 60px;
  }

  .hero-main-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta-button {
    padding: 14px 35px;
    font-size: 1rem;
  }

  .smart-factory-feature {
    padding: 60px 0;
  }

  .feature-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .feature-image-placeholder {
    height: 300px;
  }

  .feature-text-main {
    font-size: 1.5rem;
  }

  .feature-cta-box {
    padding: 25px;
  }

  .feature-cta-text {
    font-size: 0.95rem;
  }

  .intro-text {
    font-size: 1.125rem;
    padding: 0 20px;
  }

  .technologies-section {
    padding: 60px 0;
  }

  .tech-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .tech-row:hover {
    transform: translateX(0);
    box-shadow: none;
  }

  .tech-row:nth-child(even):hover {
    transform: translateX(0);
    box-shadow: none;
  }

  .tech-media {
    height: 350px;
    order: 1;
  }
  
  .tech-row:nth-child(even) .tech-media {
    order: 1; /* Reset order on mobile - image always first */
  }
  
  .tech-content {
    min-height: 350px;
    order: 2;
    padding: 40px 30px;
  }

  .tech-row:nth-child(even) .tech-content {
    order: 2; /* Reset order on mobile - content always second */
    padding: 40px 30px;
  }

  .tech-row:hover .tech-media img {
    transform: scale(1.05);
  }

  .tech-row:hover .tech-content {
    padding-left: 30px;
    padding-right: 30px;
  }

  .tech-name {
    font-size: 1.6rem;
  }

  .tech-row:hover .tech-name {
    transform: translateX(0);
  }

  .tech-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .tech-row:hover .tech-description {
    transform: translateX(0);
  }

  .video-section-title {
    font-size: 1.8rem;
  }

  .cta-container h2 {
    font-size: 1.8rem;
  }

  .cta-container p {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .smart-factory-hero {
    padding: 80px 15px 40px;
  }

  .hero-main-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-button {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .smart-factory-feature {
    padding: 40px 0;
  }

  .feature-container {
    padding: 0 15px;
    gap: 30px;
  }

  .feature-image-placeholder {
    height: 250px;
  }

  .feature-text-main {
    font-size: 1.5rem;
  }

  .feature-cta-box {
    padding: 20px;
  }

  .feature-cta-text {
    font-size: 0.9rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .technologies-section {
    padding: 40px 0;
  }

  .tech-row {
    padding: 0;
    gap: 0;
  }

  .tech-row:hover {
    transform: translateX(0);
  }

  .tech-row:nth-child(even):hover {
    transform: translateX(0);
  }

  .tech-media {
    height: 200px;
  }

  .tech-content {
    padding: 30px 20px;
  }

  .tech-row:hover .tech-content {
    padding-left: 20px;
  }

  .tech-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .tech-row:hover .tech-name {
    transform: translateX(0);
  }

  .tech-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .tech-row:hover .tech-description {
    transform: translateX(0);
  }

  .video-section-title {
    font-size: 1.5rem;
  }

  .cta-container h2 {
    font-size: 1.5rem;
  }

  .cta-container p {
    font-size: 1.125rem;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
}
