/* Contact Section - Professional & Creative Design */

.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: 'NSS';
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    font-weight: 900;
    color: rgba(1, 78, 96, 0.03);
    z-index: 1;
    pointer-events: none;
}

.contact-content .map-container {
    height: 100%;
    min-height: 735px!important;
    position: relative;
    /* background: url(../../img/new/network.jpg) center center / cover; */
    border-radius: 15px;
    overflow: hidden;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.contact-header {
    text-align: center;
    margin-bottom: 10px;
    opacity: 0;
    animation: slideInFromTop 1.2s ease-out 0.3s forwards;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #014e60;
    margin-bottom: 5px;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.6s forwards;
}

.contact-subtitle {
    font-size: 1rem;
    color: #012B3D;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0;
    animation: slideInFromBottom 1s ease-out 0.9s forwards;
}


/* Map Section */

/* .map-section {
    margin-bottom: 50px;
    position: relative;
} */

.map-container {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(1, 78, 96, 0.1);
    position: relative;
    height: 500px;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 78, 96, 0.05), rgba(1, 43, 61, 0.05));
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    position: absolute;
    
}


/* Interactive Map Markers */

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #014e60;
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 78, 96, 0.3);
}

.map-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.map-marker:hover {
    transform: scale(1.3);
    box-shadow: 0 8px 25px rgba(1, 78, 96, 0.5);
}

.map-marker.active {
    background: #012B3D;
    transform: scale(1.2);
}


/* Marker Positions */

.marker-egypt {
    top: 45%;
    left: 55%;
}

.marker-saudi {
    top: 42%;
    left: 62%;
}

.marker-tanzania {
    top: 55%;
    left: 58%;
}

.marker-gabon {
    top: 52%;
    left: 45%;
}


/* Contact Content */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}


/* Map Section inside contact-content */

.contact-content .map-section {
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInFromLeft 1.2s ease-out 1.5s forwards;
}

/* .contact-content .map-container {
    height: 100%;
    min-height: 530px;
    background: url('../../img/new/network.jpg') center center;
    background-size: cover;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
} */

.contact-content .map-info-content {
    height: 96%;
    min-height: 520px;
}

.contact-content .map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 78, 96, 0.3), rgba(1, 43, 61, 0.4));
    z-index: 1;
}

/*.contact-content .map-container iframe {*/
/*    display: none;*/
/*}*/

.contact-content .map-markers {
    z-index: 3;
    pointer-events: auto;
}

.contact-content .map-marker {
    width: 25px;
    height: 25px;
    background: #ffffff;
    border: 3px solid #014e60;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: markerPopIn 0.8s ease-out forwards;
}

.contact-content .map-marker:nth-child(1) {
    animation-delay: 2s;
}

.contact-content .map-marker:nth-child(2) {
    animation-delay: 2.2s;
}

.contact-content .map-marker:nth-child(3) {
    animation-delay: 2.4s;
}

.contact-content .map-marker:nth-child(4) {
    animation-delay: 2.6s;
}

.contact-content .map-marker::before {
    width: 10px;
    height: 10px;
    background: #014e60;
}

.contact-content .map-marker:hover {
    transform: scale(1.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.contact-content .map-marker.active {
    background: #0fd720;
    border-color: #ffffff;
}

.contact-content .map-marker.active::before {
    background: #ffffff;
}


/* Map Info Content Styles */

.map-info-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(1, 78, 96, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 530px;
    display: flex;
    flex-direction: column;
}

.map-info-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 78, 96, 0.02), rgba(1, 43, 61, 0.02));
    pointer-events: none;
}

.map-info-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #014e60;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.map-info-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(135deg, #014e60, #012B3D);
    border-radius: 2px;
}

.info-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    position: relative;
    z-index: 2;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.info-placeholder p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 250px;
}


/* Office Info Display */

