
    /* 기본 스타일 및 리셋 */
/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');*/
/*@import url('./fonts/poppins.css');*/
/*    @import url('../ai/fonts/poppins.css');*/

:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --card-bg: rgba(255, 255, 255, 0.9);
    --gradient-start: #4285f4;
    --gradient-mid: #7b36ff;
    --gradient-end: #ea4335;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 헤더 스타일 */
header {
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header h1 {
    color: white;
    font-size: 2.5rem;
    position: relative;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    opacity: 0.8;
    z-index: 1;
    animation: gradientFlow 15s ease infinite;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}


.info-box {
    background: rgba(0, 0, 0, 0.7); /* Darker background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-box h4 {
    color: #ffffff; /* Brighter white */
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid rgba(123, 54, 255, 0.7);
    padding-bottom: 8px;
    font-weight: 600; /* Make it bolder */
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    margin-bottom: 10px;
}

.info-box ul li a {
    color: #ffffff; /* Brighter white */
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}


.info-box ul li a:hover {
    background: rgba(123, 54, 255, 0.5); /* More visible hover color */
    color: white;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5); /* Subtle glow effect */
}

/* 새 카테고리 아이콘 색상 */
[data-category="audio"] .icon {
    color: #1DB954; /* 스포티파이 그린 */
}

[data-category="video"] .icon {
    color: #FF0000; /* 유튜브 레드 */
}

[data-category="education"] .icon {
    color: #4285F4; /* 구글 블루 */
}

[data-category="data"] .icon {
    color: #00A0D1; /* 데이터 블루 */
}


