/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(120deg, #e8f0ff, #ffffff);
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(90deg, #0056b3, #0073e6);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
}

header h1 {
    text-align: center;
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tech-company {
    font-weight: 300;
    color: #2196F3;
}

.kr-name {
    font-size: 0.6em;
    opacity: 0.8;
    margin-left: 0.5em;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
    gap: 1.1rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: #ffe600;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Mobile Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.1rem;
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1100;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header nav ul {
        display: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: rgba(0, 86, 179, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        margin: 0 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transform: translateY(-1rem);
        opacity: 0;
        transition: all 0.3s ease;
        font-size: 1.2rem;
    }

    .nav-links.visible {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        padding: 0.5rem;
        border-radius: 0.25rem;
        transition: background 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, #0073e6, #80d0ff);
    color: #fff;
    text-align: center;
    padding: 1.1rem 1.1rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-50%);
    animation: heroEffect 12s infinite;
}

.hero h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: slideIn 2s ease-out;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero .btn {
    background: #ffe600;
    color: #333;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    background: #ffd500;
    transform: translateY(-3px);
}

/* Section */
section {
    padding: 3rem 1rem;
    text-align: center;
}

section h2 {
    font-size: 1.5rem;
    color: #0056b3;
    margin-bottom: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounceIn 1s;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #80d0ff);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineAppear 0.6s ease-out forwards;
}

@keyframes lineAppear {
    to {
        transform: scaleX(1);
    }
}

section h3 {
    font-size: 1.1rem;
    color: #7278ce;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

section p, section ul {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

section ul li {
    background: #f4f4f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

section ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

footer ul li a {
    color: #ffe600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroEffect {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    section ul {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    display: none;
}

.back-to-top button {
    background-color: #0073e6;
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.sub-features {
    font-size: 0.9rem;
    line-height: 1.2;
}

#services .program-item h3 {
    font-size: 1.1rem;
}

.program-item p {
    font-size: 0.9rem;
}

.about-section {
    /* 백업 배경색을 먼저 지정 */
    background-color: #ffffff;
    /* 로컬 이미지 경로 사용 (images 폴더에 about-bg.jpg 파일이 있다고 가정) */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(252, 252, 255, 0.9)),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.content-section {
    /* 백업 배경색을 먼저 지정 */
    background-color: #ffffff;
    /* 로컬 이미지 경로 사용 (images 폴더에 about-bg.jpg 파일이 있다고 가정) */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(252, 252, 255, 0.9)),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.careers-section {
    /* 백업 배경색을 먼저 지정 */
    background-color: #ffffff;
    /* 로컬 이미지 경로 사용 (images 폴더에 about-bg.jpg 파일이 있다고 가정) */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(252, 252, 255, 0.9)),
                url('https://images.unsplash.com/photo-1534972195531-d756b9bfa9f2?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
}

.program-item {
    position: relative;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 8px;
}

.program-item:hover {
    transform: translateY(-5px);
}

.program-content {
    position: relative;
    padding: 2rem;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.8)
    );
    color: white;
    position: relative;
    z-index: 1;
}

.program-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.program-item p {
    margin-bottom: 0.9rem;
}

.sub-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.sub-features li {
    color: #888888;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

.sub-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

/* Background images for each program */
.job-training {
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3');
}

.global-leadership {
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978');
}

.self-development {
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f');
}

.certification {
    background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173');
}

.dx-transformation {
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978');
}

.esg-management {
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3');
}

.solution-item {
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.solution-content {
    position: relative;
    z-index: 2;
    color: white;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.solution-features li {
    color: #616161;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.8);
}

.solution-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.process-steps ul li ul li {
    font-size: 0.9em;
    line-height: 1.2;
    text-align: left;
}

/* 개발 프로세스 타임라인 스타일 */
.content-process {
    padding: 20px 0;
}

.process-steps {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 4px;
    background: #7cbafc;
    border-radius: 3px;
}

.process-steps > li {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
    text-align: left;
}

.process-steps > li::before {
    content: '';
    position: absolute;
    left: 39px;
    top: 0;
    width: 20px;
    height: 20px;
    border: 5px solid #7cbafc;
    background: #c8e7fc;
    border-radius: 50%;
}

.process-steps > li strong {
    display: block;
    font-size: 1.0em;
    color: #626569;
    margin-bottom: 12px;
}

.process-steps > li > ul {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.process-steps > li > ul > li {
    margin-bottom: 12px;
    font-weight: 400;
}

.process-steps > li > ul > li:last-child {
    margin-bottom: 0;
}

.process-steps > li ul ul {
    margin-top: 8px;
    margin-left: 15px;
    list-style: disc;
}

.process-steps > li ul ul li {
    color: #666;
    margin-bottom: 3px;
    font-weight: normal;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .process-steps::before {
        left: 30px;
    }
    
    .process-steps > li {
        padding-left: 70px;
    }
    
    .process-steps > li::before {
        left: 22px;
    }
}

.content-service-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    border-radius: 8px;
    color: white;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.content-service-item:hover {
    transform: translateY(-5px);
}

.content-service-item h3 {
    color: white;
    margin-bottom: 1rem;
}

.content-service-item p {
    color: white;
}

.content-service-item .service-features {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.content-service-item .service-features strong {
    color: #5f5fbc;
}

.content-service-item .service-features ul li {
    color: rgba(30, 30, 30, 0.8);
    font-size: 0.9em;
}


/* Vision & Mission 섹션 스타일링 */
.company-intro {
    padding: 1.2rem;
    margin: 2rem 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-intro:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.company-intro h3 {
    color: #266cb2;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.company-intro h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.company-intro p {
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.7rem 0;
    text-align: justify;
}

/* Vision 섹션 특별 스타일 */
.company-intro:nth-of-type(1) {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-left: 4px solid #3498db;
    border-right: 4px solid #3498db;
}

/* Mission 섹션 특별 스타일 */
.company-intro:nth-of-type(2) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
    border-left: 4px solid #2ecc71;
    border-right: 4px solid #2ecc71;
}

/* 섹션 특별 스타일 */
.company-intro:nth-of-type(3) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
    border-left: 4px solid #e14b9b;
    border-right: 4px solid #e14b9b;
}

/* 섹션 특별 스타일 */
.company-intro:nth-of-type(4) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
    border-left: 4px solid #2ecc71;
    border-right: 4px solid #2ecc71;
}

/* 섹션 특별 스타일 */
.company-intro:nth-of-type(5) {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
    border-left: 4px solid #e14b9b;
    border-right: 4px solid #e14b9b;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .company-intro {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .company-intro h3 {
        font-size: 1.5rem;
    }

    .company-intro p {
        font-size: 1rem;
    }
}

/* 버튼 기본 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Secondary 버튼 스타일 */
.btn-secondary {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: #333;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1),
                -2px -2px 10px rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05);
}

/* 호버 효과 */
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.15),
                -4px -4px 15px rgba(255,255,255,0.8);
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
}

/* 클릭 효과 */
.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1),
                inset -2px -2px 5px rgba(255,255,255,0.5);
}

.detail-hover {
    position: relative;
    cursor: pointer;
}

.detail-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: rgba(14, 97, 109, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 260px;
    z-index: 1000;
    color: #ffffff;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* PC 환경에서의 호버 효과 */
@media (hover: hover) {
    .detail-hover:hover .detail-content {
        display: block;
    }
}

/* 모바일 환경 대응 */
@media (max-width: 768px) {
    .detail-content {
        position: fixed;
        bottom: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
        background-color: rgba(14, 97, 109, 0.98);
        padding: 20px;
        margin: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    /* 모바일에서 화살표 제거 */
    .detail-content::after {
        display: none;
    }

    /* 모바일에서 활성화된 상태 표시 */
    .detail-content.active {
        display: block;
    }

    /* 닫기 버튼 추가 */
    .detail-content::before {        
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        color: #ffffff;
        cursor: pointer;
    }
}
