/* Base Styles */
:root {
    --gradient-text: linear-gradient(45deg, #FF6B6B, #4ECDC4);
}
hover-gradient-text:hover {
    --gradient-text: linear-gradient(45deg,#4ECDC4, #FF6B6B);

}
body {
    font-family: 'Poppins', 'Noto Sans TC', 'Noto Sans JP', sans-serif;
}


/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.gradient-text1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}


/* Social Links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.discord {
    background: #5865F2;
    color: white;
}

.social-link.twitter {
    background: #1DA1F2;
    color: white;
}
.social-link.github {
    background: #c0c0c0;
    color: white;
}
.social-link.gmail {
    background: #D14836;
    color: white;
}
.social-link.pixiv {
    background: rgb(12, 12, 12);
    color: white;
}
.bg-img-1 {
    background-image: url("../img/kotone.jpg");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: right center;
}

/* Skill Icons Animation */
.skill-icons img {
    max-width: 50%;
    transition: transform 0.3s ease;
}

.skill-icons img:hover {
    transform: translateY(-5px);
}



/* Project Cards */
.project-card {
    background: white;
    border-radius: 1rem;
    padding: 20px 0 50px 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}



.project-card:hover {
    transform: translateY(-5px);
}

/* Tech Tags */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    margin: 20px 20px 0 0 ;
}
/* Code Cards */
/* Code Cards Container */
.code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* Grid layout for code cards */
.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
}

/* Code Cards */
.code-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-card:hover {
    transform: translateY(-5px);
}

.code-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}



/* Fixed Preview Section */
.code-preview-container {
    width: 80%;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 100px; /* 最小高度 */
}

.code-preview-content {
    padding: 1.5rem;
    display: none; /* 預設隱藏所有預覽內容 */
}

.code-preview-content.active {
    display: block; /* 顯示激活的預覽內容 */
}

.code-preview-content pre {
    margin: 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
    overflow-x: auto;
}



/* Empty state */
.preview-empty-state {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Active card state */
.code-card.active {
    --gradient-text: linear-gradient(45deg,#4ECDC4,#FF6B6B);
    border: 2px solid #4ECDC4;
}

/* Disclaimer Cards */
.disclaimer-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #4ECDC4 !important;
}

.swiper-pagination-bullet-active {
    background: #4ECDC4}

.mb-w {
    text-align: center !important;
    align-items: center!important;
}

@media screen and (max-width: 768px) {
    .bg-img-1 {
            background-image: url("../img/koton.jpg");
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
    }
    
}

/* Base Styles */
:root {
    --gradient-text: linear-gradient(45deg, #FF6B6B, #4ECDC4);
}

.dark body {
    --gradient-text: linear-gradient(45deg, #6EEAE1, #FF8F8F);
    background-color: #1a1a1a;
    color: #e5e5e5;
}

hover-gradient-text:hover {
    --gradient-text: linear-gradient(45deg,#4ECDC4, #FF6B6B);
}

body {
    font-family: 'Poppins', 'Noto Sans TC', 'Noto Sans JP', sans-serif;
}
.dark .bg-img-1 {
    background-image: url("../img/ena.jpg");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: right center;
}
/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-text1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Social Links - Dark Mode Adjustments */
.dark .social-link.github {
    background: #2d2d2d;
    color: #ffffff;
}

/* Project Cards - Dark Mode */
.project-card {
    background: white;
    border-radius: 1rem;
    padding: 20px 0 50px 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dark .project-card {
    background: #1f2937;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Tech Tags - Dark Mode */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    margin: 20px 20px 0 0;
}

.dark .tech-tag {
    background: #404040;
    color: #e5e5e5;
}

/* Code Cards - Dark Mode */
.code-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .code-card {
    background: #1f2937;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Fixed Preview Section - Dark Mode */
.code-preview-container {
    width: 80%;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 100px;
}

.dark .code-preview-container {
    background: #1f2937;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dark .code-preview-content pre {
    background: #374151;

    color: #e5e5e5;
}

/* Empty state - Dark Mode */
.dark .preview-empty-state {
    color: #999;
}

/* Active card state - Dark Mode */
.dark .code-card.active {
    border-color: #6EEAE1;
}

/* Disclaimer Cards - Dark Mode */
.disclaimer-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .disclaimer-card {
    background: #2d2d2d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Swiper Customization - Dark Mode */
.dark .swiper-button-next,
.dark .swiper-button-prev {
    color: #6EEAE1 !important;
}

.dark .swiper-pagination-bullet-active {
    background: #6EEAE1;
}

@media screen and (max-width: 800px) {
    .bg-img-1 {
        background-image: url("../img/phone.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
    }
    .ph-1{
        background-color: rgba(255, 255, 255,0.3);
    }
}




/* Skill Section */
.skill-container {
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Grid layout for skills */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Skill Card */
.skill-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    height: 10px;
    width: 100%;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: var(--gradient-text);
    border-radius: 5px;
}
/* Dark Mode Styles */
.dark .skill-card {
    background: #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dark .skill-card h3 {
    color: #e5e7eb;
}

.dark .skill-card p {
    color: #9ca3af;
}

.dark .progress-bar {
    background: #374151;
}

.dark .progress-bar span {
    /* Keep the gradient or adjust as needed */
    background: var(--gradient-text);
}