/* --- Fonts & Core Blueprint Styles --- */
@import url('https://googleapis.com');

:root {
    --primary-blue: #0040fe;
    --dark-blue: #0a2540;
    --light-blue: #e6f0fa;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 102, 204, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'cairo', sans-serif;
}



/* --- Square Blueprint Frame --- */
.services-square-box {
    width: 100%;
    max-width: 1400px;
    height: 450px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative; /* Imperative for locking absolute overlays internally */
	margin: 0 auto;
}

/* --- Dynamic Tab Navigation Header --- */
.tabs-navigation-header {
    display: flex;
    background: #ffffff;
    border-bottom: 2px solid var(--light-blue);
    height: 85px;
    width: 100%;
    z-index: 10;
}

.nav-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
    color: #4a5568;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid transparent;
}

/* --- Advanced Hover Animation Controls for Icons --- */
.tab-icon-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tab-icon-frame svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-tab-btn:hover {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.02);
}

.nav-tab-btn:hover .tab-icon-frame {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.25);
}

.nav-tab-btn[data-service-tab="odoo"]:hover .tab-icon-frame svg { transform: rotate(15deg); }
.nav-tab-btn[data-service-tab="apps"]:hover .tab-icon-frame svg { transform: scale(1.15); }
.nav-tab-btn[data-service-tab="web"]:hover .tab-icon-frame svg { transform: rotate(-10deg) scale(1.1); }
.nav-tab-btn[data-service-tab="consl"]:hover .tab-icon-frame svg { transform: rotate(-10deg) scale(1.1); }


.nav-tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.04);
}
.nav-tab-btn.active .tab-icon-frame {
    background: var(--primary-blue);
    color: #ffffff;
}

/* --- Panel Display Elements --- */
.panels-display-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    z-index: 1;
}

.service-panel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    padding: 0 50px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.service-panel-item.active {
    opacity: 1;
    visibility: visible;
}

/* --- Parallax & Motion Background Engine --- */
.motion-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.2s linear; /* Responsive tracking response speeds */
    z-index: 1;
}

.panel-content-overlay {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: var(--text-light);
    animation: contentSlideIn 0.5s ease forwards;
}

.service-panel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 35%, rgba(10, 37, 64, 0.4) 100%);
    z-index: 1;
}

.panel-content-overlay h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.panel-content-overlay p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.action-panel-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-panel-btn:hover {
    background: #65D0F4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
}

/* --- Premium Glassmorphism Pop-up System Layout --- */
.glass-modal-overlay {
    position: absolute;
    top: 85px; /* Sits cleanly beneath the navigation bar header */
    left: 0;
    width: 100%;
    height: calc(100% - 85px);
    background: rgba(10, 37, 64, 0.3);
    backdrop-filter: blur(0px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(12px);
}

.glass-modal-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(10, 37, 64, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 35px;
    border-radius: 16px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.glass-modal-overlay.active .glass-modal-card {
    transform: scale(1) translateY(0);
}

.glass-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.glass-modal-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.glass-modal-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
	font-family: elmessiri;
}

.glass-modal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.glass-modal-form {
    display: flex;
    gap: 10px;
}

.glass-modal-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.glass-modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-modal-form input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

.glass-submit-btn {
    padding: 0 20px;
    background: #ffffff;
    color: var(--dark-blue);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.glass-submit-btn:hover {
    background: var(--light-blue);
    transform: scale(1.02);
}

@keyframes contentSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .services-square-box { height: auto; min-height: 580px; }
    .tabs-navigation-header { flex-direction: column; height: auto; }
    .nav-tab-btn { height: 60px; border-bottom: none; border-right: 3px solid transparent; justify-content: flex-start; }
    .nav-tab-btn.active { border-right-color: var(--primary-blue); }
    .service-panel-item { padding: 40px 20px; }
    .panel-content-overlay h2 { font-size: 1.4rem; }
    .glass-modal-overlay { top: 0; height: 100%; border-radius: 20px; }
    .glass-modal-form { flex-direction: column; }
    .glass-submit-btn { height: 45px; }
}
