/* ========================================
   VISION & MISSION PAGE STYLES
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hero Section */
.vision-hero {
    position: relative;
    min-height: 40vh;
    background-image: url('../../images/aptech_greeting.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 30px 40px 30px;
    overflow: hidden;
    margin-top: 0;
}

.vision-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.vision-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.vision-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.vision-hero-content p {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
    word-break: keep-all;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sub Navigation */
.sub-navigation {
    background: white;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.sub-nav-container {
    display: flex;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 20px;
}

.sub-nav-item {
    flex: 1;
    padding: 20px 15px;
    text-decoration: none;
    color: #2d3436;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.sub-nav-item:not(:first-child) {
    border-left: 1px solid #f1f3f4;
}

.sub-nav-item:hover {
    color: #6c757d;
    border-bottom-color: #f58f27;
}

.sub-nav-item.active {
    color: #6c757d;
    font-weight: 600;
    border-bottom-color: #f58f27;
}

/* Main Content */
.vision-content {
    background: linear-gradient(135deg, #fdfdfd 0%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.vision-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(90, 122, 115, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(108, 117, 125, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.vision-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Vision & Mission Section */
.vm-section {
    margin-bottom: 120px;
}

.vm-header {
    text-align: center;
    margin-bottom: 80px;
}

.vm-label {
    color: #f58f27;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.vm-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.vm-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.vm-card.excellence {
    background: #fbf4e8;
    animation: fadeInUp 1s ease 1s forwards;
}

.vm-card.trust {
    background: white;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.vm-card.innovation {
    background: #f1f3f4;
    animation: fadeInUp 1s ease 1.4s forwards;
}

.vm-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.vm-card.excellence .vm-card-label {
    color: #adb5bd;
}

.vm-card.trust .vm-card-label {
    color: #f58f27;
}

.vm-card.innovation .vm-card-label {
    color: #1e3a8a;
}

.vm-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.vm-card.excellence .vm-card-icon {
    color: #adb5bd;
}

.vm-card.trust .vm-card-icon {
    color: #f58f27;
}

.vm-card.innovation .vm-card-icon {
    color: #1e3a8a;
}

.vm-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #2d3436;
}

.vm-card-mobile-details {
    display: none;
    font-size: 12px;
    line-height: 1.6;
    color: #6c757d;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(173, 181, 189, 0.3);
    text-align: left;
    word-break: keep-all;
    width: 100%;
}

.vm-card-mobile-details div {
    margin-bottom: 8px;
    padding-left: 12px;
    text-indent: -12px;
}

.vm-card-mobile-details div:last-child {
    margin-bottom: 0;
}

/* Description Cards (Desktop Only) */
.vm-description {
    background: transparent;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
    text-align: left;
    word-break: keep-all;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(50px);
}

.vm-description.excellence-desc {
    color: #6c757d;
    animation: fadeInUp 1s ease 1.6s forwards;
}

.vm-description.trust-desc {
    color: #4a5568;
    animation: fadeInUp 1s ease 1.8s forwards;
}

.vm-description.innovation-desc {
    color: #2c3e50;
    animation: fadeInUp 1s ease 2s forwards;
}

.vm-description div {
    margin-bottom: 8px;
    padding-left: 12px;
    text-indent: -12px;
}

.vm-description div:last-child {
    margin-bottom: 0;
}

/* ESG Section */
.esg-section {
    background: linear-gradient(135deg, #f8fafb 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
}

.esg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(245, 143, 39, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(90, 122, 115, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.esg-header {
    text-align: center;
    margin-bottom: 100px;
}

.esg-label {
    color: #7cb342;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.esg-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.esg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.esg-card {
    background: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.esg-card.environment {
    animation: fadeInUp 1s ease 1s forwards;
}

.esg-card.environment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #5a8645;
}

.esg-card.social {
    animation: fadeInUp 1s ease 1.2s forwards;
}

.esg-card.social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f58f27;
}

.esg-card.governance {
    animation: fadeInUp 1s ease 1.4s forwards;
}

.esg-card.governance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1a365d;
}

.esg-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.esg-card-icon {
    margin: 0 auto 30px auto;
    text-align: center;
    font-size: 36px;
}

.esg-card.environment .esg-card-icon {
    color: #5a8645;
}

.esg-card.social .esg-card-icon {
    color: #f58f27;
}

.esg-card.governance .esg-card-icon {
    color: #1a365d;
}

.esg-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 40px 0;
    letter-spacing: 1px;
}

.esg-card.environment .esg-card-title {
    color: #5a8645;
}

.esg-card.social .esg-card-title {
    color: #f58f27;
}

.esg-card.governance .esg-card-title {
    color: #1a365d;
}

.esg-card-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    text-align: left;
    word-break: keep-all;
    word-wrap: break-word;
}

.esg-card-content div {
    margin-bottom: 8px;
    padding-left: 12px;
    text-indent: -12px;
}

.esg-card-content div:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vision-hero {
        min-height: 35vh;
        padding: 100px 20px 30px 20px;
    }
    
    .vision-hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .vision-hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Sub Navigation Mobile */
    .sub-nav-container {
        overflow: visible;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        scroll-snap-type: none;
        justify-content: center;
        margin: 0 auto;
        max-width: 520px;
    }
    
    .sub-nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .sub-nav-item {
        font-size: 14px;
        padding: 16px 8px;
        flex: 1;
        min-width: 0;
        flex-shrink: 1;
    }
    
    /* Content Mobile */
    .vision-content {
        padding: 60px 0;
    }
    
    .vm-section {
        margin-bottom: 80px;
    }
    
    .vm-header, .esg-header {
        margin-bottom: 60px;
    }
    
    .vm-label, .esg-label {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .vm-title, .esg-title {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    /* VM Grid Mobile */
    .vm-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .vm-card {
        padding: 40px 25px;
        min-height: 280px;
        border-left: none;
        border-right: none;
        animation: fadeInUp 1s ease forwards;
    }
    
    .vm-description {
        display: none;
    }
    
    .vm-card-mobile-details {
        display: block;
    }
    
    .vm-card-icon {
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    .vm-card-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .vm-card-mobile-details {
        font-size: 13px;
        line-height: 1.7;
    }
    
    /* ESG Grid Mobile */
    .esg-section {
        padding: 60px 0;
    }
    
    .esg-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .esg-card {
        padding: 40px 30px;
    }
    
    .esg-card-icon {
        font-size: 32px;
    }
    
    .esg-card-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .esg-card-content {
        font-size: 13px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .sub-nav-item {
        font-size: 13px;
        padding: 14px 6px;
    }
    
    .vm-title, .esg-title {
        font-size: 36px;
    }
    
    .vm-card {
        padding: 30px 25px;
    }
    
    .vm-card-icon {
        font-size: 36px;
    }
    
    .vm-card-title {
        font-size: 24px;
    }
    
    .esg-card {
        padding: 30px 25px;
    }
    
    .esg-card-title {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .sub-nav-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }
    
    .sub-nav-item {
        font-size: 12px;
        padding: 12px 4px;
        flex: none;
        min-width: 80px;
        flex-shrink: 0;
    }
}

/* Animation Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
