/* =============================================
   security-camera.css
   ============================================= */

/* Root Variables */
:root {
    --primary-red: #dc3545;
    --dark-red: #c01010;
    --dark-bg: #0d0d0d;
    --light-gray: #f8f9fa;
    --text-muted: #555;
}

/* Hero Buttons */
.btn-custom-red {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(220, 53, 69, 0.4);
    transition: all 0.28s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom-red:hover {
    background: linear-gradient(135deg, #e85559, #b50d0d);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.5);
}

.btn-custom-black {
    background: rgba(15, 15, 15, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.28s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom-black:hover {
    background: rgba(40, 40, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px);
    color: white;
}

.btn-video {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(220, 53, 69, 0.7);
    backdrop-filter: blur(6px);
    color: white;
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 6px;
    transition: all 0.28s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-video:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--primary-red);
    color: white;
}

/* Button row layout */
.btn-row {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.btn-row a {
    white-space: nowrap;
}

/* Timeline */
.custom-timeline {
    position: relative;
    /* allow more horizontal space for wider cards */
    max-width: 1200px;
    margin: 60px auto 40px;
}

.custom-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(220, 53, 69, 0.3);
    /* muted red for the line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-row {
    padding: 10px 40px;
    position: relative;
    /* make the timeline item wider so the "cards" feel less narrow */
    width: 60%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.timeline-left {
    left: 0;
    /* override alignment on container but keep content left-aligned via .timeline-content */
    text-align: right;
}

.timeline-right {
    /* start the right column at 40% when width is 60% so items stay within container */
    left: 40%;
    text-align: left;
}

.timeline-row::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: #1a1a1a;
    border: 4px solid var(--primary-red, #dc3545);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* always left-align text inside the card for readability */
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.1);
}

.timeline-title {
    color: var(--primary-red, #dc3545);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-title span {
    color: var(--primary-red, #dc3545) !important;
}

.timeline-left .timeline-title {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.timeline-right .timeline-title {
    justify-content: flex-start;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.05) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red, #dc3545);
}

.timeline-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

@media screen and (max-width: 991px) {
    .custom-timeline::after {
        left: 31px;
    }

    .timeline-row {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        text-align: left;
    }

    .timeline-left {
        text-align: left;
    }

    .timeline-right {
        left: 0%;
    }

    .timeline-row::after {
        left: 19px;
    }

    .timeline-left .timeline-title {
        justify-content: flex-start;
        flex-direction: row;
    }
}

/* Process (unchanged) */
.process-section {
    padding: 100px 0 60px;
    background: white;
}

.process-title-badge {
    background: var(--primary-red);
    color: white;
    padding: 14px 60px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 2.8rem;
    box-shadow: 0 8px 32px rgba(240, 82, 82, 0.3);
}

.process-step {
    padding: 40px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: #fafafa;
}

.step-number {
    font-size: 4.6rem;
    font-weight: 900;
    color: #111;
}

.step-dash {
    font-size: 3.2rem;
    color: var(--primary-red);
    margin: 0 12px;
}

.step-title {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

/* Cards (unchanged) */
.cards-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.info-card {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.info-card>.p-4 {
    flex-grow: 1;
}

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

.card-img-bottom {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Why (unchanged) */
.why-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0ff 50%, #f0e8ff 100%);
    color: var(--text-muted);
    padding: 110px 0;
    position: relative;
}

.why-section::before {
    display: none;
    /* remove dark overlay */
}

.why-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #111;
}

.feature-item {
    background: #ffffff;
    padding: 36px 32px;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(18, 18, 18, 0.04);
}

.feature-item:hover {
    background: #fbfbfb;
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(240, 82, 82, 0.06);
    border: 1px solid rgba(240, 82, 82, 0.12);
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features grid and alignment improvements */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: transparent;
    padding: 8px;
}

.feature-title {
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 8px;
}

.feature-item p {
    margin: 0;
    color: var(--text-muted);
}

.feature-item--full {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* override utility text color used in markup */
.why-section .text-white-50 {
    color: var(--text-muted) !important;
}

/* Projects (unchanged) */
.rcp-section {
    background: var(--light-gray);
    padding: 100px 0;
}

.rcp-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

.rcp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.rcp-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.rcp-card > .p-4 {
    flex: 1 1 auto;
}

.rcp-card-img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    transition: transform 0.6s ease;
    margin-top: auto;
}

.rcp-card:hover .rcp-card-img {
    transform: scale(1.08);
}

.rcp-card-tag {
    background: rgba(240, 82, 82, 0.1);
    color: var(--primary-red);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
}

/* New FAQ Section */
.faq-section {
    background: white;
    padding: 100px 0;
}

.faq-header-badge {
    background: var(--primary-red);
    color: white;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 2.4rem;
    display: inline-block;
    box-shadow: 0 6px 24px rgba(240, 82, 82, 0.25);
}

.faq-item {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    margin-bottom: 0;
}

.faq-question {
    font-size: 1.4rem;
    color: #111;
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
    color: var(--primary-red);
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding-bottom: 20px;
}

.faq-img {
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {

    .cards-row,
    .rcp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 800px;
    }

    .why-title {
        font-size: 2.8rem;
    }

    .step-number {
        font-size: 3.6rem;
    }

    .features-grid,
    .rcp-grid,
    .cards-row {
        grid-template-columns: 1fr !important;
    }

    .faq-question {
        font-size: 1.25rem;
    }
}
