/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  scroll-behavior: smooth;
}

html[data-lang="zh"] * {
  font-family: 'Noto Sans TC', 'Montserrat', sans-serif !important;
}

body {
  background-color: #FFFFFF;
  color: #212529;
  font-family: 'Open Sans', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0056b3;
}

/* Header */
header {
  position: relative;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('path-to-your-pattern.png');
  opacity: 0.1;
  pointer-events: none;
}

header .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.navbar-brand img {
  height: 48px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.1);
}

.navbar {
    background: white !important;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #1F2937 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #22D3EE;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #22D3EE !important;
    transform: translateY(-2px);
}

.lang-dropdown {
    display: flex;
    align-items: center;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
  font-size: 1.5rem;
  color: #1F2937;
  display: inline-block;
  vertical-align: middle;
}

.navbar-toggler svg {
  display: none;
  vertical-align: middle;
}

.navbar-toggler.font-awesome-fail .navbar-toggler-icon {
  display: none;
}

.navbar-toggler.font-awesome-fail svg {
  display: inline-block;
}

/* Hero Banner Section */
.hero {
  height: 80vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('../assets/images/hero-banner.jpg') no-repeat center center;
  background-size: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.hero-content h2 {
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

/* Project Intro Section */
.project-intro {
  background-color: #F8F9FA;
  padding: 48px 16px;
  text-align: center;
}

.project-intro .container {
  max-width: 800px;
  margin: 0 auto;
}

.project-intro p {
  font-size: 1.2rem;
  color: #4B5563;
  line-height: 1.7;
}

.project-intro .cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #007BFF;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.project-intro .cta-btn:hover {
  background: #0056b3;
}

/* RE:TWIST Intro Section */
.retwist-intro {
  padding: 48px 16px;
  text-align: center;
}

.retwist-intro .container {
  max-width: 800px;
  margin: 0 auto;
}

.retwist-intro .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin-bottom: 3rem;
}

.retwist-intro .section-content {
  font-size: 1.2rem;
  color: #4B5563;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.retwist-intro .cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #007BFF;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.retwist-intro .cta-btn:hover {
  background: #0056b3;
}

/* Designer Grid Component */
.designer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 48px auto;
  max-width: 1200px;
}

/* Designer Card Component */
.designer-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.designer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.1);
}

.designer-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.designer-card:hover img {
  transform: scale(1.05);
}

.designer-card .card-info {
  padding: 24px;
}

.designer-card .card-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.designer-card .card-info p {
  font-size: 0.9rem;
  color: #4B5563;
  margin: 0;
}

/* Footer Component */
footer {
  background-color: #F8F9FA;
  padding: 48px 0;
  text-align: center;
  color: #6C757D;
}

footer .social-links {
  margin-bottom: 16px;
}

footer .social-links a {
  color: #007BFF;
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: #0E7490;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2001;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-nav-overlay .close-btn {
  align-self: flex-end;
  font-size: 2rem;
  color: #212529;
  background: none;
  border: none;
  margin-bottom: 32px;
  cursor: pointer;
}

.mobile-nav-overlay nav {
  width: 100%;
}

.mobile-nav-overlay nav a {
  display: block;
  font-size: 1.25rem;
  color: #212529;
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-weight: 500;
  margin-bottom: 24px;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav-overlay nav a:hover {
  color: #007BFF;
}

/* Project Page Specific Styles */
.page-title {
  padding: 96px 16px;
  text-align: center;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #212529;
}

.content-section {
  padding: 48px 16px;
}

.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.content-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-image {
  flex: 1;
}

.content-image img {
  width: 100%;
  border-radius: 8px;
}

.content-text {
  flex: 1;
}

.content-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 16px;
}

.content-text p {
  font-size: 1.1rem;
  color: #4B5563;
  line-height: 1.7;
}

.final-cta {
  background-color: #F8F9FA;
  padding: 96px 16px;
  text-align: center;
}

.final-cta h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.2rem;
  color: #4B5563;
  line-height: 1.7;
}

/* Figure Styles - 更新為黑白銳利風格 */
.figure-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    height: 400px;
    padding: 0;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figure-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.figure-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: none;
    filter: grayscale(100%);
}

.figure-card:hover .figure-img {
    transform: scale(1.02);
    filter: grayscale(0%);
}

.figure-info {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    background: #ffffff;
    padding: 1.5rem;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: none;
    transition: none;
}

.designer-name {
    font-weight: 300;
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-title {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000000;
    letter-spacing: -0.01em;
}

.work-desc {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 0.5rem;
    font-weight: 300;
    line-height: 1.4;
}

/* View More 按鈕 - 黑白風格 */
.view-more-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 1px solid #000000;
    cursor: pointer;
}

.view-more-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Grid Layout - 銳利風格 */
.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin: 0;
}

.col-md-6.col-lg-4 {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .figure-card {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .row {
        grid-template-columns: 1fr;
    }
    
    .figure-card {
        height: 300px;
    }
}

/* Language Dropdown Styles */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.lang-toggle:hover {
    color: #22D3EE;
}

.lang-toggle i {
    margin-left: 0.5rem;
}

.dropdown-menu {
    min-width: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #1F2937;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background: #22D3EE;
    color: #FFFFFF;
}