/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.nav-logo {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 22px 80px;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 96px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 1);
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    text-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 100px 22px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-content {
    max-width: 980px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.large-text {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.about-text p {
    font-size: 21px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    word-break: keep-all;
}

.about-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    font-size: 17px;
    color: var(--text-primary);
    line-height: 1.6;
}

.detail-item strong {
    font-weight: 600;
    margin-right: 8px;
}

/* Experience Section */
.experience {
    background: var(--bg-secondary);
}

.experience-timeline {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-secondary);
}

.timeline-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.timeline-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.timeline-detail {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-header {
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: left;
}

.projects-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 20px;
    text-align: left;
    word-break: keep-all;
}

.projects-masonry {
    columns: 3;
    column-gap: 12px;
    margin-top: 0;
    padding: 0 40px; /* 양쪽 padding 증가 */
}

.project-card-masonry {
    display: inline-block;
    width: 100%;
    margin-bottom: 12px; /* 카드 간격 줄임 */
    break-inside: avoid;
    cursor: pointer;
    border-radius: 20px; /* 카드 크기 줄임 */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: opacity 0.5s ease, transform 0.3s ease;
    position: relative;
    max-width: 100%; /* 카드 최대 크기 제한 */
}

/* 카드에 직접 호버할 때만 다른 카드들을 어둡게 */
.project-card-masonry:hover ~ .project-card-masonry,
.projects-masonry:has(.project-card-masonry:hover) .project-card-masonry:not(:hover) {
    opacity: 0.6;
}

.project-card-masonry:hover {
    opacity: 1 !important;
    transform: translateY(-4px);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 10; /* 기본 비율 */
    overflow: hidden;
}

/* 비디오가 있는 경우 aspect ratio 조정 */
.project-card-masonry[data-aspect] .project-image-wrapper {
    aspect-ratio: var(--project-aspect, 9 / 10);
}

/* 각 프로젝트별 aspect ratio 설정 */
.project-card-masonry[data-aspect="9/10"] .project-image-wrapper {
    aspect-ratio: 9 / 10;
}

.project-card-masonry[data-aspect="16/9"] .project-image-wrapper {
    aspect-ratio: 16 / 9;
}

.project-card-masonry[data-aspect="4/3"] .project-image-wrapper {
    aspect-ratio: 4 / 3;
}

.project-card-masonry[data-aspect="1/1"] .project-image-wrapper {
    aspect-ratio: 1 / 1;
}

.project-card-masonry[data-aspect="9/16"] .project-image-wrapper {
    aspect-ratio: 9 / 16;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

/* 이미지 슬라이드용 썸네일 */
.project-slide-image {
    transition: opacity 0.8s ease;
}

/* ============================================
   비디오 및 오버레이 스타일 - 완전히 재작성
   ============================================ */

/* 비디오 스타일 - 가장 아래 레이어 */
.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: none;
    background: #000;
    pointer-events: none;
}

.project-card-masonry[data-video] .project-video {
    display: block;
}

.project-card-masonry[data-video] .project-thumbnail {
    display: none;
}

/* Shum 비디오만 오른쪽과 하단 조정 */
.project-card-masonry[data-project="shum"] .project-video {
    object-fit: cover;
    object-position: -10% top;
    clip-path: inset(0 2% 2% 0);
}

/* 썸네일 호버 효과 */
.project-card-masonry:hover .project-thumbnail {
    transform: scale(1.05);
}

/* 비디오는 호버 시 scale 효과 없음 */
.project-card-masonry[data-video]:hover .project-video {
    transform: none;
}

/* Shum 비디오 호버 시에도 동일한 스타일 유지 */
.project-card-masonry[data-project="shum"]:hover .project-video {
    object-fit: cover;
    object-position: -10% top;
    clip-path: inset(0 2% 2% 0);
    transform: none;
}

/* Unreal 보스전 비디오 스타일 - 테두리 제거 */
.project-card-masonry[data-project="unreal-boss"] .project-video {
    object-fit: cover;
    width: 102%;
    height: 102%;
    top: -1%;
    left: -1%;
    border-radius: 20px;
}

.project-card-masonry[data-project="unreal-boss"]:hover .project-video {
    object-fit: cover;
    width: 102%;
    height: 102%;
    top: -1%;
    left: -1%;
    border-radius: 20px;
    transform: none;
}

