/* ==========================================================================
   Turning Point — Networking & Software Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --tp-bg: #0b1120;
    --tp-bg-alt: #111827;
    --tp-surface: #151f32;
    --tp-surface-raised: #1a2740;
    --tp-border: rgba(56, 189, 248, 0.15);
    --tp-border-strong: rgba(56, 189, 248, 0.35);
    --tp-text: #e2e8f0;
    --tp-text-muted: #94a3b8;
    --tp-cyan: #22d3ee;
    --tp-blue: #38bdf8;
    --tp-green: #34d399;
    --tp-purple: #a78bfa;
    --tp-glow-cyan: rgba(34, 211, 238, 0.25);
    --tp-glow-blue: rgba(56, 189, 248, 0.2);
    --tp-font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --bs-primary: #0ea5e9;
    --bs-primary-rgb: 14, 165, 233;
    --bs-link-color: #38bdf8;
    --bs-link-hover-color: #22d3ee;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--tp-bg);
    color: var(--tp-text);
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(52, 211, 153, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(167, 139, 250, 0.06), transparent);
    pointer-events: none;
}

/* ── Hero ── */
.hero-section {
    position: relative;
    background: linear-gradient(165deg, #0f172a 0%, #0b1120 45%, #0c1929 100%);
    border-bottom: 1px solid var(--tp-border);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.08) 0%, transparent 35%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tp-cyan), var(--tp-green), transparent);
    opacity: 0.6;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    background: linear-gradient(135deg, #f8fafc 0%, var(--tp-cyan) 50%, var(--tp-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--tp-text-muted) !important;
}

.tech-tag {
    font-family: var(--tp-font-mono);
    font-size: 0.85em;
    color: var(--tp-cyan);
    font-weight: 500;
}

.tech-badge {
    background: rgba(14, 165, 233, 0.12) !important;
    color: var(--tp-cyan) !important;
    border: 1px solid var(--tp-border);
    font-family: var(--tp-font-mono);
    font-size: 0.8rem !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── أزرار ── */
.btn-tech-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #0b1120;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--tp-glow-cyan);
    transition: all 0.3s ease;
}

.btn-tech-primary:hover {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    color: #0b1120;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--tp-glow-cyan);
}

.btn-tech-outline {
    background: transparent;
    border: 1px solid var(--tp-border-strong);
    color: var(--tp-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tech-outline:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--tp-cyan);
    color: var(--tp-cyan);
}

.btn-outline-primary {
    border-color: var(--tp-border-strong);
    color: var(--tp-blue);
}

.btn-outline-primary:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--tp-cyan);
    color: var(--tp-cyan);
}

.text-primary {
    color: var(--tp-cyan) !important;
}

