/* Modern Creative Studio Design */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 50px;
    border-left: 1px solid var(--border);
}

.side-menu.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin-bottom: 30px;
}

.menu-link {
    text-decoration: none;
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-link:hover {
    color: var(--accent);
    transform: translateX(10px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.20), transparent 35%),
        linear-gradient(to bottom, rgba(10,10,10,0.10), rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.88));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    position: relative;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4d4d4;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: #d0d0d0;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Section Styles */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -2px;
}

/* Work Section */
.work {
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #151515;
    border: 1px solid rgba(255,255,255,0.04);
}

.work-large {
    grid-column: span 2;
}

.work-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #151515;
}

.work-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.08));
    pointer-events: none;
}

.work-item:hover .work-image {
    transform: scale(1.06);
}



.work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d3d3d3;
    margin-bottom: 8px;
}

.work-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-category {
    font-size: 14px;
    color: #d0d0d0;
    margin-bottom: 10px;
}

.work-desc {
    font-size: 14px;
    color: #b5b5b5;
    line-height: 1.6;
    max-width: 90%;
}
.work-image.cherry-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.work-image.cherry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 어두운 오버레이 */
.work-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.28) 35%,
        rgba(0, 0, 0, 0.06) 65%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 3;
}

/* 텍스트 등장 */
.reveal-text {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.92);
    transform: translateY(16px);
    opacity: 0;
    animation: textFadeUp 1.6s ease forwards;
    animation-delay: 0.3s;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.work-tags {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeUp 1.4s ease forwards;
    animation-delay: 0.9s;
}

.work-tags span {
    font-size: 11px;
    color: rgba(255,255,255,0.88);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
}

/* 벚꽃잎 레이어 */
.petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* 꽃잎 모양 */
.petal {
    position: absolute;
    top: -12%;
    width: 18px;
    height: 12px;
    background: radial-gradient(
        circle at 30% 30%,
        #ffd9ea 0%,
        #ffc1dc 45%,
        #f59ac2 100%
    );
    border-radius: 70% 30% 70% 30%;
    opacity: 0.75;
    filter: blur(0.2px);
    box-shadow: 0 0 6px rgba(255, 192, 203, 0.18);
    animation-name: petalFall, petalSwing, petalSpin;
    animation-timing-function: linear, ease-in-out, linear;
    animation-iteration-count: infinite, infinite, infinite;
    transform-origin: center center;
}

/* 각 꽃잎 위치/속도 다르게 */
.petal:nth-child(1) {
    left: 8%;
    animation-duration: 10s, 4s, 7s;
    animation-delay: 0s, 0s, 0s;
}
.petal:nth-child(2) {
    left: 20%;
    width: 14px;
    height: 10px;
    animation-duration: 12s, 5s, 8s;
    animation-delay: 1.5s, 0.5s, 0.2s;
}
.petal:nth-child(3) {
    left: 32%;
    width: 20px;
    height: 13px;
    animation-duration: 11s, 4.5s, 6.5s;
    animation-delay: 0.8s, 0s, 0.4s;
}
.petal:nth-child(4) {
    left: 46%;
    animation-duration: 13s, 5.5s, 9s;
    animation-delay: 2.2s, 0.3s, 0s;
}
.petal:nth-child(5) {
    left: 58%;
    width: 16px;
    height: 11px;
    animation-duration: 9.5s, 4.2s, 7.5s;
    animation-delay: 0.4s, 0.2s, 0.3s;
}
.petal:nth-child(6) {
    left: 71%;
    animation-duration: 12.5s, 5.2s, 8.2s;
    animation-delay: 1.2s, 0s, 0.6s;
}
.petal:nth-child(7) {
    left: 84%;
    width: 15px;
    height: 10px;
    animation-duration: 10.8s, 4.8s, 7.8s;
    animation-delay: 2.8s, 0.1s, 0.1s;
}
.petal:nth-child(8) {
    left: 92%;
    width: 19px;
    height: 12px;
    animation-duration: 14s, 5.8s, 9.5s;
    animation-delay: 3.1s, 0.4s, 0.5s;
}

/* 아래로 떨어짐 */
@keyframes petalFall {
    0% {
        top: -12%;
        opacity: 0;
    }
    10% {
        opacity: 0.78;
    }
    100% {
        top: 110%;
        opacity: 0.08;
    }
}

/* 좌우 흔들림 */
@keyframes petalSwing {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(18px);
    }
    50% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(14px);
    }
    100% {
        transform: translateX(-6px);
    }
}

/* 회전 */
@keyframes petalSpin {
    0% {
        rotate: 0deg;
    }
    100% {
        rotate: 360deg;
    }
}

/* 텍스트 부드럽게 등장 */
@keyframes textFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    padding-right: 40px;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.about-image {
    height: 540px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.about-image-bg {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.26)),
        url('https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    padding: 50px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 18px;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #161616;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Project Modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.project-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.project-modal-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.project-modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.project-modal-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: #ffffff;
}

.project-modal-category {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;   /* 핵심: 굵게 */
    color: #ffffff;     /* 더 밝게 */
    letter-spacing: 1px;
}

.project-modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    filter: blur(0.5px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    @media (max-width: 768px) {
    .work-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 1번 카드 */
    .work-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
        max-width: 280px;
        width: 100%;
        justify-self: center;
    }

    /* 2~7번 카드 위치 고정 */
    .work-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .work-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .work-item:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .work-item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    .work-item:nth-child(6) {
        grid-column: 1;
        grid-row: 4;
    }

    .work-item:nth-child(7) {
        grid-column: 2;
        grid-row: 4;
    }

    .work-large {
        grid-column: auto;
    }

    .work-item:first-child .work-image img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .work-item:not(:first-child) .work-image img {
        height: 220px;
        object-fit: cover;
    }

    .work-desc,
    .work-tags {
        display: none;
    }
}
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    

    .about-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
    .nav-menu {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        height: 100svh;
        padding-top: 110px;
        padding-bottom: 48px;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .hero-title {
        letter-spacing: -2px;
        font-size: clamp(36px, 10vw, 64px);
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .work-large {
        grid-column: span 1;
    }

    .work-image.cherry-card {
        border-radius: 16px;
    }

    .work-image.cherry-card img {
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    .petals {
        display: block;
    }

    .work-overlay {
        padding: 20px;
    }

    .work-desc,
    .work-tags {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: row;
        gap: 30px;
        justify-content: center;
    }

    .stat-number {
        font-size: 36px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .side-menu {
        max-width: 100%;
        padding: 100px 32px;
    }

    .menu-link {
        font-size: 28px;
    }

    .service-card {
        padding: 36px 28px;
    }

    .about-image {
        height: 380px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 42px);
    }

    .project-modal {
        padding: 16px;
    }

    .project-modal-content {
        max-width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow-y: auto;
    }

    .project-modal-image {
        height: 70dvh;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #111;
    }

    .project-modal-info {
        padding: 24px;
    }

    .project-modal-title {
        font-size: 22px;
    }

    .project-modal-description {
        font-size: 14px;
    }
}