/* Advanced Services Section Styles */
/* Services Section */
#services {
    padding: 80px 20px;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to bottom, #000e17, #000810);
    overflow: hidden;
    perspective: 1000px;
}

#services .services-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

#services .services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#services .services-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(56, 182, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: particleFloat 20s linear infinite;
}

#services .services-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(56, 182, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 182, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top;
    animation: gridFlow 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

@keyframes gridFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 30px;
    }
}

#services h2 {
    color: #38b6ff;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cyber-glow-text {
    filter: drop-shadow(0 0 10px rgba(56, 182, 255, 0.7)) drop-shadow(0 0 20px rgba(56, 182, 255, 0.4));
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(56, 182, 255, 0.7)) drop-shadow(0 0 20px rgba(56, 182, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(56, 182, 255, 0.9)) drop-shadow(0 0 30px rgba(56, 182, 255, 0.6));
    }
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(56, 182, 255, 0.2) 20%, 
        rgba(56, 182, 255, 0.8) 50%, 
        rgba(56, 182, 255, 0.2) 80%, 
        transparent 100%);
    top: 0;
    left: 0;
    box-shadow: 0 0 10px 1px rgba(56, 182, 255, 0.5);
    animation: scannerMove 5s ease-in-out infinite;
    z-index: 10;
}

@keyframes scannerMove {
    0%, 100% {
        transform: translateY(100px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(calc(100% - 100px));
    }
}

#services .service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    perspective: 2000px;
}

/* Service Cards - No Flip */
.service-card {
    width: 320px;
    height: 450px; /* Increased height to fit all content */
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    margin-bottom: 30px;
    transition: transform 0.3s ease-out;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
}

.service-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.service-card-content {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(1, 22, 39, 0.8);
    border: 2px solid rgba(56, 182, 255, 0.5);
    box-shadow: 
        0 0 15px rgba(56, 182, 255, 0.3),
        inset 0 0 10px rgba(56, 182, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    transform-style: preserve-3d;
    backdrop-filter: blur(5px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-card-content {
    box-shadow: 
        0 0 25px rgba(56, 182, 255, 0.5),
        inset 0 0 15px rgba(56, 182, 255, 0.2);
    border-color: rgba(56, 182, 255, 0.8);
}

.service-card-content h3 {
    color: #38b6ff;
    margin: 10px 0;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.service-card-content p {
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Hide old front/back styles */
.service-card-front, .service-card-back {
    display: none;
}

/* Card structure - maintain 3D depth */
.card-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    gap: 10px;
}

.service-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.service-tech-badges span {
    background: rgba(56, 182, 255, 0.2);
    border: 1px solid rgba(56, 182, 255, 0.4);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #38b6ff;
}

.card-hologram {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    perspective: 1000px;
}

.hologram-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38b6ff;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 5px rgba(56, 182, 255, 0.8));
    animation: hologramFloat 3s ease-in-out infinite, hologramRotate 15s linear infinite;
    position: relative;
}

.hologram-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.15) 0%, transparent 70%);
    animation: hologramPulse 3s ease-in-out infinite;
}

.hologram-icon::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 15px;
    background: radial-gradient(ellipse, rgba(56, 182, 255, 0.3) 0%, transparent 70%);
    bottom: -15px;
    filter: blur(3px);
    animation: hologramShadow 3s ease-in-out infinite;
}

@keyframes hologramFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes hologramRotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes hologramPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes hologramShadow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

.service-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: #38b6ff;
    opacity: 0.7;
}

.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}

.top-right {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.service-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        transparent 0%, 
        transparent 35%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 65%, 
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmerEffect 5s linear infinite;
}

@keyframes shimmerEffect {
    0% {
        background-position: -200% -200%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.2) 0%, transparent 70%);
    filter: blur(5px);
    opacity: 0.7;
}

.e1 {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 10%;
    animation: floatElement 15s ease-in-out infinite;
}

.e2 {
    width: 70px;
    height: 70px;
    top: 50%;
    right: 15%;
    animation: floatElement 20s ease-in-out infinite reverse;
}

.e3 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    animation: floatElement 18s ease-in-out infinite 2s;
}

.e4 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 30%;
    animation: floatElement 22s ease-in-out infinite 1s;
}

.e5 {
    width: 55px;
    height: 55px;
    top: 30%;
    right: 40%;
    animation: floatElement 25s ease-in-out infinite 3s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 20px);
    }
    50% {
        transform: translate(20px, 50px);
    }
    75% {
        transform: translate(-30px, 30px);
    }
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 16, 0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.service-modal.active {
    display: flex;
    animation: modalFadeIn 0.5s forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.service-modal-content {
    background: rgba(1, 22, 39, 0.9);
    border: 2px solid #38b6ff;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(56, 182, 255, 0.3);
    transform: translateY(30px);
    animation: modalSlideUp 0.5s forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
    }
    to {
        transform: translateY(0);
    }
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(56, 182, 255, 0.3);
    padding-bottom: 15px;
}

