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

body {
    background: #fef3de;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    overflow-y: auto;  
    flex-direction: column; 
}

/* 카드 배경 통일 (미술관 카드처럼 보이게) */
.card,
.additional-leadership-wrapper,
#additional-leadership-wrapper,
#additional-leadership-box,.card.leadership,
.accordion-item {
    box-shadow:
    inset 0 0 10px rgba(255, 230, 180, 0.2),  /* 카드 안에서 퍼지는 빛 */
        0 12px 40px rgba(0, 0, 0, 0.18),
        0 0 80px rgba(255, 240, 200, 0.4),  /* ✨부드러운 글로우 */
        0 0 20px rgba(255, 220, 160, 0.2);  /* 안쪽 따뜻한 빛 */

        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent 40%),
        linear-gradient(to top, rgba(255, 255, 255, 0.35), transparent 40%),
        rgba(255, 255, 245, 0.95); /* 카드 배경 */
                
    background-blend-mode: screen;
    backdrop-filter: blur(8px);
    color: #333333;
    border: 3px solid rgba(215, 186, 113, 0.6);
    border-radius: 15px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.25));
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
  }

  p, li, a, span {
    font-family: 'DM Sans', sans-serif;
  }


/* 🚪 문 */
    .door-container {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    z-index: 999;
}

/* 🚪 문 */
.door {
    width: 50vw;
    height: 100vh;
    background: linear-gradient(to right, #3a3a3a, #222);
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
    backface-visibility: hidden;
    box-shadow: inset -5px 0px 10px rgba(0, 0, 0, 0.5);
}
.door::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 10px;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent);
    filter: blur(6px);
    z-index: 10;
}

.door-message {
    position: absolute;
    z-index: 1000;
    color: white;
    font-size: 2.5rem;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

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

.left-door {
    left: 0;
    transform-origin: left center;
}

.right-door {
    right: 0;
    transform-origin: right center;
}

/* 문 열기 애니메이션 */
.door-container.open .left-door {
    transform: rotateY(-100deg); /* 왼쪽 문은 왼쪽으로 */
}

.door-container.open .right-door {
    transform: rotateY(100deg); /* 오른쪽 문은 오른쪽으로 */
}

/*천장등*/
.ceiling-light {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(
    ellipse at center,
    rgb(255, 255, 255, 1), 
    rgb(255, 255, 255, 0.7) ,
    transparent 80%
    );
    filter: blur(80px);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.ceiling-light.left {
    left: 20%;
}

.ceiling-light.center {
    left: 50%;
    transform: translateX(-50%);
}

.ceiling-light.right {
    right: 20%;
}

.spotlight {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    mix-blend-mode: screen;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, transparent 80%);
    filter: blur(50px);
    opacity: 0.5;
    z-index: 3;
    top: 10%;
    height: 1200px;
    pointer-events: none;
    }
    
.spotlight::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 50%;
    width: 1200px;
    height: 300px;
    opacity: 0.2;
    filter: blur(80px);
    background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(0, 0, 0, 0) 70%
    );
    transform: translateX(-50%);
}
    
.floor-light {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08), transparent 80%);
    filter: blur(100px);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}
    

@keyframes swayLight {
0%, 100% {
transform: translateX(-50%) rotateZ(0deg);
}
50% {
transform: translateX(-50%) rotateZ(1deg);
}
}

/* 🎠 캐러셀 */

.cursor {
    display: inline-block;
    width: 1ch;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}

.carousel-container {
display: none;
opacity: 0;
pointer-events: none;
transform: scale(0.6) translateY(50px);  /* 좀 더 아래에서 시작 */
transition: transform 1.5s ease-in-out, opacity 1.5s ease;    
width: 100vw;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
perspective: 1200px;
background: linear-gradient(to bottom, fef6ed 0%, fef6ed 100%);
background-size: cover;
}

