@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-black: #ffffff;
  --color-charcoal-dark: #f8f9fa;
  --color-charcoal: #ffffff;
  --color-charcoal-light: #e9ecef;
  --color-silver: #6c757d;
  --color-silver-light: #343a40;
  --color-white: #212529;
  --color-sl-red: #d32f2f;
  --color-sl-red-glow: rgba(211, 47, 47, 0.4);

  /* Typography */
  --font-main: 'Pretendard', 'Inter', -apple-system, sans-serif;

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

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

body {
  font-family: var(--font-main);
  background-color: var(--color-black);
  color: var(--color-silver-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-sl-red);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-silver) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--color-sl-red);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 0 3rem;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 3rem;
  margin-right: 4rem;
}

.nav-links a {
  color: #f0f0f0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-sl-red);
  transition: width var(--transition-normal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-selector i {
  color: #e0e0e0;
  font-size: 1rem;
}

.lang-selector a {
  color: #e0e0e0;
  transition: color var(--transition-normal);
}

.lang-selector a:hover, .lang-selector a.active {
  color: var(--color-sl-red);
}

.lang-selector .divider {
  color: #666666;
  font-size: 0.8rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff; font-size: 1.5rem; cursor: pointer;
}

/* Hero Section */
.hero {
  height: 75vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  transform: scale(1.05);
}

#home .hero-bg:nth-child(1) {
  animation: bgZoom 30s infinite alternate ease-in-out, bgFade1 30s infinite;
}

#home .hero-bg.alt-bg {
  animation: bgZoom 30s infinite alternate ease-in-out, bgFade2 30s infinite;
}

#home .hero-bg.alt-bg-2 {
  animation: bgZoom 30s infinite alternate ease-in-out, bgFade3 30s infinite;
}

/* For single hero images on other pages, just zoom */
.hero:not(#home) .hero-bg {
  opacity: 0.5;
  animation: bgZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,10,0.6);
  z-index: 1;
}

#home .hero-overlay {
  background: linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-accent {
  color: var(--color-sl-red);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  word-break: keep-all;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-silver-light);
  margin: 1rem auto 2.5rem auto;
  max-width: 800px;
  line-height: 1.8;
  word-break: keep-all;
}

@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}


  50%, 80% { opacity: 0; }
  100% { opacity: 0.5; }
}


  50%, 80% { opacity: 0.5; }
  100% { opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-sl-red);
  color: var(--color-white);
  box-shadow: 0 4px 15px var(--color-sl-red-glow);
}

.btn-primary:hover {
  background-color: #b71c1c;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white); color: #ffffff;
  transform: translateY(-2px);
}

/* Stats Section */
.stats {
  background-color: var(--color-charcoal-dark);
  border-top: 1px solid var(--color-charcoal-light);
  border-bottom: 1px solid var(--color-charcoal-light);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-sl-red);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features Section (Why Choose Us) */
.feature-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.feature-item:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
  border-color: var(--color-sl-red) !important;
}

/* Products Section */
.products {
  background-color: var(--color-black);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--color-sl-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

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

.product-card {
  background-color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-sl-red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-card-inner {
  padding: 2rem;
}

.product-icon {
  font-size: 2.5rem;
  color: var(--color-sl-red);
  margin-bottom: 1.5rem;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-card p {
  color: var(--color-silver);
}

/* Product Showcase Layout (for products.html) */
.product-showcase {
  padding: 6rem 0;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.product-row:last-child {
  margin-bottom: 0;
}

.product-row.reverse {
  flex-direction: row-reverse;
}

.product-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  line-height: 1.2;
}

.product-info p {
  font-size: 1.1rem;
  color: var(--color-silver);
  margin-bottom: 2rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--color-silver-light);
}

.product-features i {
  color: var(--color-sl-red);
  margin-top: 5px;
}

@media (max-width: 992px) {
  .product-row, .product-row.reverse {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
  }
}

/* OEM/ODM Process */
.process {
  background: linear-gradient(180deg, var(--color-charcoal-dark) 0%, var(--color-black) 100%);
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-charcoal-light);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-sl-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.15);
}

.step-number {
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.process-step h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Quality Assurance */
.quality {
  display: flex;
  align-items: center;
  background-color: var(--color-charcoal-dark);
}

.quality-content {
  flex: 1;
  padding-right: 4rem;
}

.quality-list {
  margin-top: 2rem;
}

.quality-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.quality-list i {
  color: var(--color-sl-red);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.quality-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.quality-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.quality-image:hover img {
  transform: scale(1.05);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-sl-red) 0%, #8e0000 100%);
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 100 L100 0 L100 100 Z" fill="rgba(0,0,0,0.1)"/></svg>') repeat;
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta .btn-outline {
  border-color: var(--color-white);
  background-color: var(--color-white);
  color: var(--color-sl-red);
}

.cta .btn-outline:hover {
  background-color: transparent;
  color: var(--color-white);
}

/* Footer */
footer {
  background-color: var(--color-black);
  border-top: 1px solid var(--color-charcoal-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-silver);
}

.footer-links a:hover {
  color: var(--color-sl-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-charcoal-light);
  color: var(--color-silver);
  font-size: 0.9rem;
}

/* Animations & Reveal Effects */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee / Global Partners Ribbon */
.marquee-section {
  background-color: var(--color-black);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-container {
  display: flex;
  width: 200%;
}

.marquee-content {
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  animation: marqueeScroll 80s linear infinite;
}

.marquee-item {
  color: var(--color-silver-light);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 6rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--color-sl-red);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


/* Responsive */
@media (max-width: 992px) {
  .quality {
    flex-direction: column;
  }
  .quality-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-normal);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Hero text override for Light Theme */
.hero-content h1, .hero-content h1 span:not(.text-gradient), .hero-subtitle, .hero-accent { color: #ffffff !important; }

/* Fix for Hero Gradient Text */
.hero-content .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Navbar White Theme Override */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.nav-links a {
    color: #212529 !important;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--color-sl-red) !important;
}
.lang-selector a, .lang-selector i {
    color: #495057 !important;
}
.lang-selector a:hover, .lang-selector a.active {
    color: var(--color-sl-red) !important;
}
.lang-selector .divider {
    color: #ced4da !important;
}
.mobile-menu-btn {
    color: #212529 !important;
}

/* Invert logo to dark if it was previously white (assuming monochrome logo) */
/* We'll use brightness to turn white parts black without affecting red if it's separate? Actually we can't do partial invert safely. Let's see if the user complains about the logo */

/* Hero text size increase */
.hero-content h1 {
    font-size: clamp(2.7rem, 4.5vw, 4rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
}
.hero-subtitle {
    font-size: 1.25rem !important;
    max-width: 900px !important;
}

/* Left Align Hero (Home Only) */
#home .hero-content {
    text-align: left !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}
#home .hero-subtitle {
    text-align: left !important;
    margin-left: 0 !important;
}

/* Force hero images to fit entirely within the 75vh container */
.hero-bg {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: #0a0a0a !important; /* Fill any empty space with dark color */
}

/* Adjust background to cover and position it to the right */
.hero-bg {
    background-size: cover !important;
    background-position: right center !important;
}

@keyframes bgFade1 {
  0%, 25% { opacity: 0.5; }
  33%, 92% { opacity: 0; }
  100% { opacity: 0.5; }
}
@keyframes bgFade2 {
  0%, 25% { opacity: 0; }
  33%, 58% { opacity: 0.5; }
  66%, 100% { opacity: 0; }
}
@keyframes bgFade3 {
  0%, 58% { opacity: 0; }
  66%, 92% { opacity: 0.5; }
  100% { opacity: 0; }
}