.office-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.office-info h4 {
    color: #014e60;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}


/* 2x2 grid of info boxes inside the left panel */

.office-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-box {
    background: rgba(1, 78, 96, 0.05);
    border: 1px solid rgba(1, 78, 96, 0.12);
    border-radius: 12px;
    padding: 16px;
}

.info-box strong {
    display: block;
    color: #014e60;
    margin-bottom: 6px;
}

.info-box p {
    margin: 0;
    color: #012B3D;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-box.status {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Active card highlight when a country is selected */

.info-box.active {
    border-color: #014e60;
    box-shadow: 0 8px 25px rgba(1, 78, 96, 0.2);
}

.office-detail {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(1, 78, 96, 0.05);
    border-radius: 10px;
    border-left: 3px solid #014e60;
}

.office-detail strong {
    color: #014e60;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.office-detail p {
    color: #012B3D;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.office-status {
    margin-top: 20px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #014e60, #012B3D);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(1, 78, 96, 0.3);
}


/* Contact Info */

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}


/* .contact-info {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
} */

.contact-item {
    /* background: #ffffff; */
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(1, 78, 96, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #014e60, #012B3D);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(1, 78, 96, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #014e60, #012B3D);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(1, 78, 96, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #014e60;
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 0.9rem;
    color: #012B3D;
    line-height: 1.4;
    margin: 0;
}


/* Country Cards */

.country-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(1, 78, 96, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(1, 78, 96, 0.15);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.country-flag {
    font-size: 1.5rem;
}

.country-name {
    font-size: 1rem;
    font-weight: 700;
    color: #014e60;
}

.country-status {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
}

.country-details {
    font-size: 0.85rem;
    color: #012B3D;
    line-height: 1.4;
}

.country-details p {
    margin: 5px 0;
}


/* Active states for interactive elements */

.country-card.active {
    border-color: #014e60;
    box-shadow: 0 8px 25px rgba(1, 78, 96, 0.25);
    transform: translateY(-5px);
}

.country-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #014e60, #012B3D);
    transform: scaleX(1);
}

.map-marker {
    pointer-events: auto;
}


/* Map Info Content */

.map-info-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(1, 78, 96, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 530px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 1.2s ease-out 1.2s forwards;
}

.map-info-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 78, 96, 0.02), rgba(1, 43, 61, 0.02));
    pointer-events: none;
}

.map-info-content h3 {
    font-size: 1em;
    font-weight: 700;
    color: #014e60;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.map-info-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(135deg, #014e60, #012B3D);
    border-radius: 2px;
}

.info-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    position: relative;
    z-index: 2;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.info-placeholder p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 250px;
}


/* Office Info Display */

.office-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.office-info h4 {
    color: #014e60;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.office-detail {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(1, 78, 96, 0.05);
    border-radius: 10px;
    border-left: 3px solid #014e60;
}

.office-detail strong {
    color: #014e60;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.office-detail p {
    color: #012B3D;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.office-status {
    margin-top: 20px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #014e60, #012B3D);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(1, 78, 96, 0.3);
}


/* Responsive Design */

@media (max-width: 1200px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    .office-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .map-overlay-info {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    .contact-title {
        font-size: 2rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .office-info-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        padding: 0 1rem;
    }
    .map-info-content {
        padding: 25px;
        min-height: 400px;
    }
    .contact-item {
        padding: 20px;
    }
    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 15px;
    }
    .map-info-content {
        padding: 20px;
        min-height: 350px;
    }
    .map-info-content h3 {
        font-size: 1.4rem;
    }
    .map-container {
        height: 300px;
    }
}


/* Advanced Animation Keyframes */

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes markerPopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Enhanced hover animations */

.contact-title:hover {
    animation: titleGlow 0.6s ease-in-out;
}

@keyframes titleGlow {
    0%,
    100% {
        text-shadow: 0 0 5px rgba(1, 78, 96, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(1, 78, 96, 0.6), 0 0 30px rgba(1, 78, 96, 0.4);
    }
}

.map-info-content:hover {
    animation: contentPulse 0.8s ease-in-out;
}

@keyframes contentPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}


/* Smooth transitions for all animated elements */

.contact-header,
.contact-title,
.contact-subtitle,
.map-info-content,
.contact-content .map-section,
.contact-content .map-marker,
.info-placeholder {
    transition: all 0.3s ease;
}