/* General Reset & Variables */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #00c3ff;
    --dark-bg: #0b1120;
    --dark-card: #1f2937;
    --light-bg: #f8f9fa;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --font-kurdish: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-english: 'Outfit', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-english);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-light { background-color: rgba(255, 255, 255, 0.02); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.highlight {
    color: var(--secondary);
}

.section {
    padding: 100px 0;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--dark-bg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(11, 17, 32, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../assets/img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11,17,32,0.9) 0%, rgba(11,17,32,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 195, 255, 0.2);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 195, 255, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Partners Scroll */
.partners-bar {
    background-color: var(--dark-card);
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.partners-wrapper {
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scrollTrain 25s linear infinite;
}

.partners-track img {
    height: 60px;
    margin: 0 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.partners-track img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scrollTrain {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); /* For RTL context, but works with max-content */ }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.about-card {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.about-card i {
    font-size: 2rem;
    color: var(--secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(0, 195, 255, 0.3);
}

.service-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
    position: relative;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    right: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.service-content h3 {
    margin-top: 15px;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--text-muted);
}

/* Features Section */
.features-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-list i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-top: 5px;
}

.feature-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.features-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--dark-card);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-box h3 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: var(--white);
}

.stat-box p {
    font-weight: 600;
    color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 195, 255, 0.1);
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.2);
}

.captcha-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.success-msg { background-color: rgba(40, 167, 69, 0.1); color: #28a745; border: 1px solid #28a745; }
.error-msg { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; border: 1px solid #dc3545; }

/* Location Map Section */
.location-section {
    padding: 100px 0 0 0;
}

.location-section .section-header p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.map-container {
    margin-top: 50px;
    position: relative;
}

.map-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 -5px 40px rgba(0, 123, 255, 0.15);
}

#netsoft-map {
    width: 100%;
    height: 450px;
    z-index: 1;
}

.map-info-card {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 999;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.map-info-card:hover {
    border-color: rgba(0, 195, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.25);
    transform: translateY(-3px);
}

.map-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.map-info-details h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--white);
}

.map-info-details p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Leaflet popup custom styles */
.leaflet-popup-content-wrapper {
    background: rgba(11, 17, 32, 0.95) !important;
    color: var(--white) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 195, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: rgba(11, 17, 32, 0.95) !important;
}

.leaflet-popup-content {
    margin: 14px 18px !important;
    font-family: var(--font-english) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.leaflet-popup-content strong {
    color: var(--secondary);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
}

.custom-marker-pulse {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media (max-width: 768px) {
    .map-info-card {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
        flex-direction: row;
    }

    #netsoft-map {
        height: 350px;
    }
}

/* Footer */
.footer {
    background: #060a13;
    padding: 80px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-container, .features-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 { font-size: 2.8rem; }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        background: var(--dark-bg);
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
