:root { font-family: 'Inter', sans-serif; }

body, html {
    margin: 0; padding: 0;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

#navBox {
    position: fixed;
    width: 100%;
    height: 70px;

    display: flex;
    justify-content: center;

    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

#top-nav {
    position: relative;
    top: 0; left: 0; width: 100%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 0px; box-sizing: border-box;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
}

.nav-links { display: flex; list-style: none; gap: 40px; margin: 0; padding: 0; }

/* wrapNavMenu 로직 스타일 */
.wrapNavMenu a {
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.wrapNavMenu.active a { color: #fff; } /* 활성화 시 흰색 */

.contact-btn {
    text-decoration: none; color: #fff;
    padding: 10px 25px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.75rem; font-weight: 700;
    transition: 0.3s;
}

.contact-btn:hover { background: #fff; color: #000; }

.portfolio-cube-wrapper {
    position: absolute; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
}

#portfolio-cube-container { width: 100%; height: 100%; display: block;
position: fixed; }

.scroll-hint {
    position: absolute; bottom: 10%; left: 50%;
    transform: translateX(-50%); font-size: 0.7rem;
    letter-spacing: 2px; opacity: 0.6;
}

#sec1 {
    position: relative;
    width: 100%;
    height: 100vh;
}

#sec2 {
    position: relative;
    max-width: 1200px;
    margin: auto;
    justify-content: center;

    width: 100%;
    height: 100vh;

    background-color: rgba(0,0,0,0);
}

/* Section 2 레이아웃 */
.sec2-content-left {
    position: absolute;
    display: block;

    top: 25%;
    left: 0;
    z-index: 5;
    color: #fff;
    max-width: 700px;
    pointer-events: none; /* 클릭 이벤트가 3D 캔버스에 전달되도록 */
}

.about-title {
    font-size: 3.5rem;
    font-weight: 100;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.about-description p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    word-break: keep-all;
    font-weight: 300;
    opacity: 0.9;
}

.gpu-notice {
    font-size: 0.8rem !important;
    margin-top: 2rem;
    color: #888;
}

.bg-gradient{
    position: absolute;
    border-radius: 50%;
    filter: blur(500px);

    pointer-events:none;
    z-index: 1;
}

.g1{
    position: absolute;

    width:70%;
    height:70%;

    background:#6d28ff;

    top: 60vh;
    right:-50vw;

    opacity:0.45;
}

#sec3 {
    position: relative;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

.sec3ImageBox {
    position: relative;
    display: flex;

    top: 20%;
    width: 100%;
    height: 60%;

    justify-content: space-between;
    object-fit: cover;
    z-index: 5;
}

#sec3 .imageBox {
    position: relative;
    width: 30%;
    height: auto;
}

#iphone {
    transform: translateX(-60%);
    width: auto;
    height: 100%;
}

#macbook {
    transform: translateX(30%);
    width: auto;
    height: 100%;
}


.g2{
    position: absolute;

    width: 90%;
    height: 90%;

    background:#6d28ff;

    top: 0%;
    left:-50vw;

    opacity:0.3;
}

.g3{
    position: absolute;

    width: 90%;
    height: 90%;

    background:#41EAD4;

    top: 0%;
    right:-50vw;

    opacity:0.3;
}

.subTitle {
    position: absolute;
    margin: auto;

    top: 5%;
    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    font-weight: 100;
    font-size: 3em;
}

#sec3 ,.description {
    position: relative;
    display: block;

    justify-content: center;
    text-align: center;

    margin-top: 20vh;
}



.ui-text{
    position: fixed;
    top:0;
    left:0;

    transform: translate(-50%, -50%);

    color:white;

    font-family:'Inter';
    font-weight:500;

    pointer-events:none;

    will-change: transform;

    text-align: start;
}

#messenger img {
    width: 7%;
    height: 7%;
}

#time {
    font-size: 4em;
    font-weight: 600;
}

#date {
    font-weight: 500;
}

#des {
    font-weight: 300;
    font-size: 1.4em;
    
}

#ui-time {
    color: #777;
}

#search {
    color: #222;
    font-size: 1.5em;
}


.textBox {
    position: relative;
    display: block;
    margin: auto;

    justify-content: center;

    top: 10vh;

    max-width: 1200px;
}




#card-ui-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}

