/* ============================================
   SecureInfra Staff - Custom Styles
   ============================================ */

:root {
    --primary-color: #001F3F;
    --accent-color: #28A745;
    --secondary-color: #6c757d;
    --light-bg: #F8F9FA;
    --dark-bg: #1a1a1a;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #000000;
    line-height: 1.8;
    background-color: #fff;
    font-size: 16px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: #000000;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

.lead {
    font-size: 1.35rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.7;
}

p {
    color: #000000;
    font-size: 1.05rem;
    font-weight: 500;
}

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

a:hover {
    color: #1e7e34;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #002d5a;
    border-color: #002d5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.3);
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 600;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */

.card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hover-card {
    transition: var(--transition);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: #000000 !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.card-text {
    color: #000000 !important;
    font-weight: 500;
    font-size: 1.05rem;
}

.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Dark section text readability */
.bg-dark p,
.bg-dark .h6 {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.05rem;
}

/* Testimonials Section */
.bg-light h2 {
    color: #000000 !important;
    font-weight: 800;
}

.bg-light .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bg-light .card-body {
    display: flex;
    flex-direction: column;
}

.bg-light .card-text {
    color: #000000 !important;
    font-weight: 500;
    font-size: 1.05rem;
    flex-grow: 1;
}

.bg-light .card p:last-child {
    color: #001F3F !important;
    font-weight: 700;
    margin-top: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

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

.hero-section h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-detailed {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    background: #fff;
    margin-bottom: 2rem;
}

.service-icon-large {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--accent-color);
    margin-right: 0.8rem;
}

/* ============================================
   STEP CARDS
   ============================================ */

.step-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* ============================================
   ENGINEER CARDS
   ============================================ */

.engineer-card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.engineer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.engineer-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    filter: blur(6px);
}

.engineer-info {
    padding: 1.5rem;
}

.engineer-name {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.engineer-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.engineer-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.engineer-specialization,
.engineer-experience,
.engineer-bio {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.engineer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.blog-date,
.blog-reading-time {
    color: #000000;
    font-weight: 500;
    font-size: 0.95rem;
}

.blog-title {
    color: #000000 !important;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.4;
}

.blog-content h6 {
    color: #000000 !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.blog-content ul.small li {
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.blog-content strong {
    color: #001F3F;
    font-weight: 700;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-excerpt {
    color: #222222;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(40, 167, 69, 0.2);
}

.pricing-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.badge-featured {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    font-weight: 500;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--accent-color);
    margin-right: 0.8rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    background: #fff;
}

.form-label {
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.form-check-input {
    border-color: #ddd;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.contact-info {
    background: #fff;
}

/* ============================================
   SKILLS MATRIX
   ============================================ */

.skills-matrix {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.skill-row {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-label {
    min-width: 200px;
    font-weight: 600;
    color: var(--primary-color);
}

.skill-bar {
    flex: 1;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #1e7e34);
    border-radius: 15px;
    transition: var(--transition);
}

.skill-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================================
   VETTING PROCESS
   ============================================ */

.vetting-step {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.vetting-step:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #e9ecef;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    padding-right: 2rem;
    width: 48%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 2rem;
    width: 48%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: var(--accent-color);
    top: 0;
}

.timeline-content h5 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    margin-top: 4rem;
    border-top: 1px solid #333;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--accent-color);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   UTILITIES
   ============================================ */

.bg-light {
    background-color: var(--light-bg) !important;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideInUp 0.6s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .hero-section {
        min-height: 400px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Contact & Privacy Page Styling */
.contact-form h2,
.privacy-policy h1,
.privacy-policy h2 {
    color: #000000 !important;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-form p,
.privacy-policy p {
    color: #000000 !important;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.contact-form ul,
.privacy-policy ul {
    color: #000000;
    font-weight: 500;
    font-size: 1.05rem;
}

.contact-form ul li,
.privacy-policy ul li {
    color: #000000;
    font-weight: 500;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.contact-form strong,
.privacy-policy strong {
    color: #001F3F;
    font-weight: 700;
}

.contact-info {
    background: #F8F9FA;
    padding: 2rem;
    border-radius: var(--border-radius);
    color: #000000;
}

.contact-info p {
    color: #000000;
    font-weight: 500;
}

.contact-info strong {
    color: #001F3F;
    font-weight: 700;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #fff;
    }

    .card {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
    }

    .form-control,
    .form-select {
        background-color: #2a2a2a;
        color: #f0f0f0;
        border-color: #3a3a3a;
    }
}
