/* ============================================
   NOSOTROS PAGE - PRETORIA MANAGEMENT
   Complete professional redesign
   ============================================ */

/* --- ANIMATIONS --- */
@keyframes nos-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}
@keyframes nos-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.08); }
}
@keyframes nos-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes nos-particle-drift {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    50%  { opacity: 1; }
    100% { transform: translate(var(--dx, 60px), var(--dy, -80px)) rotate(180deg); opacity: 0; }
}

/* --- REVEAL ANIMATION --- */
.nos-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.nos-reveal.nos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SHARED --- */
.nos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.nos-accent { color: #10b981; }
.nos-gradient-text {
    background: linear-gradient(135deg, #10b981, #34d399, #10b981);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nos-shimmer 3s linear infinite;
}
.nos-section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}
.nos-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    padding: 0.45rem 1.15rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.nos-section-tag i {
    font-size: 0.75rem;
}
.nos-section-head h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}
.nos-section-head p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================
   HERO
   ======================== */
.nos-hero {
    position: relative;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 7rem 2rem 5rem;
    overflow: hidden;
    text-align: center;
}
.nos-hero-bg {
    position: absolute; inset: 0;
    pointer-events: none;
}
.nos-hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.12);
}
.nos-hero-particle.p1 { width: 360px; height: 360px; top: -120px; right: -100px; }
.nos-hero-particle.p2 { width: 240px; height: 240px; bottom: -60px; left: -80px; }
.nos-hero-particle.p3 { width: 160px; height: 160px; top: 40%; left: 12%; animation: nos-float 8s ease-in-out infinite; }
.nos-hero-particle.p4 { width: 100px; height: 100px; bottom: 25%; right: 10%; animation: nos-float 6s ease-in-out infinite 1s; }
.nos-hero-glow {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: nos-glow-pulse 5s ease-in-out infinite;
}
.nos-hero-inner {
    position: relative; z-index: 2;
}
.nos-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    letter-spacing: 0.03em;
}
.nos-hero-badge i { color: #10b981; }
.nos-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto; margin-right: auto;
}
.nos-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    max-width: 620px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
/* Hero stats */
.nos-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.nos-hero-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.5rem 1rem;
}
.nos-hero-stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.nos-hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.nos-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ========================
   STORY
   ======================== */
.nos-story {
    padding: 6rem 0;
    background: #fff;
}
.nos-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
/* Story cards */
.nos-story-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.nos-story-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.nos-story-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
}
.nos-story-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    display: flex; align-items: center; justify-content: center;
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.nos-story-card-icon.vision { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.nos-story-card-icon.solution { background: linear-gradient(135deg, #0f172a, #1e3a5f); color: #10b981; }
.nos-story-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}
.nos-story-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* Timeline */
.nos-timeline-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}
.nos-timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nos-timeline-title i { color: #10b981; font-size: 0.95rem; }
.nos-timeline {
    position: relative;
    padding-left: 1.75rem;
}
.nos-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, #10b981);
    border-radius: 2px;
}
.nos-tl-item {
    position: relative;
    margin-bottom: 1.75rem;
}
.nos-tl-item:last-child { margin-bottom: 0; }
.nos-tl-dot {
    position: absolute;
    left: -1.75rem; top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #cbd5e1;
    z-index: 1;
    transition: all 0.3s;
}
.nos-tl-item.active .nos-tl-dot {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.nos-tl-item:hover .nos-tl-dot {
    border-color: #10b981;
}
.nos-tl-year {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    padding: 0.15rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}
.nos-tl-item.active .nos-tl-year {
    background: #10b981;
}
.nos-tl-content h4 {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.nos-tl-content p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ========================
   MISSION VISION VALUES
   ======================== */
.nos-mvv {
    padding: 6rem 0;
    background: #f8fafc;
}
.nos-mvv-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.nos-mvv-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    border: 1px solid #e2e8f0;
}
.nos-mvv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    border-color: transparent;
}
.nos-mvv-stripe {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.nos-mvv-stripe.mission { background: linear-gradient(90deg, #1e3a5f, #0f172a); }
.nos-mvv-stripe.vision  { background: linear-gradient(90deg, #10b981, #059669); }
.nos-mvv-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(30, 58, 95, 0.06);
    display: flex; align-items: center; justify-content: center;
    color: #1e3a5f;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}
.nos-mvv-card:last-child .nos-mvv-icon {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}
.nos-mvv-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.nos-mvv-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
}

/* Values */
.nos-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.nos-value {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.nos-value:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
}
.nos-value-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: #10b981;
    font-size: 1rem;
    margin: 0 auto 0.875rem;
}
.nos-value h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}
.nos-value p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}

/* ========================
   WHY CHOOSE US
   ======================== */
.nos-why {
    padding: 6rem 0;
    background: #fff;
}
.nos-reasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.nos-reason {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s ease;
    overflow: hidden;
}
.nos-reason:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}
.nos-reason-num {
    position: absolute;
    top: 1rem; right: 1.25rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(30, 58, 95, 0.04);
    line-height: 1;
}
.nos-reason-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    display: flex; align-items: center; justify-content: center;
    color: #10b981;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.nos-reason h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}
.nos-reason p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ========================
   TEAM
   ======================== */
.nos-team {
    padding: 6rem 0;
    background: #f8fafc;
}
.nos-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.nos-team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
}
.nos-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    border-color: #10b981;
}
.nos-team-photo {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.nos-team-initials {
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.15);
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.nos-team-card:hover .nos-team-initials {
    color: rgba(255,255,255,0.25);
    transform: scale(1.1);
}
.nos-team-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nos-team-card:hover .nos-team-overlay { opacity: 1; }
.nos-team-overlay a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.nos-team-overlay a:hover {
    background: #10b981;
    border-color: #10b981;
    transform: scale(1.12);
}
.nos-team-info {
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
}
.nos-team-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}
.nos-team-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}
.nos-team-info p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ========================
   TECH & SECURITY
   ======================== */
