/*



*/

@charset "utf-8";
/* CSS Document */

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            overflow-x: hidden;
            position: relative;
            background: #000;
        }

/* === Project.html 專用背景：與 index 首頁相同漸層 === */
:root {
  --page-gradient: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);
}

body.page-gradient {
  background: var(--page-gradient) !important;
  color: #fff;
}


        /* Sections */
        .section {
            min-height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #home {
            background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);
        }

        #about {
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
        }

        #contact {
            background: radial-gradient(ellipse at center, #1a2e2c 0%, #0f0f0f 100%);
        }

        /* Header Styles */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: clamp(70px, 8vh, 80px);
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4vw;
            transition: all 0.3s ease;
			box-sizing: border-box;
        }

        .header.scrolled {
            background: rgba(0, 0, 0, 0.95);
            height: clamp(55px, 7vh, 70px);
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            text-decoration: none;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .logo-container:hover {
            transform: translateY(-2px);
        }

        .logo {
            width: clamp(35px, 5vw, 50px);
            height: clamp(35px, 5vw, 50px);
            display: flex;
            align-items: center;
            justify-content: center;
        }
		.logo img,
        .logo svg {
            width: 100%;
            height: 100%;
			object-fit: contain;
        }

        .logo-text {
            color: white;
            font-size: clamp(0.8rem, 1.2vw, 1rem);
            font-weight: 400;
            letter-spacing: 0px;
            white-space: nowrap;
        }

        .main-menu {
            display: flex;
            align-items: center;
            gap: 2.5vw;
        }

        .menu-item {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: clamp(0.8rem, 1vw, 1rem);
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 8px 0;
        }

        .menu-item:hover {
            color: white;
            transform: translateY(-2px);
        }

        .menu-item::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #616934, #ffffff);
            transition: width 0.3s ease;
        }

        .menu-item:hover::after {
            width: 100%;
        }

        .menu-item.active {
            color: white;
        }

        .menu-item.external::before {
            content: '';
            margin-right: 5px;
            font-size: 12px;
            opacity: 0.7;
        }


/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  color: white;
  text-decoration: none;
  padding: 0 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  min-width: 150px;
  border-radius: 6px;
  z-index: 99;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}



        /* Mobile menu toggle */
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 4px;
        }

        .menu-toggle span {
            width: 25px;
            height: 3px;
            background: white;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }


@media (max-width: 1024px) {
    .header {
        padding: 0 3vw;
    }

    .logo-text {
        font-size: clamp(0.8rem, 1vw, 0.9rem);
    }

    .main-menu {
        gap: 2vw;
    }
}

