/* ==========================================
   SERVICES PAGE STYLES
   ========================================== */

/* Services Hero */
.services-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 7rem 0 5rem;
    text-align: center;
}

.services-hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: orange;
}

.services-hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    opacity: 0.95;
}

/* Main Services Section - Enhanced */
.main-services-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

/* Service Showcase - Alternating Layout */
.service-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 10rem;
    position: relative;
}

.service-showcase:last-child {
    margin-bottom: 0;
}

.service-showcase-reverse {
    direction: rtl;
}

.service-showcase-reverse > * {
    direction: ltr;
}

/* Service Visual Group - Overlapping Circles */
.service-visual-group {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.circle-images {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-image {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: var(--medium-gray);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* Positioning for overlapping effect */
.circle-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.circle-2 {
    bottom: 0;
    left: 0;
    z-index: 2;
}

.circle-3 {
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* Hover animations for circles */
.service-showcase:hover .circle-1 {
    transform: translateX(-50%) translateY(-15px) scale(1.08);
    box-shadow: 0 25px 70px rgba(45, 95, 63, 0.4);
    z-index: 10;
}

.service-showcase:hover .circle-2 {
    transform: translateX(-20px) translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 140, 0, 0.3);
    z-index: 9;
}

.service-showcase:hover .circle-3 {
    transform: translateX(20px) translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(45, 95, 63, 0.25);
    z-index: 8;
}

.service-showcase:hover .circle-image img {
    transform: scale(1.15);
}

/* Individual circle animations on page load */
.circle-1 {
    animation: floatCircle1 8s ease-in-out infinite;
}

.circle-2 {
    animation: floatCircle2 7s ease-in-out infinite 1s;
}

.circle-3 {
    animation: floatCircle3 9s ease-in-out infinite 0.5s;
}

@keyframes floatCircle1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes floatCircle2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatCircle3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Visual Decoration - Floating Background Element */
.visual-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-green) 100%);
    border-radius: 50%;
    opacity: 0.12;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(180deg) scale(1.1); }
}

/* Service Content */
.visual-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-green) 100%);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Visual Overlay - Appears on Hover */
.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.9) 0%, rgba(255, 140, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.service-showcase:hover .visual-overlay {
    opacity: 1;
}

.overlay-icon {
    color: var(--white);
    transform: scale(0.5) rotate(-180deg);
    transition: transform 0.5s ease;
}

.service-showcase:hover .overlay-icon {
    transform: scale(1) rotate(0deg);
}

/* Service Content */
.service-content {
    position: relative;
    z-index: 3;
}

/* Service Badge */
.service-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff6b00 100%);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-icon-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.service-showcase:hover .service-icon-large::before {
    left: 100%;
}

.service-showcase:hover .service-icon-large {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(45, 95, 63, 0.3);
}

.service-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Service Highlights - With SVG Icons */
.service-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.highlight-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.highlight-badge svg {
    color: var(--primary-green);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.highlight-badge:hover {
    border-color: var(--accent-orange);
    background: var(--bg-light);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.highlight-badge:hover svg {
    color: var(--accent-orange);
    transform: scale(1.2) rotate(10deg);
}

/* Animated Button */
.btn-animated {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-animated svg {
    transition: transform 0.4s ease;
}

.btn-animated:hover svg {
    transform: translateX(5px);
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-animated:hover::before {
    width: 400px;
    height: 400px;
}

.btn-animated:hover {
    transform: translateX(20px);
}

/* Technology Callout - Enhanced */
.tech-callout {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.tech-callout::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.tech-callout p {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.tech-callout .btn {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    position: relative;
    z-index: 2;
}

.tech-callout .btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

/* Fade-in Animation on Scroll (requires JS) */
/* Show content by default, hide only when JS is ready */
.service-showcase {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: Show content if JS doesn't load within 2s */

html:not(.js-loaded) [data-aos="fade-up"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
    padding: 4rem 0;
}

.service-block-reverse {
    direction: rtl;
}

.service-block-reverse > * {
    direction: ltr;
}

.service-content {
    max-width: 600px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Service Highlights - Compact Badges */
.service-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-badge {
    background: var(--bg-light);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.highlight-badge:hover {
    border-color: var(--primary-green);
    background: var(--white);
    transform: translateY(-2px);
}

/* Technology Callout Box */
.tech-callout {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem 0;
}

.tech-callout p {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.tech-callout .btn {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
}

.tech-callout .btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
}

.service-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.service-features {
    margin-bottom: 3rem;
}

.service-features h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.25rem;
}

.service-benefits {
    margin-bottom: 3rem;
}

.service-benefits h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.benefit-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-orange);
}

.benefit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.benefit-item h4 {
    font-size: 1.125rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.service-visual {
    position: relative;
}

.service-visual img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Additional Services */
.additional-services {
    padding: 6rem 0;
    background: var(--bg-light);
}

/* Emerging Products Section */
.emerging-products-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
}

.emerging-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.emerging-content .section-label {
    color: var(--accent-orange);
}

.emerging-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.emerging-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.emerging-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.emerging-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.emerging-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.emerging-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.emerging-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.emerging-card p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0;
}

.emerging-note {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.emerging-note strong {
    color: var(--accent-orange);
}

/* Additional Services */
.additional-services {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-title-centered {
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-green);
    margin-bottom: 4rem;
    font-weight: 700;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.additional-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.additional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.additional-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.additional-card h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.additional-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-showcase {
        gap: 3rem;
    }

    .service-highlights {
        grid-template-columns: 1fr;
    }
    
    .circle-images {
        height: 350px;
    }
    
    .circle-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 5rem 0 3rem;
    }

    .service-showcase,
    .service-showcase-reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 6rem;
        direction: ltr;
    }

    .service-content {
        max-width: 100%;
    }

    .service-icon-large {
        width: 80px;
        height: 80px;
    }

    .service-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .visual-decoration {
        width: 120px;
        height: 120px;
        top: -20px;
        right: -20px;
    }
    
    .circle-images {
        height: 300px;
    }
    
    .circle-image {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }
    
    /* Adjust positioning for mobile */
    .circle-1 {
        top: 10px;
    }
    
    .circle-2 {
        bottom: 10px;
        left: 10px;
    }
    
    .circle-3 {
        bottom: 10px;
        right: 10px;
    }

    .highlight-badge {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

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

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

    .btn-large, .btn-animated {
        width: 100%;
        justify-content: center;
    }
}