/* css/services.css */

/* Page Hero - Smaller than Home Hero */
.page-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 70% 30%, rgba(0, 50, 80, 0.4) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-color);
    position: relative;
    display: inline-block;
}

.page-hero h1 span::before {
    content: 'Expertise';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--accent-color);
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: typeReveal 2s steps(10) forwards 0.5s;
}

@keyframes typeReveal {
    to { width: 100%; }
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.hero-visual-abstract {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 5s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Service Details Section */
.services-detail-section {
    padding: 80px 0;
}

.service-detail-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

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

.service-detail-block.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.icon-header svg {
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.5));
}

.service-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.service-text p {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.service-features li {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.service-features li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.service-image-container {
    flex: 1;
    position: relative;
}

.service-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.service-detail-block:hover .service-img {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.center-text {
    text-align: center;
    margin-bottom: 60px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    padding: 15px 30px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    transform: translateY(-3px);
}

/* Partners Section */
.partners-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.partner-logo {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.partner-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

.partner-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%); /* Make them white-ish by default */
    transition: all 0.3s ease;
}

/* Specific adjustments */
.partner-logo img[alt="Hostinger Logo"] {
    height: 45px; /* Hostinger is wide */
    width: auto;
}

.partner-logo:hover img {
    filter: none; /* Restore original colors on hover */
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--secondary-color);
}

/* Mobile Responsiveness for Services Page */
@media (max-width: 900px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .service-detail-block {
        flex-direction: column !important; /* Force stack on mobile */
        gap: 40px;
        margin-bottom: 80px;
        text-align: left;
    }

    .service-text h2 {
        font-size: 2rem;
    }
    
    .service-img {
        width: 100%;
        height: auto;
    }

    .tech-grid {
        gap: 10px;
    }
    
    .tech-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
