/* Global Styles */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b99;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.3);
  --border: rgba(148, 163, 184, 0.2);
  --border-active: rgba(56, 189, 248, 0.4);
  --header-height: 80px;
  --radius: 12px;
  --radius-lg: 24px;
  --mono: 'JetBrains Mono', monospace;
  --glass: rgba(15, 23, 42, 0.85);
  /* Increased opacity for base glass */
  --dropdown-bg: rgba(15, 23, 42, 0.95);
  /* High opacity for menus */
  --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
  font-family: 'Inter', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

ul {
  list-style: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.mono {
  font-family: var(--mono);
  letter-spacing: -0.5px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--text-accent);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
}

.logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 45px;
  align-items: center;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item>a {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  padding: 20px 0;
  transition: 0.3s;
  opacity: 0.85;
  letter-spacing: -0.3px;
}

.nav-item>a:hover,
.nav-item>a.active {
  color: var(--text-accent);
  opacity: 1;
}

.nav-item>a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: #fff;
  font-weight: 700;
}

.lang-switch span {
  margin: 0 8px;
  opacity: 0.3;
}

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--dropdown-bg);
  backdrop-filter: blur(40px);
  opacity: 0;
  visibility: hidden;
  padding: 25px 0;
  /* Slightly more vertical air */
  z-index: 999;
  border-top: 1px solid var(--border-active);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-10px);
  pointer-events: none;
}

.nav:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  /* Group items in center */
  gap: 30px;
  /* Reduced gap for tighter grouping */
}

.mega-col {
  min-width: 160px;
  text-align: left;
}

.mega-col h4 {
  font-size: 14px;
  color: var(--text-accent);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mega-col h4 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.mega-col h4 a:hover {
  color: var(--text-accent);
}

.mega-col h4::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-hover);
  margin-right: 8px;
  vertical-align: middle;
}

.mega-col ul {
  list-style: none;
}

.mega-col ul li {
  margin-bottom: 4px;
  /* Reduced margin */
}

.mega-col ul li a {
  font-size: 14px;
  /* Slightly smaller for compactness */
  color: #cbd5e1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  /* Reduced padding */
}

.mega-col ul li a:hover {
  color: #fff;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hover Icon (Chevron) */
.mega-col ul li a::before {
  content: '\f054';
  /* FontAwesome Chevron-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.mega-col ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Video Rotation */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.5);
}

.hero-video.active {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

/* Tech Grid Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, var(--bg) 90%),
    linear-gradient(0deg, var(--bg) 0%, transparent 20%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-left: 40px;
  border-left: 2px solid var(--accent);
}

.hero-tag {
  font-family: var(--mono);
  color: var(--text-accent);
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0;
  animation: slideIn 0.8s forwards;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
  opacity: 0;
  animation: slideIn 0.8s forwards 0.2s;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 30px;
  opacity: 0;
  animation: slideIn 0.8s forwards 0.4s;
}

.hero-btns {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: slideIn 0.8s forwards 0.6s;
}

/* Compact List Styles */
.product-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.compact-item:hover {
  border-color: var(--text-accent);
  background: rgba(56, 189, 248, 0.05);
  transform: translateX(8px);
}

.compact-img {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.compact-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compact-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.compact-info .meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
}

.compact-price {
  font-family: var(--mono);
  color: var(--text-accent);
  font-weight: 700;
  font-size: 15px;
}

.compact-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: 0.3s;
}

.compact-item:hover .compact-action {
  background: var(--accent);
  color: #fff;
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--text-accent);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.product-img {
  height: 280px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  margin: 10px;
  border-radius: calc(var(--radius-lg) - 10px);
}

.product-img img {
  max-width: 85%;
  max-height: 85%;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  height: 42px;
  /* 2 lines max */
  overflow: hidden;
}

.product-info .price {
  font-family: var(--mono);
  color: var(--text-accent);
  font-weight: 700;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 40px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .compact-item {
    grid-template-columns: 60px 1fr;
    gap: 15px;
    padding: 10px 15px;
  }

  .compact-img {
    width: 60px;
    height: 60px;
  }

  .compact-price,
  .compact-action {
    display: none;
  }

  .compact-info h3 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compact-info .meta {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 1200px) {
  .nav {
    gap: 20px;
  }

  .nav-item>a {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* Inquiry Form Styles */
.inquiry-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--text-accent);
  background: rgba(255, 255, 255, 0.05);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: 0.3s;
}

.contact-card:hover {
  border-color: var(--text-accent);
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 24px;
  color: var(--text-accent);
  margin-bottom: 16px;
}

.contact-card h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .inquiry-container {
    padding: 25px 20px;
  }

  .inquiry-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .secret-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .inquiry-container form>div[style*="justify-content: space-between"] {
    flex-direction: column;
    align-items: stretch !important;
    gap: 15px;
  }

  .inquiry-container form button[type="submit"] {
    width: 100% !important;
  }

  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .modal-content div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

.contact-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.secret-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}

.secret-toggle input {
  display: none;
}

.secret-toggle .toggle-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.secret-toggle input:checked+.toggle-box {
  background: var(--text-accent);
  border-color: var(--text-accent);
}

.secret-toggle input:checked+.toggle-box::after {
  content: '\f023';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero-content h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Premium Global Modal Styles - Refined */
.ez-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ez-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ez-modal {
  background: #111827;
  /* Darker bg for modal */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  /* High radius */
  padding: 40px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.ez-modal-overlay.active .ez-modal {
  transform: translateY(0) scale(1);
}

.ez-modal-icon {
  width: 72px;
  height: 72px;
  background: #0ea5e9;
  /* Premium blue */
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.ez-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.ez-modal-message {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 36px;
  word-break: keep-all;
}

.ez-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.ez-modal-btn {
  padding: 18px 24px;
  border-radius: 16px;
  /* High radius */
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  flex: 1;
}

.ez-modal-btn.primary {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.ez-modal-btn.primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

.ez-modal-btn.secondary {
  background: #1f2937;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ez-modal-btn.secondary:hover {
  background: #374151;
  color: #fff;
}