/* Services CSS */

.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.feature-section {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-box {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(147, 51, 234, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #818cf8;
}

.tech-specs {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.check-icon {
    color: #10b981;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 200px;
    /* Fixed height for consistency */
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: #4f46e5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info h4 {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e0e6ed;
    padding: 20px 0;
    font-size: 1.2rem;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #4f46e5;
    text-decoration: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-hero {
        padding: 6rem 0 4rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .spec-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .modal-content {
        width: 95%;
    }
}

/* CSS Mockup Container */
.mock-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #0f172a;
    display: flex;
    flex-direction: column;
}

/* Common UI Elements */
.ui-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20%;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-header {
    height: 15%;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.ui-content {
    margin-left: 20%;
    padding: 1rem;
    height: 85%;
    display: grid;
    gap: 0.5rem;
}

/* Dashboard Mockup */
.mock-dashboard .ui-content {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

.ui-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    position: relative;
}

.ui-card.large {
    grid-column: span 2;
}

/* Mobile Mockup */
.mock-mobile {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.mobile-frame {
    width: 60%;
    height: 90%;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.mobile-header {
    height: 40px;
    background: rgba(79, 70, 229, 0.2);
    width: 100%;
}

.mobile-list-item {
    height: 30px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* List Mockup */
.mock-list .ui-content {
    display: flex;
    flex-direction: column;
}

.ui-row {
    height: 25px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

/* Animations in Modal */
.modal-content-item {
    animation: zoomIn 0.3s ease;
}