/* Header: Logo and Tagline */
.logo { 
    font-family: 'Inter', sans-serif;
    font-size: 5rem; 
    font-weight: 700; 
    margin-bottom: 10px;
    color: var(--base-color);
    opacity: 0;
    animation: fade-in-up 0.8s 0.2s ease-out forwards;
}
.tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0;
    animation: fade-in-up 0.8s 0.3s ease-out forwards;
}

/* Service Links Container */
.service-links { 
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
}

/* Service Link Box (Base Style) */
.service-link { 
    background: var(--background-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; 
    text-decoration: none; 
    color: var(--text-color); 
    box-shadow: 0 8px 32px var(--shadow-color); 
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Large Service Link */
.service-links .service-link {
    padding: 40px; 
    width: 320px;
}
.service-link.task { animation-delay: 0.4s; }
.service-link.talk { animation-delay: 0.6s; }
.service-link.net { animation-delay: 0.8s; }

.service-link:hover, .service-link.active { 
    transform: translateY(-12px) scale(1.02); 
    box-shadow: 0 16px 40px var(--shadow-color); 
    background: var(--background-card-hover);
}

/* Service Icons */
.service-icon {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
    margin-bottom: 30px;
}
.task-icon .block {
    width: 18px; height: 18px; background-color: var(--task-color);
    border-radius: 4px; transition: all 0.3s ease;
}
.service-link:hover .task-icon .block:nth-child(1) { transform: rotate(45deg) scale(1.1); }
.service-link:hover .task-icon .block:nth-child(2) { transform: rotate(-45deg) scale(1.1); }

.talk-icon .bar {
    width: 8px; background-color: var(--talk-color);
    border-radius: 4px; transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.talk-icon .bar:nth-child(1) { height: 15px; }
.talk-icon .bar:nth-child(2) { height: 30px; }
.talk-icon .bar:nth-child(3) { height: 20px; }
.service-link:hover .talk-icon { animation: sound-wave 1s ease-in-out infinite; }
@keyframes sound-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

.net-icon .dot {
    width: 8px; height: 8px; background-color: var(--net-color);
    border-radius: 50%; position: relative;
}
.net-icon .dot:nth-child(2) { transform: scale(1.2); }
.net-icon .dot:nth-child(3) { transform: scale(0.8); }
.service-link:hover .net-icon { animation: dot-pulse 1s ease-in-out infinite; }
@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Service Link Content */
.service-links .service-link h2 { 
    margin: 0 0 15px; 
    font-size: 26px;
    font-weight: 700;
}
.service-link.task h2 { font-family: 'JetBrains Mono', monospace; color: var(--task-color); }
.service-link.talk h2 { font-family: 'Inter', sans-serif; color: var(--talk-color); }
.service-link.net h2 { font-family: 'Noto Sans KR', sans-serif; color: var(--net-color); }
.service-links .service-link p { 
    margin: 0; 
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* --- Sub Service Links --- */
.sub-service-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 40px; margin-top: 40px; 
}
.sub-service-link {
    width: 320px; max-width: 100%; display: flex;
    flex-direction: row; align-items: center; padding: 20px; gap: 15px;
}
.sub-service-link.task { animation-delay: 1.0s; }
.sub-service-link.talk { animation-delay: 1.2s; }
.sub-service-link.net { animation-delay: 1.4s; }
.sub-service-link .service-icon {
    margin-bottom: 0; align-self: flex-start; margin-top: 5px; flex-shrink: 0;
}
.sub-service-content { text-align: left; }
.sub-service-link h2 { font-size: 18px; margin-bottom: 8px; }
.sub-service-link p { font-size: 13px; line-height: 1.5; word-break: keep-all; }

/* --- Mini Service Links --- */
.mini-service-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 40px; margin-top: 40px;
}
.mini-service-link {
    width: 320px; max-width: 100%; display: flex; flex-direction: row;
    align-items: center; padding: 12px 20px; gap: 12px; border-radius: 16px;
}
.mini-service-link.task { animation-delay: 1.6s; }
.mini-service-link.talk { animation-delay: 1.8s; }
.mini-service-link.net { animation-delay: 2.0s; }
.mini-service-link .service-icon {
    height: 24px; margin-bottom: 0; gap: 4px;
}
.mini-service-link .task-icon .block { width: 12px; height: 12px; border-radius: 3px; }
.mini-service-link .talk-icon .bar { width: 6px; border-radius: 3px; }
.mini-service-link .talk-icon .bar:nth-child(1) { height: 10px; }
.mini-service-link .talk-icon .bar:nth-child(2) { height: 20px; }
.mini-service-link .talk-icon .bar:nth-child(3) { height: 14px; }
.mini-service-link .net-icon .dot { width: 6px; height: 6px; }
.mini-service-link h2 { font-size: 16px; margin: 0; }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--background-card-hover); padding: 30px; border-radius: 16px; width: 90%; max-width: 550px;
    box-shadow: 0 10px 30px var(--shadow-color); transform: scale(0.95); transition: transform 0.3s ease;
    max-height: 92vh; overflow-y: auto; 
}
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-header h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--base-color); }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #aaa; line-height: 1; }
.modal-body p { margin-bottom: 15px; line-height: 1.8; color: var(--text-color); }
.modal-body h3 {
    font-family: 'Inter', sans-serif; font-size: 18px; color: var(--base-color);
    margin-top: 30px; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 2px solid var(--border-color);
}
.service-emphasis { font-weight: 700; }
.task-emphasis { color: var(--task-color); }
.talk-emphasis { color: var(--talk-color); }
.net-emphasis { color: var(--net-color); } 
.modal-footer { margin-top: 30px; }
.modal-footer button {
    width: 100%; padding: 14px; font-size: 16px; border-radius: 8px;
    cursor: pointer; border: none; font-weight: 700;
}
.btn-confirm { background-color: var(--base-color); color: white; }
.dont-show-today { display: flex; align-items: center; justify-content: flex-end; margin-top: 20px; font-size: 13px; color: var(--text-light); }
.dont-show-today input { margin-right: 8px; }