@media (max-width: 1024px) {
  /* 手機顯示三條線 */
  .menu-toggle {
    display: flex;
  }

  /* 手機隱藏副標 */
  .logo-text {
    display: none;
  }

  /* 手機主選單預設隱藏，待 JS 加上 .show 顯示 */
  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    text-align: center;
    padding: 1rem 0;
    z-index: 999;
  }

  .main-menu.show {
    display: flex;
  }

  .menu-item {
    font-size: 1rem;
    padding: 10px 0;
  }
}

        /* Home Section with Coverflow */
        .coverflow-wrapper {
            width: 100%;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 80px;
        }

        .coverflow-container {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            perspective: 1200px;
            position: relative;
        }

        .coverflow {
            display: flex;
            align-items: center;
            justify-content: center;
            transform-style: preserve-3d;
            position: relative;
            width: 100%;
            height: 400px;
        }

        .coverflow-item {
            position: absolute;
            width: 700px;
            height: 440px;
            transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            cursor: pointer;
            user-select: none;
        }

        .coverflow-item .cover {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
            position: relative;
            overflow: hidden;
            transform-style: preserve-3d;
            background: #333;
        }

        .coverflow-item .cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
        }

        /* Reflection */
        .coverflow-item .reflection {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 10px;
            transform: scaleY(-1);
            opacity: 0.2;
            filter: blur(2px);
            background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0) 0%, 
                rgba(0, 0, 0, 0.8) 50%, 
                rgba(0, 0, 0, 1) 100%);
            overflow: hidden;
        }

        /* Active item (center) */
        .coverflow-item.active {
            z-index: 100;
            transform: translateX(0) translateZ(0) rotateY(0deg);
        }

        .coverflow-item.active .cover {
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
        }

        /* Navigation */
        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            z-index: 200;
        }

        .nav-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-50%) scale(1.1);
        }

        .nav-button.prev {
            left: 50px;
        }

        .nav-button.next {
            right: 50px;
        }

        /* Dots indicator */
        .dots-container {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 200;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: rgba(255, 255, 255, 0.8);
            transform: scale(1.3);
        }

        /* Info display */
        .info {
            position: absolute;
            top: 120px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            text-align: center;
            z-index: 200;
        }

        .info h2 {
            font-size: 32px;
            margin-bottom: 10px;
            opacity: 0;
            animation: fadeIn 0.6s forwards;
        }

        .info p {
            font-size: 16px;
            opacity: 0.7;
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }

        /* Play/Pause Button */
        .play-pause-button {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            z-index: 200;
        }

        .play-pause-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(-50%) scale(1.1);
        }

        .play-pause-button .pause-icon {
            font-size: 16px;
            letter-spacing: 2px;
        }

        /* About Section */
        .about-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px;
            color: white;
        }

        .about-header {
            text-align: left;
            margin: 50px;
            margin-bottom: 80px;
        }

        .about-header h2 {
            font-size: 30px;
			margin-top: 60px;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #616934 0%, #ffffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: white;
            background-clip: text;
        }

        .about-header p {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.8;
        }

        .about-main {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            margin-bottom: 80px;
        }

        .about-visual {
            position: relative;
            height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .showcase-display {
            position: relative;
            width: 100%;
            max-width: 500px;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .showcase-main {
            position: relative;
            width: 350px;
            height: 400px;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            border-radius: 30px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .showcase-logo {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        }

        .showcase-logo svg {
            width: 70%;
            height: 70%;
        }

        .showcase-title {
            font-size: 10px;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            text-align: center;
        }

        .showcase-subtitle {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .showcase-badges {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .badge {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }

        .badge:hover {
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            border-color: transparent;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        .badge:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        /* Decorative corner elements */
        .corner-decoration {
            position: absolute;
            width: 80px;
            height: 80px;
            border: 2px solid rgba(102, 126, 234, 0.3);
        }

        .corner-decoration.top-left {
            top: -20px;
            left: -20px;
            border-right: none;
            border-bottom: none;
            border-radius: 20px 0 0 0;
        }

        .corner-decoration.bottom-right {
            bottom: -20px;
            right: -20px;
            border-left: none;
            border-top: none;
            border-radius: 0 0 20px 0;
        }

        .about-info {
            padding-left: 40px;
        }

        .about-info h3 {
            font-size: 36px;
            margin-bottom: 30px;
            line-height: 1.3;
        }

        .about-info p {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.8;
            margin-bottom: 30px;
        }

        .feature-list {
            list-style: none;
            margin-bottom: 40px;
        }

        .feature-list li {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            font-size: 16px;
            color: rgba(255, 255, 255, 0.9);
        }

        .feature-list li::before {
            content: "\2022"; /* • 圓點符號 */
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            color: white;
            text-decoration: none;
            padding: 15px 30px;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
        }

        .cta-button svg {
            width: 20px;
            height: 20px;
            transition: transform 0.3s ease;
        }

        .cta-button:hover svg {
            transform: translateX(5px);
        }

        .stats-section {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            padding: 60px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 48px;
            font-weight: 700;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Contact Section */
        .contact-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px;
            color: white;
        }

        .contact-header {
            text-align: left;
            margin: 50px;
			margin-top: 50px;
            margin-bottom: 60px;
        }

        .contact-header h2 {
            font-size: 30px;
			margin-top: 60px;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: white;
            background-clip: text;
        }


        .contact-header p {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.8);
            max-width: px;
            margin: 0 auto;
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: start;
        }

        .contact-info-section {
            padding-right: 40px;
        }

        .contact-info-section h3 {
            font-size: 28px;
            margin-bottom: 20px;
            color: white;
        }

        .contact-info-section p {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.8;
            margin-bottom: 40px;
        }

        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(5px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .contact-icon svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        .contact-text {
            flex: 1;
        }

        .contact-text h4 {
            font-size: 16px;
            color: white;
            margin-bottom: 5px;
        }

        .contact-text p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
        }

        .social-links {
            margin-top: 40px;
        }

        .social-links h4 {
            font-size: 18px;
            margin-bottom: 20px;
            color: white;
        }

        .social-buttons {
            display: flex;
            gap: 15px;
        }

        .social-btn {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .social-btn:hover {
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
        }

        .social-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .contact-form-section {
            padding-left: 40px;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 40px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 16px;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            background: rgba(255, 255, 255, 0.08);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
            line-height: 1.5;
        }

        .submit-btn {
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 18px;
            font-weight: 600;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
        }

        /* Smooth image loading */
        .image-loading {
            background: linear-gradient(45deg, #333, #555);
            position: relative;
        }

        .image-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 48px;
            opacity: 0.5;
        }

        /* Footer Styles */
        .footer {
            background: rgba(0, 0, 0, 0.95);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 40px 20px;
            margin-top: 80px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 30px;
        }

        .footer-copyright {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
        }

        .footer-copyright a {
            color: #667eea;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-copyright a:hover {
            color: #764ba2;
        }

        .footer-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: white;
        }

        /* Scroll to top button */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a2e2c 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            transform: translateY(100px);
            transition: all 0.3s ease;
            z-index: 999;
        }

        .scroll-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .about-main {
                grid-template-columns: 1fr;
                gap: 60px;
            }

            .about-visual {
                height: 400px;
            }

            .about-info {
                padding-left: 0;
                text-align: center;
            }

            .feature-list {
                text-align: left;
                max-width: 500px;
                margin: 0 auto 40px;
            }

            .stats-section {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
                padding: 40px;
            }

            /* Contact section responsive */
            .contact-container {
                grid-template-columns: 1fr;
                gap: 50px;
            }

            .contact-info-section {
                padding-right: 0;
            }

            .contact-form-section {
                padding-left: 0;
            }
        }


        @media (max-width: 480px) {
            .header {
                height: 70px;
                padding: 0 15px;
            }

            .header.scrolled {
                height: 60px;
            }

            .logo {
                width: 40px;
                height: 40px;
            }

            .logo-text {
                font-size: 18px;
            }

            .coverflow-item {
                width: 180px;
                height: 180px;
            }

            .about-content,
            .contact-content {
                padding: 20px;
            }

            /* Additional contact section mobile optimization for small screens */
            .contact-container {
                gap: 30px;
            }

            .contact-header {
                margin-bottom: 40px;
            }

            .contact-header h2 {
                font-size: 32px;
                margin-bottom: 15px;
            }

            .contact-header h4 {
                font-size: 12px;
                margin-bottom: 15px;
            }
			
            .contact-header p {
                font-size: 16px;
                padding: 0 10px;
            }

            .contact-info-section {
                margin-bottom: 20px;
            }

            .contact-info-section h3 {
                font-size: 22px;
                margin-bottom: 15px;
            }

            .contact-info-section > p {
                font-size: 14px;
                padding: 0 10px;
                margin-bottom: 30px;
            }

            .contact-details {
                gap: 15px;
            }

            .contact-item {
                padding: 15px;
                gap: 12px;
            }

            .contact-icon {
                width: 40px;
                height: 40px;
            }

            .contact-icon svg {
                width: 20px;
                height: 20px;
            }

            .contact-text h4 {
                font-size: 14px;
            }

            .contact-text p {
                font-size: 12px;
                word-break: break-word;
            }

            .social-links {
                margin-top: 30px;
            }

            .social-links h4 {
                font-size: 16px;
                margin-bottom: 15px;
            }

            .social-buttons {
                gap: 10px;
            }

            .social-btn {
                width: 40px;
                height: 40px;
            }

            .social-btn svg {
                width: 18px;
                height: 18px;
            }

            .contact-form {
                padding: 20px 15px;
                border-radius: 15px;
            }

            .form-group {
                margin-bottom: 20px;
            }

            .form-group label {
                font-size: 14px;
                margin-bottom: 8px;
            }

            .form-group input,
            .form-group textarea {
                padding: 12px;
                font-size: 14px;
                border-radius: 8px;
            }

            .form-group textarea {
                min-height: 120px;
            }

            .submit-btn {
                padding: 12px 30px;
                font-size: 16px;
                border-radius: 25px;
            }
        }



.logo-text {
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
}

/* 小螢幕縮小字體但不隱藏 */
@media (max-width: 1024px) {
  .logo-text {
    font-size: 12px;
  }
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-header p {
  line-height: 1.8;
  text-align: justify;
  font-size: 16px;
}

/* 桌機：靠左並縮窄內容，右側留白 */
@media (min-width: 992px) {
  .about-content {
    max-width: 800px;
    margin-left: 10%;
    margin-right: auto;
    text-align: left;
  }
}

/* 手機：置中顯示，左右保留內距 */
@media (max-width: 1024px) {
  .about-content {
    margin: 0 auto;
    text-align: left;
    padding: 0 10px;
  }

  .about-header p {
    text-align: left;
    font-size: 15px;
  }
}


/* Coverflow 箭頭樣式 */
.coverflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background 0.3s;
}

.coverflow-arrow:hover {
    background: rgba(0,0,0,0.6);
}

.coverflow-prev {
    left: 10px;
}

.coverflow-next {
    right: 10px;
}

/* Dots 分頁 */
.coverflow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.coverflow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.coverflow-dot.active {
    background: #fff;
}

/* 手機響應式調整 */
@media (max-width: 768px) {
    .coverflow-arrow {
        font-size: 2.5rem;
        padding: 0.4rem 0.8rem;
    }
}

.footer {
  text-align: center;
  padding: 40px 0 20px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-line {
  width: 80%;
  margin: 0 auto 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}


.caption {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .caption {
    top: 10px;
    font-size: 14px;
  }
}




/* 打開狀態動畫 */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 手機版選單 */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex; /* 手機版顯示三條線 */
  }

  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 50;
    background-color: #000000;
    width: 220px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 900;
  }

  .main-menu.show {
    display: flex;
  }

  .main-menu .menu-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }
}

