/**
 * Vision & Mission Page Styles
 * KMS Technologies
 * Dedicated stylesheet for vision-mission.php
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Dark Navy Theme (matching main website) */
    --kms-primary: #1a1a2e;
    --kms-primary-dark: #16213e;
    --kms-primary-light: #252a48;
    --kms-yellow: #ffd700;
    --kms-yellow-dark: #e6c200;
    --kms-accent: #00bfa5;
    --kms-accent-light: #4ecdc4;
    --kms-white: #ffffff;
    --kms-light-gray: #f8f9fa;
    --kms-gray: #6c757d;
    --kms-dark-gray: #343a40;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #343a40;
}

/* ===== ABOUT SECTION (MISSION & VISION) ===== */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 15px;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(26, 26, 46, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.about-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.about-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px 30px;
    color: #343a40;
    border: 1px solid rgba(26, 26, 46, 0.06);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 25px -5px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(26, 26, 46, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Gold accent bar at top */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--kms-yellow), var(--kms-yellow-dark));
    border-radius: 0 0 4px 4px;
    transition: width 0.4s ease;
}

/* Decorative corner element */
.about-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.about-card:hover::before {
    width: 120px;
}

.about-card:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 40px -5px rgba(0, 0, 0, 0.1),
        0 30px 60px -10px rgba(26, 26, 46, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.about-card h3 {
    color: var(--kms-primary-dark);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Decorative underline for headings */
.about-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--kms-yellow), var(--kms-yellow-dark));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.about-card:hover h3::after {
    width: 80px;
}

.about-card p {
    line-height: 1.9;
    color: var(--kms-gray);
    font-size: 15px;
    margin-bottom: 0;
}

@media(max-width:768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-section {
        padding: 40px 15px;
    }

    .about-card {
        padding: 30px 25px;
    }

    .about-card h3 {
        font-size: 24px;
    }
}

/* ===== CORE VISUAL SECTION (IMAGE/VIDEO LAYER) ===== */
.core-visual-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Decorative background pattern */
.core-visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26, 26, 46, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.core-visual-wrapper {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 30px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.core-visual-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 400px;
    min-width: 0;
}

/* Hover effect matching video cards */
.core-visual-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--kms-yellow);
}

/* Gold accent glow on hover */
.core-visual-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--kms-yellow), var(--kms-yellow-dark));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.core-visual-item:hover::before {
    opacity: 0.15;
}

.core-visual-wrapper img,
.core-visual-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 14px;
}

@media(max-width:768px) {
    .core-visual-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .core-visual-item {
        height: 300px;
    }

    .core-visual-section {
        padding: 40px 15px;
    }
}

/* ===== CORE VALUES ===== */
.values-section {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.values-title {
    text-align: center;
    font-size: 36px;
    color: var(--kms-primary-dark);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

/* Gold underline accent */
.values-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--kms-yellow), var(--kms-yellow-dark));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ONE LINE CONTAINER */
.values-line {
    max-width: 1400px;
    margin: auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding-bottom: 20px;
}

/* CARD - Enhanced with Services/Applications hover styling */
.value-card-line {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    min-height: 220px;
    background: linear-gradient(120deg, #dbe2f6, #ffffff);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    border: 1px solid rgba(26, 26, 46, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* HOVER - Matching service-card hover effects */
.value-card-line:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
    border-color: var(--kms-yellow);
}

/* ICON - Matching service-icon styling */
.value-card-line .value-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kms-primary), var(--kms-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--kms-yellow);
    box-shadow: 0 6px 15px rgba(26, 26, 46, .3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* ICON HOVER - Scale, rotate, and gradient flip like service-card */
.value-card-line:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--kms-yellow), var(--kms-yellow-dark));
    color: var(--kms-primary-dark);
}

/* TEXT */
.value-card-line .value-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--kms-primary-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

/* DESCRIPTION */
.value-card-line .value-description {
    font-size: 12px;
    font-weight: 400;
    color: var(--kms-dark-gray);
    line-height: 1.5;
    text-align: center;
}

/* MOBILE SCROLL */
.values-line::-webkit-scrollbar {
    height: 6px;
}

.values-line::-webkit-scrollbar-thumb {
    background: rgba(26, 26, 46, 0.2);
    border-radius: 10px;
}

/* ===== ICON CARDS ===== */
.values-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 25px;
}

.value-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    cursor: grab;
    transition: box-shadow .3s ease;
    transform-style: preserve-3d;
}

.value-card:active {
    cursor: grabbing
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kms-accent), var(--kms-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

.value-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--kms-primary-dark);
}

/* ===== RESPONSIVE ===== */
@media(max-width:600px) {
    .values-title {
        font-size: 22px
    }
}

/* ===== MANUFACTURING SECTION ===== */
.manufacturing-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem 1rem 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.manufacturing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(26, 26, 46, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.manufacturing-title {
    text-align: center;
    font-size: 36px;
    color: var(--kms-primary-dark);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Gold underline accent */
.manufacturing-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--kms-yellow), var(--kms-yellow-dark));
    margin: 15px auto 0;
    border-radius: 2px;
}

.manufacturing-description {
    max-width: 1000px;
    margin: 0 auto 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.manufacturing-description p {
    color: var(--kms-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.manufacturing-description p:last-child {
    margin-bottom: 0;
}

.manufacturing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.manufacturing-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(26, 26, 46, 0.06);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Decorative corner gradient */
.manufacturing-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.manufacturing-item:hover::before {
    opacity: 1;
}

.manufacturing-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.manufacturing-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kms-primary), var(--kms-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kms-yellow);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
    transition: all 0.3s ease;
}

.manufacturing-icon svg {
    stroke-width: 3;
}

.manufacturing-item:hover .manufacturing-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--kms-yellow), var(--kms-yellow-dark));
    color: var(--kms-primary-dark);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.4);
}

.manufacturing-content {
    flex: 1;
}

.manufacturing-content h4 {
    color: var(--kms-primary-dark);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.manufacturing-item:hover .manufacturing-content h4 {
    color: var(--kms-primary);
}

.manufacturing-content p {
    color: var(--kms-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media(max-width: 768px) {
    .manufacturing-section {
        padding: 60px 15px;
    }

    .manufacturing-title {
        font-size: 28px;
    }

    .manufacturing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .manufacturing-item {
        padding: 20px 25px;
    }

    .manufacturing-description p {
        font-size: 15px;
    }
}

@media(max-width: 480px) {
    .manufacturing-title {
        font-size: 24px;
    }

    .manufacturing-item {
        padding: 18px 20px;
        gap: 15px;
    }

    .manufacturing-icon {
        width: 36px;
        height: 36px;
    }

    .manufacturing-icon svg {
        width: 20px;
        height: 20px;
    }

    .manufacturing-content h4 {
        font-size: 16px;
    }

    .manufacturing-content p {
        font-size: 13px;
    }
}