/* 兆駿工程*/

:root {
  --primary: #2563eb;       /* 科技藍 */
  --accent: #60a5fa;        /* 亮藍 */
  --bg: #000000;            /* 深邃黑 */
  --card-bg: #111111;       /* 炭黑 */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-dim: #a1a1aa;
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- 導航欄 --- */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border-radius: 8px;
  font-size: 20px;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-weight: 300;
  color: var(--text-dim);
  font-size: 14px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 30px;
  font-size: 14px;
  transition: 0.3s;
}

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

.nav-cta {
  background: var(--text-main);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.nav-cta:hover {
  transform: scale(1.05);
  background: var(--primary);
  color: white;
}

/* --- 沉浸式 Hero Section --- */
.hero-immersive {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  position: relative;
  padding: 0 20px;
}

/* 增加一個裝飾用的背景光暈 */
.hero-immersive::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
  z-index: 1;
}

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

.reveal-text {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -3px;
  background: linear-gradient(to bottom, #fff 40%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reveal-text span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
}

.mouse {
  width: 20px;
  height: 35px;
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* --- Bento Grid 服務區 --- */
.bento-section {
  padding: 120px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  margin-bottom: 60px;
}

.tag {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-top: 10px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.bento-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  background: #161616;
}

.bento-item[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

.bento-item[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.item-info {
  position: relative;
  z-index: 2;
}

.item-info h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.item-info p {
  color: var(--text-dim);
  font-size: 15px;
}

.icon-bg {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 60px;
  opacity: 0.05;
}

/* --- 現代化聯絡表單 --- */
.modern-contact {
  padding: 100px 0 150px;
}

.contact-card {
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 60px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-header p {
  color: var(--text-dim);
}

#contact-form {
  display: grid;
  gap: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 24px;
  color: white;
  font-size: 16px;
  transition: 0.3s;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.glow-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 22px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.4s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.glow-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.5);
  background: var(--accent);
}

/* 響應式調整 */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item.wide, .bento-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .contact-card {
    padding: 40px 20px;
    border-radius: 24px;
  }
  .reveal-text {
    font-size: 48px;
    letter-spacing: -1px;
  }
}

/* 讓卡片資訊區塊更明顯 */
.item-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

/* 查看細節按鈕樣式 */
.project-view-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  width: fit-content;
}

.project-view-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateX(5px);
}
