/* ===================================
   Services Page Styles
   =================================== */

/* Hero Section */
.services-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--color-black) 100%);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle 500px,
        rgba(234, 37, 42, 0.3) 0%, 
        rgba(234, 37, 42, 0.15) 25%, 
        rgba(234, 37, 42, 0.05) 50%,
        transparent 70%
    );
    background-size: 100% 100%;
    animation: lensFlare 12s ease-in-out infinite;
    z-index: 1;
    opacity: 0.8;
}

@keyframes lensFlare {
    0% { 
        background-position: 20% 50%;
    }
    25% {
        background-position: 80% 30%;
    }
    50% { 
        background-position: 70% 70%;
    }
    75% {
        background-position: 30% 60%;
    }
    100% { 
        background-position: 20% 50%;
    }
}

/* Powerful Moving Sun Effect - Below the gradient */
.services-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2000px;
    height: 2000px;
    margin: -1000px 0 0 -1000px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 200, 200, 0.5) 4%,
        rgba(234, 37, 42, 0.4) 8%, 
        rgba(234, 37, 42, 0.3) 12%, 
        rgba(234, 37, 42, 0.2) 18%,
        rgba(234, 37, 42, 0.12) 25%,
        rgba(234, 37, 42, 0.06) 35%,
        rgba(234, 37, 42, 0.03) 45%,
        rgba(234, 37, 42, 0.015) 55%,
        rgba(234, 37, 42, 0.005) 65%,
        transparent 75%
    );
    animation: powerfulSun 18s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes powerfulSun {
    0% { 
        transform: translate(-15%, 0%);
        opacity: 0.5;
    }
    25% {
        transform: translate(15%, -10%);
        opacity: 0.8;
    }
    50% { 
        transform: translate(15%, 10%);
        opacity: 1;
    }
    75% {
        transform: translate(-15%, 10%);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-15%, 0%);
        opacity: 0.5;
    }
}

/* Lens Flare Reflections */
.lens-flare-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.flare {
    position: absolute;
    border-radius: 50%;
    animation: flareMove 18s ease-in-out infinite;
}

/* Flare 1 - Hexagonal aperture reflection */
.flare-1 {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    margin: -70px 0 0 -70px;
    background: 
        radial-gradient(circle, rgba(234, 37, 42, 0.06) 0%, transparent 70%),
        conic-gradient(from 0deg, 
            rgba(255, 100, 120, 0.08) 0deg 60deg,
            transparent 60deg 120deg,
            rgba(255, 100, 120, 0.08) 120deg 180deg,
            transparent 180deg 240deg,
            rgba(255, 100, 120, 0.08) 240deg 300deg,
            transparent 300deg 360deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: blur(2px);
}

/* Flare 2 - Rainbow chromatic aberration */
.flare-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -50px;
    background: 
        radial-gradient(circle at 45% 45%, rgba(255, 100, 100, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 255, 100, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 55% 55%, rgba(100, 100, 255, 0.08) 0%, transparent 50%);
    filter: blur(3px);
    animation-name: flareMove2;
}

/* Flare 3 - Bright starburst */
.flare-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    margin: -40px 0 0 -40px;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 200, 200, 0.1) 20%, transparent 50%),
        linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.12) 50%, transparent 55%),
        linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.12) 50%, transparent 55%),
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%),
        linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
    filter: blur(1px);
    animation-name: flareMove3;
}

/* Flare 4 - Soft glow with ring */
.flare-4 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    background: 
        radial-gradient(circle, rgba(255, 200, 200, 0.12) 0%, rgba(234, 37, 42, 0.08) 30%, transparent 40%),
        radial-gradient(circle, transparent 35%, rgba(255, 150, 150, 0.1) 40%, transparent 50%);
    filter: blur(2px);
    animation-name: flareMove4;
}

/* Main flare - FAR opposite to sun */
@keyframes flareMove {
    0% { 
        transform: translate(250%, 0%);
        opacity: 0.4;
    }
    25% {
        transform: translate(-250%, 150%);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-250%, -150%);
        opacity: 0.9;
    }
    75% {
        transform: translate(250%, -150%);
        opacity: 0.7;
    }
    100% { 
        transform: translate(250%, 0%);
        opacity: 0.4;
    }
}