.carousel-container.show {
display: flex;
opacity: 1;
transform: scale(1) translateY(0); /* 부드럽게 정위치로 */
pointer-events: auto;
}
.carousel-container.zoom-in {
transform: scale(1.05); /* 더 크게 확대하고 싶으면 1.1~1.2 조정 가능 */
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 500px;
    height: 350px;
    transform-style: preserve-3d;
    align-items: flex-start;
}

/*카드*/
.card {
    position: fixed;
    width: 640px;
    height: 416px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    backdrop-filter: blur(6px);
    font-weight: bold;
    user-select: none;
    opacity: 0.8;
    transform: scale(0.5);
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out, opacity 0.5s ease;
    transition-delay: 0.1s;
    display:grid;
    grid-template-columns: 1fr;
}

.card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120px;
    background: radial-gradient(
        ellipse at bottom,
        rgba(255, 255, 255, 0.3),
        transparent 80%
    );
    filter: blur(50px);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

.card::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(255, 220, 160, 0.25), transparent 80%);
    filter: blur(15px);
    opacity: 0.8;
    z-index: -1;
}

.card.active {
    filter: blur(0);
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 3;
    display:grid;
    border-radius: 15px;
    transform: scale(1.15) translateY(-4px);
    transition: transform 1s ease-in-out, fill 1s ease-in-out;

}

.card.active::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 15px;
}

.card.active::after {
    opacity: 0.12;
    filter: blur(12px);
}

.card.left {
    transform: translateX(-800px) rotateY(60deg) scale(0.8);
    opacity: 0.6;
    display: grid;
}

.card.right {
    transform: translateX(800px) rotateY(-60deg) scale(0.8);
    opacity: 0.6;
    display: grid;
}


.card.hidden {
    opacity: 0;
    transform: scale(0.5);
    display: none;
}

/*=====intro======*/

.firstcard{
    align-items: center;
    justify-content: center;
    text-align: center;
}
.firstcard h1{
    font-size: 44px;
    color: #e48b32;

}
.firstcard h2{
    font-size: 30px;
}

.firstcard p,
.firstcard span{
    font-weight: 400;
    font-size: 20px;
}

/* icons */
.icons {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 10px;
}

.icons svg {
width: 40px;
height: 40px;
fill: rgb(142, 140, 140);
transition: transform 0.3s ease-in-out, fill 0.3s ease-in-out;
}

