/* ============================================
   帛瑀 - Luxury Interior Design Website
   Custom Stylesheet
   ============================================ */

/* === CSS Variables === */
:root {
    --primary-bg: #FAF8F5;
    --white: #FFFFFF;
    --text-dark: #4A4A4A;
    --heading-dark: #2C2C2C;
    --accent-gold: #C9A66B;
    --accent-gold-dark: #A8864B;
    --hero-overlay: rgba(45, 40, 35, 0.35);
    --dark-bg: #2C2825;
    --dark-bg-lighter: #3A3632;
    --nude-beige: #E8DED3;
    --warm-gray: #9B9286;

    --font-heading: 'Noto Serif TC', serif;
    --font-body: 'Noto Sans TC', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-dark);
    font-weight: 600;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Section Common Styles === */
section {
    padding: 140px 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.section-label-light {
    color: var(--accent-gold);
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 40px;
    line-height: 1.3;
}

.section-title-light {
    color: var(--white);
}

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

/* === Navbar === */
.navbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--white) !important;
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar-brand {
    color: var(--heading-dark) !important;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    padding: 10px 20px;
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--text-dark);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 40px);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold);
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--accent-gold);
}

/* Hamburger Menu */
.navbar-toggler {
    border: 1px solid var(--white);
    padding: 8px 12px;
}

.navbar.scrolled .navbar-toggler {
    border-color: var(--text-dark);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === Hero Section === */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-1 {
    background-image: url('HUAN3254.jpg');
}

.hero-slide-2 {
    background-image: url('IMG_1014.JPG');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 72px;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 8px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 4px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn-hero {
    display: inline-block;
    padding: 18px 45px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-hero:hover {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === About Section === */
.about-section {
    background: #1a1a1a;
    overflow: hidden;
}

.about-image-col {
    padding-right: 40px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--accent-gold);
    z-index: -1;
}

.about-text-col {
    display: flex;
    align-items: center;
}

.about-content {
    padding-left: 40px;
}

.about-section .section-title {
    color: var(--white);
}

.about-description {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* === Designer Section === */
.designer-section {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.designer-photo {
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.designer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.designer-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px;
    background: #fff;
}

.designer-quote {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.designer-label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.designer-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    color: var(--heading-dark);
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.designer-bio {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.designer-bio p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 15px;
}

@media (max-width: 991px) {
    .designer-photo {
        min-height: 400px;
    }

    .designer-info {
        padding: 60px 40px;
    }

    .designer-quote {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .designer-title {
        font-size: 24px;
    }
}

/* === Projects Section === */
.projects-section {
    background: var(--white);
    padding: 120px 0;
}

.project-card {
    overflow: hidden;
    cursor: pointer;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

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

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

.project-title {
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.project-category {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* === Process Section === */
.process-section {
    background: var(--primary-bg);
    padding: 120px 0;
}

.process-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    transition: var(--transition-smooth);
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 20px;
    line-height: 1;
}

.process-title {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.process-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* === Contact Section === */
.contact-section {
    background: var(--dark-bg);
    padding: 120px 0;
}

.contact-info {
    padding-right: 50px;
}

.contact-description {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    width: 20px;
    color: var(--accent-gold);
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
}

/* Contact Form */
.contact-form {
    background: var(--dark-bg-lighter);
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 15px 0;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    background: transparent;
    border-color: var(--accent-gold);
    box-shadow: none;
    color: var(--white);
}

textarea.form-control {
    resize: none;
}

.btn-submit {
    display: inline-block;
    padding: 18px 45px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-bg);
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-submit:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* === Footer === */
.footer {
    background: var(--heading-dark);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--white);
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    margin-bottom: 0;
}

.footer-copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* === Responsive Styles === */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 56px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        color: var(--text-dark);
        padding: 12px 0;
    }

    .navbar-nav .nav-link::after {
        left: 0;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 30px;
    }

    .about-image-col {
        padding-right: 12px;
        margin-bottom: 50px;
    }

    .about-content {
        padding-left: 0;
    }

    .about-image {
        height: 450px;
    }

    .about-image-accent {
        display: none;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .about-stats {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 36px;
    }

    .project-image-wrapper {
        height: 300px;
    }

    .contact-form {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 28px;
    }

    .btn-hero,
    .btn-submit {
        padding: 15px 35px;
        font-size: 12px;
    }

    .process-card {
        margin-bottom: 20px;
    }
}

/* === Utility Classes === */
.text-gold {
    color: var(--accent-gold);
}

.bg-gold {
    background-color: var(--accent-gold);
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}