.nos-tech {
    padding: 6rem 0;
    background: #fff;
}
.nos-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.nos-tech-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s ease;
}
.nos-tech-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}
.nos-tech-card-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.nos-tech-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    display: flex; align-items: center; justify-content: center;
    color: #10b981;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.nos-tech-icon.ai { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.nos-tech-icon.infra { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; }
.nos-tech-card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.nos-tech-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.nos-tech-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.nos-tech-list li > i {
    color: #10b981;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.nos-tech-list li div strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 600;
}
.nos-tech-list li div span {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Certifications */
.nos-cert {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.nos-cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
    min-width: 80px;
}
.nos-cert-badge:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.08);
}
.nos-cert-badge i {
    font-size: 1.25rem;
    color: #1e3a5f;
}
.nos-cert-badge span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========================
   CTA FINAL
   ======================== */
.nos-cta {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    overflow: hidden;
    text-align: center;
}
.nos-cta-bg {
    position: absolute; inset: 0;
    pointer-events: none;
}
.nos-cta-glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}
.nos-cta-glow.g1 { width: 400px; height: 400px; top: -120px; right: -100px; animation: nos-glow-pulse 5s ease-in-out infinite; }
.nos-cta-glow.g2 { width: 300px; height: 300px; bottom: -100px; left: -60px; animation: nos-glow-pulse 6s ease-in-out infinite 1.5s; }
.nos-cta-inner { position: relative; z-index: 2; }
.nos-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
.nos-cta > .nos-container > div > p,
.nos-cta-inner > div > p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.nos-cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.nos-btn-primary,
.nos-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nos-btn-primary {
    background: #10b981;
    color: #fff;
}
.nos-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: #fff;
}
.nos-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
}
.nos-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    color: #fff;
}
.nos-cta-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.nos-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.nos-cta-trust span i {
    color: #10b981;
    font-size: 0.7rem;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .nos-hero h1 { font-size: 2.5rem; }
    .nos-story-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nos-mvv-cards { grid-template-columns: 1fr; }
    .nos-reasons { grid-template-columns: 1fr; }
    .nos-team-grid { grid-template-columns: repeat(2, 1fr); }
    .nos-tech-grid { grid-template-columns: 1fr; }
    .nos-values-grid { grid-template-columns: repeat(2, 1fr); }
    .nos-section-head h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nos-hero { padding: 5rem 1rem 3.5rem; }
    .nos-hero h1 { font-size: 2rem; }
    .nos-hero-sub { font-size: 0.95rem; }
    .nos-hero-stats { flex-direction: column; gap: 0; padding: 1rem; }
    .nos-hero-stat { padding: 0.75rem 0; }
    .nos-hero-stat-divider { width: 60%; height: 1px; }
    .nos-story, .nos-mvv, .nos-why, .nos-team, .nos-tech { padding: 4rem 0; }
    .nos-team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .nos-values-grid { grid-template-columns: 1fr; }
    .nos-section-head h2 { font-size: 1.65rem; }
    .nos-section-head p { font-size: 0.92rem; }
    .nos-cta h2 { font-size: 1.85rem; }
    .nos-cta-btns { flex-direction: column; }
    .nos-btn-primary, .nos-btn-secondary { justify-content: center; width: 100%; max-width: 300px; margin: 0 auto; }
    .nos-cta-trust { flex-direction: column; gap: 0.5rem; }
    .nos-cert { gap: 0.5rem; }
    .nos-cert-badge { padding: 0.75rem 1rem; }
}