/* 全域設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000; /* 背景基底色 */
    overflow: hidden;
    font-family: 'Optima', 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}

/* 仿 DSC00901_DxO.jpg 的底圖效果 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 請將下方 URL 替換為你的 DSC00901_DxO.jpg 檔案路徑 */
    background-image: url('index.jpg'); 
    background-size: cover;
    background-position: center;
    
    /* 這裡使用暗角漸層，確保上方文字清晰，同時營造水下深邃感 */
    box-shadow: inset 0 0 200px rgba(0,0,0,0.8);
    filter: brightness(0.7) contrast(1.1) saturate(1.2);
    z-index: 1;
}

/* 漸層遮罩：模擬光線由上方射入，下方深邃的效果 */
.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 18, 26, 0.2) 0%, 
        rgba(0, 18, 26, 0.6) 100%);
}

/* 文字層級 */
.content {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* 確保文字在底圖之上 */
}

.title-group {
    text-align: center;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

h1 {
    font-size: clamp(2rem, 8vw, 4.5rem); /* 自適應大小 */
    font-weight: 200;
    letter-spacing: 0.5em; /* 拉開字距，呈現現代高級感 */
    margin-right: -0.5em; /* 補償最後一個字母的字距偏移 */
    margin-bottom: 1rem;
}

p {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 1em;
    margin-right: -1em;
    opacity: 0.7;
    text-transform: uppercase;
}

/* 增加一個細微的文字浮現動畫 */
.title-group {
    animation: fadeIn 2.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}