/* ============================================================
   Persistent Systems India - Main Stylesheet
   Bootstrap 5 + Custom Styles
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --navy: #0A2240;
    --navy-dark: #061529;
    --orange: #F26522;
    --orange-dark: #d4541a;
    --gray-light: #F8F9FA;
    --gray-mid: #E9ECEF;
    --text-muted-custom: #6c757d;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
    font-family: var(--font-family);
    color: #1a1a2e;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; }

/* ---- Colors ---- */
.bg-navy { background-color: var(--navy) !important; }
.bg-orange { background-color: var(--orange) !important; }
.text-navy { color: var(--navy) !important; }
.text-orange { color: var(--orange) !important; }

/* ---- Buttons ---- */
.btn-orange {
    background-color: var(--orange);
    color: #fff;
    border: 2px solid var(--orange);
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-orange:hover, .btn-orange:focus {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}
.btn-navy {
    background-color: var(--navy);
    color: #fff;
    border: 2px solid var(--navy);
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-navy:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ---- Navbar ---- */
#mainNav {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
#mainNav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12) !important; }
.navbar-nav .nav-link {
    color: var(--navy) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: all 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--orange) !important; background: rgba(242,101,34,0.06); }
.dropdown-item { font-size: 0.875rem; padding: 0.5rem 1rem; color: var(--navy); transition: all 0.15s; }
.dropdown-item:hover { background: rgba(242,101,34,0.08); color: var(--orange); }
.mega-menu { border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); }

/* ---- Brand Logo ---- */
.brand-logo {
    width: 40px; height: 40px;
    background: var(--orange);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-ps { color: #fff; font-weight: 900; font-size: 0.85rem; letter-spacing: -0.5px; }
.brand-name { font-weight: 900; font-size: 1rem; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: 0.65rem; color: var(--text-muted-custom); line-height: 1; }

/* ---- Topbar ---- */
.topbar { background-color: var(--navy); }
.hover-orange:hover { color: var(--orange) !important; }

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0d3060 60%, #1a4a7a 100%);
    min-height: 85vh;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem; color: #fff; font-weight: 500;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.7;transform:scale(1.2)} }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; color: #fff; line-height: 1.1; }
.hero-title .highlight { color: var(--orange); }

/* ---- Stats Section ---- */
.stats-section { background: var(--orange); }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-top: 4px; }

/* ---- Section Styles ---- */
.section-divider {
    width: 48px; height: 4px;
    background: var(--orange);
    border-radius: 2px;
    margin-bottom: 1rem;
}
.section-label { font-size: 0.8rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Cards ---- */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important; }
.service-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    height: 100%;
    transition: all 0.3s ease;
}
.service-card:hover { border-color: var(--orange); box-shadow: 0 8px 24px rgba(242,101,34,0.12); transform: translateY(-4px); }
.service-icon {
    width: 52px; height: 52px;
    background: rgba(242,101,34,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.industry-card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}
.industry-card:hover { border-color: var(--orange); box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.insight-card { border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.insight-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }

/* ---- Client Logos ---- */
.client-logo {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
    object-fit: contain;
}
.client-logo:hover { opacity: 1; filter: none; }
.client-logo-placeholder {
    height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 1px;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
}
.testimonial-avatar {
    width: 48px; height: 48px;
    background: var(--navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1rem;
}

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0d3060 100%);
    padding: 5rem 0 4rem;
}

/* ---- Case Study Cards ---- */
.case-card { border-radius: 12px; overflow: hidden; }
.case-card-header { background: var(--navy); padding: 1.25rem; }
.case-card-body { padding: 1.25rem; background: #f8f9fa; }

/* ---- Job Listings ---- */
.job-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s;
}
.job-card:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(242,101,34,0.1); }

/* ---- Contact Form ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(242,101,34,0.15);
}

/* ---- Footer ---- */
.footer-link {
    display: block;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--orange); }
.social-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}
.social-icon:hover { background: var(--orange); color: #fff; }

/* ---- Badge Colors ---- */
.badge-healthcare { background: #d1fae5; color: #065f46; }
.badge-banking { background: #ede9fe; color: #4c1d95; }
.badge-retail { background: #dbeafe; color: #1e40af; }
.badge-technology { background: #ffedd5; color: #9a3412; }
.badge-manufacturing { background: #fee2e2; color: #991b1b; }

/* ---- CTA Section ---- */
.cta-section { background: var(--navy); }

/* ---- Animations ---- */
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .stat-value { font-size: 1.8rem; }
    .page-hero { padding: 3rem 0 2.5rem; }
}
