/* ===================================
   Risk Assessment & Control Metrics Page Styles
   ================================= */

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
    --racm-primary: #FF6B35;
    --racm-secondary: #E93C05;
    --racm-light: #FFF4F0;
    --racm-dark: #1A1A1A;
    --racm-gradient-start: rgba(255, 107, 53, 1);
    --racm-gradient-end: rgba(233, 60, 5, 1);
}

/* ===================================
   Keyframe Animations (7 Required)
   =================================== */

/* 1. Float - Vertical floating motion */
@keyframes racmFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 2. FloatSlow - Diagonal floating with horizontal drift */
@keyframes racmFloatSlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -15px);
    }
    50% {
        transform: translate(-5px, -25px);
    }
    75% {
        transform: translate(-10px, -15px);
    }
}

/* 3. Pulse - Opacity + scale pulsing effect */
@keyframes racmPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 4. Shimmer - Horizontal shine animation */
@keyframes racmShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 5. FadeInUp - Fade in from 30px below */
@keyframes racmFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. ScaleIn - Scale from 0.9 to 1.0 with fade */
@keyframes racmScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 7. Bounce - Vertical bounce for icons */
@keyframes racmBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Ripple effect for buttons */
@keyframes racmRipple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ===================================
   Hero Section
   =================================== */
.racm-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.racm-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.95) 0%, 
        rgba(233, 60, 5, 0.85) 50%,
        rgba(255, 255, 255, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Floating Circles */
.racm-floating-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.racm-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    animation: racmFloat 8s ease-in-out infinite;
}

.racm-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: 15%;
    left: 8%;
    animation: racmFloatSlow 9s ease-in-out infinite;
}

/* Graffiti Decoration */
.racm-hero-graffiti {
    position: absolute;
    top: 12%;
    right: 8%;
    width: 250px;
    height: 200px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 1;
    animation: racmPulse 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-hero-graffiti::before,
.racm-hero-graffiti::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.racm-hero-graffiti::before {
    top: -30px;
    left: 20px;
}

.racm-hero-graffiti::after {
    bottom: -30px;
    right: 20px;
}

.racm-hero-graffiti:hover {
    transform: rotate(5deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hero Content */
.racm-hero-content {
    position: relative;
    z-index: 2;
}

.racm-hero-pill {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: racmFadeInUp 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-hero-pill:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.racm-hero-title {
    color: white;
    font-weight: 700;
    line-height: 1.2;
    animation: racmFadeInUp 0.8s ease-out 0.2s both;
}

.racm-hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    animation: racmFadeInUp 1s ease-out 0.4s both;
}

.racm-hero-buttons {
    animation: racmFadeInUp 1.2s ease-out 0.6s both;
}

/* Hero Buttons with Ripple Effect */
.racm-btn-primary,
.racm-btn-outline {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-btn-primary::before,
.racm-btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.racm-btn-primary:hover::before,
.racm-btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.racm-btn-primary:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 15px 40px rgba(233, 60, 5, 0.4);
}

.racm-btn-outline:hover {
    transform: scale(1.08) translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Hero Image */
.racm-hero-image {
    animation: racmScaleIn 1s ease-out 0.8s both;
}

.racm-hero-image-inner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-hero-image-inner:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(233, 60, 5, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.racm-hero-image-inner i {
    font-size: 80px;
    color: white;
    margin-bottom: 20px;
    display: block;
    transition: all 0.4s ease;
}

.racm-hero-image-inner:hover i {
    animation: racmBounce 0.6s ease infinite;
    transform: scale(1.1);
}

.racm-hero-image-inner h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.racm-hero-image-inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ===================================
   Why It Matters Section
   =================================== */
.racm-why-section {
    position: relative;
}

.racm-why-card,
.racm-info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.racm-why-card::before,
.racm-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(233, 60, 5, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.racm-why-card:hover::before,
.racm-info-card:hover::before {
    opacity: 1;
}

.racm-why-card:hover,
.racm-info-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

.racm-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--racm-primary) 0%, var(--racm-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-icon-wrapper i {
    font-size: 36px;
    color: white;
}

.racm-why-card:hover .racm-icon-wrapper {
    transform: rotate(10deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.racm-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.racm-checklist li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    transition: all 0.3s ease;
}

.racm-checklist li:hover {
    padding-left: 43px;
    color: var(--racm-primary);
}

.racm-checklist li i {
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--racm-primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.racm-checklist li:hover i {
    transform: scale(1.2);
}

.racm-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.racm-benefit-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.racm-benefit-item:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: translateX(8px);
}

.racm-benefit-item i {
    font-size: 30px;
    color: var(--racm-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.racm-benefit-item:hover i {
    transform: scale(1.3) rotate(10deg);
}

.racm-benefit-item h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.racm-benefit-item p {
    font-size: 14px;
    color: #666;
}

/* ===================================
   Process/Approach Section
   =================================== */
.racm-process-section {
    position: relative;
}

.racm-process-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.racm-process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(233, 60, 5, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.racm-process-card:hover::before {
    opacity: 1;
}

.racm-process-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(255, 107, 53, 0.25);
    border-color: var(--racm-primary);
}

.racm-process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--racm-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-process-card:hover .racm-process-number {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--racm-primary) 0%, var(--racm-secondary) 100%);
    color: white;
}

.racm-process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--racm-primary) 0%, var(--racm-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-process-icon i {
    font-size: 36px;
    color: white;
}

.racm-process-card:hover .racm-process-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.racm-process-card:hover .racm-process-icon i {
    animation: racmBounce 0.6s ease infinite;
}

/* ===================================
   Benefits Section
   =================================== */
.racm-benefits-section {
    position: relative;
}

.racm-benefit-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.racm-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(233, 60, 5, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.racm-benefit-card:hover::before {
    opacity: 1;
}

.racm-benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 107, 53, 0.25);
    border-color: var(--racm-primary);
}

.racm-benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-benefit-icon i {
    font-size: 36px;
    color: var(--racm-primary);
    transition: all 0.4s ease;
}

.racm-benefit-card:hover .racm-benefit-icon {
    background: linear-gradient(135deg, var(--racm-primary) 0%, var(--racm-secondary) 100%);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.racm-benefit-card:hover .racm-benefit-icon i {
    color: white;
    animation: racmBounce 0.6s ease infinite;
}

/* ===================================
   Problems Solved Section
   =================================== */
.racm-problems-section {
    position: relative;
}

.racm-problem-card {
    display: flex;
    align-items: start;
    gap: 20px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
}

.racm-problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
    border-color: var(--racm-primary);
}

.racm-problem-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-problem-icon i {
    font-size: 28px;
    color: var(--racm-primary);
    transition: all 0.3s ease;
}

.racm-problem-card:hover .racm-problem-icon {
    background: linear-gradient(135deg, var(--racm-primary) 0%, var(--racm-secondary) 100%);
    transform: scale(1.15);
}

.racm-problem-card:hover .racm-problem-icon i {
    color: white;
    transform: scale(1.3);
}

.racm-problem-content h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--racm-dark);
}

.racm-problem-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
}

/* ===================================
   FAQ Section
   =================================== */
.racm-faq-section {
    position: relative;
}

.racm-faq-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.racm-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
    border-color: var(--racm-primary);
}

.racm-faq-item .accordion-button {
    background: white;
    color: var(--racm-dark);
    font-weight: 600;
    padding: 20px 25px;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
}

.racm-faq-item .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.05) 100%);
    color: var(--racm-primary);
    box-shadow: none;
}

