/* Page Hero - Professional Design Matching Header/Footer Theme */
.page-hero {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #052D69 0%, #0a4da3 50%, #052D69 100%);
    background-size: 200% 200%;
    animation: pageHeroGradientShift 10s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    box-shadow: 0 4px 30px rgba(5, 45, 105, 0.3);
}

@keyframes pageHeroGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer effect */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    animation: pageHeroShimmer 4s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pageHeroShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Glow effects */
.page-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(5, 45, 105, 0.3) 0%, 
        rgba(5, 45, 105, 0.15) 40%, 
        transparent 70%);
    border-radius: 50%;
    animation: pageHeroGlow 20s ease-in-out infinite;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

@keyframes pageHeroGlow {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3) translate(-30px, -30px);
        opacity: 0.7;
    }
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: pageHeroContentFade 0.8s ease-out;
}

@keyframes pageHeroContentFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 1) 100%);
    background-size: 200% 100%;
    animation: pageHeroTitleShine 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2));
    position: relative;
    display: inline-block;
}

@keyframes pageHeroTitleShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.page-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    border-radius: 2px;
    animation: pageHeroUnderline 1s ease-out 0.5s forwards;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes pageHeroUnderline {
    to {
        width: 60%;
    }
}

.page-hero-subtitle {
    font-size: clamp(14px, 1.8vw, 17px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pageHeroSubtitleFade 1s ease-out 0.3s both;
}

@keyframes pageHeroSubtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 50px;
        margin-top: 70px;
    }
}

/* Service Detail Sections */
.service-detail {
    margin-bottom: 40px;
}

.service-detail:last-of-type {
    margin-bottom: 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    width: 100%;
}

/* Tablet Service Detail Grid */
@media (max-width: 1024px) {
    .service-detail-grid {
        gap: 32px;
    }
}

/* Mobile Service Detail Grid */
@media (max-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }
}

.service-detail-reverse {
    direction: rtl;
}

.service-detail-reverse > * {
    direction: ltr;
}

.service-detail-image {
    position: relative;
}

.service-image {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-color: rgba(5, 45, 105, 0.05);
    background-repeat: no-repeat;
    border-radius: 14px;
    border: 1px solid rgba(5, 45, 105, 0.1);
    box-shadow: 0 6px 20px rgba(5, 45, 105, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 45, 105, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-detail:hover .service-image {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(5, 45, 105, 0.2);
    border-color: #052D69;
}

.service-detail:hover .service-image::after {
    opacity: 1;
}

.service-detail-content {
    padding: 15px 0;
}

.service-detail-title {
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #000 0%, #052D69 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.service-detail-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #052D69, #ffffff);
    border-radius: 2px;
}

.service-detail-description {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
    color: #444;
    margin-bottom: 18px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

/* Mobile Service Features */
@media (max-width: 768px) {
    .service-features {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
}

.service-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.service-features li:hover {
    color: #052D69;
    transform: translateX(5px);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #052D69;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.service-features li:hover::before {
    transform: scale(1.2) rotate(5deg);
}


/* Services Page Responsive */
@media (max-width: 1024px) {
    .service-detail-grid {
        gap: 32px;
    }

    .service-image {
        height: 290px;
    }

    .service-detail-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 90px 0 60px;
        margin-top: 70px;
    }

    .page-hero-title {
        font-size: clamp(32px, 8vw, 42px) !important;
        margin-bottom: 18px;
        line-height: 1.3;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) !important;
    }

    .page-hero-subtitle {
        font-size: clamp(17px, 4.5vw, 20px) !important;
        line-height: 1.8;
        padding: 0 20px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .service-detail {
        margin-bottom: 50px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail-reverse {
        direction: ltr;
    }

    .service-image {
        height: 280px;
        border-radius: 16px;
        width: 100%;
    }

    .service-detail-title {
        font-size: clamp(24px, 6vw, 28px) !important;
        margin-bottom: 18px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .service-detail-description {
        font-size: 17px !important;
        line-height: 1.8;
        margin-bottom: 24px;
        word-wrap: break-word;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .service-features li {
        font-size: 16px !important;
        padding-left: 28px;
        line-height: 1.7;
        word-wrap: break-word;
    }

    .cta-section {
        padding: 70px 0;
        margin-top: 70px;
    }

    .cta-title {
        font-size: clamp(28px, 6vw, 36px) !important;
        margin-bottom: 28px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 80px 0 50px;
    }

    .page-hero-title {
        font-size: clamp(28px, 9vw, 36px) !important;
    }

    .page-hero-subtitle {
        font-size: clamp(16px, 5vw, 19px) !important;
        padding: 0 16px;
    }

    .service-image {
        height: 240px;
    }

    .service-detail-title {
        font-size: clamp(22px, 7vw, 26px) !important;
    }

    .service-detail-description {
        font-size: 16px !important;
    }
}