/* YouTube iframe이 있는 경우 */
.project-card-masonry[data-youtube]:hover .project-thumbnail {
    transform: none;
}

/* ============================================
   오버레이 스타일 - 호버 시에만 표시
   ============================================ */

/* 검은 그라데이션 오버레이 - 기본: 숨김 */
.project-image-wrapper .project-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: none;
    will-change: opacity;
}

/* 호버 시 검은 오버레이 표시 */
.project-card-masonry:hover .project-image-wrapper .project-gradient-overlay {
    opacity: 0.9;
}

/* 상단 태그 오버레이 - 기본: 숨김 */
.project-image-wrapper .project-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 20;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
    pointer-events: none;
    will-change: transform;
}

/* 호버 시 상단 태그 표시 */
.project-card-masonry:hover .project-image-wrapper .project-overlay-top {
    transform: translateY(0);
}

/* 하단 텍스트 오버레이 - 기본: 숨김 */
.project-image-wrapper .project-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 20;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    pointer-events: none;
    will-change: transform;
}

/* 호버 시 하단 텍스트 표시 */
.project-card-masonry:hover .project-image-wrapper .project-overlay-bottom {
    transform: translateY(0);
}

.project-tag-masonry {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(34, 211, 238, 0.5);
    backdrop-filter: blur(8px);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.1);
    white-space: nowrap;
}

.project-title-masonry {
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* YouTube Play Button */
.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.project-card-masonry:hover .youtube-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-iframe {
    pointer-events: none;
    background: #000;
}

/* YouTube 비디오가 있는 경우도 호버 시 오버레이 표시 */
.project-card-masonry[data-youtube] .project-gradient-overlay {
    opacity: 0 !important;
}

.project-card-masonry[data-youtube]:hover .project-gradient-overlay {
    opacity: 0.9 !important;
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    max-width: 980px;
    margin: 0 auto;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 18px;
}

.skill-category-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
    }
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    text-align: center;
}

.contact-content {
    max-width: 680px;
    margin: 0 auto;
}

.contact-text {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.contact-info {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-item {
    font-size: 19px;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-item strong {
    font-weight: 600;
    margin-right: 8px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 40px 22px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 44px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 60px 40px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-bg-image {
        width: 80%;
        height: 60%;
    }

    .hero-subtitle {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 40px;
    }

    .projects-masonry {
        columns: 1;
        column-gap: 12px;
        padding: 0 20px; /* 모바일에서도 padding */
    }

    .project-card-masonry {
        margin-bottom: 12px;
    }

    .project-overlay-top {
        padding: 10px 12px;
    }

    .project-overlay-bottom {
        padding: 12px;
    }

    .project-title-masonry {
        font-size: 16px;
    }

    .project-tag-masonry {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (min-width: 640px) {
    .projects-masonry {
        columns: 3;
        column-gap: 16px;
    }

    .project-card-masonry {
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .projects-masonry {
        columns: 4;
        column-gap: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .large-text {
        font-size: 24px;
    }

    .about-text p {
        font-size: 17px;
    }

    .contact-text {
        font-size: 24px;
    }

    .experience-timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-content h3 {
        font-size: 20px;
    }

    .timeline-content p {
        font-size: 15px;
    }

    .about-details {
        gap: 12px;
    }

    .detail-item {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-bg-image {
        width: 100%;
        height: 50%;
        filter: blur(30px);
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .section-title {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-buttons {
        flex-direction: column;
    }
}

/* Smooth Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: auto;
    padding: 0;
    border-radius: 18px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.1);
}

#modalBody {
    padding: 60px 40px 40px;
}

.modal-project-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-project-period {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.modal-project-description {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-section-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-section-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-section-content li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.modal-section-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.modal-image {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.modal-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.modal-link:hover {
    text-decoration: underline;
}

.modal-code {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

.modal-code code {
    color: var(--text-primary);
}

.reward-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.reward-table th,
.reward-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.reward-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.reward-table td {
    color: var(--text-secondary);
}

.reward-table tr:hover {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    #modalBody {
        padding: 50px 24px 30px;
    }

    .modal-project-title {
        font-size: 28px;
    }

    .modal-project-description {
        font-size: 17px;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }
}
