/* 전체 페이지 스크롤 설정 */
html {
    scroll-behavior: smooth;
}

body {
    scroll-padding-top: 120px; /* 스크롤 문제 해결을 위해 증가 */
}

/* News Section */
.news-section {
    position: relative;
    padding: 80px 0; /* 높이 복원 */
    min-height: 100vh; /* 전체 화면 높이로 복원 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px; /* 두께 증가 */
    background: var(--gradient-neon);
    opacity: 0.8; /* 투명도 증가 */
    z-index: 1; 
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.news-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 2rem;
    margin: 2rem 0;
}

.news-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.carousel-slide {
    flex: 0 0 calc(50% - 1rem);
    min-width: 0;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide:hover {
    transform: translateZ(0);
}

.news-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 280px;
    text-decoration: none;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    will-change: transform;
    backface-visibility: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #ff6b6b, 
        #4ecdc4, 
        #45b7d1, 
        #a55eea);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}



.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-meta {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.news-detail-btn {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    align-self: flex-end;
    margin-top: auto;
    pointer-events: none;
    position: relative;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.news-detail-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary), 
        #4ecdc4, 
        var(--primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    animation: gradientShift 3s ease-in-out infinite;
}

.news-card:hover .news-detail-btn::after {
    transform: scaleX(1);
    transform-origin: left;
}

.news-card:hover .news-detail-btn {
    color: #4ecdc4;
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.4);
}

.news-card:hover .arrow-icon {
    transform: translateX(4px);
}

.news-category-tag {
    display: inline-block;
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.news-category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.news-category-tag:hover::before {
    left: 100%;
}

.news-category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 카테고리별 색상 (동적 방식) */
.news-category-tag.category-red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.news-category-tag.category-blue {
    background: linear-gradient(135deg, #45b7d1, #74b9ff);
    box-shadow: 0 0 10px rgba(69, 183, 209, 0.3);
}

.news-category-tag.category-green {
    background: linear-gradient(135deg, #4ecdc4, #00b894);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.news-category-tag.category-purple {
    background: linear-gradient(135deg, #ad69f1, #8854d0);
    box-shadow: 0 0 10px rgba(165, 94, 234, 0.3);
}

.news-category-tag.category-orange {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    box-shadow: 0 0 10px rgba(253, 203, 110, 0.3);
}

.news-category-tag.category-pink {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    box-shadow: 0 0 10px rgba(253, 121, 168, 0.3);
}

.news-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
    list-style: none;
    letter-spacing: -0.025em;
    text-transform: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.news-card:hover .news-title {
    color: var(--primary);
    text-shadow: 0 0 4px rgba(0, 123, 255, 0.18);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-top: 3px solid transparent;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.1) 0%, 
        rgba(138, 43, 226, 0.1) 50%, 
        rgba(255, 107, 107, 0.1) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.news-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.news-footer:hover::before {
    left: 100%;
}

.news-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #ff6b6b, 
        #4ecdc4, 
        #45b7d1, 
        #a55eea, 
        #fdcb6e);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.news-source,
.news-date {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.025em;
    position: relative;
    z-index: 1;
}

.news-source {
    color: #4ecdc4;
    padding-left: 2rem;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.news-source a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.news-source a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        #4ecdc4, 
        #00b894, 
        #4ecdc4);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    animation: gradientShift 3s ease-in-out infinite;
}

.news-source a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.news-source:hover {
    color: #00b894;
    text-shadow: 0 0 15px rgba(0, 184, 148, 0.5);
    transform: translateX(5px);
}

.news-source:hover a {
    color: inherit;
}

.news-source::before {
    content: '📰';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%); }
    40% { transform: translateY(-60%); }
    60% { transform: translateY(-55%); }
}

.news-date {
    color: #a55eea;
    padding-right: 2rem;
    text-shadow: 0 0 10px rgba(165, 94, 234, 0.3);
    transition: all 0.3s ease;
}

.news-date:hover {
    color: #8854d0;
    text-shadow: 0 0 15px rgba(136, 84, 208, 0.5);
    transform: translateX(-5px);
}

.news-date::after {
    content: '🕒';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.carousel-controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    pointer-events: auto;
    z-index: 10;
    padding: 1rem 0;
    overflow: visible;
}



.carousel-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(0.9);
}

.carousel-btn:disabled:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    box-shadow: none;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
    align-items: center;
    max-width: 300px;
    justify-content: center;
    flex-wrap: wrap;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.indicator-ellipsis {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0 0.25rem;
    opacity: 0.7;
    user-select: none;
}

/* Projects Summary Section */
.projects-summary {
    position: relative;
    padding: 80px 0; /* 높이 복원 */
    min-height: 100vh; /* 전체 화면 높이로 복원 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects-summary::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 3px; /* 두께 증가 */
    background: var(--gradient-cyber);
    opacity: 0.8; /* 투명도 증가 */
    z-index: 1; 
}

.projects-header {
    margin-bottom: 3rem;
    position: relative;
    text-align: center; /* keep subtitle centered */
}
.projects-header .header-top{
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}
.projects-header .header-button{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    background: linear-gradient(90deg, rgba(0,255,255,0.12) 0%, rgba(255,0,255,0.12) 100%);
    border: 1px solid rgba(0,255,255,0.4);
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    color: #00ffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0,255,255,0.15);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}
.projects-header .header-button:hover{
    color:#ff00ff; border-color:#ff00ff;
    background: linear-gradient(90deg, rgba(255,0,255,0.18) 0%, rgba(0,255,255,0.18) 100%);
    box-shadow: 0 0 16px #ff00ff99, 0 0 4px #00ffff99;
}

.projects-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.projects-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 2.2rem; width:100%; grid-auto-flow: row; justify-items: stretch }

/* Project Cards */
.project-card { display:flex; flex-direction:column; text-decoration:none; color:inherit; background:#0b1220; border:1px solid #334155; border-radius:12px; padding:18px 18px 52px; position:relative; overflow:hidden; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease; content-visibility:auto; contain-intrinsic-size:240px 400px; height:100% }
.project-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:#3b82f6; opacity:.9 }
.project-card:hover { transform:translateY(-2px); border-color:#475569; box-shadow:0 6px 22px rgba(0,0,0,.25) }

.project-title { font-weight:800; color:#e2e8f0; font-size:18px; line-height:1.35; margin:8px 0 6px; display:-webkit-box; line-clamp:2; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; letter-spacing:-0.01em }

.project-description { color:#94a3b8; font-size:14px; line-height:1.55; margin:0 0 12px; display:-webkit-box; line-clamp:2; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }

/* Project Status Tags */
.project-status { display:flex; align-items:center; gap:6px; font-size:12px; color:#94a3b8; margin-bottom:6px }
.project-status::before { content:""; width:8px; height:8px; border-radius:50%; background:#60a5fa }
.project-status.status-beta::before { background:#f59e0b }
.project-status.status-ai::before { background:#22c55e }

/* Status Colors */
.status-active {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: var(--bg-primary);
    border: 1px solid #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.status-pending {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    color: var(--bg-primary);
    border: 1px solid #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, #0088ff, #0066cc);
    color: var(--bg-primary);
    border: 1px solid #0088ff;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

/* Project Tags */
.project-tags { position:absolute; left:18px; bottom:14px; right:120px; display:flex; gap:6px; flex-wrap:wrap; margin:0; padding:0 }

.project-tag { border:1px solid #334155; color:#9aa8bd; padding:3px 8px; border-radius:10px; font-size:12px }

.project-tag:hover {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
}

/* Project Links */
.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.project-link::after { content:'→'; margin-left:6px; transition:transform .15s }
.project-card:hover .project-actions .project-link::after { transform: translateX(2px) }

/* place the action link at bottom-right */
.project-actions{ position:absolute; right:18px; bottom:14px; display:flex; justify-content:flex-end; align-items:center }

/* Creative layout tweaks: feature the first card on wide screens */
@media (min-width: 1024px){
  .projects-grid .project-card:nth-child(1){ grid-column: span 2; min-height: 280px; padding:22px }
  .projects-grid .project-card:nth-child(1) .project-title{ font-size:22px }
  .projects-grid .project-card:nth-child(1) .project-description{ line-clamp:3; -webkit-line-clamp:3; font-size:15px }
}



/* Experiment Journal Section - Cyberpunk Apocalypse Style */
.experiment-journal-section {
    position: relative;
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(20, 20, 20, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

.experiment-journal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
    opacity: 0.8; /* 투명도 증가 */
    z-index: 1; 
}

.experiment-journal-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.experiment-journal-header .header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.experiment-journal-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    position: relative;
    text-align: center;
}

.experiment-journal-header .header-button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(0,255,255,0.12) 0%, rgba(255,0,255,0.12) 100%);
    border: 1px solid rgba(0,255,255,0.4);
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    color: #00ffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0,255,255,0.15);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.experiment-journal-header h2::before {
    content: 'SYSTEM_LOG_';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}



.experiment-journal-header .header-button:hover {
    color: #ff00ff;
    border-color: #ff00ff;
    background: linear-gradient(90deg, rgba(255,0,255,0.18) 0%, rgba(0,255,255,0.18) 100%);
    box-shadow: 0 0 16px #ff00ff99, 0 0 4px #00ffff99;
    text-shadow: 0 0 8px #ff00ff99;
}

.experiment-journal-header p {
    font-size: 1rem;
    color: #888;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
    text-align: center;
    margin: 0;
}

.experiment-journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

/* Cyberpunk Journal Cards - Vertical Layout */
.experiment-journal-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 450px; /* 고정 높이 설정 */
    backdrop-filter: blur(5px);
}

.experiment-journal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.experiment-journal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    opacity: 0.7;
}

.experiment-journal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.experiment-journal-card:hover::before {
    transform: translateX(100%);
}

.journal-category {
    display: inline-block;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* 크기 고정 */
    background: linear-gradient(45deg, #ff0000, #ff6600); /* 기본 색상 */
}

.journal-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.journal-category:hover::before {
    left: 100%;
}

/* 카테고리별 색상 */
.journal-category.category-ai-experiment {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.journal-category.category-vibe-coding {
    background: linear-gradient(45deg, #ff00ff, #8000ff);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.journal-category.category-ai-실험 {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.journal-category.category-ai-도구 {
    background: linear-gradient(45deg, #00ff80, #00cc66);
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.3);
}

.journal-category.category-실험 {
    background: linear-gradient(45deg, #ff6600, #ff3300);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.journal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    flex-shrink: 0; /* 크기 고정 */
}

.journal-excerpt {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    min-height: 80px; /* 최소 높이 설정 */
}

.journal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Courier New', monospace;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    flex-shrink: 0; /* 크기 고정 */
}

.journal-date {
    color: #ff6600;
    font-weight: 600;
}

.journal-read-time {
    color: #888;
    opacity: 0.8;
}

/* Journal Tags */
.journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0; /* 크기 고정 */
}

.journal-tag {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journal-tag:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Journal Links */
.journal-link {
    color: #ffff00;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 0, 0.3);
    align-self: flex-end; /* 하단 정렬 */
}

.journal-link::after {
    content: '>>';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    color: #ff00ff;
}

.journal-link:hover {
    color: #ffff00;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
}

.journal-link:hover::after {
    transform: translateX(4px);
    color: #ff00ff;
}

/* 실험일지가 없을 때 표시할 스타일 */
.experiment-journal-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: #888;
    font-family: 'Courier New', monospace;
}

.experiment-journal-empty p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.experiment-journal-empty p:first-child {
    color: #00ffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* 실험일지 헤더 반응형 디자인 */
@media (max-width: 768px) {
    .experiment-journal-header .header-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .experiment-journal-header h2 {
        font-size: 1.8rem;
        order: 1;
    }
    
    .experiment-journal-header .header-button {
        position: static;
        transform: none;
        order: 2;
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .experiment-journal-header p {
        order: 3;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .experiment-journal-header h2 {
        font-size: 1.5rem;
    }
    
    .experiment-journal-header .header-button {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 80px 0; /* 높이 복원 */
    text-align: center;
    min-height: 100vh; /* 전체 화면 높이로 복원 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 3px; /* 두께 증가 */
    background: var(--gradient-neon);
    opacity: 0.8; /* 투명도 증가 */
    z-index: 1; 
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 공통 Container 스타일 */
.news-section .container,
.projects-summary .container,
.experiment-journal-section .container,
.cta-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-header h2,
    .projects-header h2,
    .experiment-journal-header h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .news-grid,
    .projects-grid,
    .experiment-journal-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .news-carousel {
        gap: 1rem;
    }
    
    .carousel-controls {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-indicators {
        gap: 0.25rem;
        max-width: 250px;
    }
    
    .indicator-dot {
        width: 6px;
        height: 6px;
    }
    

}

@keyframes borderGlow {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    }
}