/* ── عناوين الأقسام ── */
.section-label {
    font-family: var(--tp-font-mono);
    font-size: 0.75rem;
    color: var(--tp-green);
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.section-title {
    color: #f1f5f9 !important;
}

.section-desc {
    color: var(--tp-text-muted);
}

/* ── Features ── */
.features-section {
    background: var(--tp-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-box {
    border-radius: 16px;
    border: 1px solid var(--tp-border);
    background: linear-gradient(145deg, var(--tp-surface) 0%, var(--tp-surface-raised) 100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

.card {
    --bs-card-bg: transparent;
    --bs-card-border-color: var(--tp-border);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tp-cyan), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-box:hover {
    border-color: var(--tp-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box h4 {
    color: #f1f5f9;
}

.feature-box .text-muted {
    color: var(--tp-text-muted) !important;
}

.feature-box .rounded-circle {
    border: 1px solid var(--tp-border);
}

.feature-box .bg-primary-subtle {
    background: rgba(14, 165, 233, 0.15) !important;
}

.feature-box .bg-success-subtle {
    background: rgba(52, 211, 153, 0.15) !important;
}

.feature-box .bg-info-subtle {
    background: rgba(56, 189, 248, 0.12) !important;
}

.feature-box .text-primary { color: var(--tp-blue) !important; }
.feature-box .text-success { color: var(--tp-green) !important; }
.feature-box .text-info { color: var(--tp-cyan) !important; }

/* ── Team ── */
.team-section {
    background: linear-gradient(180deg, var(--tp-bg) 0%, var(--tp-bg-alt) 50%, var(--tp-bg) 100%);
}

#team {
    background: transparent;
}

.team-card {
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(160deg, var(--tp-surface) 0%, var(--tp-surface-raised) 100%);
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.06), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card {
    position: relative;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 24px var(--tp-glow-blue);
    border-color: var(--tp-border-strong);
}

.team-card:hover::after {
    opacity: 1;
}

.team-img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 8px;
    border: 3px solid var(--tp-border);
    transition: all 0.4s ease-in-out;
    background: var(--tp-bg);
    z-index: 2;
    position: relative;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
}

.team-card:hover .team-img-wrapper {
    border-color: var(--tp-cyan);
    box-shadow: 0 0 28px var(--tp-glow-cyan);
    transform: scale(1.03);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h5 {
    font-size: 1.4rem;
    color: #f1f5f9 !important;
    position: relative;
    z-index: 1;
}

.team-card .text-primary {
    font-size: 0.95rem;
    font-family: var(--tp-font-mono);
    font-weight: 500 !important;
}

.team-card p.text-muted {
    line-height: 1.6;
    color: var(--tp-text-muted) !important;
}

.team-img-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.team-member-btn {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.team-member-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--tp-glow-blue);
}

.team-card .bi {
    font-size: 1.3rem;
    color: var(--tp-text-muted);
    transition: color 0.3s ease;
}

.team-card .bi:hover {
    color: var(--tp-cyan);
}

.text-dark {
    color: #f1f5f9 !important;
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, var(--tp-bg-alt) 0%, #070b14 100%);
    border-top: 1px solid var(--tp-border);
    color: var(--tp-text-muted);
}

.footer-tech-line {
    height: 2px;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, var(--tp-cyan), var(--tp-green));
    border-radius: 2px;
    opacity: 0.7;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 991px) {
    .team-img-wrapper {
        width: 150px;
        height: 150px;
    }

    #team .container.py-5,
    .team-section .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section .container.py-5,
    section.py-5 .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-section .display-5,
    section.py-5 .display-5 {
        font-size: 1.85rem;
    }

    .hero-section .lead.fs-5,
    section.py-5 .lead.fs-5 {
        font-size: 0.95rem !important;
    }

    .hero-section .btn-lg,
    section.py-5 .btn-lg {
        display: block;
        width: 100%;
        margin: 0 0 0.5rem 0 !important;
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    #features .container.py-4,
    .features-section .container.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    #features h2,
    .features-section h2 {
        font-size: 1.5rem;
    }

    #features .feature-box,
    .features-section .feature-box {
        padding: 1.25rem !important;
    }

    .team-section.py-5,
    #team.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .team-section .container.py-5,
    .team-section .container.py-4,
    #team .container.py-5,
    #team .container.py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 1rem !important;
    }

    .team-section .display-6,
    #team .display-6 {
        font-size: 1.5rem;
    }

    .team-section h2,
    #team h2 {
        font-size: 1.5rem;
    }

    .team-section .text-center.mb-5,
    #team .text-center.mb-5,
    #team .text-center.mb-5pb-3 {
        margin-bottom: 1.5rem !important;
    }

    .team-section .row.g-5,
    #team .row.g-5 {
        --bs-gutter-y: 1.25rem;
        --bs-gutter-x: 0.75rem;
    }

    .team-section .row.g-4,
    #team .row.g-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.5rem;
    }

    .team-section .col-10,
    #team .col-10 {
        max-width: 300px;
    }

    .team-card.p-5 {
        padding: 1.25rem !important;
    }

    .team-card.p-4 {
        padding: 0.85rem !important;
    }

    .team-card {
        border-radius: 18px;
    }

    .team-card:hover {
        transform: translateY(-6px);
    }

    .team-img-wrapper {
        width: 90px;
        height: 90px;
        padding: 5px;
        border-width: 2px;
    }

    .team-card.p-5 .team-img-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 0.75rem !important;
    }

    .team-card.p-4 .team-img-wrapper {
        width: 72px;
        height: 72px;
        margin-bottom: 0.5rem !important;
    }

    .team-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0.15rem !important;
    }

    .team-card.p-5 h5 {
        font-size: 1.05rem;
    }

    .team-card .text-primary {
        font-size: 0.75rem;
        margin-bottom: 0.5rem !important;
    }

    .team-member-btn {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
    }

    .team-member-btn .bi {
        font-size: 0.85rem;
    }

    .site-footer small,
    footer small {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .section-label {
        font-size: 0.65rem;
    }
}

@media (hover: none) {
    .team-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        border-color: var(--tp-border);
    }

    .team-card:hover .team-img-wrapper {
        transform: none;
        border-color: var(--tp-border);
        box-shadow: none;
    }

    .feature-box:hover {
        transform: none;
    }
}
