/* =========================
   기본 설정
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:100px;
}

body{
    font-family:Arial,sans-serif;
    color:#222;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
}

/* =========================
   헤더
========================= */

header{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 40px;

    background:#1f2937;
    color:#fff;
}

.logo{
    font-size:30px;
    font-weight:bold;
}

nav{
    display:flex;
    gap:20px;
    align-items:center;
}

nav a{
    color:white;
    font-weight:bold;
    transition:.3s;
}

nav a:hover{
    color:#60a5fa;
}

#menuBtn{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:32px;
    cursor:pointer;
}

/* =========================
   Hero
========================= */

.hero{
    min-height:70vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:80px 20px;
}

.profile{
    width:170px;
    height:170px;
    object-fit:cover;
    border-radius:50%;

    border:4px solid rgba(255,255,255,.9);
    box-shadow:
        0 0 15px #60a5fa,
        0 0 35px rgba(96,165,250,.5);
}
.profile:hover{
    transform:scale(1.08);
    transition:.4s;
}

.hero h1{
    font-size:68px;
    font-weight:900;
    color:#fff;
    letter-spacing:6px;
    text-shadow:
        0 0 20px #60a5fa,
        0 0 40px #2563eb;
}
.hero h2{
    font-size:28px;
    color:#7dd3fc;
    letter-spacing:3px;
    margin:15px 0;
}
.hero p{
    color:#f3f4f6;
    font-size:22px;
    line-height:1.8;
}
/* =======================
   카드
========================= */
.card{
    width:90%;
    max-width:1000px;
    margin:35px auto;
    padding:35px;

    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,0.2);
    border-radius:20px;

    box-shadow:0 8px 32px rgba(0,0,0,.3);

    color:white;
}
.card h2{
    color:#7dd3fc;
}

.card p{
    color:#f3f4f6;
}
.card:hover{
    transform:translateY(-8px);
    transition:.4s;
    box-shadow:0 15px 40px rgba(96,165,250,.4);
}
/* =========================
   프로젝트
========================= */

.project{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:16px;
    padding:25px;
    margin:25px 0;
}

.project:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.project img{
    width:100%;
    border-radius:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
}

.project h3{
    color:#2563eb;
    margin-bottom:10px;
}

/* =========================
   프로젝트 버튼
========================= */

.project-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

.project-btn{
    display:inline-block;
    margin-top:25px;
    padding:16px 40px;
    border-radius:999px;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:white;
    font-weight:bold;
    font-size:18px;
}

.project-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(124,58,237,.5);
}
/* =========================
   기술 스택
========================= */

.skills,
.tech{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

.skills span,
.tech span{
    background:#2563eb;
    color:#fff;
    padding:8px 16px;
    border-radius:20px;
    font-weight:bold;
    transition:.3s;
}

.skills span:hover,
.tech span:hover{
    transform:scale(1.05);
    background:#1d4ed8;
}

/* =========================
   기본 버튼
========================= */

button{
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:12px 24px;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#1d4ed8;
}
/* =========================
   맨 위 버튼
========================= */

#topBtn{
    display:none;
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    font-size:24px;
    cursor:pointer;
    box-shadow:0 6px 20px rgba(0,0,0,.2);
    transition:.3s;
    z-index:999;
}

#topBtn:hover{
    transform:scale(1.1);
}

/* =========================
   다크모드
========================= */

#darkBtn{
    font-size:18px;
    padding:8px 14px;
}

body.dark{
    background:#111827;
    color:#fff;
}

body.dark .card{
    background:#1f2937;
}

body.dark .project{
    background:#273549;
}

body.dark .hero p,
body.dark .card p{
    color:#ddd;
}

body.dark footer{
    background:#0f172a;
}

/* =========================
   푸터
========================= */

footer{
    background:#1e293b;
    color:#fff;
    text-align:center;
    padding:40px 20px;
    margin-top:60px;
}

footer h3{
    margin-bottom:15px;
}

footer p{
    margin:8px 0;
}