.insta_icons svg:hover {
transform: scale(1.2);
fill: url(#gradient-instagram); 
}

.linkedin_icons svg:hover {
transform: scale(1.2);
fill: #0077B5; 
}

.github_icons svg:hover {
transform: scale(1.2);
fill: rgb(103, 32, 162); 
}

.youtube_icons svg:hover {
transform: scale(1.2);
fill: #CD201F; 
}

/*=====Profile Summary=====*/
.secondcard{
align-items: center;
justify-content: center;
text-align: center;
padding: 2%;
}
.secondcard h1{
    font-size: 25px;
    color: #e48b32;

}

.secondcard h3{
    color: #e48b32;
    font-size: 20px;
}

.secondcard h2{
    padding-top: 3%;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    font-family: 'DM Sans', sans-serif !important;


}

.secondcard p{
    font-size: 16px;
    padding-top: 1.5%;
    font-weight: 400;
    line-height: 1.3;
}

.secondcard p b {
    font-weight: bold;
}

.secondcard a {
    font-size: 15px;
}

a.resume-link {
    text-decoration: none;
    color: #0056d6;
    font-weight: 500;
}

a.resume-link:hover {
    text-decoration: underline;
    color: #003eaa;
    transition: all 1s ease;
  }

/*======job experience======*/
.experience-card {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 20px;
padding: 20px;
text-align: left;
}

.company-logo {
width: 80px;
height: auto;
}

.experience-text h2 {
font-size: 28px;
margin-bottom: 4px;
color: #e48b32;


}

.experience-text h3 {
font-size: 20px;
font-weight: 500;
color: #5a5a5a;
margin-bottom: 4px;
}

.duration {
font-size: 14px;
font-weight: 300;
margin-bottom: 10px;
color: #757575;
}

.experience-text ul {
font-size: 16px;
line-height: 1.6;
padding-left: 20px;
}

.company-logo.davis{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.company-logo.kelly {
    filter: brightness(0) invert(1);
    width: 60px;
    height: 60px;
  }
  .logo-wrapper {
    background-color: red;
    border-radius: 30%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  

/* ===== Leadership Card Section ===== */

.card.leadership {
    width: 1000px;
    height: auto;
    padding: 5%;
    margin-top: -20%;
    box-sizing: border-box;
    display: grid;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    overflow: hidden; /* 기본 상태: 스크롤 비활성화 */
}

.card.leadership h1 {
    font-size: 2.0rem;
    margin-bottom: 30px;
    color: #e48b32;
    font-weight: 600;
    letter-spacing: 1px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.card4 {
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
    transform-style: preserve-3d;
    height: 200px;

}

.card4-inner {
    width: 100% !important;
    height: 200px !important;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    position: relative;
    border-radius: 16px;
}

.card4.zoom .card4-inner {
    transition: transform 1s;
}
.card4.zoom:hover .card4-inner {
    transform: rotateY(180deg);
}

.card4-front,
.card4-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease-in-out;
    border: 2px solid rgba(215, 186, 113, 0.6);

}

.card4-front {
    z-index: 2;
    text-align: center;
    backface-visibility: hidden;
}

.card4-front h2 {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 8px;
}

.card4-front p {
    font-size: 0.95rem;
    color: #737373;
}

.card4-back {
    transform: rotateY(180deg);
    font-size: 0.85rem;
    line-height: 1.3;
    color: #000000;
    backface-visibility: hidden;
}

.card4-back ul {
    padding-left: 20px;
}

.card4-back li {
    margin-bottom: 10px;
    list-style: disc;
    color: #000000;
}

.card.leadership.scrollable {
    max-height: 80vh;            /* 💡 화면의 85%만큼만 보여주고 */
    overflow-y: auto;            /* ✨ 스크롤 활성화 */
    scroll-behavior: smooth;     /* 부드럽게 스크롤 */
    transition: max-height 0.3s ease;
    box-shadow: none !important;
}


.leadership-scroll-wrapper {
    box-sizing: border-box;
}

/* 스크롤바 스타일 (선택) */
.card.leadership.scrollable::-webkit-scrollbar {
    width: 6px;
  }
  .card.leadership.scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
  }
.additional-leadership-wrapper {
    margin-top: 30px;
    padding-bottom: 20px;
    width: 950px;
    height: auto;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border: 2px solid rgba(215, 186, 113, 0.6);

}

.toggle-additional-btn {
    position: relative;
    background: rgba(255,255,255,0.05);
    color: #000000;
    border: 2px solid rgba(215, 186, 113, 0.6);
    padding: 10px 24px;
    margin-top: 1%;
    margin-left: 40%;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: auto;
}

.toggle-additional-btn:hover {
    background: rgba(215, 186, 113, 0.6) !important;
}

#additional-leadership-wrapper {
    margin-top: 80px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 2px solid rgba(215, 186, 113, 0.6);
}

#additional-leadership-wrapper h2 {
    text-align: center;
    font-size: 1.8rem;
}


#additional-leadership-box {
    display: none;
    width: 900px;
    height: auto;
    margin-top: 20px;
    background: rgba(255,255,255,0.04);
    padding-top: 3%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 10%;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    margin-inline: auto;
    text-align: left;
    animation: fadeSlideUp 0.6s ease-in-out forwards;
    border: 2px solid rgba(215, 186, 113, 0.6);
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

#additional-leadership-box li{
    margin-bottom: 2%;
    font-weight: 200;
}

