
/* Enhanced Learn More Button Styles (unchanged) */
.service-link-3d {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(90deg, 
        rgba(0, 200, 255, 0.2) 0%, 
        rgba(0, 255, 204, 0.2) 100%);
    color: #00ffcc;
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 20px;
}

.service-link-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
}

.service-link-3d:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 200, 255, 0.3),
        0 0 15px rgba(0, 200, 255, 0.5);
    background: linear-gradient(90deg, 
        rgba(0, 200, 255, 0.3) 0%, 
        rgba(0, 255, 204, 0.3) 100%);
    border-color: #00ffcc;
}

.service-link-3d:hover::before {
    left: 100%;
}

.service-link-3d i {
    transition: transform 0.3s ease;
}

.service-link-3d:hover i {
    transform: translateX(5px);
}

.service-link-3d:active {
    transform: translateY(-1px);
}

/* Button glow animation */
@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 
            0 5px 15px rgba(0, 200, 255, 0.2),
            0 0 10px rgba(0, 200, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 5px 20px rgba(0, 200, 255, 0.4),
            0 0 15px rgba(0, 200, 255, 0.5),
            0 0 25px rgba(0, 255, 204, 0.3);
    }
}

.service-link-3d {
    animation: buttonGlow 3s infinite ease-in-out;
}

/* Different colors for different services */
.service-card-3d[data-service="web-development"] .service-link-3d {
    border-color: rgba(0, 150, 255, 0.5);
    background: linear-gradient(90deg, 
        rgba(0, 150, 255, 0.2) 0%, 
        rgba(100, 200, 255, 0.2) 100%);
}

.service-card-3d[data-service="app-development"] .service-link-3d {
    border-color: rgba(100, 255, 200, 0.5);
    background: linear-gradient(90deg, 
        rgba(100, 255, 200, 0.2) 0%, 
        rgba(0, 255, 150, 0.2) 100%);
}

.service-card-3d[data-service="ui-ux-design"] .service-link-3d {
    border-color: rgba(255, 100, 200, 0.5);
    background: linear-gradient(90deg, 
        rgba(255, 100, 200, 0.2) 0%, 
        rgba(255, 50, 150, 0.2) 100%);
}

.service-card-3d[data-service="mentorship"] .service-link-3d {
    border-color: rgba(255, 200, 0, 0.5);
    background: linear-gradient(90deg, 
        rgba(255, 200, 0, 0.2) 0%, 
        rgba(255, 150, 0, 0.2) 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .service-link-3d {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Quantum Modal Overlay - CRITICAL FIX */
.quantum-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.quantum-modal-overlay.active {
    display: flex; /* Show when active */
    opacity: 1;
}

/* Quantum Modal */
.quantum-modal {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(135deg, 
        rgba(10, 10, 20, 0.95) 0%, 
        rgba(26, 26, 46, 0.98) 100%);
    border: 1px solid var(--quantum-blue);
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(0, 200, 255, 0.3),
        0 0 100px rgba(0, 150, 255, 0.1),
        inset 0 0 20px rgba(0, 200, 255, 0.1);
    overflow: hidden;
    position: relative;
    animation: modalAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalAppear {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(0, 20, 40, 0.7);
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 200, 255, 0.1), 
        transparent);
    animation: hologram-scan 3s infinite linear;
}

.modal-title {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #00c8ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    background: rgba(255, 0, 100, 0.2);
    border: 1px solid rgba(255, 0, 100, 0.5);
    color: #ff0064;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 100, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.5);
}

/* Modal Content */
.modal-content-container {
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
    position: relative;
}

/* Service Overview Content */
.service-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.service-hero-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--quantum-blue);
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.3);
}

.service-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-hero-image:hover img {
    transform: scale(1.05);
}

.service-quick-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00ffcc;
}

.service-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--quantum-blue);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00c8ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: #88aaff;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Features Grid */
.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: rgba(0, 20, 40, 0.5);
    border-left: 3px solid var(--quantum-blue);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    color: var(--quantum-blue);
    font-size: 1.2rem;
}

/* Full Details Content */
.full-details {
    animation: detailsFadeIn 0.5s ease;
}

@keyframes detailsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(0, 15, 30, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 200, 255, 0.1);
}

.details-section h4 {
    color: #00ffcc;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-section h4 i {
    color: white;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    padding-left: 30px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--quantum-blue), 
        transparent);
}

.process-step {
    margin-bottom: 30px;
    position: relative;
}

.step-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--quantum-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 0 10px var(--quantum-blue);
}

/* Case Studies */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.case-study-card {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 200, 255, 0.2);
    transition: transform 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: var(--quantum-blue);
}

.case-study-image {
    height: 180px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-content {
    padding: 20px;
}

/* Modal Loading */
.modal-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.quantum-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.quantum-particle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--quantum-blue);
    border-radius: 50%;
    animation: particle-float 2s infinite ease-in-out;
}

.quantum-particle:nth-child(1) {
    top: 0;
    left: 32px;
    animation-delay: 0s;
}

.quantum-particle:nth-child(2) {
    top: 32px;
    right: 0;
    animation-delay: 0.5s;
}

