/* =========================================
   CEO SECTION
   ========================================= */
.ceo-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.ceo-name {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.ceo-title {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 25px;
    animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.ceo-bio {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
    animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.ceo-contact-box {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--brand-color);
    animation: heroSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ceo-contact-box:hover {
    box-shadow: 0 10px 30px rgba(206, 84, 53, 0.15);
    transform: translateY(-2px);
}

.contact-icon-large {
    width: 50px;
    height: 50px;
    background-color: var(--brand-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ceo-contact-box:hover .contact-icon-large {
    transform: rotate(15deg) scale(1.1);
    background-color: var(--brand-dark, #a83d20);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand-color);
    margin-bottom: 5px;
}

.contact-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.ceo-image {
    width: 70%;
    height: auto;
    border-radius: 4px;
    display: block;
    animation: heroFloat 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both,
               floatLoop 5s ease-in-out 1.5s infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}


/* =========================================
   COMMITMENT SECTION
   ========================================= */
.commitment-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.commitment-label {
    color: var(--brand-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.commitment-label::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-color);
    transition: width 0.4s ease 0.3s;
}

.commitment-label.label-visible::before {
    width: 100%;
}

.commitment-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Commitment image hover */
.commitment-section .img-fluid {
    border-radius: 4px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.commitment-section .img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}

/* Stats row */
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}


/* =========================================
   MISSION / VISION / GOAL CARDS
   ========================================= */
.card-grid {
    padding-top: 50px;
}

.mvg-card {
    background: linear-gradient(
        145deg,
        #ce5435 0%,
        #b03a1f 35%,
        #7a2010 70%,
        #3d0d06 100%
    );
    color: white;
    padding: 45px 30px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    cursor: default;
}

/* Decorative glow orb behind icon */
.mvg-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Shine sweep on hover */
.mvg-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.08) 50%,
        transparent 80%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.mvg-card:hover::after {
    left: 150%;
}

.mvg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(80, 15, 5, 0.4),
                0 0 0 1px rgba(255,255,255,0.08);
}

.mvg-card:hover::before {
    transform: translateX(-50%) scale(1.4);
    opacity: 0.6;
}

.mvg-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.mvg-card:hover .mvg-icon {
    transform: scale(1.2) translateY(-4px);
}

.mvg-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mvg-text {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.88;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.mvg-card:hover .mvg-text {
    opacity: 1;
}

/* Staggered card gradients for depth */
.card-grid .col-lg-4:nth-child(1) .mvg-card {
    background: linear-gradient(145deg, #d9623f 0%, #b03a1f 40%, #6e1d0d 100%);
}

.card-grid .col-lg-4:nth-child(2) .mvg-card {
    background: linear-gradient(145deg, #c0472a 0%, #922a12 40%, #581508 100%);
}

.card-grid .col-lg-4:nth-child(3) .mvg-card {
    background: linear-gradient(145deg, #b03520 0%, #7a1e0a 40%, #3d0d06 100%);
}


/* =========================================
   TECH SUPPORT SECTION
   ========================================= */
.tech-support-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.tech-label {
    color: var(--brand-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.tech-label::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-color);
    transition: width 0.4s ease 0.3s;
}

.tech-label.label-visible::before {
    width: 100%;
}

.tech-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.tech-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.service-highlight {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
    position: relative;
    padding-left: 16px;
}

.service-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--brand-color);
    border-radius: 2px;
}

.service-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.tech-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: 450px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tech-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}


/* =========================================
   SERVICES GRID PAGE SECTION
   ========================================= */
.service-page-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Card Container */
.sg-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sg-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* Image Area */
.sg-image-wrapper {
    position: relative;
    height: 220px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sg-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* The Overlapping Orange Title */
.sg-title-box {
    background-color: var(--brand-color);
    color: #ffffff;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    margin-top: -22px;
    align-self: flex-start;
    z-index: 2;
    max-width: 85%;
}

/* Content Area */
.sg-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sg-content p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Card Footer (Link) */
.sg-footer {
    margin-top: auto;
    text-align: right;
}

.sg-link {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.sg-link i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.sg-link:hover {
    color: var(--brand-dark);
}

.sg-link:hover i {
    margin-left: 8px;
}


/* =========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================= */
[data-animate] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-duration: 0.7s;
    will-change: opacity, transform;
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-left"]  { transform: translateX(-50px); }
[data-animate="fade-right"] { transform: translateX(50px); }
[data-animate="zoom-in"]    { transform: scale(0.85); }

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}


/* =========================================
   RESPONSIVE — TABLET (≤ 991px)
   ========================================= */
@media (max-width: 991px) {

    /* CEO */
    .ceo-section { padding: 60px 0; }
    .ceo-name { font-size: 2.2rem; }
    .ceo-title { font-size: 1.1rem; }
    .ceo-image {
        width: 65%;
        margin: 0 auto;
    }
    .ceo-contact-box {
        flex-wrap: wrap;
        gap: 15px;
    }
    .ceo-contact-box .ms-auto {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Commitment */
    .commitment-section { padding: 60px 0; }
    .commitment-title { font-size: 2rem; }

    /* Tech Support */
    .tech-support-section { padding: 60px 0; }
    .tech-title { font-size: 2rem; }

    /* Service Grid */
    .service-page-section { padding: 60px 0; }

    /* MVG Cards */
    .card-grid { padding-top: 30px; }
}


/* =========================================
   RESPONSIVE — MOBILE (≤ 767px)
   ========================================= */
@media (max-width: 767px) {

    /* CEO */
    .ceo-section { padding: 50px 0; }
    .ceo-name { font-size: 2rem; }
    .ceo-title { font-size: 1rem; }
    .ceo-bio { font-size: 0.95rem; }
    .ceo-image {
        width: 80%;
        margin: 0 auto 10px;
    }
    .ceo-contact-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }
    .ceo-contact-box .ms-auto {
        width: 100%;
        justify-content: center;
    }
    .contact-value { font-size: 1.05rem; }

    /* Commitment */
    .commitment-section { padding: 50px 0; }
    .commitment-title { font-size: 1.75rem; }

    /* Stats: 2×2 grid on mobile */
    .commitment-section .row.text-center {
        row-gap: 20px;
    }
    .commitment-section .row.text-center .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: 0.8rem; }

    /* MVG Cards */
    .card-grid { padding-top: 20px; }
    .mvg-card {
        padding: 35px 25px;
        /* Disable 3D tilt hover on touch devices */
        transform: none !important;
    }
    .mvg-icon { font-size: 2.5rem; }
    .mvg-title { font-size: 1.3rem; }
    .mvg-text { font-size: 0.9rem; }

    /* Tech Support */
    .tech-support-section { padding: 50px 0; }
    .tech-title { font-size: 1.75rem; }
    .tech-desc { font-size: 0.95rem; }
    /* Show image above text on mobile */
    .tech-support-section .col-lg-6:last-child {
        order: -1;
        margin-bottom: 30px;
    }

    /* Service Grid */
    .service-page-section { padding: 50px 0; }
    .sg-image-wrapper { height: 190px; }
    .sg-title-box {
        font-size: 0.95rem;
        padding: 10px 18px;
        max-width: 90%;
        /* Prevent negative margin clipping the card edge */
        margin-top: -18px;
    }
    .sg-content { padding: 20px; }
}


/* =========================================
   RESPONSIVE — SMALL PHONES (≤ 575px)
   ========================================= */
@media (max-width: 575px) {

    /* CEO */
    .ceo-section { padding: 40px 0; }
    .ceo-name { font-size: 1.75rem; }
    .ceo-image { width: 90%; }
    .contact-icon-large {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Commitment */
    .commitment-section { padding: 40px 0; }
    .commitment-title { font-size: 1.5rem; }
    .commitment-section .choose-text { font-size: 0.9rem; }

    /* Stats: keep 2×2 but tighter */
    .stat-number { font-size: 1.5rem; }

    /* MVG Cards */
    .mvg-card { padding: 30px 20px; }
    .mvg-icon { font-size: 2.2rem; margin-bottom: 15px; }
    .mvg-title { font-size: 1.2rem; margin-bottom: 12px; }
    .mvg-text { font-size: 0.88rem; }

    /* Tech Support */
    .tech-support-section { padding: 40px 0; }
    .tech-title { font-size: 1.5rem; }
    .service-highlight { font-size: 1.1rem; }

    /* Service Grid */
    .service-page-section { padding: 40px 0; }
    .sg-image-wrapper { height: 170px; }
    .sg-title-box {
        font-size: 0.88rem;
        padding: 9px 15px;
        max-width: 95%;
        margin-top: -16px;
    }
    .sg-content { padding: 16px; }
    .sg-content p { font-size: 0.85rem; margin-bottom: 20px; }

    /* btn-quote: full-width on smallest screens */
    .ceo-contact-box .btn-quote {
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Reduce animation distances on small screens for subtler feel */
    [data-animate="fade-left"]  { transform: translateX(-30px); }
    [data-animate="fade-right"] { transform: translateX(30px); }
    [data-animate="fade-up"]    { transform: translateY(25px); }
}


/* =========================================
   REDUCED MOTION PREFERENCE
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .ceo-image {
        animation: none !important;
    }
    .mvg-card::after { display: none; }
}

/* =========================================
   MOBILE: FORCE ALL ELEMENTS VISIBLE
   (animations are not applied via JS on mobile,
    but this ensures nothing stays hidden if
    data-animate is ever set on ≤ 767px)
   ========================================= */
@media (max-width: 767px) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}