#additional-leadership-box,
#additional-leadership-box ul,
#additional-leadership-box li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#additional-leadership-box li:last-child {
    margin-bottom: 3% !important;
}

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

.card.leadership::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    border-color: 0.5px solid rgba(215, 186, 113, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 9999 ;
}

/*=====tech project =====*/

.bnw { background-image: url('bnw.svg'); }
.fst { background-image: url('FST.svg'); }
.esr { background-image: url('ESR.svg'); }
.stalk { background-image: url('stalk.svg'); }
.inroute { background-image: url('inroute.svg'); }
.ksea4cuts { background-image: url('ksealogo.svg'); }
.kseaweb { background-image: url('ksealogo.svg'); }
.aggiealters { background-image: url('aggiealters.svg'); }

.card.tech {
    overflow: visible;
}
.tech-one {
    margin-left: 10%;
    margin-top: 7% ;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3%;
    transition: all 0.6s ease;  /* 부드럽게 움직이도록 */
}

.tech-one.move-up {
    transform: translateY(-30px);
    gap: 0%;
}

.initial-tech-project.move-up {
    transform: translateY(-10px);
    transition: transform 0.6s ease;
    z-index: 999999; 
}

#toggle-projects-btn.move-up {
    transform: translateY(-35px);
    transition: transform 0.6s ease;
    border: 2px solid rgba(215, 186, 113, 0.6);
    z-index: 999999; 
    position: relative;
    pointer-events: auto;
  }


.initial-tech-project{
    display: flex;
    gap: 10%;
    margin-top: 6%;
    transition: transform 0.4s ease, margin 0.4s ease;
}

.card h4{
    font-size: 44px;
    color: #e48b32;
    }

.tech-projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x3 Layout */
    gap: 12px;
    padding: 0px;
    justify-items: center;
    align-items: center;
}

.tech-project-card {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease-in-out, box-shadow 0.3s ease-in-out, filter 0.4s ease-in-out;
    cursor: pointer;
    transform-style: preserve-3d;
}

.tech-project-card:hover {
    transform: scale(1.2) rotateX(8deg) rotateY(8deg); /* Adds 3D tilt effect */
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.4); 
    filter: brightness(90%);
    transition-delay: 0.1s;
    z-index: 10;
}