/* Flare 2 - Middle distance opposite */
@keyframes flareMove2 {
    0% { 
        transform: translate(180%, 0%);
        opacity: 0.3;
    }
    25% {
        transform: translate(-180%, 110%);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-180%, -110%);
        opacity: 0.8;
    }
    75% {
        transform: translate(180%, -110%);
        opacity: 0.6;
    }
    100% { 
        transform: translate(180%, 0%);
        opacity: 0.3;
    }
}

/* Flare 3 - Closer opposite */
@keyframes flareMove3 {
    0% { 
        transform: translate(130%, 0%);
        opacity: 0.5;
    }
    25% {
        transform: translate(-130%, 80%);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-130%, -80%);
        opacity: 1;
    }
    75% {
        transform: translate(130%, -80%);
        opacity: 0.8;
    }
    100% { 
        transform: translate(130%, 0%);
        opacity: 0.5;
    }
}

/* Flare 4 - Near center opposite */
@keyframes flareMove4 {
    0% { 
        transform: translate(90%, 0%);
        opacity: 0.4;
    }
    25% {
        transform: translate(-90%, 55%);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-90%, -55%);
        opacity: 0.9;
    }
    75% {
        transform: translate(90%, -55%);
        opacity: 0.7;
    }
    100% { 
        transform: translate(90%, 0%);
        opacity: 0.4;
    }
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero .section-label {
    display: inline-block;
    background: rgba(234, 37, 42, 0.2);
    color: var(--color-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.services-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-hero-title span {
    color: var(--color-red);
}

.services-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.breadcrumbs-simple {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.breadcrumbs-simple .current {
    color: var(--color-red);
    font-weight: 600;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.overview-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
    box-shadow: 0 10px 30px rgba(234, 37, 42, 0.15);
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.overview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(234, 37, 42, 0.1) 0%, rgba(234, 37, 42, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.overview-card:hover .overview-icon {
    background: var(--color-red);
    transform: scale(1.1);
}

.overview-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-red);
    transition: stroke 0.3s ease;
}

.overview-card:hover .overview-icon svg {
    stroke: white;
}

.overview-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.overview-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-count {
    display: inline-block;
    background: rgba(234, 37, 42, 0.1);
    color: var(--color-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Service Detail Sections */
.service-detail-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.service-detail-section.alt-bg {
    background-color: var(--bg-secondary);
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header-center .section-label {
    display: inline-block;
    background: rgba(234, 37, 42, 0.1);
    color: var(--color-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.section-header-center .section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-header-center .section-title span {
    color: var(--color-red);
}

.section-header-center .section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-detail-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-red);
}

[data-theme="dark"] .service-detail-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(234, 37, 42, 0.1) 0%, rgba(234, 37, 42, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-detail-card:hover .service-card-icon {
    background: var(--color-red);
    transform: scale(1.05);
}

.service-card-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--color-red);
    transition: stroke 0.3s ease;
}

.service-detail-card:hover .service-card-icon svg {
    stroke: white;
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-card-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0 8px 30px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: 700;
    font-size: 18px;
}

/* CTA Section */
.services-cta {
    background: linear-gradient(135deg, var(--color-red) 0%, #c71f24 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.services-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content-center {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.services-cta h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-cta h2 span {
    color: rgba(255, 255, 255, 0.9);
}

.services-cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background-color: white;
    color: var(--color-red);
    border: 2px solid white;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-red);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .services-hero-title {
        font-size: 48px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-hero {
        padding: 120px 0 80px;
    }

    .services-hero-title {
        font-size: 36px;
    }

    .services-hero-subtitle {
        font-size: 18px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-section {
        padding: 60px 0;
    }

    .section-header-center .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .services-cta {
        padding: 60px 0;
    }

    .services-cta h2 {
        font-size: 32px;
    }

    .services-cta p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 100px 0 60px;
    }

    .services-hero-title {
        font-size: 28px;
    }

    .services-hero-subtitle {
        font-size: 16px;
    }

    .overview-card {
        padding: 30px 20px;
    }

    .section-header-center .section-title {
        font-size: 26px;
    }

    .service-detail-card {
        padding: 25px 20px;
    }

    .service-card-title {
        font-size: 20px;
    }

    .services-cta h2 {
        font-size: 26px;
    }

    .services-cta p {
        font-size: 16px;
    }
}