.racm-faq-item .accordion-button:focus {
    border: none;
    box-shadow: none;
}

.racm-faq-item .accordion-button::after {
    background-image: none;
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.racm-faq-item .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.racm-faq-item .accordion-body {
    padding: 20px 25px;
    color: #666;
    line-height: 1.7;
}

/* ===================================
   CTA Card Section
   =================================== */
.racm-cta-section {
    position: relative;
}

.racm-cta-card {
    position: relative;
    border-radius: 30px;
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.racm-cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--racm-primary) 0%, var(--racm-secondary) 100%);
    z-index: 0;
}

.racm-cta-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: racmPulse 8s ease-in-out infinite;
}

.racm-cta-content {
    position: relative;
    z-index: 2;
}

.racm-cta-card .btn {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.racm-cta-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.racm-cta-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

.racm-cta-card .btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Responsive Media Queries
   =================================== */

@media (max-width: 991px) {
    .racm-hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .racm-hero-title {
        font-size: 2.5rem;
    }

    .racm-hero-graffiti {
        width: 200px;
        height: 150px;
        top: 8%;
        right: 5%;
    }

    .racm-circle-1,
    .racm-circle-2 {
        width: 150px;
        height: 150px;
    }

    .racm-process-card,
    .racm-benefit-card {
        margin-bottom: 20px;
    }

    .racm-cta-card {
        padding: 60px 40px;
    }
}

@media (max-width: 767px) {
    .racm-hero-section {
        padding: 80px 0 40px;
    }

    .racm-hero-title {
        font-size: 2rem;
    }

    .racm-hero-subtitle {
        font-size: 1rem;
    }

    .racm-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .racm-hero-buttons .btn {
        width: 100%;
    }

    .racm-hero-graffiti {
        display: none;
    }

    .racm-circle-1,
    .racm-circle-2 {
        width: 100px;
        height: 100px;
    }

    .racm-why-card,
    .racm-info-card {
        padding: 30px 20px;
    }

    .racm-process-card,
    .racm-benefit-card {
        padding: 30px 20px;
    }

    .racm-cta-card {
        padding: 40px 20px;
    }

    .racm-cta-card h2 {
        font-size: 1.8rem;
    }

    .racm-problem-card {
        padding: 20px;
    }

    .racm-problem-icon {
        width: 50px;
        height: 50px;
    }

    .racm-problem-icon i {
        font-size: 22px;
    }
}

/* ===================================
   Additional Enhancements
   =================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Image placeholders with shimmer effect */
.racm-hero-image-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    animation: racmShimmer 3s infinite;
}

/* Staggered animation delays for cards */
.wow.fadeInUp:nth-child(1) {
    animation-delay: 0.1s;
}

.wow.fadeInUp:nth-child(2) {
    animation-delay: 0.2s;
}

.wow.fadeInUp:nth-child(3) {
    animation-delay: 0.3s;
}

.wow.fadeInUp:nth-child(4) {
    animation-delay: 0.4s;
}

.wow.fadeInUp:nth-child(5) {
    animation-delay: 0.5s;
}

.wow.fadeInUp:nth-child(6) {
    animation-delay: 0.6s;
}

/* GPU Acceleration for smooth animations */
.racm-hero-gradient,
.racm-floating-circle,
.racm-hero-graffiti,
.racm-process-card,
.racm-benefit-card,
.racm-problem-card,
.racm-faq-item,
.racm-cta-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
