/* services.css - Dark theme services page styles */

/* Enhanced Dynamic Hero Section */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Animated gradient orbs */
.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float-orb 20s infinite ease-in-out;
}

.page-hero::before {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

.page-hero::after {
    bottom: -30%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Animated grid background */
.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-blue);
    opacity: 0;
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

.particle:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 2px;
    height: 2px;
    left: 20%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 30%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    width: 2px;
    height: 2px;
    left: 40%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 50%;
    animation-delay: 12s;
}

.particle:nth-child(6) {
    width: 2px;
    height: 2px;
    left: 60%;
    animation-delay: 2s;
}

.particle:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 70%;
    animation-delay: 5s;
}

.particle:nth-child(8) {
    width: 3px;
    height: 3px;
    left: 80%;
    animation-delay: 8s;
}

.particle:nth-child(9) {
    width: 2px;
    height: 2px;
    left: 90%;
    animation-delay: 11s;
}

.particle:nth-child(10) {
    width: 3px;
    height: 3px;
    left: 95%;
    animation-delay: 14s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 10;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated tag - REMOVED since not in HTML */

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* Animated heading */
.page-hero h1 {
    font-size: 4.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-up 1s ease-out 0.4s both;
    text-align: center;
    color: var(--text-primary); /* Ensure base color is set */
    /* Override the problematic styles from main.css */
    background-color: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #3b82f6 50%, #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease-in-out infinite;
    display: inline-block;
    position: relative;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Glitch effect on hover */
.glitch {
    position: relative;
    color: var(--text-primary) !important;
    display: inline-block;
    transition: all 0.3s;
    /* Override any text-fill-color inheritance */
    -webkit-text-fill-color: var(--text-primary) !important;
}

.glitch:hover {
    animation: glitch-effect 0.3s;
}

@keyframes glitch-effect {
    0%, 100% {
        text-shadow: none;
        transform: translateX(0);
    }
    25% {
        text-shadow: -2px 0 var(--primary-blue), 2px 0 var(--secondary-blue);
        transform: translateX(-2px);
    }
    50% {
        text-shadow: 2px 0 var(--primary-blue), -2px 0 var(--secondary-blue);
        transform: translateX(2px);
    }
    75% {
        text-shadow: 0 0 10px var(--primary-blue);
        transform: translateX(0);
    }
}

/* Hero description */
.hero-description{
    font-size: 33px;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: fade-in-up 1s ease-out 0.6s both;
    text-align: center
}

/* Enhanced CTA buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: fade-in-up 1s ease-out 0.8s both;
    justify-content: center;
    margin-top: 10px;
}

.primary-btn {
    background: var(--primary-blue);
    color: white;
    padding: 1.125rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

.primary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.primary-btn span {
    position: relative;
    z-index: 1;
}

.secondary-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    position: relative;
}

.secondary-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-blue);
    transition: width 0.3s;
}

.secondary-link:hover::after {
    width: calc(100% - 1.5rem);
}

.secondary-link:hover {
    gap: 1rem;
    color: var(--primary-blue);
}

.arrow-icon {
    transition: transform 0.3s;
    display: inline-block;
}

.secondary-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* Floating service badges */
.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.badge-float {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary-blue);
    animation: float-badge 20s infinite ease-in-out;
    backdrop-filter: blur(10px);
}

.badge-float:nth-child(1) {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.badge-float:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.badge-float:nth-child(3) {
    bottom: 30%;
    left: 8%;
    animation-delay: 10s;
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    90% {
        opacity: 0.7;
    }
}

/* Interactive hover zone indicators */
.security-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: scan 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(600px); }
}

/* Mouse follower effect */
.mouse-gradient {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
    filter: blur(40px);
}

.page-hero:hover .mouse-gradient {
    opacity: 1;
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-link {
        width: 40%;
        justify-content: center;
    }

    .floating-badges {
        display: none;
    }
}

/* Services Overview */
.services-overview {
    padding: 4rem 0;
    background: var(--primary-dark);
    border-bottom: 1px solid var(--border-dark);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns of equal width */
    gap: 1.5rem; /* Space between grid items */
    padding: 1rem;
  }

.overview-card {
    background: var(--secondary-dark);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.overview-card:hover::before {
    opacity: 0.1;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.overview-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.overview-card h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

/* Service Sections */
.service-section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
    border-bottom: 1px solid var(--border-dark);
}

.service-section:nth-child(even) {
    background: var(--secondary-dark);
}

.service-section:nth-child(odd) {
    background: var(--primary-dark);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.service-text h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-subtitle {
    color: var(--secondary-blue);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.service-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.service-text h3 {
    color: var(--text-primary);
}

.service-features {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-dark);
}

.service-features h3 {
    color: var(--text-primary);
}

.feature-item {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
}

.feature-item strong {
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--accent-green);
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

/* Process Steps */
.process-steps {
    margin: 2rem 0;
}

.process-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-dark);
    border-radius: 0.5rem;
    position: relative;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.step h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.faq-item {
    background: var(--secondary-dark);
    border: 1px solid var(--border-dark);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.1);
}

.faq-arrow {
    transition: transform 0.3s;
    color: var(--primary-blue);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

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

.secondary-button {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-primary);
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--text-primary);
    color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .overview-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
  }
  
  @media (max-width: 480px) {
    .overview-grid {
      grid-template-columns: 1fr; /* 1 column for mobile */
    }
  }
  
/* Services Page Responsive */
@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }
}