/* 凝境影像 v2 - DZOFILM Inspired Design */
/* Dark Mode Cinema Style */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #121212;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #c9a962;
  --accent-hover: #d4b76a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --gradient-gold: linear-gradient(135deg, #c9a962 0%, #8b7355 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 4rem;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.nav-logo span {
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.lang-switch {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== HERO SECTION ========== */
.hero-v2 {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}

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

.hero-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 169, 98, 0.05) 0%, transparent 40%);
  animation: pulseGlow 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-v2-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero-v2-tag {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-v2 h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-v2-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.4em;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-v2-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-v2-cta {
  display: inline-flex;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.1s;
}

.hero-v2-btn {
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hero-v2-btn.primary {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 500;
}

.hero-v2-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-v2-btn.secondary {
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.hero-v2-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ========== SECTIONS COMMON ========== */
.section-v2 {
  padding: 8rem 4rem;
  position: relative;
}

.section-v2-dark {
  background: var(--bg-secondary);
}

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

.section-v2-label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-v2-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* ========== PORTFOLIO GRID ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-card-featured {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.portfolio-card-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card-image {
  transform: scale(1.05);
}

/* Ensure iframe fills the card properly - NO OVERLAY COVERAGE */
.portfolio-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Overlay only shows a small label at top, NEVER covers controls */
.portfolio-card-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  bottom: auto;
  width: auto;
  max-width: 80%;
  height: auto;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.85);
  border-radius: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  display: block;
}

.portfolio-card:hover .portfolio-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Compact text styles */
.portfolio-card-overlay .portfolio-card-tag {
  font-size: 0.65rem;
  margin-bottom: 0.2rem;
}

.portfolio-card-overlay .portfolio-card-title {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.portfolio-card-overlay .portfolio-card-arrow {
  display: none;
}

.portfolio-card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portfolio-card-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.portfolio-card-arrow {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-arrow {
  color: var(--accent);
}

/* ========== SHOT ON CAROUSEL ========== */
.shoton-section {
  padding: 6rem 0;
  overflow: hidden;
  background: var(--bg-primary);
}

.shoton-header {
  text-align: center;
  padding: 0 4rem;
  margin-bottom: 3rem;
}

.shoton-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 4rem 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shoton-carousel::-webkit-scrollbar {
  display: none;
}

.shoton-item {
  flex-shrink: 0;
  width: 400px;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.shoton-item:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

/* ========== PHILOSOPHY CARDS ========== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-card {
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.4s ease;
  background: var(--bg-secondary);
}

.philosophy-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
}

.philosophy-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

.philosophy-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.philosophy-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== ABOUT SECTION ========== */
.about-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-v2-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.about-v2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.about-v2-content h3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.about-v2-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-v2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ========== SERVICES ========== */
.services-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-v2-card {
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-v2-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-v2-card:hover::before {
  transform: scaleX(1);
}

.service-v2-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-v2-number {
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-v2-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-v2-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact-v2 {
  max-width: 800px;
  margin: 0 auto;
}

.contact-v2-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-v2-info h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--accent);
}

.contact-v2-item {
  margin-bottom: 2rem;
}

.contact-v2-item label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-v2-item a,
.contact-v2-item span {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.contact-v2-item a:hover {
  color: var(--accent);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-submit {
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.footer-v2 {
  padding: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-v2-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-v2-brand {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-v2-brand span {
  color: var(--accent);
}

.footer-v2-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-v2-links h4 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-v2-links ul {
  list-style: none;
}

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

.footer-v2-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-v2-links a:hover {
  color: var(--accent);
}

.footer-v2-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-v2-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav {
    padding: 1rem 2rem;
  }
  
  .nav.scrolled {
    padding: 0.75rem 2rem;
  }
  
  .section-v2 {
    padding: 6rem 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-card-featured {
    grid-column: span 2;
  }
  
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-v2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-v2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-v2-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-v2-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-v2 h1 {
    font-size: 2rem;
  }
  
  .hero-v2-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-card-featured {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .services-v2-grid {
    grid-template-columns: 1fr;
  }
  
  .about-v2-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .shoton-item {
    width: 300px;
  }
  
  .footer-v2-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-v2-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}
