/* ============================================
   MODERN CSS FOR SERVICE PAGES
   - agreement_software_escrow
   - escrow_deposit_testing
   - code_vulnerability_testing
   ============================================ */

/* ==================== 
   CSS VARIABLES (Inherited from main theme)
   ==================== */
:root {
    --primary-color: #007a8c;
    --primary-light: #00a5b9;
    --secondary-color: #f15931;
    --accent-color: #d1aa2b;
    --dark-color: #002b33;
    --light-bg: #f5f7fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 
   HERO / BANNER SECTION
   ==================== */
.banner_section {
    min-height: 70vh;
    background: linear-gradient(135deg, var(--dark-color) 0%, #003d47 50%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Decorative Background Orbs */
.banner_section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(209, 170, 43, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: bannerOrbFloat 18s ease-in-out infinite;
    z-index: 0;
}

.banner_section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 165, 185, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: bannerOrbFloat 14s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes bannerOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-40px, 40px) scale(1.2);
        opacity: 1;
    }
}

.banner_section .container {
    position: relative;
    z-index: 1;
}

/* Banner Title */
.banner_section h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: bannerTitleSlide 0.8s ease-out;
}

@keyframes bannerTitleSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* Banner Subtitle */
.banner_section h2 {
    font-size: 18px;
    color: #D1AA2B !important;
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 600px;
    animation: bannerSubtitleSlide 0.8s ease-out 0.2s backwards;
}

@keyframes bannerSubtitleSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Get Started Button */
.banner_section .btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, #e8c942 100%);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(209, 170, 43, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bannerButtonSlide 0.8s ease-out 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.banner_section .btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.banner_section .btn-get-started:hover::before {
    left: 100%;
}

.banner_section .btn-get-started:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(209, 170, 43, 0.5);
    color: var(--dark-color);
}

@keyframes bannerButtonSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ==================== 
   SECTION TITLE UPDATE
   ==================== */
.section-title-update {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-update h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    line-height: 1.3;
}

.section-title-update h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* ==================== 
   ABOUT SECTION (Light Background)
   ==================== */
