/* tikjai.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

button {
    font-size: 1.3rem;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* ====================== ERROR PAGES ====================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111113 0%, #05070A 70%);
    text-align: center;
    padding: 2rem;
}

.error-number {
    font-size: 12rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(90deg, #00E5FF, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(0, 229, 255, 0.6);
    margin-bottom: 1rem;
    padding-bottom: 2rem;
}

/* ===================== MAIN PAGES ====================== */
:root {
    --neon-cyan: #00E5FF;
    --neon-purple: #A78BFA;
    --glass: rgba(255, 255, 255, 0.08);
    --dark: #05070A;
    --dark2: #111113;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--dark);
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', sans-serif;
    font-weight: 700;
}

input {
    margin-bottom: 20px;
}

/* ====================== ELEMENTS STYLE ====================== */
/* Background Color */
.bg-dark {
    background: var(--dark);
}

.bg-dark2 {
    background: var(--dark2);
}

/* Container */
.container {
    margin-left: 40px;
    margin-right: 40px;
}

@media (max-width: 768px) {
    .container {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.section-tag {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #00E5FF;
    font-weight: 500;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.1rem;
    }
}

/* ====================== NAVBAR SECTION ====================== */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00E5FF;
}

/* Welcome Box */
.welcome-box {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(90deg, #00E5FF, #A78BFA);
    color: #000;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 9px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.show .line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background-color: #00E5FF;
}

.hamburger.show .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.show .line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background-color: #00E5FF;
}