/* =========================
   모바일
========================= */

@media (max-width:768px){

    header{
        flex-direction:column;
        padding:20px;
    }

    #menuBtn{
        display:block;
        -top:10px;
    }

    nav{
        display:none;
        flex-direction:column;
        width:100%;
        text-align:center;
        gap:15px;
        -top:15px;
    }

    nav.show{
        display:flex;
    }

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

    .hero h2{
        font-size:28px;
    }

    .hero p{
        font-size:18px;
    }

    .profile{
        width:180px;
        height:180px;
    }

    .card{
        width:95%;
        padding:25px;
    }

    .project-links{
        flex-direction:column;
    }

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

    .skills,
    .tech{
        justify-content:center;
    }
}
body {
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url("space.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@keyframes glow{
    from{
        text-shadow:
            0 0 8px #4facfe,
            0 0 16px #4facfe;
    }
    to{
        text-shadow:
            0 0 15px #4facfe,
            0 0 30px #60a5fa,
            0 0 45px #2563eb;
    }
}
body::before{
    content:"";
    position:fixed;
    inset:0;
    background-image:
      radial-gradient(2px 2px at 20% 30%, white, transparent),
      radial-gradient(2px 2px at 70% 20%, white, transparent),
      radial-gradient(1px 1px at 40% 80%, white, transparent),
      radial-gradient(2px 2px at 90% 70%, white, transparent),
      radial-gradient(1px 1px at 10% 90%, white, transparent);
    animation: twinkle 4s infinite alternate;
    pointer-events:none;
}

@keyframes twinkle{
    from{opacity:.3;}
    to{opacity:1;}
}
.hero{
    animation: fadeUp 1.2s ease;
}

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


.skills{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
    -top:30px;
}

.skill{
    padding:15px 30px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.2);
    border-radius:15px;
    color:#fff;
    font-weight:bold;
    transition:.3s;
    cursor:pointer;
}

.skill:hover{
    transform:translateY(-8px) scale(1.05);
    box-shadow:0 0 20px rgba(96,165,250,.6);
}

.container{
    width:90%;
    max-width:1000px;
    margin:40px auto;
    padding:20px;
}
/* ===== 이력서 ===== */

.container{
    width:90%;
    max-width:1000px;
    margin:40px auto;
    padding:20px;
}

.container h1{
    text-align:center;
    color:#60a5fa;
    margin-bottom:30px;
}

.card h2{
    color:#7dd3fc;
}

.card strong{
    color:#93c5fd;
}

ul{
    padding-left:20px;
}

ul li{
    color:#f3f4f6;
    margin:10px 0;
}

h2,
h3,
p{
    color:white;
    text-shadow:2px 2px 5px #000;
}
h1{
    color:white !important;
}
/* ===== 프로젝트 대제목 ===== */
.project-detail h1{
    color:#ffffff !important;
    font-size:56px;
    font-weight:900;
    text-align:center;
    margin-bottom:40px;
    text-shadow:0 0 15px rgba(96,165,250,.6);
}

/* ===== 소제목 ===== */
.project-detail h2{
    color:#7dd3fc !important;
    font-size:48px;
    font-weight:800;
    margin:40px 0 15px;
}

/* ===== 내용 ===== */
.project-detail p,
.project-detail li{
    color:#f3f4f6 !important;
    font-size:22px;
    line-height:1.8;
}

/* ===== 정보 박스 ===== */
.info-box{
    background:linear-gradient(135deg,#1e40af,#2563eb);
    border:1px solid rgba(255,255,255,.2);
    border-radius:20px;
    padding:25px;
    margin:30px 0;
    color:white;
    box-shadow:0 10px 30px rgba(37,99,235,.35);
}

.info-box strong{
    color:#7dd3fc;
}

/* ===== 모바일 ===== */
@media (max-width:768px){

    .project-detail h1{
        font-size:40px;
    }

    .project-detail h2{
        font-size:28px;
    }

    .project-detail p,
    .project-detail li{
        font-size:18px;
    }
}
