/* Intro Image Styling */
.intro-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 25px 0;
}
.use-case p {
    margin-bottom: 0px;
}
.tech-detail p {
    margin-bottom: 0px;
}
.tech-text-pc {
    margin-bottom: 0px;
}
.intro-image-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

.whitepaper-section h3 {
    text-align: center;
}

.use-case h4 {
    text-align: center;
}

.tech-detail h4 {
    text-align: center;
}

.whitepaper-section p {
    text-align: center;
}

.tech-detail-style {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tech-detail-style::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px; /* Border thickness */
    border-radius: 10px;
    background: linear-gradient(
        45deg,
        var(--accent-color),
        rgba(0, 255, 65, 0.5),
        rgba(0, 255, 65, 0.2),
        rgba(0, 255, 65, 0.8),
        var(--accent-color)
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tech-detail-style:hover::before,
.tech-detail-style:active::before {
    opacity: 1;
    animation: borderGlow 3s linear infinite;
}

.tech-detail-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15);
}

.tech-detail-style:active {
    transform: translateY(-2px);
}

.intro-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tech-detail-style:hover .intro-image {
    transform: scale(1.02);
}

/* PC/Mobile text visibility control */
/* Hide mobile content on desktop */
@media screen and (min-width: 769px) {
    .use-text-mobile,
    .tech-text-mobile {
        display: none;
    }
}

/* Hide desktop content on mobile */
@media screen and (max-width: 768px) {
    .use-text-pc,
    .tech-text-pc {
        display: none;
    }
}

/* Responsive styles for the image */
@media screen and (max-width: 768px) {
    .intro-image-container {
        margin: 20px 0;
    }
    
    .intro-image {
        max-width: 100%;
    }
}

/* About 페이지 모바일 반응형 스타일 */

