body,html {
    padding:0px;
    margin:0px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight:bold;
    color:#fff;
    background:rgb(0, 0, 0);
    scroll-behavior: smooth;
}
#loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: #000;
    z-index: 999;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
#spinner {
    animation: rotate 0.56s infinite linear;
    width:60px;
    height:60px;
    border:6px solid #fff;
    border-bottom:6px solid #000;
    border-radius:50%;
    margin:0;
}
@keyframes rotate {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}
#header {
    width:80%;
    padding:4% 10%;
    text-align:center;
    position:absolute;
    transition:0.6s ease-in-out;
}
#header div {
    display:block;
}
#title {
    font-size:40px;
    background-image: linear-gradient(to left, #1A2980 0%, #26D0CE 100%);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color: transparent;
    background-size:500% 500% !important;
    -webkit-animation: Gradient 20s ease infinite;
    -moz-animation: Gradient 20s ease infinite;
    -o-animation: Gradient 20s ease infinite;
    animation: Gradient 20s ease infinite;
    font-family: 'Helvetica', Arial, sans-serif;
}
#links {
    margin:40px 0px;
    transition:0.6s ease-in-out;
    color:#fff;
}
#links a {
    margin:0px 30px;
    color:inherit;
    text-decoration:none;
    transition:0.4s ease-in-out;
    padding:5px 8px;
    border-bottom:2px solid transparent;
}
#links a:hover {
    border-bottom:2px solid #fff;
}
#middle {
    width:100%;
    height:80vh;
    background:linear-gradient(0deg,rgba(0,0,0,1),rgba(0,0,0,0)),url("https://res.cloudinary.com/dkbdfwgln/image/upload/v1747244487/R0000092_zishaf.jpg") center center fixed;
    background-size:100% auto;
    background-repeat:no-repeat;
    color:white;
    display:flex;
    justify-content:center;
    flex-direction:column;
    transition:1s ease-in-out;
    padding-top:20vh;
}
#tagline {
    font-size:50px;
    width:60%;
}
#portfolio {
    width:80%;
    padding:2% 10%;
}
#portfolio div h1 {
    font-size:40px;
    background-image: linear-gradient(to left, #0077cc 0%, #0077cc 100%);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color: transparent;
    background-size:500% 500% !important;
    -webkit-animation: Gradient 20s ease infinite;
    -moz-animation: Gradient 20s ease infinite;
    -o-animation: Gradient 20s ease infinite;
    animation: Gradient 20s ease infinite;
    font-family: 'Helvetica', Arial, sans-serif;
}

#education {
    margin:4vh 0px !important;
    padding:2vh 0px !important;
}
#educations {
    width: 100%;
}

body {
    background-color: #000;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
}

h1, h2 {
    color: #fff;
    font-size: 2em;
    margin: 0;
}

.blue {
    color: #85b4e3;
    font-weight: bold;
}

