/* 憬然間 Epiphany Terrain - Stylesheet */

:root {
    --color-black: #0a0a0a;
    --color-white: #fafafa;
    --color-red: #c41e3a;
    --color-red-dark: #8b0000;
    --color-grey-light: #e5e5e5;
    --color-grey-mid: #808080;
    --color-grey-dark: #2a2a2a;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.7;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Celestial Background Animation */
.celestial-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, 
        var(--color-grey-light) 0%, 
        var(--color-white) 30%, 
        var(--color-white) 70%, 
        var(--color-grey-light) 100%);
    opacity: 0.3;
}

.celestial-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
    opacity: 0.15;
    animation: celestialFloat 20s ease-in-out infinite;
}

@keyframes celestialFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(-30px, -50px) scale(1.1); opacity: 0.25; }
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-grey-light);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
}

.door-frame {
    position: absolute;
    width: 30px;
    height: 40px;
    border: 2px solid var(--color-black);
    left: 10px;
    top: 5px;
}

.terrain-waves {
    position: absolute;
    width: 30px;
    height: 20px;
    left: 10px;
    bottom: 5px;
    background: linear-gradient(to bottom,
        transparent 0%, transparent 20%,
        var(--color-black) 20%, var(--color-black) 25%,
        transparent 25%, transparent 40%,
        var(--color-black) 40%, var(--color-black) 45%,
        transparent 45%, transparent 60%,
        var(--color-black) 60%, var(--color-black) 65%,
        transparent 65%);
}

.sun-arc {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 2px solid var(--color-red);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    top: -5px;
    right: 0;
    transform: rotate(-10deg);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-grey-mid);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-symbol {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.sun-moon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--color-red);
    position: absolute;
    left: 10px;
    top: 10px;
    background: linear-gradient(90deg, var(--color-black) 50%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.horizon {
    position: absolute;
    width: 120px;
    height: 2px;
    background: var(--color-black);
    top: 60px;
    left: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-grey-mid);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--color-grey-dark);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--color-red);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border: 2px solid var(--color-red);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background: transparent;
    color: var(--color-red);
}

/* Section Styles */
.section {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-symbol {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--color-red);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* About Section */
.about-section {
    background: var(--color-grey-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.terrain-illustration {
    position: relative;
    height: 300px;
}

.wave-layer {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--color-black);
    opacity: 0.6;
}

.wave-layer:nth-child(1) { bottom: 30%; animation: waveMove 4s ease-in-out infinite; }
.wave-layer:nth-child(2) { bottom: 45%; animation: waveMove 5s ease-in-out infinite 0.5s; }
.wave-layer:nth-child(3) { bottom: 60%; animation: waveMove 6s ease-in-out infinite 1s; }
.wave-layer:nth-child(4) { bottom: 75%; animation: waveMove 7s ease-in-out infinite 1.5s; }

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.philosophy-card {
    padding: 2.5rem 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-grey-light);
    text-align: center;
    transition: var(--transition-smooth);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-red);
}

.philosophy-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.philosophy-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-grey-dark);
}

/* Services Section */
.services-section {
    background: var(--color-grey-dark);
    color: var(--color-white);
}

.services-section .section-header h2,
.services-section .section-symbol {
    color: var(--color-white);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--color-red);
    transition: var(--transition-smooth);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-red);
    min-width: 80px;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-grey-light);
}

/* Approach Section */
.approach-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.approach-text h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.approach-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.approach-list {
    list-style: none;
}

.approach-list li {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
}

.approach-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-red);
}

.approach-list strong {
    color: var(--color-red);
    font-weight: 500;
}

.approach-quote {
    background: var(--color-grey-light);
    padding: 2.5rem 2rem;
    position: relative;
}

.approach-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: var(--color-red);
    opacity: 0.3;
}

.approach-quote blockquote {
    position: relative;
    z-index: 1;
}

.approach-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.approach-quote footer {
    text-align: right;
    color: var(--color-grey-mid);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: var(--color-black);
    color: var(--color-white);
}

.contact-section .section-header h2,
.contact-section .section-symbol {
    color: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-red);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-info ul {
    list-style: none;
    margin: 1.5rem 0;
}

.contact-info ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.contact-info ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-size: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-grey-dark);
}

.contact-details p {
    margin-bottom: 0.8rem;
}

.contact-details a {
    color: var(--color-red);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-details a:hover {
    color: var(--color-white);
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-grey-mid);
    color: var(--color-white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-red);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--color-grey-mid);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.2rem;
    font-size: 0.85rem;
    color: var(--color-red);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--color-red);
    color: var(--color-white);
    border: 2px solid var(--color-red);
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-button:hover {
    background: transparent;
    color: var(--color-red);
}

/* Footer */
footer {
    background: var(--color-grey-dark);
    color: var(--color-white);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--color-grey-mid);
}

.footer-links p {
    font-size: 0.9rem;
    color: var(--color-grey-mid);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(250, 250, 250, 0.98);
        width: 250px;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .content-grid,
    .approach-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        gap: 1rem;
    }

    .service-number {
        min-width: auto;
    }
}