/* 手機版 dropdown */
@media (max-width: 768px) {
  .menu-item.dropdown .dropdown-content {
    display: none;
    position: static;   /* 流內排列 */
    margin-left: 15px;  /* 子選單稍微縮排 */
  }
  .menu-item.dropdown.open .dropdown-content {
    display: flex;
    flex-direction: column;
  }
}


/* === 修正 picture 問號浮圖問題 === */
.coverflow-item .cover {
  background: none !important; /* 移除空背景，避免破圖符號 */
  position: relative;
}

.coverflow-item .cover picture,
.coverflow-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Project gallery 的分頁圓點，與 coverflow 同大小 */
.dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.3);
  transition: all .3s ease;
}
.dots .dot.active {
  background: rgba(255,255,255,0.8);
  transform: scale(1.3);
}

/* ============================================================
   手機版專用優化（不影響桌機）
   - 簡化重複設定
   - 修正 Coverflow 與 info 標題距離
   - 修正 About / Architecture / Interior 定位與高度
============================================================ */
@media (max-width: 768px) {

  /* ========== Header & Logo 區 ========= */
  .header {
    height: 68px !important;
    padding: 0 20px !important;
  }

  .logo {
    width: 42px !important;
    height: 42px !important;
  }

  .logo-text {
    font-size: 12px !important;
  }

  /* ========== Coverflow 區 ========= */
  .coverflow-wrapper {
    padding-top: 0px !important; /* 上方間距大幅縮小 */
  }

  .coverflow-container {
    width: 100%;
    height: calc(100vh - 80px) !important; /* 減去 header 高度 */
    transform: none !important; /* 移除不必要的 scale */
    overflow: hidden;
  }

  .coverflow-item {
    width: 75vw !important;
    height: 65vh !important;
  }

  .info {
    top: 80px !important; /* title 更靠近封面 */
  }

  .dots-container {
    bottom: 65px !important;
  }

  /* ========== About 區 ========= */
  #about {
    scroll-margin-top: 0px !important; /* 上移 */
  }

  .about-content {
    padding: 20px 15px !important;
  }

  .about-header {
    margin-top: -90px !important;
    margin-bottom: 30px !important;
  }

  /* ========== Architecture / Interior 區 ========= */
  .project-section .gallery-item {
	height: 80vh !important; /* 提高圖像區 */
  }

  #architecture,
  #interior {
    scroll-margin-top: 130px !important; /* 防止被 header 蓋住 */
  }

  /* 統一 project 的左右箭頭大小、位置 */
  .arrow {
    width: 48px !important;
    height: 48px !important;
    top: 45% !important;
  }

  .arrow.left { left: 10px !important; }
  .arrow.right { right: 10px !important; }

  /* ========== Contact 區 ========= */
  #contact {
    scroll-margin-top: 90px !important;
  }

  /* ========== 通用修正 ========= */
  section.section {
    padding-top: 0 !important;
  }

  .footer {
    padding: 30px 10px !important;
  }
}


