/* =========================================
   Hammertech Korea - Modern Renewal CSS
   Premium, Glassmorphism, Dark/Metallic Theme
========================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --primary-color: #5a1813; /* Existing brand color */
  --primary-glow: rgba(90, 24, 19, 0.6);
  --bg-dark: #0a0a0c;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --metallic-silver: #e0e5ec;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 15, 20, 0.6);
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* --- Navigation (Glassmorphism) --- */
.modern-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-logo img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 10px 0;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--metallic-silver);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 20, 25, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem 0;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  padding: 0.5rem 1.5rem;
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dropdown-menu li a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

/* --- Hero Section with Video Background --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,12,0.3) 0%, rgba(10,10,12,1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 24, 19, 0.8);
  background: #6e1c16;
}

/* --- Expertise / B2B Section --- */
.expertise {
  padding: 6rem 5%;
  background: url('../accessary_bg1.png') center/cover no-repeat;
  position: relative;
}
.expertise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.85);
}
.expertise-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.expertise-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--metallic-silver);
}

.expertise-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: #fff;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.expertise-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.3);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Products Showcase --- */
.products {
  padding: 6rem 5%;
  background: var(--bg-dark);
}

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

.product-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #15151a;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-info {
  transform: translateY(0);
  opacity: 1;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--metallic-silver);
  font-size: 0.9rem;
}

/* --- Footer --- */
.modern-footer {
  background: #050505;
  padding: 4rem 5% 2rem;
  border-top: 1px solid #1a1a1a;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info img {
  width: 60px;
  margin-bottom: 1rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s;
}

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

.footer-social img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
  color: #666;
  font-size: 0.8rem;
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
  .expertise-content {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu logic via JS */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10,10,12,0.95);
    flex-direction: column;
    padding: 2rem 0;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    display: block;
  }
  .nav-links li:hover .dropdown-menu {
    display: block;
  }
  .hamburger {
    display: block;
  }
  .hero-title { font-size: 2.2rem; }
  .expertise-features { grid-template-columns: 1fr; }
}

/* Fix logo visibility on dark background */
.nav-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.nav-logo img:hover {
  opacity: 1;
}
