/* Redesigned Services Page Styles - BLACK & GREEN THEME */

/* Services Header */
.services-header {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.services-header-content {
    position: relative;
    z-index: 2;
}

.tech-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: scanLine 2s infinite linear;
}

.tech-badge span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-header-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

.services-header-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.stat p {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-header-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cyber-orb {
    width: 400px;
    height: 400px;
    position: relative;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 50px var(--secondary-color);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orb-ring.ring-1 {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.orb-ring.ring-2 {
    width: 300px;
    height: 300px;
    animation: rotate 25s linear infinite reverse;
}

.orb-ring.ring-3 {
    width: 400px;
    height: 400px;
    animation: rotate 30s linear infinite;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-icon:nth-child(4) { animation-delay: 1s; }
.floating-icon:nth-child(5) { animation-delay: 2s; }
.floating-icon:nth-child(6) { animation-delay: 3s; }
.floating-icon:nth-child(7) { animation-delay: 4s; }

.floating-icon:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    border-color: var(--secondary-color);
}

/* Services Navigation */
.services-nav {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.services-nav-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-tab {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
}

.service-tab:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.service-tab.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.service-tab i {
    font-size: 1.2rem;
}

/* Services Grid */
.services-grid-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    transition: height 0.3s ease;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.1);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.service-badge span {
    background: rgba(0, 255, 0, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.service-card-content {
    flex-grow: 1;
}

.service-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card-content p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.service-features i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.service-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-stats i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.service-stats span {
    font-size: 0.9rem;
    color: #888;
}

.service-card-footer {
    margin-top: 2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.service-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--secondary-color);
    background: rgba(0, 255, 0, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

.modal-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-badge span {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal-section p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-item {
    background: rgba(0, 255, 0, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Process Section */
.process-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.section-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 255, 0, 0.1);
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.step-content p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

/* CTA Section */
.services-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 30, 0, 0.5) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.cta-content p {
    color: #b0b0b0;
    margin: 1rem 0 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.cta-features span {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.cta-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

.cta-form .form-group {
    margin-bottom: 1.5rem;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
}

.cta-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.cta-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    position: relative;
}

.cta-form .btn-primary.loading {
    color: transparent;
}

.cta-form .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-note {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

/* Form Error/Success Messages */
.form-error,
.form-success {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-error {
    color: var(--error-color);
    border: 1px solid var(--error-color);
    background: rgba(255, 85, 85, 0.1);
}

.form-success {
    color: var(--success-color);
    border: 1px solid var(--success-color);
    background: rgba(0, 255, 136, 0.1);
}

input.error,
select.error {
    border-color: var(--error-color) !important;
    animation: shake 0.5s ease;
}

/* Animations */
@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }
    
    .services-header-content {
        margin-bottom: 4rem;
    }
    
    .services-header-content p {
        max-width: 600px;
        margin: 0 auto 2.5rem;
    }
    
    .cyber-orb {
        width: 300px;
        height: 300px;
    }
    
    .orb-core {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .orb-ring.ring-1 { width: 150px; height: 150px; }
    .orb-ring.ring-2 { width: 225px; height: 225px; }
    .orb-ring.ring-3 { width: 300px; height: 300px; }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .services-header-content h1 {
        font-size: 3rem;
    }
    
    .services-nav-container {
        flex-wrap: wrap;
    }
    
    .service-tab {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-header-content h1 {
        font-size: 2.5rem;
    }
    
    .services-header-content p {
        font-size: 1.1rem;
    }
    
    .header-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-header-content h1 {
        font-size: 2rem;
    }
    
    .services-nav-container {
        flex-direction: column;
    }
    
    .service-tab {
        width: 100%;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-title h2 {
        font-size: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .service-tab:active {
        background: var(--secondary-color);
        color: var(--primary-color);
    }
    
    .floating-icon:active {
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    }
}

/* Accessibility focus styles */
.service-tab:focus,
.service-card:focus,
.modal-close:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .service-tab,
    .service-link,
    .cta-form,
    .modal-close,
    .floating-icon,
    .orb-core {
        display: none !important;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        transform: none !important;
    }
    
    .services-nav {
        position: static;
        border: 1px solid #ddd;
    }
}