/* ============================================================
   手機直向 coverflow 圖片距離微調
   - 圖片與上方 title 間距縮小
   - 圓點位置上移
============================================================ */
@media (max-width: 768px) and (orientation: portrait) {

  .coverflow-wrapper {
    padding-top: 0 !important;
  }

  .coverflow-container {
    margin-top: -40px !important;  /* 將整個 coverflow 上移 */
  }

  .dots-container {
    bottom: 70px !important; /* 圓點跟著上移 */
  }
}

/* ============================================================
   project.html 手機直向專用修正（2025.10.21 最佳化）
   - Architecture / Interior 標題保持正確高度
   - 圖片略寬、高度再縮小一點，讓視覺更緊湊
   - 修正箭頭垂直對齊
============================================================ */
@media (max-width: 768px) and (orientation: portrait) {

  /* Architecture / Interior 標題保持在視覺正確高度 */
  .project-title {
    top: 95px !important;
    font-size: 18px !important;
  }

  /* 圖片略寬但高度再縮小一點 */
  .project-section .gallery-item img {
    width: 95% !important;
    height: auto !important;
    max-height: 70vh !important; /*  原 78vh → 再縮一點 */
    object-fit: cover !important;
    margin: 0 auto;
    display: block;
  }

  /* 若 .gallery-item 設定固定高度，也同步縮減 */
  .project-section .gallery-item {
    height: 75vh !important; /*  原 82vh → 再縮一點 */
  }
  /* 整個圖往上移，離 section 標題近一點 */
  .project-section .scroll-gallery {
    margin-top: -70px !important; /* 數值越大，圖越靠近標題 */
  }

  /* 修正左右箭頭不同高 */
  .arrow.left {
    top: 50% !important; /* 左箭頭略升 */
    transform: translateY(-50%) !important;
  }
  .arrow.right {
    top: 52% !important; /* 右箭頭略降 */
    transform: translateY(-50%) !important;
  }
}


