/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --green-800: #166534;
  --green-900: #14532d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --black: #000000;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: flex;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-slow);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition-base);
}

.header.scrolled .logo-text {
  color: var(--primary);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--white);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.nav-link:hover {
  border-bottom-color: var(--primary);
}

.header.scrolled .nav-link {
  color: var(--gray-800);
}

.header.scrolled .nav-link:hover {
  color: var(--primary);
}

/* Phone Link */
.phone-link {
  display: flex;
  align-items: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.phone-link:hover {
  transform: scale(1.05);
}

.header.scrolled .phone-link {
  color: var(--primary);
}

.phone-icon-wrapper {
  padding: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--transition-base);
}

.header.scrolled .phone-icon-wrapper {
  background: var(--green-100);
}

.phone-icon {
  width: 20px;
  height: 20px;
}

.phone-number {
  font-weight: 500;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
  transition: background var(--transition-base);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header.scrolled .mobile-menu-btn:hover {
  background: var(--green-100);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 3px 0;
  transition: all var(--transition-base);
}

.header.scrolled .hamburger-line {
  background: var(--primary);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-list {
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  font-weight: 500;
  color: var(--gray-800);
  border-left: 4px solid transparent;
  transition: all var(--transition-base);
}

.mobile-nav-link:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

.mobile-phone-section {
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
}

.mobile-phone-link {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
}

.mobile-phone-link .phone-icon-wrapper {
  background: var(--green-100);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--gray-800) 100%);
  opacity: 0.95;
}

.hero-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(60px);
  opacity: 0.2;
  animation: blob 7s infinite;
}

.blob-1 {
  top: 40px;
  left: 40px;
  width: 256px;
  height: 256px;
  background: var(--primary);
}

.blob-2 {
  top: 0;
  right: 40px;
  width: 288px;
  height: 288px;
  background: var(--primary-light);
  animation-delay: 2s;
}

.blob-3 {
  bottom: -32px;
  left: 80px;
  width: 288px;
  height: 288px;
  background: var(--green-800);
  animation-delay: 4s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1024px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* Hero Cards */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 12px;
  transition: background var(--transition-base);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.hero-card-text {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all var(--transition-base);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Hero Phones */
.hero-phones {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-phones {
    flex-direction: row;
  }
}

.hero-phone {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: background var(--transition-base);
}

.hero-phone:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-phone-icon {
  background: var(--white);
  padding: 0.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  box-shadow: var(--shadow-md);
}

.hero-phone-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  position: relative;
  padding: 4rem 0;
  background: var(--gray-50);
  overflow: hidden;
}

@media (min-width: 768px) {
  .services {
    padding: 6rem 0;
  }
}

.services-decoration {
  position: absolute;
  width: 384px;
  height: 384px;
  background: var(--green-100);
  border-radius: 50%;
  opacity: 0.3;
}

.services-decoration-top {
  top: -96px;
  right: -96px;
}

.services-decoration-bottom {
  bottom: -96px;
  left: -96px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 672px;
  margin: 0 auto;
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid transparent;
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
  border-bottom-color: var(--primary);
}

.service-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.service-card-text {
  color: var(--gray-600);
}

/* Vehicle Section */
.vehicle-section {
  margin-top: 5rem;
  position: relative;
  z-index: 10;
}

.vehicle-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--black);
  margin-bottom: 2rem;
}

.vehicle-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vehicle-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vehicle-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.vehicle-card:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.vehicle-image-wrapper {
  position: relative;
  height: 256px;
  overflow: hidden;
}

.vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image {
  transform: scale(1.1);
}

.vehicle-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.vehicle-info {
  padding: 1rem;
  background: var(--green-800);
  text-align: center;
}

.vehicle-info h4 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Booking CTA */
.booking-cta {
  margin-top: 4rem;
  text-align: center;
}

.cta-divider {
  display: inline-block;
  width: 96px;
  height: 2px;
  background: var(--primary);
  margin: 1.5rem 0;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

/* ==========================================================================
   Basic Info Section
   ========================================================================== */
.basic-info {
  position: relative;
  padding: 4rem 0;
  background: var(--white);
  overflow: hidden;
}

@media (min-width: 768px) {
  .basic-info {
    padding: 6rem 0;
  }
}

.info-decoration {
  position: absolute;
  width: 256px;
  height: 256px;
  background: var(--green-50);
  border-radius: 50%;
  opacity: 0.7;
}

.info-decoration-top {
  top: 0;
  right: 0;
}

.info-decoration-bottom {
  bottom: 0;
  left: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-image-wrapper {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.info-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 5s ease;
}

.info-image-wrapper:hover .info-image {
  transform: scale(1.1);
}

.info-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  z-index: 10;
  border-radius: 12px;
}

.info-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 20;
}

.info-image-caption h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.info-image-caption p {
  color: var(--white);
  opacity: 0.9;
  margin-top: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  transition: box-shadow var(--transition-base);
}

.info-card:hover {
  box-shadow: var(--shadow-xl);
}

.info-card-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  box-shadow: var(--shadow-md);
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
}

.info-card-content {
  padding-left: 3rem;
}

.info-card-content p {
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
}

.footer-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-light), var(--primary), var(--primary-dark));
}

.footer-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: var(--green-800);
  border-radius: 50%;
  transform: translate(50%, -50%);
  opacity: 0.5;
}

.footer-content {
  position: relative;
  z-index: 10;
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-800);
  display: inline-block;
}

.footer-text {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

/* Footer Contact */
.footer-contact {
  
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
}

.footer-contact-icon {
  background: var(--green-800);
  padding: 0.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: background var(--transition-base);
}

.footer-contact-item:hover .footer-contact-icon {
  background: var(--primary);
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
}

.footer-contact-item p {
  color: var(--gray-300);
  transition: color var(--transition-base);
}

.footer-contact-item:hover p {
  color: var(--white);
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-800);
  padding: 0.25rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  transition: background var(--transition-base);
}

.footer-link:hover .footer-link-icon {
  background: var(--primary);
}

.footer-link-icon svg {
  width: 16px;
  height: 16px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--green-800);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
}