.tech-project-card::before {
    content: "";
    position: absolute;
    left:0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.tech-project-card:hover::before {
    opacity: 1;
}

.tech-project-title {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 
    -1px -1px 5px black, 
    1px -1px 5px black, 
    -1px  1px 5px black, 
    1px  1px 5px black;
    color: white;
    transition: all 0.6s ease-in-out;
    white-space: nowrap;  /* 줄바꿈 방지 */
    max-width: 88%;  /* 너무 길어지지 않도록 */
}

.tech-project-card:hover .tech-project-title {
    font-size: 15px;
    bottom: 75%; 
    transform: translate(-50%, 0%);
    text-shadow: 
        -1px -1px 5px black, 
        1px -1px 5px black, 
        -1px  1px 5px black, 
        1px  1px 5px black;
    color: rgb(239, 239, 239);
}

.tech-project-description {
    position: absolute;
    bottom: -30px;
    left: 10px;
    right: 10px;
    font-size: 12px;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 
        -1px -1px 5px black, 
        1px -1px 5px black, 
        -1px  1px 5px black, 
        1px  1px 5px black;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.tech-project-wrapper{
    width: 130px;
}

.tech-project-card:hover .tech-project-description {
    opacity: 1;
    transform: translateY(0);
    bottom: 10px; 
    font-size: 12.5px;
    bottom: 75%; 
    transform: translate(-50%, 0%);
    text-shadow: 
        -1px -1px 5px black, 
        1px -1px 5px black, 
        -1px  1px 5px black, 
        1px  1px 5px black;
    color: rgb(239, 239, 239);
}

.tech-project-description {
    position: absolute;
    bottom: -30px;
    left: 10px;
    right: 10px;
    font-size: 10px;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 
        -1px -1px 5px black, 
        1px -1px 5px black, 
        -1px  1px 5px black, 
        1px  1px 5px black;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.tech-project-card:hover .tech-project-description {
    opacity: 1;
    transform: translateY(0);
    bottom: 10px; 
}

#toggle-projects-btn {
    position: relative;
    color: #000000;
    background: rgba(255,255,255,0.05);
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    margin-left: 23%;
    margin-top: 7%;
    margin-bottom:-15%;
    width: 250px;
    pointer-events: auto; 
    z-index: 999999;  
    border: 2px solid rgba(215, 186, 113, 0.6);
    outline: none;

}

#toggle-projects-btn:hover {
    background: rgba(215, 186, 113, 0.6);
    border: 2px solid rgba(215, 186, 113, 0.6);
    outline: none;
    z-index: 999999; 
}

.tech-all-projects {
    position: relative;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 50;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 50px;
    border-radius: 12px;
    width: 635px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    backdrop-filter: none;
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.tech-all-projects.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-13%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 7%;
    text-align: center;
    margin-left: 5%;
}

.card.tech.square {
    width: 100%;          /* ✅ 예시로 하나 지정해야 비율이 적용돼 */
    width: 640px;
    height: 640px;
    margin-top: -20%;
}

/*======research section===*/
.research-section {
    padding: 5%;
    margin-left:5%;
}
.research-section h2{
    color: #e48b32;
}

.accordion-item {
    margin-bottom: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: none;         /* ← 흐림 효과 제거 */
    background-color: transparent; /* ← 배경 투명하게 */
    box-shadow: none;              /* ← 그림자 제거 (필요 시) */
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;

}

.accordion-header {
    background: none;
    border: none;
    padding: 16px 20px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(4px);
    backdrop-filter: none;         
    background-color: transparent; 
    box-shadow: none;             
    border: none;
    display: flex;
}

.accordion-header:hover {
    color: #e48b32;
}

.accordion-header:after {
    content: "v";
    display:block;
    position: sticky;
    margin-left: auto;

}

.accordion-header.active::after {
    content: '-';
    display:block;
    position: sticky;
    margin-left: auto;
}

.accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: 
        max-height 0.5s ease,
        opacity 0.4s ease,
        transform 0.4s ease;
    font-size: 0.95rem;
    color: #e48b32;
    margin-left: 5%;
}

.accordion-body ul li{
    margin-bottom: 2%;
    font-size: 0.95rem;
    font-weight: 500;
}

.accordion-body strong{
    font-size: 0.95rem;
    color: #e48b32;
}

.accordion-body.open {
    display: block;
    max-height: 1000px; /* 충분히 크게 */
    margin-bottom: 2%;
}

.line {
    border-top: 1px solid rgba(215, 186, 113, 0.6);
}

    
.card-instruction {
    position: fixed;
    left: 70%;
    top:85%;
    text-align: center;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.45);
    font-style: italic;
    backdrop-filter: blur(4px);
    animation: fadeInInstruction 1.5s ease-in-out;
    z-index: -10;
    pointer-events: none;
    font-family: 'Garamond', serif !important;
    padding: 10px;
    border-radius: 15px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        0 0 80px rgba(255, 240, 200, 0.4),  /* ✨부드러운 글로우 */
        0 0 20px rgba(255, 220, 160, 0.2);  /* 안쪽 따뜻한 빛 */

}

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

.mobile-only {
    display: none;
}