@media (max-width: 992px) {
    .hamburger {
        display: flex !important;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed !important;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(5, 7, 10, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999 !important;
    
    display: flex !important;
    flex-direction: column;
    padding: 1.5rem;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.mobile-menu a {
    padding: 1.2rem 0;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #00E5FF;
}

/* Responsive */
@media (max-width: 992px) {
    .logo-text {
        font-size: 1.1rem;
    }
    .nav-menu {
        display: none;
    }
    .welcome-box {
        display: none;
    }
}

/* ====================== HERO SECTION ====================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #111113 0%, #05070A 70%);
}

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

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.8rem; 
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -4px;
    background: linear-gradient(90deg, #00E5FF, #A78BFA);
    -webkit-background-clip: text;
    text-shadow: 
        0 0 20px rgba(0, 229, 255, 0.6),
        0 0 40px rgba(0, 229, 255, 0.4),
        0 0 60px rgba(0, 229, 255, 0.2);
}

.hero-subtitle {
    margin-bottom: 0.8rem;
    font-size: 2rem;
    color: #00E5FF;
    font-weight: 300;
    background: linear-gradient(90deg, #00E5FF, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #ddd;
    max-width: 480px;
}

.profile-img {
    width: 30vw;
    max-width: 814px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.btn-primary, .btn-secondary {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    justify-content: center; 
    min-width: 180px; 
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(90deg, #00E5FF, #A78BFA);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px #00E5FF;
    text-decoration: underline;
}

.btn-secondary {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    background: transparent;
}

.btn-secondary:hover {
    border-color: #00E5FF;
    color: #fff;
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 100px);
    }
    
    .hero-title {
        font-size: 4.1rem;
    }

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

    .hero-desc {
        font-size: 1.1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-right {
        display: flex;
        justify-content: center;
    }
    
    .hologram-frame {
        display: none;
    }
    
    .profile-img {
        width: 50vw;
    }
    
    .btn-primary, .btn-secondary {
        width: 70%;
    }
}

/* ====================== ABOUT SECTION ====================== */
.about-text {
    max-width: 780px;
    margin: 0 auto;               
    padding: 2rem 1.5rem;         
    text-align: center;                
    line-height: 1.5;                  
    font-size: 1.15rem;
    color: #ddd;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    color: #00E5FF;                    
    font-style: italic;
    font-weight: 500;
}

/* ====================== EXPERIENCE SECTION ====================== */
.timeline {
    max-width: 1100px;
    margin: 0 auto;                    
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.5rem;
    padding: 2.5rem 2.8rem;            
    gap: 3rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.timeline-left {
    width: 30%;
    flex-shrink: 0;
}

.timeline-date {
    color: #00E5FF;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.timeline-left h3 {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
}

.timeline-role {
    color: #aaa;
    font-size: 1rem;
}

.timeline-right {
    width: 70%;
}

.timeline-right ul {
    list-style: none;
    padding-left: 0;
}

.timeline-right li {
    padding: 0.45rem 0;
    position: relative;
    padding-left: 1.4rem;
}

.timeline-right li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00E5FF;
    font-size: 1.3rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        gap: 1.8rem;
        padding: 2rem;
    }
    .timeline-left, .timeline-right {
        width: 100%;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }

    .timeline-left h3 {
        font-size: 1.1rem;
    }

    .timeline-role {
        font-size: 0.75rem;
    }

    .timeline-right li::before {
        font-size: 0.9rem;
    }
}

/* ====================== SKILLS SECTION ====================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.8rem;
    max-width: 1280px;
    margin: 0 auto;
}

.skill-card {
    text-align: center;
    padding: 2.8rem 2rem;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
}

.skill-card i {
    font-size: 4.2rem;           
    margin-bottom: 1.2rem;
}

.skill-card:nth-child(1) i { color: #00E5FF; }
.skill-card:nth-child(2) i { color: #A78BFA; }
.skill-card:nth-child(3) i { color: #EC4899; }
.skill-card:nth-child(4) i { color: #00E5FF; }
.skill-card:nth-child(5) i { color: #A78BFA; }
.skill-card:nth-child(6) i { color: #EC4899; }

.skill-card:nth-child(1):hover { border-color: #00E5FF; box-shadow: 0 0 35px -10px #00E5FF; }
.skill-card:nth-child(2):hover { border-color: #A78BFA; box-shadow: 0 0 35px -10px #A78BFA; }
.skill-card:nth-child(3):hover { border-color: #EC4899; box-shadow: 0 0 35px -10px #EC4899; }
.skill-card:nth-child(4):hover { border-color: #00E5FF; box-shadow: 0 0 35px -10px #00E5FF; }
.skill-card:nth-child(5):hover { border-color: #A78BFA; box-shadow: 0 0 35px -10px #A78BFA; }
.skill-card:nth-child(6):hover { border-color: #EC4899; box-shadow: 0 0 35px -10px #EC4899; }

.skill-title {
    font-size: 1.21rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.skill-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .skills-grid {
        max-width: 852px;                    
        grid-template-columns: repeat(3, 1fr); 
        gap: 1.4rem;
    }
    
    .skill-card {
        padding: 2.2rem 1.6rem;
    }
    
    .skill-card i {
        font-size: 3.6rem;                    
    }
    
    .skill-title {
        font-size: 1.1rem;
    }
    
    .skill-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        max-width: 640px;                    
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.4rem;
    }
    
    .skill-card {
        padding: 2.2rem 1.6rem;
        min-width: 40%;
    }
    
    .skill-card i {
        font-size: 3.6rem;                    
    }
    
    .skill-title {
        font-size: 0.9rem;
    }
    
    .skill-desc {
        font-size: 0.8rem;
    }
}

/* ====================== EDUCATION SECTION ====================== */
.education-grid {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.education-item {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.5rem;
    padding: 2.5rem 2.8rem;
    gap: 3rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.education-left {
    width: 30%;
    flex-shrink: 0;
}

.education-year {
    color: #00E5FF;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.education-right {
    width: 70%;
    padding-top: 0.3rem;
}

.education-right h3 {
    font-size: 1.5rem;
    margin: 0;
}

.education-right p {
    color: #a2a2a3;
    font-size: 1.05rem;
    line-height: 1.5;
}

.education-right p.small {
    color: #747476;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        gap: 1.6rem;
        padding: 2rem;
    }
    
    .education-left, .education-right {
        width: 90%;
    } 
    
    .education-year {
        font-size: 0.9rem;
    }
    
    .education-right h3 {
        font-size: 1.1rem;
    }
    
    .education-right p {
        font-size: 0.9rem;
    }
    
    .education-right p.small {
        font-size: 0.75rem;
    }
}

/* ====================== CONTACT SECTION ====================== */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-left {
    padding: 1rem 0;
}

.contact-left h2 {
    margin-bottom: 1.2rem;
}

.contact-desc {
    font-size: 1.15rem;
    color: #ddd;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.contact-email-wrapper {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem 0;
}

.contact-email-wrapper i {
    font-size: 2.2rem;
    color: #00E5FF;
    width: 48px;
}

.email-info {
    display: flex;
    flex-direction: column;
}

.email-label {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.contact-email {
    color: #888;
    font-size: 1.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #00E5FF;
    text-shadow: 0 0 13px rgba(0, 229, 255, 1);
    transform: translateY(-2px);
}

.contact-email-wrapper:hover .contact-email {
    color: white;
}

.contact-form {
    padding: 2.5rem 2.8rem;        
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1rem;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 2.1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00E5FF;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
    outline: none;
}

#submitBtn {
    width: 100%;
    padding: 1.3rem 2rem;
    background: linear-gradient(90deg, #00E5FF, #A78BFA);
    color: #000;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#submitBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px -5px #00E5FF;
    background: linear-gradient(90deg, #22D3EE, #C084FC);
}

@media (max-width: 1024px) {
    #submitBtn {
        font-size: 1.05rem;
    }
    .contact-form input,
    .contact-form textarea {
        margin-bottom: 1.4rem;
    }
    
    .contact-email-wrapper {
         font-size: 1rem;
    }
    
    .contact-email, .email-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #submitBtn {
        font-size: 0.85rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;     
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem 1.8rem;
    }
}

/* ====================== FOOTER SECTION ====================== */
.footer {
    background: #05070A;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ====================== MESSAGE MODAL ====================== */
#messageModal > div {
    animation: modalPop 0.3s ease;
}

.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.message-modal.show {
    display: flex;
}

.modal-content {
    max-width: 420px;
    width: 90%;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body i {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
}

.modal-body .success-icon { color: #00E5FF; }
.modal-body .error-icon   { color: #EC4899; }

.modal-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.modal-body p {
    color: #ddd;
    line-height: 1.5;
    font-size: 1.05rem;
}

.modal-close-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #00E5FF;
    color: #000;
    transform: translateY(-2px);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ====================== LIMIT WARNING ====================== */
#limitWarning {
    display: none !important; 
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(12px);
    color: #f59e0b;
    padding: 1.4rem 1.8rem;
    border-radius: 1.25rem;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

#limitWarning.show {
    display: flex !important;
}

#limitWarning i {
    font-size: 1.6rem;
    margin-top: 2px;
}

#submitBtn:disabled {
    background: #64748b !important;
    color: #cbd5e1 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#submitBtn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ====================== SCROLL FADE-IN-UP 動畫 ====================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .fade-in-up {
    transition-duration: 1s;
}

.hero-left > * { transition-delay: 0.1s; }
.hero-left > *:nth-child(2) { transition-delay: 0.3s; }
.hero-left > *:nth-child(3) { transition-delay: 0.5s; }
.hero-left > *:nth-child(4) { transition-delay: 0.7s; }
.hero-buttons { transition-delay: 0.9s; }