/* ======== 모든 모바일 기기에 공통 적용되는 스타일 (max-width: 400px) ======== */
@media screen and (max-width: 400px) {
    /* 백서 섹션 스타일 조정 */
    
    .whitepaper {
        padding: 15px;
        border-radius: 8px;
    }
    
    .whitepaper-header {
        margin-bottom: 20px;
    }
    
    .whitepaper-header h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .whitepaper-section {
        margin-bottom: 25px;
    }
    
    .whitepaper-section h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .whitepaper-section p {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
    }
    
    .whitepaper-section h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    /* 기술 상세 섹션 조정 */
    .tech-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tech-detail {
        padding: 15px;
    }
    
    .tech-detail p {
        font-size: 13px;
    }
    
    /* 특징 목록 조정 */
    .feature-list {
        width: 100%;
    }
    
    .feature-list li {
        font-size: 13px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list i {
        font-size: 14px;
        margin-right: 8px;
        flex-shrink: 0;
        display: inline-block !important;
        vertical-align: baseline !important;
        position: relative;
        top: 0.125em;
        line-height: 1;
        margin-bottom: 0px;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    /* 요구사항 섹션 조정 */
    .requirements {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .requirement {
        padding: 15px;
    }
    
    .requirement ul li {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    /* 사용 사례 섹션 조정 */
    .use-cases {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .use-case {
        padding: 15px;
    }
    
    .use-case h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .use-case p {
        font-size: 13px;
    }
    
    /* 페이지 히어로 섹션 조정 */
    .page-hero {
        padding-top: 60px;
        padding-bottom: 0px;
    }
    
    .page-hero-content .separator {
        margin: 10px auto;
    }
    
}

/* ======== iPhone 모델 (375px) 특화 스타일 ======== */
@media screen and (min-width: 370px) and (max-width: 380px) {
    .whitepaper {
        padding: 15px;
    }
    
    .whitepaper-header h2 {
        font-size: 24px;
    }
    
    .whitepaper-section h3 {
        font-size: 20px;
    }
    
    .whitepaper-section p {
        font-size: 12px;
    }
    
    .tech-detail h4 {
        font-size: 15px;
    }
    
    .tech-detail {
        padding: 14px;
    }
    .tech-detail p {
        font-size: 11.6px;
    }
    .feature-list li {
        font-size: 12px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .requirement h4 {
        font-size: 15px;
    }
    
    .requirement ul li {
        font-size: 11.4px;
    }
    
    .use-case h4 {
        font-size: 15px;
    }
    
    .use-case p {
        font-size: 12px;
    }
    
    .page-hero {
        height: 30vh;
        padding-top: 60px;
        padding-bottom: 0px;
    }
}

/* ======== 삼성 갤럭시 S 시리즈 (360px) 특화 스타일 ======== */
@media screen and (min-width: 355px) and (max-width: 365px) {
    .whitepaper {
        padding: 14px;
    }
    
    .whitepaper-header h2 {
        font-size: 20px;
    }
    
    .whitepaper-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .whitepaper-section p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .tech-detail h4 {
        font-size: 14px;
    }
    
    .tech-detail {
        padding: 12px;
    }
    
    .tech-detail p {
        font-size: 12px;
    }
    
    .feature-list li {
        font-size: 12px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .feature-list i {
        font-size: 13px;
        margin-right: 7px;
        flex-shrink: 0;
        display: inline-block !important;
        vertical-align: baseline !important;
        position: relative;
        top: 0.125em;
        line-height: 1;

    }
    
    .requirement h4 {
        font-size: 14px;
    }
    
    .requirement ul li {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .use-case h4 {
        font-size: 14px;
    }
    
    .use-case p {
        font-size: 12px;
    }
    
}

/* ======== 갤럭시 Z 폴드 5 (344px) 특화 스타일 ======== */
@media screen and (min-width: 340px) and (max-width: 348px) {
    .whitepaper {
        padding: 12px;
    }
    
    .whitepaper-header h2 {
        font-size: 19px;
    }
    
    .whitepaper-section h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .whitepaper-section p {
        font-size: 11.4px;
        line-height: 1.3;
    }
    
    .tech-detail h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .tech-detail {
        padding: 10px;
    }
    
    .tech-detail p {
        font-size: 11px;
    }
    
    .feature-list li {
        font-size: 11px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .feature-list i {
        font-size: 12px;
        margin-right: 6px;
        flex-shrink: 0;
        display: inline-block !important;
        vertical-align: baseline !important;
        position: relative;
        top: 0.125em;
        line-height: 1;
        margin-bottom: 0px;
    }
    
    .requirement h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .requirement ul li {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .use-case h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .use-case p {
        font-size: 11px;
    }
    
}

/* ======== 갤럭시 Z 플립 3 및 유사 크기 (380~390px) 특화 스타일 ======== */
@media screen and (min-width: 380px) and (max-width: 390px) {
    .whitepaper {
        padding: 16px;
    }
    
    .whitepaper-header h2 {
        font-size: 22px;
    }
    
    .whitepaper-section h3 {
        font-size: 18px;
    }
    
    .tech-detail h4 {
        font-size: 16px;
    }
    
    .tech-detail p {
        font-size: 13px;
    }
    
    .feature-list li {
        font-size: 13px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .feature-list i {
        font-size: 14px;
        margin-right: 7px;
        flex-shrink: 0;
        display: inline-block !important;
        vertical-align: baseline !important;
        position: relative;
        top: 0.125em;
        line-height: 1;
        margin-bottom: 0px;
    }
    
}

/* ======== 갤럭시 노트 및 아이폰 프로 맥스 (410~430px) 특화 스타일 ======== */
@media screen and (min-width: 415px) and (max-width: 430px) {
    .whitepaper {
        padding: 18px;
    }
    
    .whitepaper-header h2 {
        font-size: 23px;
    }
    
    .whitepaper-section h3 {
        font-size: 22px;
    }
    
    .whitepaper-section p {
        font-size: 14px;
    }
    
    .tech-detail h4 {
        font-size: 17px;
    }
    .feature-list i {
        margin-bottom: 0px;
    }

    .tech-detail p {
        font-size: 13px;
    }
    
    .feature-list li {
        font-size: 14px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .requirement h4 {
        font-size: 17px;
    }
    
    .requirement ul li {
        font-size: 13px;
    }
    
    .use-case h4 {
        font-size: 17px;
    }
    
    .use-case p {
        font-size: 14px;
    }
    
    .page-hero {
        height: 30vh;
        padding-top: 60px;
    }
}

/* 높은 해상도 디스플레이(DPR=3)에 대한 추가 최적화 */
@media screen and (max-width: 430px) and (-webkit-min-device-pixel-ratio: 3), 
       screen and (max-width: 430px) and (min-resolution: 3dppx) {
    .whitepaper-header .separator,
    .page-hero-content .separator {
        height: 2px;
    }
}


/* ======== 갤럭시 노트 및 아이폰 프로 맥스 (410~430px) 특화 스타일 ======== */
@media screen and (min-width: 400px) and (max-width: 414px) {
    .whitepaper {
        padding: 18px;
    }

    .whitepaper-header h2 {
        font-size: 23px;
    }
    
    .whitepaper-section h3 {
        font-size: 22px;
    }
    
    .whitepaper-section p {
        font-size: 14px;
    }
    
    .tech-detail h4 {
        font-size: 17px;
    }
    .feature-list i {
        margin-bottom: 0px;
    }

    .tech-detail p {
        font-size: 12px;
    }
    
    .feature-list li {
        font-size: 13px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }
    
    .feature-list span {
        display: inline-block !important;
        vertical-align: baseline !important;
        flex: 1;
        text-align: left;
        line-height: 1.4;
    }
    
    .requirement h4 {
        font-size: 17px;
    }
    
    .requirement ul li {
        font-size: 12px;
    }
    
    .use-case h4 {
        font-size: 17px;
    }
    
    .use-case p {
        font-size: 13px;
    }

    .page-hero {
        height: 40vh;
        padding-top: 60px;
    }
}