li {
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 左右大區塊布局 */
.education-entry, .company-entry {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid #5cacee;
    align-items: flex-start;
}
.education-entry { border-color: #5cacee; }

/* 左右欄位配置 */
.edu-left, .company-left {
    flex: 1.2;
    color: #ddd;
}

.edu-right, .company-right {
    flex: 0.4;
    text-align: right;
    font-size: 0.9em;
    color: #a0c8e2;
    font-style: italic;
    line-height: 1.4;
    margin-top: 4px;
}

/* Header 區塊 */
.edu-header, .company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

/* Logo 統一樣式 */
.school-logo, .company-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px #ffffff33);
    margin-top: 10px;
    margin-bottom: 2px;
    align-self: center;
}

/* 公司 logo 視覺略小，可調整大小或統一 */
.company-logo {
    border-radius: 10px;
}

/* 校名與職稱區塊 */
.company-text h2, .edu-details h2 {
    color: #5cacee;
    margin-bottom: 0.2rem;
}

.job-title, .degree {
    font-size: 1.5em;
    color: #aaa;
    margin: 0;
}

/* 詳細描述區塊 */
.edu-details, .company-details {
    margin-left: calc(70px + 20px); /* logo 寬度 + gap */
}

.edu-details ul, .company-left ul {
    padding-left: 20px;
    margin-bottom: 0.5rem;
}

.edu-details li, .company-left li {
    margin-bottom: 5px;
}

.company-left strong {
    color: #a0c8e2;
}

/* 子列表縮排 */
.edu-details ul ul {
    padding-left: 20px;
}

/* 關鍵字高亮 */
.highlight {
    color: #6a7a7c;
    font-weight: bold;
}

.itemtitle, .course-category {
    color: #2861cc;
    font-weight: bold;
}

.red {
    color: #f08080;
    font-weight: bold;
}

/* entry 間距統一 */
.education-entry + .education-entry,
.company-entry + .company-entry {
    margin-top: 30px;
}


#experiences {
    margin:4vh 0px !important;
    padding:2vh 0px !important;
}
#work {
    margin:4vh 0px !important;
    padding:2vh 0px !important;
}
#magnify {
    width:100vw;
    height:100vh;
    background:rgba(0, 0, 0, 0.92);
    position:fixed;
    z-index:4;
    display:none;
    flex-direction: column;
    justify-content:center;
}
#magnify h1 {
    position:absolute;
    top:0;
    right:0;
    margin:20px 40px;
    color:#fff;
    transition:0.4s ease-in-out;
}
#magnify h1:hover{
    color:#0077cc;
    cursor:pointer;
}
.skills-section {
    border-left: 2px solid #5cacee;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
    
#photos {
    width:100%;
    columns:3;
    column-gap:4%;
    z-index:1;
    transition:0.4s ease-in-out;
}
#photos img {
    width:100%;
    height:auto;
    margin:4.5% 0px;
    transition:0.4s ease-in-out;
}
#photos img:hover {
    transform: scale(1.1);
    cursor: pointer;
}
#img_here {
    width:90%;
    height:90%;
    background-size:contain !important;
    background-repeat:no-repeat !important;
    margin:0px auto;
}
#contact {
    margin:4vh 0px !important;
    padding:2vh 0px !important;
}
#contact form {
    width:100%;
}
#contact form input {
    width:46%;
    margin:20px 1%;
    background:transparent;
    border:0px;
    border-bottom:2px solid rgba(255,255,255,0.5);
    padding:8px 10px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size:18px;
    transition:0.4s ease-in-out;
    color:#fff;
}
#contact form textarea {
    width:96%;
    margin:20px 1%;
    padding:8px 10px;
    border:0px;
    border-bottom:2px solid rgba(255,255,255,0.5);
    padding:8px 10px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size:18px;
    background:transparent;
    resize:none;
    transition:0.4s ease-in-out;
    color:#fff;
}
#contact form input:focus {
    outline:none;
    border-bottom:2px solid rgba(255,255,255,1);
}
#contact form textarea:focus {
    outline:none;
    border-bottom:2px solid rgba(255,255,255,1);
}
::placeholder {
    color:#fff;
}
.btn_one {
    color:white;
    padding:10px 40px;
    border-radius:50px;
    border:2px solid #fff;
    font-size:18px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight:bold;
    background:transparent;
    transition:0.4s ease-in-out;
    margin:30px 10px;
}
.btn_one:hover {
    background:white;
    cursor:pointer;
    color:#000;
}
.project div {
    font-weight:normal;
}
.btn_two {
    color:#000;
    padding:10px 40px;
    border-radius:50px;
    border:2px solid #fff;
    font-size:18px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight:bold;
    background:#fff;
    transition:0.4s ease-in-out;
    margin:30px 10px;
}
.btn_two:hover {
    background:transparent;
    cursor:pointer;
    color:#fff;
}
#details {
    margin:6vh 0px;
}
.btn_social {
    font-size:18px;
    margin:40px 20px;
    transition:0.4s ease-in-out;
    color: #a0c8e2;
    margin-right: 15px;
}
.btn_social:hover {
    color: #00ffff; /* Hover 時變成亮藍綠 */
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #00ffff); /* 無偏移、圓形 Glow */
}


@media (max-width: 900px){
    #header {
        width:94%;
        padding:15% 3%;
    }
    #title {
        font-size:30px;
    }
    #links {
        margin:30px 0px;
    }
    #links a {
        margin:0px;
    }
    #middle {
        width:100%;
        border-radius:0px;
        height:80vh;
        background-size:cover;
    }
    #tagline {
        width:90%;
        font-size:30px;
    }
    .btn_one {
        font-size:14px;
        padding:8px 20px;
    }
    .btn_two {
        font-size:14px;
        padding:8px 20px;
    }
    #contact form input {
        width:92%;
    }
    #contact form textarea {
        width:92%;
    }
    .btn_social {
        font-size:14px;
        margin:10px;
        padding:10px 11px;
    }
}
#footer {
    width:100%;
    padding:10vh 0px;
    text-align:center;
    font-weight:bold;
}
#footer a {
    font-size:18px;
    background-image: linear-gradient(to left, #FF416C 0%, #FF4B2B 100%);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color: transparent;
    background-size:500% 500% !important;
    -webkit-animation: Gradient 20s ease infinite;
    -moz-animation: Gradient 20s ease infinite;
    -o-animation: Gradient 20s ease infinite;
    animation: Gradient 20s ease infinite;
    font-family: 'Helvetica', Arial, sans-serif;
    text-decoration:none;
}
button:focus {
    outline:none;
}
::-webkit-scrollbar {
    width:5px;
    height:5px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #000; 
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
@-webkit-keyframes Gradient {
0% {background-position: 0% 50%}
50% {background-position: 100% 50%}
100% {background-position: 0% 50%}
}
@-moz-keyframes Gradient {
0% {background-position: 0% 50%}
50% {background-position: 100% 50%}
100% {background-position: 0% 50%}
}
@keyframes Gradient {
0% {background-position: 0% 50%}
50% {background-position: 100% 50%}
100% {background-position: 0% 50%}
}