/* ===== media =====*/
@media (max-width: 700px) {
    body {
        position: relative;
        overflow-y: auto;
        height: auto;
    }

    .carousel-container {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        padding-bottom: 100px;
        flex-direction: column;
    }

    .carousel {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    transform: none;
    } 
    
    .card {
        width: 95vw;
        height: auto;
        padding: 5%;
        transform: none !important;
        scale: 1 !important;
        font-size: 0.9rem;
        margin-top: 30% !important;
        overflow: visible;
    }

    .card.tech, .card.tech.active.square{
        width: 95vw;
        height: 90vh;
        transform: none !important;
        scale: 1 !important;
        font-size: 0.9rem;
        margin-top: -60%;
        overflow: visible;
    }
    .additional-leadership-wrapper{
        margin-bottom: 2%;
        font-weight: 200;
        width: 85vw;
    }
    #additional-leadership-box li{
        margin-bottom: 2%;
        font-weight: 200;
        width: 65vw;
        margin-left: 5%;
    }

    .cards-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    .card.left,
    .card.right,
    .card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.5);
    }
    .card.leadership{
        position: relative;
        top: -70%;
    }
    
    .card .leadership .active .scrollable {
        transform: translateY(50px); /* Adjust to make it feel a bit lower */
    
    }
    .leadership-scroll-wrapper h1{
        font-size: 0.85rem;
        margin-left:28%;
    }
    .card.leadership.active.scrollable {
        margin-top: 100px; /* 필요한 만큼 카드가 내려가도록 조정 */
        transition: margin-top 0.3s ease; /* 부드러운 애니메이션 효과 */
    }
    .card4.zoom{
        height: 30vw;
    }

    .card4-inner {
        position: relative;
        height: 30vw;
        width: 80vw;
        left:3%;
    }
    .card4-front h2,
    .card4-front p {
        font-size: 0.85rem;
    }

    .card4-back li {
        font-size: 0.8rem;
    }

    .toggle-additional-btn {
        margin-top:5%;
        margin-left:10%;
        width: 80%;
    }
    .tech-one.move-up{
        position: relative;
        left: 5%;
    }
    .tech-one{
        position: relative;
        left: 5%;
    }

    .tech-project-wrapper{
        position: relative;
        left: 15%;
    }
    .tech-project-card {
        width: 100px;
        height: 100px;
    }

    #toggle-projects-btn{
        position: relative;
        left: -20%;
        margin-top: 3%;
    }

    #toggle-projects-btn.move-up{
        position: relative;
        left: -22%;
        margin-top: 30%;
    }
    

    .initial-tech-project{
        position: relative;
        left: -25%;
        gap:1%;
    }
    .tech-all-projects{
        width: 70vw;
        margin-left: -5%;
        grid-template-columns: repeat(2, 1fr);
        transform: translateX(-60%) translateY(-13%) !important;
    }

    .tech-project-description {
        font-size: 10px;
    }

    .firstcard h1 {
        font-size: clamp(22px, 6vw, 36px);
    }

    .firstcard p, .firstcard span {
        font-size: 0.85rem;
    }

    .experience-card {
        flex-direction: column;
        align-items: center;
    }

    .company-logo {
        width: 50px;
        height: auto;
    }

    .card-instruction {
        font-size: 12px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 10px;
    }

    .card.leadership {
        width: 90vw;
        padding: 20px;
        margin-top: 0;
    }

    #additional-leadership-box {
        width: 90%;
        padding: 20px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 100;
    }

    .carousel-indicators .dot {
        width: 10px;
        height: 10px;
        background-color: #d5b16c;
        border-radius: 50%;
        opacity: 0.4;
        transition: all 0.3s ease;
    }
    
    .carousel-indicators .dot.active {
        opacity: 1;
        background-color: #e48b32;
        transform: scale(1.4);
    }
    
    .desktop-only {
        display: none;
    }
    .card-instruction.mobile-only {
        display: block;
        text-align: center;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.45);
        font-style: italic;
        font-family: 'Garamond', serif !important;
    }

    /* 모바일에서 터치가 활성화될 수 있도록 */
    .carousel-container {
        touch-action: pan-y; /* 수평 스와이프만 허용 */
    }
}
