/* 전체 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: #ffffff;
    line-height: 1.6;
    scroll-behavior: auto; /* 빠른 스크롤을 위해 auto로 변경 */
}

/* 빠른 스크롤을 위한 추가 설정 */
html {
    scroll-behavior: auto;
}

/* 부드러운 스크롤이 필요한 경우에만 적용 */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* 사이트 소개 섹션 스타일 */
.intro-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0,255,136,0.1) 0%, rgba(0,255,136,0.05) 100%);
    border-bottom: 1px solid rgba(0,255,136,0.2);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff88;
    text-align: center;
    margin-bottom: 20px;
}

.intro-description {
    font-size: 1.2rem;
    text-align: center;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

.usage-guide, .features {
    margin: 40px 0;
}

.usage-guide h3, .features h3 {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 20px;
    text-align: center;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #00ff88;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #00ff88;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0,255,136,0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-item p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 도구 설명 섹션 스타일 */
.tool-description {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.tool-description h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tool-description p {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.tool-description ul {
    color: #cccccc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.tool-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.usage-example {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.usage-example h4 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1rem;
}

.usage-example p {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-description {
        font-size: 1rem;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

/* 상단 네비게이션 바 */
.gnb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 20px;
    height: 72px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 100%;
}

.logo h1 {
    color: #00ff88;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80%;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: #00ff88;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* 메인 컨텐츠 */
.main-content {
    margin-top: 80px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #00ff88;
    font-weight: 300;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 타일 그리드 */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.tile {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    /* border-radius: 15px; */
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.tile:hover::before {
    left: 100%;
}

.tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.tile-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tile h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 400;
}

.tile p {
    font-size: 0.9rem;
    color: #aaaaaa;
    line-height: 1.5;
}

/* 서비스 그리드 */
.service-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item, .portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    /* border-radius: 10px; */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover, .portfolio-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: translateY(-5px);
}

.service-item h3, .portfolio-item h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-item p, .portfolio-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* 반응형 디자인 - 모바일에서도 4열 유지 */
@media (max-width: 768px) {
    .tiles-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .tile {
        padding: 20px 10px;
    }
    
    .tile-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .tile h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .tile p {
        font-size: 0.7rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .tiles-container {
        gap: 8px;
        padding: 0 5px;
    }
    
    .tile {
        padding: 15px 5px;
    }
    
    .tile-icon {
        font-size: 1.5rem;
    }
    
    .tile h3 {
        font-size: 0.8rem;
    }
    
    .tile p {
        font-size: 0.6rem;
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    /* border-radius: 4px; */
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc70;
}
