/* ==========================================================================
   1. GLOBALE VARIABLEN & RESET
   ========================================================================== */
:root {
    --primary-color: #D8006C; /* FiberKom Magenta */
    --primary-hover: #b00057;
    --dark-color: #2D3139;    /* Dark Slate / Anthrazit */
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-color: #4A4D55;
    --border-color: #E2E8F0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

ul, ol {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

ul li, ol li {
    list-style: none !important;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (ALL PAGES)
   ========================================================================== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-f {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 26px;
    font-weight: 800;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 10px 0;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
}

.highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

/* ==========================================================================
   3. HERO SECTION (ALL PAGES)
   ========================================================================== */
.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f4f5f8 100%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 0, 108, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 38px;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.highlight-text {
    color: var(--primary-color);
}

.hero p {
    font-size: 17px;
    max-width: 750px;
    margin: 0 auto 30px;
    color: #666;
}

/* ==========================================================================
   4. BUTTONS & CTA SECTIONS (تم تنظيف الحدود وإصلاح الخطوط الجانبية تماماً)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(216, 0, 108, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

.cta-section {
    padding: 70px 20px;
    text-align: center;
    background-color: var(--light-bg);
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 5;
}

.cta-section h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.3;
    border: none !important;
}

.cta-section p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ==========================================================================
   5. FEATURES GRID & LEISTUNGEN CARDS (إصلاح تباعد الكروت وارتفاعها)
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: -40px auto 60px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* توزيع مرن يمنع تشوه الكارت الرابع */
    gap: 30px;
    margin: 50px 0;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: rgba(216, 0, 108, 0.2);
}

.icon-box {
    width: 65px;
    height: 65px;
    background-color: rgba(216, 0, 108, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.service-card h3, .feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 20px;
    text-align: center;
}

.service-card p, .feature-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.card-list {
    margin-top: auto;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.card-list li i {
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   6. INFO SECTIONS & NE3/NE4 LAYOUT
   ========================================================================== */
.info-section {
    background-color: var(--white);
    padding: 70px 0;
}

.info-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.info-container.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.info-text h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.info-box-card {
    background: #F8F9FC;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.clean-info-list {
    margin: 20px 0 30px;
}

.clean-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fc;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #eef1f6;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.clean-info-list li i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.clean-info-list li div {
    font-size: 14px;
    color: #444;
}

.clean-info-list li strong {
    color: #111;
}

/* ==========================================================================
   7. HIGHLIGHT CARDS & SVGs (INTERACTIVE NE3/NE4)
   ========================================================================== */
.highlight-card {
    background-color: #f8f9fc;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.highlight-card:hover {
    background-color: var(--white);
    box-shadow: 0 8px 25px rgba(216, 0, 108, 0.08);
}

.highlight-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.highlight-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.fiber-interactive-box {
    width: 100%;
    height: 120px;
    background: #12141a;
    border-radius: 8px;
    margin-top: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fiber-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fiber-path-bg {
    fill: none;
    stroke: #2a2f3e;
    stroke-width: 4;
    stroke-linecap: round;
}

.fiber-path-pulse {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 20 100;
    stroke-dashoffset: 120;
    animation: fiberPulse 2.5s infinite linear;
    filter: drop-shadow(0 0 6px var(--primary-color));
}

.highlight-card:hover .fiber-path-pulse {
    animation-duration: 1.2s;
}

.node-bg {
    fill: #1a1d26;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.node-core {
    fill: var(--primary-color);
    animation: nodeGlow 1.5s infinite alternate ease-in-out;
}

.node-label {
    fill: #a0a5b1;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    text-anchor: middle;
    font-weight: 500;
}

@keyframes fiberPulse {
    0% { stroke-dashoffset: 120; }
    100% { stroke-dashoffset: -120; }
}

@keyframes nodeGlow {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 8px var(--primary-color)); }
}

/* ==========================================================================
   8. CANVAS & INTERACTIVE CITY SECTION (STARTSEITE)
   ========================================================================== */
.fiber-city-section {
    background: #12141a;
    padding: 70px 0;
    text-align: center;
    color: var(--white);
    margin-top: 40px;
}

.fiber-city-header h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.fiber-city-header p {
    color: #a0a5b1;
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 15px;
}

.canvas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#fiberCityCanvas {
    width: 100% !important;
    max-width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #0e1017 0%, #161922 60%, #0d0f14 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    display: block;
}

/* ==========================================================================
   9. ABOUT & CONTACT SECTIONS (UEBER-UNS & KONTAKT)
   ========================================================================== */
.about-section {
    padding: 70px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.about-lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto 15px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.contact-section {
    padding: 70px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--dark-color);
}

.contact-sub {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .info-container, 
    .info-container.reverse, 
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}