/* --- Dashboard Styles --- */
.dashboard { text-align: left; }
.dashboard-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.profile-avatar img {
    width: 70px; height: 70px; border-radius: 50%;
    border: 3px solid var(--background-card-hover); box-shadow: 0 4px 10px var(--shadow-color);
}
.profile-info { flex-grow: 1; }
.profile-info h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--base-color); }
.profile-level { font-size: 14px; color: var(--text-light); margin-top: 5px; }
.exp-bar {
    width: 100%; height: 8px; background-color: rgba(128,128,128,0.2);
    border-radius: 4px; overflow: hidden; margin-top: 8px;
}
.exp-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--talk-color), var(--net-color));
    border-radius: 4px; transition: width 0.5s ease-out;
}
.dashboard-stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 25px; }
.stat-item {
    display: flex; align-items: center; background: rgba(128,128,128,0.1);
    padding: 12px; border-radius: 10px;
}
.stat-item-icon { font-size: 20px; margin-right: 12px; }
.stat-item-content p { margin: 0; line-height: 1.4; }
.stat-item-content .label { font-size: 13px; color: var(--text-light); }
.stat-item-content .value { font-size: 14px; font-weight: 700; color: var(--text-color); }
.dashboard-section { margin-bottom: 25px; }
.dashboard-section h4 {
    margin: 0 0 10px 0; font-size: 16px; color: var(--text-color);
    border-bottom: 1px solid var(--border-color); padding-bottom: 8px;
}
.notification-list-item { 
    font-size: 14px; padding: 8px 0; display: flex; align-items: center; color: var(--text-light);
}
.notification-list-item.new { color: var(--text-color); font-weight: 500; }
.notification-list-item.new::before {
    content: ''; display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background-color: var(--talk-color); margin-right: 8px;
}
.notification-list-item .timestamp { font-size: 12px; margin-left: auto; color: var(--text-light); }
.settings-list { display: flex; gap: 10px; }
.settings-item {
    flex: 1; display: flex; justify-content: space-between; align-items: center; font-size: 14px; 
    background-color: rgba(128,128,128,0.1); padding: 10px 15px; border-radius: 10px;
}
.settings-item button {
    background: rgba(128,128,128,0.2); border: none; padding: 5px 10px;
    border-radius: 15px; font-size: 12px; cursor: pointer; color: var(--text-light);
}
.dark-mode-toggle .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.dark-mode-toggle .switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 24px;
}
.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--talk-color); }
input:checked + .slider:before { transform: translateX(20px); }
.dashboard-message {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.8), rgba(195, 207, 226, 0.8));
    padding: 20px; border-radius: 15px; text-align: center; margin-top: 10px;
}
.dashboard-message p { margin: 0; font-size: 15px; line-height: 1.6; color: #333; }
body.dark-mode .dashboard-message { background: linear-gradient(135deg, #1e242d, #2f3847); }
body.dark-mode .dashboard-message p { color: #c9d1d9; }

/* --- Hover Layer Styles --- */
.hover-layer-header {
    display: flex; align-items: center; margin-bottom: 20px;
    padding-bottom: 15px; border-bottom: 1px solid var(--border-color);
}
.hover-layer-header .icon { font-size: 24px; margin-right: 12px; }
.hover-layer-header h3 { margin: 0; color: var(--text-color); }
.hover-layer-actions { display: flex; gap: 10px; margin-top: 20px; }
.quick-action-btn {
    flex: 1; padding: 10px; border-radius: 8px;
    background-color: rgba(128, 128, 128, 0.2);
    border: none; color: var(--text-color); text-align: center;
    font-size: 14px; cursor: pointer; transition: background-color 0.2s ease;
}
.quick-action-btn:hover { background-color: rgba(128, 128, 128, 0.4); }
/* Task Layer */
.hover-stats { display: flex; justify-content: space-around; text-align: center; margin-bottom: 20px; }
.hover-stat-item .value { font-size: 20px; font-weight: 700; color: var(--text-color); }
.hover-stat-item .label { font-size: 13px; color: var(--text-light); }
.task-list-item { display: flex; align-items: center; padding: 10px 0; font-size: 14px; }
.task-list-item input { margin-right: 10px; }
.task-list-item.completed label { text-decoration: line-through; color: var(--text-light); }
/* Talk Layer */
.favorite-personas { margin-bottom: 20px; }
.favorite-personas h4 { margin-bottom: 10px; font-size: 14px; color: var(--text-light); }
.favorite-personas .avatars { display: flex; gap: 10px; }
.persona-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.chat-list-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.chat-list-item:last-child { border-bottom: none; }
.chat-header { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); }
.chat-header .name { font-weight: 700; color: var(--text-color); }
.chat-list-item .snippet { font-size: 14px; margin-top: 5px; color: var(--text-light); }
.chat-list-item.unread .snippet { color: var(--text-color); font-weight: 500; }
/* Net Layer */
.trending-topics { margin-bottom: 20px; }
.trending-topics h4 { margin-bottom: 10px; font-size: 14px; color: var(--text-light); }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tag {
    background-color: rgba(128, 128, 128, 0.2); padding: 5px 10px;
    border-radius: 15px; font-size: 13px;
}
.article-list-item { display: flex; align-items: center; gap: 15px; padding: 12px 0; }
.article-list-item img { width: 50px; height: 50px; border-radius: 8px; }
.article-info .title { font-size: 14px; font-weight: 700; }
.article-info .source { font-size: 12px; color: var(--text-light); }
.hover-progress { margin-top: 10px; }
ul { list-style-position: inside; padding-left: 0; }

/* Responsive Components */
@media (max-width: 992px) {
    .logo { font-size: 3.5rem; }
    .tagline { font-size: 1rem; }
    .service-links, .sub-service-links, .mini-service-links {
        flex-direction: column; 
        gap: 25px;
        align-items: center;
    }
    .service-link, .sub-service-link, .mini-service-link {
        width: 100% !important;
        max-width: 400px;
    }
    .service-links .service-link { padding: 30px; }
    .modal-content { width: 95%; max-width: 95%; max-height: 95vh; }
}