/* 섹션 타이틀 스타일 */
.section-title {
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* 서비스 그리드 및 카드 스타일 */
.service-grid {
    margin-top: 2rem;
}

/* 프리미엄 섹션 레이아웃 */
.premium-section {
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.premium-section::after {
    content: "";
    display: table;
    clear: both;
}

.premium-section .service-card {
    float: left;
    width: 23%; /* 4개를 한 줄에 배치 */
    margin: 1%;
    height: 280px;
}

/* 일반 카드 섹션 */
.regular-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    clear: both;
}

.regular-section .section-title {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 서비스 카드 공통 스타일 */
.service-card {
    perspective: 1000px;
    height: 250px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.card-front {
    background-color: var(--card-bg);
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.card-back {
    background-color: var(--dark-color);
    color: var(--light-color);
    transform: rotateY(180deg);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-front h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.card-back p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* 프리미엄 카드 스타일 */
.premium-card {
    position: relative;
    height: 280px;
}

.premium-card .card-inner {
    box-shadow: 0 15px 35px rgba(66, 133, 244, 0.25);
}

.premium-card .card-front {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-mid));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.premium-card .card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
    opacity: 0;
    transform: rotate(30deg);
    transition: all 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.premium-card:hover .card-front::before {
    opacity: 1;
    transform: rotate(0deg);
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.premium-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.premium-card .card-front h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.premium-card .card-back {
    background: #1a202c;
    color: white;
    border: 2px solid rgba(123, 54, 255, 0.3);
}

.premium-feature {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
}

.premium-card .btn {
    background: linear-gradient(to right, var(--primary-color), var(--gradient-mid));
    box-shadow: 0 4px 15px rgba(123, 54, 255, 0.3);
}

.premium-card .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(123, 54, 255, 0.4);
}

/* 서비스 카테고리별 색상 */
.service-card[data-category="chat"] .icon { color: #4285f4; }
.service-card[data-category="search"] .icon { color: #34a853; }
.service-card[data-category="research"] .icon { color: #ea4335; }
.service-card[data-category="coding"] .icon { color: #7b36ff; }
.service-card[data-category="math"] .icon { color: #fbbc05; }
.service-card[data-category="writing"] .icon { color: #1da1f2; }
.service-card[data-category="music"] .icon { color: #ff6d00; }
.service-card[data-category="ux"] .icon { color: #9c27b0; }

/* 프리미엄 카드 카테고리별 색상 */
.premium-card[data-category="coding"] .card-front {
    background: linear-gradient(135deg, #4285f4, #7b36ff);
}
.premium-card[data-category="coding"] .btn {
    background: linear-gradient(to right, #4285f4, #7b36ff);
}

.premium-card[data-category="writing"] .card-front {
    background: linear-gradient(135deg, #ea4335, #ff6d00);
}
.premium-card[data-category="writing"] .btn {
    background: linear-gradient(to right, #ea4335, #ff6d00);
}

.premium-card[data-category="chat"] .card-front {
    background: linear-gradient(135deg, #34a853, #4285f4);
}
.premium-card[data-category="chat"] .btn {
    background: linear-gradient(to right, #34a853, #4285f4);
}

.premium-card[data-category="research"] .card-front {
    background: linear-gradient(135deg, #fbbc05, #ea4335);
}
.premium-card[data-category="research"] .btn {
    background: linear-gradient(to right, #fbbc05, #ea4335);
}

/* 프리미엄 카드 애니메이션 */
.premium-card {
    animation: fadeInSlideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.premium-card:nth-child(2) {
    animation-delay: 0.1s;
}

.premium-card:nth-child(3) {
    animation-delay: 0.2s;
}

.premium-card:nth-child(4) {
    animation-delay: 0.3s;
}

.premium-card:nth-child(5) {
    animation-delay: 0.4s;
}

/* 일반 애니메이션 효과 */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* 통계 섹션 스타일 */
.stats-section {
    width: 100%;
    margin: 0 auto;
}

.stats-card {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stats-header {
    position: relative;
    z-index: 1;
}

.stats-grid {
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.3);
}

.stat-item .section-name {
    font-size: 0.95em;
    color: #b0bec5;
    margin-bottom: 5px;
    display: block;
}

.stat-item .section-count {
    font-size: 1.8em;
    font-weight: bold;
    color: #64b5f6;
    display: block;
}

/* 푸터 스타일 */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    font-size: 0.9rem;
    color: #666;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

/* 카드 호버 및 클릭 효과 개선 */
.service-card:not(.premium-card):hover .card-inner:not(.flipped) {
    transform: rotateY(180deg);
}

.premium-card:hover .card-inner:not(.fixed) {
    transform: rotateY(180deg);
}

.card-inner.flipped {
    transform: rotateY(180deg) !important;
}

.card-inner.fixed {
    transform: rotateY(180deg) !important;
}

.premium-card {
    position: relative;
    z-index: 10;
}

.premium-card .card-inner {
    position: relative;
    z-index: 11;
}

.premium-card .card-front,
.premium-card .card-back {
    position: absolute;
    z-index: 12;
}

.card-back .btn {
    position: relative;
    z-index: 20;
}

/* 즐겨찾기 버튼 스타일 */
.bookmark-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.bookmark-btn i {
    font-size: 1rem;
}

/* 즐겨찾기 팝업 스타일 */
.bookmark-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-popup:hover {
    color: #333;
}

.bookmark-popup h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
}

.bookmark-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.bookmark-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.bookmark-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
    transform: translateY(-3px);
}

.bookmark-note {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

/* 즐겨찾기 추가 성공 메시지 */
.bookmark-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(52, 168, 83, 0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .premium-section .service-card {
        width: 31.33%; /* 3개를 한 줄에 배치 */
    }
}

@media (max-width: 900px) {
    .premium-section .service-card {
        width: 48%; /* 2개를 한 줄에 배치 */
    }
}

@media (max-width: 768px) {
    .regular-section {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .regular-section .section-title {
        font-size: 1.3rem;
    }

    .bookmark-btn {
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .bookmark-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    .popup-content {
        padding: 20px;
        width: 95%;
    }

    .bookmark-option {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .premium-section .service-card {
        width: 98%; /* 1개를 한 줄에 배치 */
        margin: 1% 1% 5% 1%;
    }

    .regular-section {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .premium-card .card-front h3 {
        font-size: 1.5rem;
    }
}

