:root {
    --primary-red: #E31E24;
    --dark-red: #B91C1C;
    --light-red: #FEE2E2;
    --dark: #1A1A1A;
    --gray: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--dark);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(227, 30, 36, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0.8rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active::before {
    width: 80%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(227, 30, 36, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    color: var(--dark) !important;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Hero Section for About */
.about-hero {
    min-height: 35vh;
    display: flex;
    align-items: center;
    background: transparent;
    /* Changed from gradient to transparent */
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.about-hero h1 span {
    color: var(--primary-red);
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--gray);
    position: relative;
    z-index: 2;
    margin-top: 1rem;
}

/* Main About Section */
.about-main {
    padding: 5rem 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    animation: fadeInLeft 0.8s ease;
}

.image-wrapper {
    background: linear-gradient(135deg, #FEE2E2 0%, #F3F4F6 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(227, 30, 36, 0.1);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(227, 30, 36, 0.15);
}

.about-illustration {
    width: 100%;
    height: auto;
    /* Removed max-width limit */
    border-radius: 12px;
}

.about-text {
    animation: fadeInRight 0.8s ease 0.2s both;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text h2 span {
    color: var(--primary-red);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    text-decoration: none;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* Enhanced About background and visual flourishes */
.about-main {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, #fff8f8 30%, #fff 100%);
    position: relative;
    overflow: hidden;
}

/* Removed blurry background image */

/* Team cards hover and 3D lift */
.team-card {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
    transform-origin: center;
}

.team-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
}

/* Make side image slightly parallax and framed */
.team-side-image {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.team-side-image:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
}

/* Add subtle caption overlay for side image */
.team-side-image .caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.5rem 0.9rem;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
}

.section-title span {
    color: var(--primary-red);
}

/* Why Choose Us Section */
.why-choose {
    padding: 5rem 0;
    background: #F9FAFB;
}

.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
    height: 100%;
    animation: fadeInUp 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.15);
    border-color: var(--primary-red);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Services Overview Section */
.services-overview {
    padding: 5rem 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 2.5rem;
    background: linear-gradient(135deg, #FEE2E2 0%, #F3F4F6 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-right: 4px solid var(--primary-red);
    animation: fadeInUp 0.6s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.15);
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.service-item:hover h3,
.service-item:hover p {
    color: white;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-number {
    color: white;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.service-item p {
    color: var(--gray);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Values Section (replaces Services) */
.values-section {
    padding: 5rem 0;
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.value-item {
    padding: 2.2rem;
    background: linear-gradient(135deg, #FEE2E2 0%, #F3F4F6 100%);
    border-radius: 14px;
    transition: all 0.3s ease;
    border-right: 4px solid var(--primary-red);
    text-align: left;
    animation: fadeInUp 0.6s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.15);
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
}

.value-item:hover h3,
.value-item:hover p {
    color: white;
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.8rem 0;
    color: var(--dark);
}

.value-item p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr
    }

    .value-item {
        padding: 1.4rem
    }
}

/* Stats Section */
.about-stats {
    padding: 4rem 0;
    background: var(--primary-red);
    color: white;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Process Timeline Section */
.process-timeline {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

/* Make the timeline container a bit wider on larger screens */
.process-timeline .container {
    max-width: 1200px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.timeline-step {
    flex: 1 1 240px;
    min-width: 220px;
    background: white;
    padding: 2.5rem 1.75rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease;
    position: relative;
}

.timeline-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.15);
    border-color: var(--primary-red);
}

.step-number {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.step-icon {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, var(--light-red), #FED7D7);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.2rem;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-icon {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    transform: scale(1.1);
}

.timeline-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.timeline-step p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}

.timeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: bold;
    animation: slideIn 0.8s ease;
}

/* Responsive Timeline */
@media (max-width: 1200px) {
    .timeline-track {
        gap: 1rem;
    }

    .timeline-step {
        min-width: 160px;
        padding: 1.75rem 1.25rem;
    }

    .timeline-step h3 {
        font-size: 1.05rem;
    }

    .timeline-step p {
        font-size: 0.9rem;
    }

    .step-icon {
        width: 66px;
        height: 66px;
        font-size: 1.7rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .timeline-arrow {
        min-width: 34px;
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {

    .timeline-track,
    html[dir="rtl"] .timeline-track {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem;
    }

    .timeline-step {
        width: 100%;
        min-width: unset;
        max-width: 600px;
        margin: 0 auto;
    }

    .timeline-arrow {
        transform: rotate(90deg);
        min-height: 40px;
        min-width: unset;
        margin: -10px 0;
        /* Pull it closer */
    }

    /* RTL specific rotation for mobile removed - relies on default 90deg since style-rtl flips the icon */

    .timeline-step {
        padding: 2.3rem 1.5rem;
    }

    .timeline-step h3 {
        font-size: 1.2rem;
    }

    .step-icon {
        width: 72px;
        height: 72px;
        font-size: 1.9rem;
    }

    .step-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .timeline-step {
        padding: 1.8rem 1.2rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-step h3 {
        font-size: 1.05rem;
    }

    .timeline-step p {
        font-size: 0.85rem;
    }

    .step-number {
        font-size: 1.8rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Stats Section */

/* CTA Section */
.about-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2D3436 100%);
    color: white;
    text-align: center;
}

.about-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-red);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s;
    color: white;
}

.social-icons a:hover {
    background: var(--primary-red);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-cta h2 {
        font-size: 1.8rem;
    }

    .about-cta p {
        font-size: 1rem;
    }

    .feature-card,
    .service-item {
        padding: 1.5rem;
    }

    .stat-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        margin-top: 70px;
        min-height: 30vh;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p,
    .intro-text {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .service-number {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}