/* Reset & Base Styles */
:root {
    --primary-color: #A0522D; /* Sienna */
    --primary-dark: #6B3E26;
    --accent-color: #D4A373;
    --bg-light: #FAFAFA;
    --bg-dark: #121212;
    --text-dark: #2C2C2C;
    --text-light: #F5F5F5;
    --text-muted: #888888;
    
    --font-heading: 'Noto Serif TC', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(160, 82, 45, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    color: white;    
}

.logo span {
    color: var(--accent-color);
}

.navbar.scrolled .logo { color: var(--primary-dark); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px!important;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
}

.nav-cta::after { display: none; }

.navbar.scrolled .nav-cta {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.navbar.scrolled .nav-cta:hover {
    background-color: var(--primary-color);
    color: white!important;
}

.hamburger { display: none; }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero .highlight {
    color: var(--accent-color);
    font-style: italic;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.right { transform: translateX(40px); }
.reveal.left { transform: translateX(-40px); }
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Philosophy Section */
.philosophy {
    padding: 120px 0;
    background-color: white;
}

.philosophy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.philosophy h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.philosophy > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.features { margin-top: 40px; }

.features li {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.features .icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(160, 82, 45, 0.1);
}

.features h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.features p {
    color: var(--text-muted);
    font-size: 1rem;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: white;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(160, 82, 45, 0.3);
    border: 8px solid white;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 1px;
}

/* Parallax Divider */
.parallax-divider {
    position: relative;
    padding: 120px 0;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.parallax-divider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 62, 38, 0.85); /* Primary Dark with opacity */
}

.parallax-divider .container {
    position: relative;
    z-index: 2;
}

.parallax-divider h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.parallax-divider p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer ul li { margin-bottom: 12px; }

.footer ul a {
    color: var(--text-muted);
}

.footer ul a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .image-wrapper { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }
    
    .hamburger span {
        width: 30px;
        height: 2px;
        background-color: white;
        transition: var(--transition);
    }
    
    .navbar.scrolled .hamburger span {
        background-color: var(--text-dark);
    }
    
    .hero h1 { font-size: 3rem; }
    
    .footer-container { grid-template-columns: 1fr; }
}
