/* Pamphlet Style - iSecure Homepage */

/* 기본 body 스타일 */

/* 기본 스타일 리셋 및 변수 정의 */
:root {
    --primary-blue: #1E88E5;
    --primary-dark: #0D47A1;
    --light-gray: #F5F5F5;
    --text-dark: #333333;
    --curve-height: 120px;
}

/* 네비게이션 바 스타일 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 1rem 0;
    z-index: 1030 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
}

.navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* 곡선 배경 섹션 */
.curve-section {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.curve-section::before,
.curve-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: var(--curve-height);
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.curve-section::before {
    top: -60px;
    transform: skewY(-3deg);
}

.curve-section::after {
    bottom: -60px;
    transform: skewY(-3deg);
}

/* 메인 히어로 섹션 */
.hero-section {
    height: 720px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: 100% auto !important;
}


.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.company-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.company-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 600px;
}

/* 히어로 태그 링크 스타일 */
.hero-tags {
    margin-top: 1.5rem;
}

.tag-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0.2rem 0.5rem 0.2rem 0;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(30, 136, 229, 0.1);
}

.tag-link:hover {
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

/* 프로세스 섹션 */
.process-section {
    height: 720px;
    background-image: url('/static/assets/img/bg0_02.png');
    background-size: 100% auto !important;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-title {
    color: #222;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.9),
        -1px -1px 2px rgba(255, 255, 255, 0.9),
        1px -1px 2px rgba(255, 255, 255, 0.9),
        -1px 1px 2px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.process-subtitle {
    color: #444;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(255, 255, 255, 0.8),
        1px -1px 2px rgba(255, 255, 255, 0.8),
        -1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

.process-description {
    color: #222;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.9;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.7),
        -1px -1px 2px rgba(255, 255, 255, 0.7),
        1px -1px 2px rgba(255, 255, 255, 0.7),
        -1px 1px 2px rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2px;
    max-width: 900px;
    margin: 0 auto;
}

/* 알림 배너 커스터마이징 */
.alert {
    background-color: transparent !important;
    border: none !important;
    padding: 12px 0 !important;
    margin-bottom: 0 !important;
}

.alert-success {
    background-color: transparent !important;
}

.alert-success,
.alert-success a,
.alert-success strong {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
}

.alert-info {
    background-color: transparent !important;
}

.alert-info,
.alert-info a,
.alert-info strong {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
}

.alert-warning {
    background-color: transparent !important;
}

.alert-warning,
.alert-warning a,
.alert-warning strong {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
}

.alert-danger {
    background-color: transparent !important;
}

.alert-danger,
.alert-danger a,
.alert-danger strong {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
}

.alert-icon {
    color: #333 !important;
}

/* 알림 섹션 간격 조정 */
.section-notifications {
    padding: 0px !important;
    margin: 0 !important;
}

/* 알림 라벨 스타일 */
.alert-label {
    color: #1E88E5 !important;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* 서비스 카드 스타일 */
.service-section {
    padding: 80px 0;
    background-color: #ffffff;
    background-image: url('../img/bg0_05.png');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* 제품 섹션 스타일 */
.product-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.product-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

/* ToSee-i 카드 배경 이미지 */
.tosee-card {
    background-image: url('../img/bg0_06.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ToCrack 카드 배경 이미지 */
.tocrack-card {
    background-image: url('../img/bg0_03.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ToPick 카드 배경 이미지 */
.topick-card {
    background-image: url('../img/bg0_05.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.product-tagline {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #1a237e;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(26,35,126,0.2);
}

.feature-title {
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-desc {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
}

/* 투자 섹션 */
.investment-section {
    padding: 80px 0;
    background: #ffffff;
    color: #333;
    text-align: center;
}

.investment-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a237e;
    font-weight: 700;
}

.investment-highlight {
    color: #f36633;
    font-weight: 700;
    display: inline-block;
    margin: 0 0.5rem;
    position: relative;
    font-size: 1.1em;
}

.investment-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f36633;
    opacity: 0.3;
}

/* 푸터 스타일 */
.footer {
    height: 560px;
    background-color: #ffffff;
    background-image: url('../img/bg0_04.png');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 40px 0 20px;
    display: flex;
    align-items: center;
}

.footer-info {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-copyright {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .process-section {
        background-size: cover !important;
        padding: 0 20px;
    }
    
    .process-title {
        font-size: 2.2rem;
    }
    
    .process-description {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero-section,
    .process-section {
        height: 600px;
    }
    
    .process-section {
        background-size: cover !important;
    }
    
    .company-logo img {
        max-width: 250px !important;
    }
    
    .hero-image img {
        max-width: 400px !important;
    }
    
    .process-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .process-subtitle {
        font-size: 1.3rem;
    }
    
    .process-description {
        font-size: 1.15rem;
        padding: 0 15px;
    }
    
    .hero-tags {
        margin-top: 1rem;
    }
    
    .tag-link {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        margin: 0.1rem 0.3rem 0.1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .process-section {
        height: 500px;
    }
    
    .process-section {
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content,
    .hero-image {
        margin-bottom: 1rem;
    }
    
    .company-logo img {
        max-width: 200px !important;
    }
    
    .company-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-description p {
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        max-width: 300px !important;
    }
    
    .process-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .process-subtitle {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
    }
    
    .process-description {
        font-size: 1rem;
        font-weight: 600;
        padding: 0 10px;
        line-height: 1.6;
    }
    
    .process-description p {
        margin-bottom: 0.7rem;
    }
    
    .process-description strong {
        display: inline-block;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .tag-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        margin: 0.1rem 0.2rem 0.1rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .process-section {
        height: 450px;
    }
    
    .process-section {
        background-size: cover !important;
        background-position: center center !important;
        padding: 20px 0;
    }
    
    .company-logo img {
        max-width: 180px !important;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-image img {
        max-width: 250px !important;
    }
    
    .process-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    .process-subtitle {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    
    .process-description {
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0 15px;
        line-height: 1.5;
    }
    
    .process-description p {
        margin-bottom: 0.5rem;
    }
    
    .hero-tags {
        margin-top: 0.5rem;
    }
    
    .tag-link {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        margin: 0.05rem 0.1rem;
    }
}

/* 애니메이션 효과 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 네비게이션 메뉴 개선 */
@media screen and (max-width: 991px) {
    /* 햄버거 버튼을 좌측에 위치 */
    .navbar-toggler {
        position: absolute;
        left: 15px;
        margin-left: 0 !important;
    }
    
    /* 네비게이션 컨테이너 중앙 정렬 */
    .navbar .container {
        position: relative;
    }
    
    .navbar-translate {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .navbar-brand {
        margin: 0 auto !important;
        text-align: center;
    }
    
    .sidebar-collapse .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 300px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(-100%);
        transition: all 0.5s cubic-bezier(0.685, 0.0473, 0.346, 1);
        z-index: 1040 !important;
    }
    
    .nav-open .sidebar-collapse .navbar-collapse {
        transform: translateX(0);
    }
    
    .sidebar-collapse .navbar-collapse:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(30, 136, 229, 0.03) 10px,
                rgba(30, 136, 229, 0.03) 20px
            ),
            radial-gradient(
                circle at 20% 50%,
                rgba(30, 136, 229, 0.05) 0%,
                transparent 50%
            ),
            radial-gradient(
                circle at 80% 80%,
                rgba(30, 136, 229, 0.05) 0%,
                transparent 50%
            );
        z-index: -2;
    }
    
    .sidebar-collapse .navbar-collapse:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
        z-index: -1;
    }
    
    .sidebar-collapse .navbar-nav {
        margin-top: 70px !important;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }
    
    .sidebar-collapse .navbar-nav .nav-item {
        margin-bottom: 10px;
        position: relative;
        z-index: 2;
    }
    
    .sidebar-collapse .navbar-nav .nav-link {
        color: #333 !important;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 12px 24px;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(30, 136, 229, 0.1);
        display: block;
        text-decoration: none;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
    }
    
    .sidebar-collapse .navbar-nav .nav-link:hover {
        background: var(--primary-blue);
        color: #fff !important;
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
        border-color: var(--primary-blue);
    }
    
    .sidebar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        margin: 10px 0 20px 0;
        border: none;
        background: rgba(30, 136, 229, 0.1);
        border-radius: 8px;
        padding: 10px 0;
    }
    
    .sidebar-collapse .dropdown-menu .dropdown-item {
        color: #333 !important;
        padding: 8px 30px;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }
    
    .sidebar-collapse .dropdown-menu .dropdown-item:hover {
        background: var(--primary-blue);
        color: #fff !important;
    }
    
    .sidebar-collapse .dropdown-divider {
        margin: 10px 30px;
        border-color: rgba(30, 136, 229, 0.2);
    }
    
    /* 햄버거 버튼 스타일 */
    .navbar-toggler {
        border: none !important;
        padding: 4px 8px !important;
    }
    
    .navbar-toggler-bar {
        background: #333 !important;
        height: 3px !important;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* 메뉴 열렸을 때 햄버거 아이콘 애니메이션 */
    .nav-open .navbar-toggler-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-open .navbar-toggler-bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-open .navbar-toggler-bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 메뉴가 열려있을 때 본문 스크롤 방지 */
    body.nav-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* 메뉴 오버레이 - 메뉴 뒤로 이동 */
    #bodyClick {
        position: fixed;
        top: 0;
        left: 300px; /* 메뉴 너비만큼 오른쪽으로 이동 */
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035; /* 메뉴보다 낮게 */
        display: none;
    }
    
    .nav-open #bodyClick {
        display: block;
    }
}

/* 작은 화면에서 드롭다운 버튼 위치 조정 */
@media screen and (max-width: 991px) {
    /* 모바일에서 드롭다운 버튼 숨기기 */
    .dropdown.button-dropdown {
        display: none !important;
    }
}

@media screen and (max-width: 767px) {
    
    .sidebar-collapse .navbar-nav {
        margin-top: 50px !important;
    }
    
    .sidebar-collapse .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

@media screen and (max-width: 576px) {
    .sidebar-collapse .navbar-collapse {
        width: 280px;
    }
    
    .sidebar-collapse .navbar-nav {
        padding: 0 15px;
    }
    
    .sidebar-collapse .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    
    .sidebar-collapse .dropdown-menu .dropdown-item {
        font-size: 0.9rem;
        padding: 6px 25px;
    }
}

/* 초소형 화면에서 메뉴 개선 (400px 이하) */
@media screen and (max-width: 400px) {
    .sidebar-collapse .navbar-collapse {
        width: 100%;
        max-width: 280px;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-toggler {
        left: 10px;
    }
    
    .navbar-toggler {
        padding: 2px 6px !important;
        margin-right: 5px;
    }
    
    .navbar-toggler-bar {
        width: 20px !important;
        height: 2px !important;
    }
    
    .sidebar-collapse .navbar-nav {
        margin-top: 60px !important;
        padding: 0 10px;
    }
    
    .sidebar-collapse .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .sidebar-collapse .dropdown-menu .dropdown-item {
        font-size: 0.85rem;
        padding: 5px 20px;
    }
}

/* 곡선 SVG 배경 */
.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}