.service-modal-header h3 {
    color: #38b6ff;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.service-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.service-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #38b6ff;
}

.service-modal-body {
    display: flex;
    margin-bottom: 20px;
}

.service-modal-hologram {
    width: 200px;
    height: 200px;
    position: relative;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-projection {
    color: #38b6ff;
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hologramRotate 15s linear infinite, hologramPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(56, 182, 255, 0.8));
    z-index: 2;
}

.hologram-base {
    position: absolute;
    bottom: 0;
    width: 80%;
    height: 10px;
    background: linear-gradient(to right, transparent, #38b6ff, transparent);
    border-radius: 50%;
    filter: blur(3px);
    animation: hologramBaseGlow 2s ease-in-out infinite;
}

.hologram-light {
    position: absolute;
    width: 2px;
    height: 100%;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to top, rgba(56, 182, 255, 0.7), transparent);
    animation: hologramLightFlicker 0.5s linear infinite;
}

@keyframes hologramBaseGlow {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(56, 182, 255, 0.5), 0 0 20px rgba(56, 182, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(56, 182, 255, 0.7), 0 0 30px rgba(56, 182, 255, 0.5);
    }
}

@keyframes hologramLightFlicker {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
}

.service-modal-info {
    flex: 1;
}

.service-modal-info p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-modal-features h4 {
    color: #38b6ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-modal-features ul {
    color: #ffffff;
    padding-left: 20px;
}

.service-modal-features ul li {
    margin-bottom: 8px;
    position: relative;
}

.service-modal-features ul li::before {
    content: "•";
    color: #38b6ff;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.service-modal-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(56, 182, 255, 0.3);
}

/* Book Now Button Updated Style */
#services .book-now-btn {
    display: inline-block;
    position: relative;
    background: linear-gradient(45deg, #0077b6, #38b6ff);
    color: #ffffff;
    border: none;
    margin-top: 15px;
    margin-bottom: 5px;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.4);
    overflow: hidden;
    z-index: 1;
    left: auto;
    transform: none;
    width: auto;
}

#services .book-now-btn::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: all 0.6s;
    z-index: -1;
}

#services .book-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(56, 182, 255, 0.6);
    background: linear-gradient(45deg, #38b6ff, #0077b6);
}

#services .book-now-btn:hover::before {
    left: 100%;
}

#services .book-now-btn i {
    margin-right: 8px;
}

.book-now-btn.modal-btn {
    display: inline-block;
    margin-top: 0;
    width: auto;
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #services {
        padding: 60px 15px;
    }
    
    #services h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .service-card {
        width: 280px;
        height: 380px; /* Increased height to ensure all content fits */
    }
    
    .service-card-content {
        padding: 20px 15px; /* Reduced horizontal padding */
    }
    
    .service-modal-body {
        flex-direction: column;
    }
    
    .service-modal-hologram {
        margin: 0 auto 20px;
    }
    
    .hologram-icon {
        font-size: 2rem;
    }
    
    /* Adjust tech badges for better fit */
    .service-tech-badges span {
        margin: 3px;
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    
    /* Ensure button fits with more top space */
    #services .book-now-btn {
        margin-top: 15px; /* Increased top margin */
        margin-bottom: 10px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    #services h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        width: 100%;
        max-width: 280px;
        height: 400px; /* Further increased for extra small screens */
    }
    
    .service-card-content {
        padding: 15px 12px; /* Further reduced padding */
    }
    
    .service-card-content p {
        margin-bottom: 8px;
        font-size: 0.9rem; /* Smaller text */
    }
    
    .card-hologram {
        width: 90px; /* Slightly smaller hologram */
        height: 90px;
    }
    
    .service-modal-content {
        padding: 20px;
    }
    
    .service-modal-header h3 {
        font-size: 1.5rem;
    }
    
    /* Ensure service tech badges are compact */
    .service-tech-badges {
        margin: 5px 0;
    }
    
    /* Adjust book now button for small screens with more top space */
    #services .book-now-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
        margin-top: 15px; /* Increased top margin */
    }
}

@media screen and (max-width: 360px) {
    .service-card {
        height: 420px; /* Even more height for very small screens */
    }
    
    .service-card-content h3 {
        font-size: 1.3rem;
        margin: 8px 0;
    }
    
    .card-hologram {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .hologram-icon {
        font-size: 1.8rem;
    }
    
    .service-tech-badges span {
        margin: 2px;
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    /* Add even more top space to buttons on very small screens */
    #services .book-now-btn {
        margin-top: 18px; /* Further increased top margin */
    }
} 