/* ===== Services Page Specific Styles ===== */

/* Gradient Text Utility */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Services Hero Section */
.services-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    padding: 120px 20px 60px;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.08;
    z-index: 0;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.services-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.services-hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.hero-feature p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Services Overview Section */
.services-overview {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Card */
.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.service-card-header {
    background: var(--accent-gradient);
    padding: 2.5rem 2rem;
    color: white;
    text-align: center;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.service-icon.red-team {
    animation: pulse 2s ease-in-out infinite, glow-red 2s ease-in-out infinite;
}

.service-icon.blue-team {
    animation: pulse 2s ease-in-out infinite, glow-blue 2s ease-in-out infinite;
}

.service-icon.dev {
    animation: pulse 2s ease-in-out infinite, glow-green 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow-red {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 82, 82, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 82, 82, 0.8)); }
}

@keyframes glow-blue {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(66, 153, 225, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(66, 153, 225, 0.8)); }
}

@keyframes glow-green {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(72, 187, 120, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(72, 187, 120, 0.8)); }
}

.service-card-header h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.service-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:hover {
    color: var(--accent-primary);
    transform: translateX(10px);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-card-footer {
    padding: 0 2rem 2rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    width: 100%;
    justify-content: center;
}

.service-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.service-cta:hover .arrow-icon {
    transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.reason-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reason-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Methodologies Section */
.methodologies {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.methodologies-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.methodologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.methodology-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.methodology-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.methodology-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.services-cta {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0.05;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.cta-button.primary {
    background: var(--accent-gradient);
    color: white;
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.cta-button.secondary:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-5px);
}

.cta-button svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 100px 20px 40px;
        min-height: 50vh;
    }

    .services-hero-title {
        font-size: 2.5rem;
    }

    .services-hero-subtitle {
        font-size: 1.2rem;
    }

    .services-hero-features {
        gap: 2rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        max-width: 100%;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .methodologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .services-hero-title {
        font-size: 2rem;
    }

    .services-hero-subtitle {
        font-size: 1rem;
    }

    .services-hero-features {
        gap: 1.5rem;
    }

    .hero-feature p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-intro-text {
        font-size: 1rem;
    }

    .service-card-header {
        padding: 2rem 1.5rem;
    }

    .service-card-header h3 {
        font-size: 1.3rem;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-card-body {
        padding: 1.5rem;
    }

    .service-description {
        font-size: 1rem;
    }

    .service-features li {
        font-size: 0.95rem;
    }

    .reason-card {
        padding: 2rem 1.5rem;
    }

    .reason-icon {
        font-size: 3rem;
    }

    .reason-card h3 {
        font-size: 1.2rem;
    }

    .methodology-card {
        padding: 1.5rem;
    }

    .methodology-card h3 {
        font-size: 1.3rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 80px 15px 30px;
    }

    .services-hero-title {
        font-size: 1.8rem;
    }

    .services-hero-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card-footer {
        padding: 0 1.5rem 1.5rem;
    }

    .service-cta {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Animation for scroll-triggered elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