section.about {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 50%, #e8f4f8 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Orbs */
section.about::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 122, 140, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

section.about .container {
    position: relative;
    z-index: 1;
}

/* Content Rows - Fix spacing */
section.about .content {
    margin-bottom: 0;
}

section.about .row.content {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 30px;
}

section.about .row.content:last-child {
    margin-bottom: 0;
}

/* Text Content Styling */
section.about .content p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

/* Full-width content boxes (.col-md-12) */
section.about .col-md-12,
section.more-services .col-md-12 {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow:
        0 4px 20px rgba(0, 122, 140, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

section.about .col-md-12:hover,
section.more-services .col-md-12:hover {
    box-shadow:
        0 8px 30px rgba(0, 122, 140, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

/* H3 Headings in Content */
section.about .content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

section.about .content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

/* Benefit Cards in Grid - Fixed width and spacing */
section.about .row.content>.col-md-4 {
    padding: 15px;
    margin-bottom: 0;
}

section.about .row.content>.col-md-4>div,
section.about .col-md-4 {
    height: 100%;
}

/* Card Inner Styling */
section.about .row.content .col-md-4 {
    display: flex;
    flex-direction: column;
}

section.about .row.content .col-md-4 h3,
section.about .row.content .col-md-4 p {
    padding: 0 10px;
}

/* Apply card styling to the column itself */
section.about .row.content .col-md-4 {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow:
        0 4px 20px rgba(0, 122, 140, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 25px;
    margin: 10px;
    flex: 1;
    min-height: 200px;
}

section.about .row.content .col-md-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

section.about .row.content .col-md-4:hover::before {
    transform: scaleX(1);
}

section.about .row.content .col-md-4:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 40px rgba(0, 122, 140, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 122, 140, 0.15);
}

section.about .row.content .col-md-4 h3 {
    padding-left: 0;
    margin-bottom: 12px;
}

section.about .row.content .col-md-4 h3::before {
    display: none;
}

section.about .row.content .col-md-4 p {
    padding: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

/* ==================== 
   MORE SERVICES SECTION (Slightly Different Background)
   ==================== */
section.more-services {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

section.more-services::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(241, 89, 49, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

section.more-services .container {
    position: relative;
    z-index: 1;
}

/* Content Rows - Fix spacing */
section.more-services .content {
    margin-bottom: 0;
}

section.more-services .row.content {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 30px;
}

section.more-services .row.content:last-child {
    margin-bottom: 0;
}

/* Content Styling */
section.more-services .content p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

section.more-services .content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

section.more-services .content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
}

/* Grid Cards for more-services - Fixed width and spacing */
section.more-services .row.content>.col-md-4 {
    padding: 15px;
    margin-bottom: 0;
}

section.more-services .row.content>.col-md-4>div,
section.more-services .col-md-4 {
    height: 100%;
}

/* Card Inner Styling */
section.more-services .row.content .col-md-4 {
    display: flex;
    flex-direction: column;
}

section.more-services .row.content .col-md-4 h3,
section.more-services .row.content .col-md-4 p {
    padding: 0 10px;
}

/* Apply card styling to the column itself */
section.more-services .row.content .col-md-4 {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow:
        0 4px 20px rgba(241, 89, 49, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 25px;
    margin: 10px;
    flex: 1;
    min-height: 200px;
}

section.more-services .row.content .col-md-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

section.more-services .row.content .col-md-4:hover::before {
    transform: scaleX(1);
}

section.more-services .row.content .col-md-4:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 40px rgba(241, 89, 49, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.06);
    border-color: rgba(241, 89, 49, 0.15);
}

section.more-services .row.content .col-md-4 h3 {
    padding-left: 0;
    margin-bottom: 12px;
}

section.more-services .row.content .col-md-4 h3::before {
    display: none;
}

section.more-services .row.content .col-md-4 p {
    padding: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

/* ==================== 
   ANIMATIONS
   ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

section.about .col-md-4,
section.more-services .col-md-4 {
    animation: fadeInUp 0.6s ease-out backwards;
}

section.about .col-md-4:nth-child(1),
section.more-services .col-md-4:nth-child(1) {
    animation-delay: 0.1s;
}

section.about .col-md-4:nth-child(2),
section.more-services .col-md-4:nth-child(2) {
    animation-delay: 0.2s;
}

section.about .col-md-4:nth-child(3),
section.more-services .col-md-4:nth-child(3) {
    animation-delay: 0.3s;
}

section.about .col-md-4:nth-child(4),
section.more-services .col-md-4:nth-child(4) {
    animation-delay: 0.4s;
}

section.about .col-md-4:nth-child(5),
section.more-services .col-md-4:nth-child(5) {
    animation-delay: 0.5s;
}

section.about .col-md-4:nth-child(6),
section.more-services .col-md-4:nth-child(6) {
    animation-delay: 0.6s;
}

/* ==================== 
   RESPONSIVE STYLES
   ==================== */
@media (max-width: 1199px) {
    .banner_section {
        min-height: auto;
        padding: 80px 0;
    }

    .banner_section h1 {
        font-size: 42px;
    }

    .section-title-update h2 {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .banner_section {
        padding: 60px 0;
    }

    .banner_section h1 {
        font-size: 36px;
    }

    .banner_section h2 {
        font-size: 16px;
    }

    .section-title-update h2 {
        font-size: 28px;
    }

    section.about,
    section.more-services,
    section.contact {
        padding: 60px 0;
    }

    section.about .col-md-4,
    section.more-services .col-md-4 {
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .banner_section {
        min-height: auto;
        padding: 50px 0;
    }

    .banner_section h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .banner_section h2 {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .banner_section .btn-get-started {
        padding: 14px 30px;
        font-size: 14px;
    }

    .section-title-update {
        margin-bottom: 40px;
    }

    .section-title-update h2 {
        font-size: 24px;
        padding-bottom: 15px;
    }

    .section-title-update h2::after {
        width: 70px;
        height: 3px;
    }

    section.about,
    section.more-services,
    section.contact {
        padding: 50px 0;
    }

    section.about .content h3,
    section.more-services .content h3 {
        font-size: 20px;
    }

    section.about .content p,
    section.more-services .content p {
        font-size: 15px;
    }

    section.contact .php-email-form {
        padding: 25px;
        margin-bottom: 30px;
    }

    section.contact .info {
        padding: 20px;
    }

    .banner_section::before,
    .banner_section::after,
    section.about::before,
    section.more-services::before {
        width: 200px;
        height: 200px;
    }
}

/* ==================== 
   DARK MODE SUPPORT
   ==================== */
body.dark-mode .banner_section {
    background: linear-gradient(135deg, #0a0e17 0%, #0f1524 50%, #1a1a2e 100%);
}

body.dark-mode .banner_section::before {
    background: radial-gradient(circle, rgba(209, 170, 43, 0.1) 0%, transparent 70%);
}

body.dark-mode .banner_section::after {
    background: radial-gradient(circle, rgba(0, 160, 192, 0.08) 0%, transparent 70%);
}

body.dark-mode section.about,
body.dark-mode section.more-services {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.dark-mode section.about::before,
body.dark-mode section.more-services::before {
    background: radial-gradient(circle, rgba(209, 170, 43, 0.06) 0%, transparent 70%);
}

body.dark-mode .section-title-update h2 {
    color: #fff;
}

body.dark-mode section.about .content h3,
body.dark-mode section.more-services .content h3 {
    color: #fff;
}

body.dark-mode section.about .content p,
body.dark-mode section.more-services .content p {
    color: #b0b0b0;
}

/* Dark Mode for full-width content boxes (.col-md-12) */
body.dark-mode section.about .col-md-12,
body.dark-mode section.more-services .col-md-12,
body.dark-mode section.about .row.content .col-md-12,
body.dark-mode section.more-services .row.content .col-md-12 {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 30px !important;
    margin-bottom: 20px !important;
}

body.dark-mode section.about .col-md-12:hover,
body.dark-mode section.more-services .col-md-12:hover {
    background: rgba(45, 58, 79, 0.9) !important;
    border-color: rgba(209, 170, 43, 0.2) !important;
}

body.dark-mode section.about .col-md-12 p,
body.dark-mode section.more-services .col-md-12 p {
    color: #c5c5c5 !important;
}

body.dark-mode section.about .col-md-12 h3,
body.dark-mode section.more-services .col-md-12 h3 {
    color: #fff !important;
}

body.dark-mode section.about .col-md-12 h3::before,
body.dark-mode section.more-services .col-md-12 h3::before {
    background: linear-gradient(180deg, var(--accent-color), var(--primary-light)) !important;
}

body.dark-mode section.about .row.content .col-md-4,
body.dark-mode section.more-services .row.content .col-md-4,
body.dark-mode section.about .col-md-4,
body.dark-mode section.more-services .col-md-4 {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode section.about .row.content .col-md-4:hover,
body.dark-mode section.more-services .row.content .col-md-4:hover,
body.dark-mode section.about .col-md-4:hover,
body.dark-mode section.more-services .col-md-4:hover {
    background: rgba(45, 58, 79, 0.9) !important;
    border-color: rgba(209, 170, 43, 0.3) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(209, 170, 43, 0.1) !important;
}

body.dark-mode section.about .row.content .col-md-4 h3,
body.dark-mode section.more-services .row.content .col-md-4 h3,
body.dark-mode section.about .col-md-4 h3,
body.dark-mode section.more-services .col-md-4 h3 {
    color: #fff !important;
}

body.dark-mode section.about .row.content .col-md-4 p,
body.dark-mode section.more-services .row.content .col-md-4 p,
body.dark-mode section.about .col-md-4 p,
body.dark-mode section.more-services .col-md-4 p {
    color: #c5c5c5 !important;
}

body.dark-mode section.contact {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

body.dark-mode section.contact .section-title h2 {
    color: #fff;
}

body.dark-mode section.contact .info {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode section.contact .info p {
    color: #b0b0b0;
}

body.dark-mode section.contact .php-email-form {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode section.contact .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.dark-mode section.contact .form-control::placeholder {
    color: #888;
}

body.dark-mode section.contact .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(209, 170, 43, 0.15);
}

body.dark-mode section.contact .mapouter {
    border-color: rgba(209, 170, 43, 0.2);
}

body.dark-mode section.contact .mapouter:hover {
    border-color: rgba(209, 170, 43, 0.4);
}