.quantum-particle:nth-child(3) {
    bottom: 0;
    left: 32px;
    animation-delay: 1s;
}

.quantum-particle:nth-child(4) {
    top: 32px;
    left: 0;
    animation-delay: 1.5s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 10px var(--quantum-blue);
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        box-shadow: 0 0 20px var(--quantum-blue);
    }
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 30px;
    background: rgba(0, 10, 20, 0.7);
    border-top: 1px solid rgba(0, 200, 255, 0.2);
}

.btn-quantum-primary,
.btn-quantum-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.btn-quantum-primary {
    background: linear-gradient(90deg, #00c8ff, #00ffcc);
    color: #000;
}

.btn-quantum-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 200, 255, 0.4);
}

.btn-quantum-secondary {
    background: transparent;
    color: #00ffcc;
    border: 2px solid #00ffcc;
}

.btn-quantum-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-overview {
        grid-template-columns: 1fr;
    }
    
    .service-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quantum-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content-container {
        max-height: 55vh;
        padding: 20px;
    }
    
    .service-stats,
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 20px;
    }
    
    .modal-content-container {
        padding: 15px;
    }
    
    .details-section {
        padding: 15px;
    }
}
/* Enhanced text readability for modal content */

/* Default text color for modal content */
.modal-content-container {
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
    position: relative;
    color: #e6f7ff; /* Light blue-white for better readability */
}

/* Paragraph text */
.modal-content-container p {
    color: #cce7ff; /* Slightly lighter than body text */
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Service quick info text */
.service-quick-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00ffcc; /* Keep the cyan color for headings */
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.service-quick-info p {
    color: #b3e6ff; /* Light blue for better contrast */
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Feature item text */
.feature-item {
    background: rgba(0, 20, 40, 0.5);
    border-left: 3px solid var(--quantum-blue);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e6f7ff; /* Light text for features */
}

.feature-item span {
    color: #ffffff; /* Pure white for feature text */
    font-weight: 500;
}

/* Stat box text improvements */
.stat-box {
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #e6f7ff;
}

.stat-label {
    color: #88ccff; /* Brighter blue for labels */
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Details section text improvements */
.details-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(0, 15, 30, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 200, 255, 0.1);
    color: #e6f7ff;
}

.details-section h4 {
    color: #00ffcc;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

.details-section p {
    color: #cce7ff;
    line-height: 1.7;
    margin-bottom: 15px;
}

.details-section h5 {
    color: #66d9ff; /* Bright blue for subheadings */
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
}

/* Process step text */
.process-step h5 {
    color: #66d9ff; /* Bright blue */
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.process-step p {
    color: #b3e6ff; /* Light blue */
    margin-left: 0;
}

/* Case study card text */
.case-study-content h5 {
    color: #66d9ff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.case-study-content p {
    color: #cce7ff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.case-study-tag {
    display: inline-block;
    background: rgba(0, 200, 255, 0.2);
    color: #00ffcc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 200, 255, 0.3);
}

/* Tech stack items */
.tech-item {
    background: rgba(0, 200, 255, 0.15);
    color: #00ffcc;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid rgba(0, 200, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 200, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.2);
}

/* Loading text */
.modal-loading p {
    color: #88ccff;
    font-size: 1.1rem;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

/* Headings hierarchy improvements */
.modal-content-container h1,
.modal-content-container h2,
.modal-content-container h3,
.modal-content-container h4,
.modal-content-container h5,
.modal-content-container h6 {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* List items */
.modal-content-container ul,
.modal-content-container ol {
    color: #cce7ff;
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-content-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Links in modal content */
.modal-content-container a {
    color: #00ffcc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    transition: all 0.3s ease;
}

.modal-content-container a:hover {
    color: #ffffff;
    border-bottom-color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Quote styling */
.modal-content-container blockquote {
    border-left: 3px solid #00ffcc;
    padding-left: 20px;
    margin: 25px 0;
    color: #b3e6ff;
    font-style: italic;
    background: rgba(0, 30, 60, 0.2);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

/* Code or technical text */
.modal-content-container code {
    background: rgba(0, 20, 40, 0.5);
    color: #00ffcc;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 200, 255, 0.2);
}

/* Make sure all text has good contrast */
* {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle text shadow for better readability */
}

/* Improve contrast for disabled state */
.btn-quantum-secondary:disabled {
    color: #88aaff;
    border-color: #88aaff;
    opacity: 0.7;
}

/* Additional text color variables for consistency */
:root {
    --text-primary: #e6f7ff;
    --text-secondary: #b3e6ff;
    --text-accent: #00ffcc;
    --text-muted: #88aaff;
}

/* Apply to all modal text */
.quantum-modal {
    color: var(--text-primary);
}

/* Responsive text adjustments */
@media (max-width: 768px) {
    .modal-content-container {
        font-size: 0.95rem;
    }
    
    .modal-content-container p {
        font-size: 1rem;
    }
    
    .service-quick-info h3 {
        font-size: 1.6rem;
    }
    
    .details-section h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .modal-content-container {
        font-size: 0.9rem;
    }
    
    .modal-content-container p {
        font-size: 0.95rem;
    }
}