/* 手機上防止電話連結變藍 */
a[href^="tel"] {
  color: white !important;
  text-decoration: none !important;
}

/* ============================================================
   手機橫向專用修正（只影響橫向，不動網頁與直向）
============================================================ */
@media (max-width: 1024px) and (orientation: landscape) {


  /*  Coverflow 縮小寬高 */
  .coverflow-item {
    width: 65vw !important;   /* 原 75vw → 縮小 */
    height: 65vh !important;  /* 原 65vh → 縮小 */
  }

  /*  Architecture / Interior 圖高度提高 */
  .project-section .gallery-item {
    height: 85vh !important;  /* 原 75~80vh → 高一點 */
  }

  /*  統一 Coverflow / Architecture / Interior 箭頭大小 */
  .nav-button,
  .arrow {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }

  .project-section .gallery-item img {
    width: 92% !important;    /* 原 80% → 更寬 */
    height: auto !important;
    object-fit: cover !important;
  }
	
	
  /*  修正 Architecture / Interior 箭頭左右不等高 */
  .arrow.left {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .arrow.right {
    top: 60% !important;
    transform: translateY(-50%) !important;
  }

}

/* 手機橫向：鎖寬 & 把超出水平的 3D 內容裁掉 */
@media (max-width: 1024px) and (orientation: landscape) {
  .coverflow-wrapper,
  .coverflow-container {
    max-width: 100vw;     /* 不讓容器超過螢幕寬 */
    overflow: hidden;     /* 超出的 coverflow 子項直接裁掉，避免出現水平卷軸 */
  }
	
/* 手機橫向：下拉選單用流式佈局，展開時把下面的項目（含 contact）往下推 */
@media (max-width: 1024px) and (orientation: landscape) {
  .menu-item.dropdown .dropdown-content {
    position: static;        /* 讓子選單參與正常排版 */
    display: none;           /* 預設不顯示，由 .open 控制 */
    margin: 6px 0 0 16px;    /* 稍微縮排一點，美觀 */
  }
  .menu-item.dropdown.open .dropdown-content {
    display: flex;
    flex-direction: column;
  }

  /* 確保每一項都是區塊元素，避免擠在同一行造成重疊 */
  .main-menu a,
  .main-menu .menu-item {
    display: block;
    width: 100%;
  }
}

/* ============================================================
   防止圖片被右鍵另存、手機長按下載
============================================================ */

/* 禁止右鍵選單、拖曳、選取 */
img, picture, .coverflow-item img, .gallery-item img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* 禁止選取文字或圖片 */
body, img, picture {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 禁止右鍵選單 */
body {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
	