.slide-controls button {
    transition: all 0.3s;
    font-family: 'Inter';
    font-weight: 700;
    letter-spacing: 1px;
}

.slide-controls button:hover {
    background: #fff !important;
    color: #000 !important;
}


#sec4-ui-container{
    position:absolute;
    inset:0;

    pointer-events:none;

    z-index:50;
}

.card-label{

    padding:12px 30px;

    border-radius:20px;



    color:white;
    text-align:start;
}

.card-label h3{
    margin:0;
    font-size:2rem;
}

.card-label p{
    margin:0;
    font-size:1rem;
    opacity:0.7;
}

.g4{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    pointer-events:none;

    background:
    linear-gradient(

        to bottom,

        transparent 0%,

        rgba(195, 54, 255, 0) 60%,

        rgba(195,54,255,0.15) 90%,

        rgba(195,54,255,0.0) 100%,

        transparent 100%
    );
}

#sec5 {
    position: relative;
    z-index: 1;
    justify-content: center;
    display: block;
    height: auto !important; /* 내부 슬라이더 가동을 위해 고정 height 해제 또는 내부 패딩 부여 */
}

.swiper-container.sec5-slider {
    width: 150%;
    margin-top: 20vh;
    overflow: visible !important; /* ⭐ 오른쪽으로 카드가 삐져나가 보이기 위해 중요! */
    
    /* ⭐ 핵심 공식: 왼쪽 시작점만 전체 화면(100vw)에서 중앙 그리드(1200px)를 뺀 만큼 여백 부여 */
    padding-left: calc((100vw - 1200px) / 2); 
    box-sizing: border-box;
}

/* 화면이 1200px보다 작아질 때를 위한 예외 처리 */
@media (max-width: 1240px) {
    .swiper-container.sec5-slider {
        padding-left: 20px; /* 모바일이나 태블릿에선 일반 여백으로 대체 */
    }
}

.sec5-slider .swiper-wrapper {
    display: flex;
}

.sec5-slider .swiper-slide {
    width:600px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sec5-slider .slide-card {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 24px; /* 이미지 내부 라운더리 효과 */
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sec5-slider .slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sec5-slider .slide-text {
    margin-top: 25px;
    padding: 0 10px;
    box-sizing: border-box;
}

.sec5-slider .slide-text p {
    word-break: keep-all;
    margin: 0;
}

/* 하단 컨트롤러 화살표 배치 */
.sec5-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 6vh;
}

.swiper-button-prev-sec5,
.swiper-button-next-sec5 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.swiper-button-prev-sec5:hover,
.swiper-button-next-sec5:hover {
    background: #fff;
    color: #000;
}

/* Swiper 기본 터치 드래그 시 가속도 유지를 위한 세팅 */
.sec5-slider .swiper-slide {
    cursor: grab;
}
.sec5-slider .swiper-slide:active {
    cursor: grabbing;
}

#sec5Box {
    max-width: 1200px;
    width: 100%;
    display: block;
    justify-content: center;
    margin: auto;
}

.bannerImg {
    width: 100%;
    height: auto;
    margin-top: 20vh;
}

#textBox {
    width: 540px;
    height: auto;
    display: flex;
    margin: auto;
    text-align: start;
    margin-top: 10vh;

    word-break: keep-all;
}


.g5{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    pointer-events:none;

    background:
    linear-gradient(

        to bottom,

        transparent 0%,

        rgba(195, 54, 255, 0) 25%,

        rgba(48, 30, 214, 0.1) 50%,

        rgba(195,54,255,0.0) 55%,

        transparent 100%
    );
}


#sec6 {
    margin-top: 10vh;
}

.sec6Text {
    position: absolute;
    margin: auto;
    display: block;

    top: 10%;
    left: 50%;
    transform: translateX(-50%);

    width: 40%;
    max-width: 1000px;
    justify-content: center;

    word-break: keep-all;
    text-align: center;
}

#sec6Title {
    font-size: 3em;
}

#portfolio{
    object-position: center;
    object-fit: cover;
    border-radius: 1em;
    width: 25%;
    height: auto;

    transform: translateX(-50%);
}

footer {
    position: relative;
    display: flex;

    justify-content: center;
    align-items: center;

    bottom: 0;
    background-color: #888;
    z-index: 1;
    width: 100%;
    height: 100px;
}


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