/* ========================================
   Tax Residency Certificate (TRC) Page CSS
   Custom animations, hover effects, and styling
   ======================================== */

/* === CSS Variables === */
:root {
    --trc-primary: #FF6B35;
    --trc-secondary: #E93C05;
    --trc-light: #FFF4F0;
    --trc-white-75: rgba(255, 255, 255, 0.75);
    --trc-orange-tint: rgba(255, 107, 53, 0.1);
}

/* ========================================
   KEYFRAME ANIMATIONS (7 Required)
   ======================================== */

/* 1. Float - Vertical floating motion */
@keyframes trc-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 2. FloatSlow - Diagonal floating with horizontal drift */
@keyframes trc-float-slow {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(15px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 3. Pulse - Opacity + scale pulsing effect */
@keyframes trc-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 4. Shimmer - Horizontal shine animation */
@keyframes trc-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 5. FadeInUp - Fade in from 30px below */
@keyframes trc-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. ScaleIn - Scale from 0.9 to 1.0 with fade */
@keyframes trc-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 7. Bounce - Vertical bounce for icons */
@keyframes trc-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

/* Hero Section Container */
.trc-hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Gradient Background */
.trc-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(233, 60, 5, 0.85) 50%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Floating Background Circles */
.trc-floating-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.trc-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    animation: trc-float 8s ease-in-out infinite;
}

.trc-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: 15%;
    left: 8%;
    animation: trc-float-slow 9s ease-in-out infinite;
}

/* Hero Pill Badge */
.trc-hero-pill {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: trc-scale-in 0.6s ease-out;
}

.trc-hero-pill:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hero Buttons */
.trc-btn-primary,
.trc-btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trc-btn-primary::before,
.trc-btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.trc-btn-primary:hover::before,
.trc-btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.trc-btn-primary:hover,
.trc-btn-secondary:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

/* Hero Image Wrapper */
.trc-hero-image-wrapper {
    position: relative;
    animation: trc-fade-in-up 0.8s ease-out 0.4s both;
}

/* Hero Image Placeholder */
.trc-hero-image-placeholder {
    position: relative;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trc-hero-image-placeholder:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.trc-placeholder-content {
    text-align: center;
}

.trc-placeholder-content i {
    animation: trc-bounce 2s ease-in-out infinite;
}

.trc-placeholder-content:hover i {
    animation: trc-bounce 1s ease-in-out infinite;
}

/* Graffiti Decorations */
.trc-graffiti {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trc-graffiti::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: -10px;
    left: -10px;
}

.trc-graffiti::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: -10px;
    right: -10px;
}

.trc-graffiti-top {
    top: -30px;
    right: -30px;
    transform: rotate(-8deg);
}

.trc-graffiti-bottom {
    bottom: -30px;
    left: -30px;
    transform: rotate(10deg);
}

.trc-hero-image-placeholder:hover .trc-graffiti {
    transform: rotate(5deg) scale(1.1);
}

/* ========================================
   VISUAL & REQUIREMENTS CARDS
   ======================================== */

.trc-visual-card,
.trc-requirements-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.trc-visual-card::before,
.trc-requirements-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trc-visual-card:hover,
.trc-requirements-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}

.trc-visual-card:hover::before,
.trc-requirements-card:hover::before {
    opacity: 1;
}

/* Checklist Items */
.trc-checklist-item {
    transition: all 0.3s ease;
}

.trc-checklist-item:hover {
    transform: translateX(8px);
}

.trc-checklist-item:hover h6 {
    color: var(--trc-primary);
}

.trc-checklist-item svg {
    transition: transform 0.3s ease;
}

.trc-checklist-item:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   PROCESS CARDS
   ======================================== */

.trc-process-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.trc-process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--trc-orange-tint) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trc-process-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
    border-color: var(--trc-primary);
}

.trc-process-card:hover::before {
    opacity: 1;
}

/* Process Number Badge */
.trc-process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.15) 100%);
    border: 2px solid var(--trc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--trc-primary);
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trc-process-card:hover .trc-process-number {
    background: var(--trc-primary);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Process Icon */
.trc-process-icon {
    font-size: 40px;
    color: var(--trc-primary);
    transition: all 0.3s ease;
}

.trc-process-card:hover .trc-process-icon {
    animation: trc-bounce 1s ease-in-out infinite;
    transform: scale(1.2);
}

/* Staggered Animation for Process Cards */
.trc-process-card:nth-child(1) {
    animation: trc-fade-in-up 0.6s ease-out 0.1s both;
}

.trc-process-card:nth-child(2) {
    animation: trc-fade-in-up 0.6s ease-out 0.2s both;
}

.trc-process-card:nth-child(3) {
    animation: trc-fade-in-up 0.6s ease-out 0.3s both;
}

.trc-process-card:nth-child(4) {
    animation: trc-fade-in-up 0.6s ease-out 0.4s both;
}

/* ========================================
   BENEFIT CARDS
   ======================================== */

.trc-benefit-card {
    background: white;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.trc-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--trc-orange-tint) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trc-benefit-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
    border-color: var(--trc-primary);
}

.trc-benefit-card:hover::before {
    opacity: 1;
}

/* Benefit Icon Wrapper */
.trc-benefit-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trc-benefit-icon-wrapper i {
    font-size: 36px;
    color: var(--trc-primary);
    transition: all 0.3s ease;
}

.trc-benefit-card:hover .trc-benefit-icon-wrapper {
    background: var(--trc-primary);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.trc-benefit-card:hover .trc-benefit-icon-wrapper i {
    color: white;
    animation: trc-bounce 1s ease-in-out infinite;
}

/* ========================================
   WHO CAN APPLY SECTION
   ======================================== */

.trc-who-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.trc-who-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Who Icon */
.trc-who-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(233, 60, 5, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trc-who-icon i {
    font-size: 28px;
    color: var(--trc-primary);
    transition: all 0.3s ease;
}

.trc-who-card:hover .trc-who-icon {
    background: var(--trc-primary);
    transform: scale(1.15) rotate(5deg);
}

.trc-who-card:hover .trc-who-icon i {
    color: white;
}

/* Requirements List */
.trc-requirements-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trc-requirements-list li:last-child {
    border-bottom: none;
}

.trc-requirements-list li:hover {
    padding-left: 10px;
    color: var(--trc-primary);
}

.trc-requirements-list li:hover i {
    transform: scale(1.3);
}

/* ========================================
   PROBLEMS SOLVED SECTION
   ======================================== */

.trc-problem-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.trc-problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

/* Problem Icon */
.trc-problem-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.trc-problem-icon i {
    font-size: 24px;
    color: #dc3545;
    transition: transform 0.3s ease;
}

.trc-problem-item:hover .trc-problem-icon {
    background: rgba(255, 107, 53, 0.1);
}

.trc-problem-item:hover .trc-problem-icon i {
    transform: scale(1.3);
    color: var(--trc-primary);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.trc-faq-section {
    position: relative;
}

/* FAQ Image Wrapper */
.trc-faq-image-wrapper {
    position: relative;
    padding: 40px;
}

/* Decorative Elements */
.trc-decorative-circle-1,
.trc-decorative-circle-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-lg {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    top: 0;
    left: 0;
    animation: trc-pulse 4s ease-in-out infinite;
}

.circle-sm {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    bottom: 20px;
    right: 20px;
    animation: trc-pulse 3s ease-in-out infinite 0.5s;
}

.trc-decorative-square {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    top: 50%;
    right: -20px;
    transform: rotate(45deg);
    pointer-events: none;
    animation: trc-float 6s ease-in-out infinite;
}

/* FAQ Image Container */
.trc-faq-image-container {
    position: relative;
    z-index: 1;
}

.trc-faq-placeholder {
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--trc-primary) 0%, var(--trc-secondary) 100%);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.3);
    transition: all 0.4s ease;
}

.trc-faq-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
}

/* Floating Card */
.trc-floating-card {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: trc-float 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.trc-floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.2);
}

.trc-floating-card .icon-wrapper {
    width: 45px;
    height: 45px;
    background: var(--trc-orange-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trc-floating-card .icon-wrapper i {
    color: var(--trc-primary);
    font-size: 20px;
}

.trc-floating-card h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.trc-floating-card small {
    color: #6c757d;
    font-size: 12px;
}

/* FAQ Accordion */
.trc-faq-accordion .trc-faq-item {
    border: 2px solid rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trc-faq-accordion .trc-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
    border-color: var(--trc-primary);
}

.trc-faq-accordion .accordion-button {
    font-weight: 600;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.trc-faq-accordion .accordion-button:not(.collapsed) {
    background: var(--trc-orange-tint);
    color: var(--trc-primary);
}

.trc-faq-accordion .accordion-button i {
    color: var(--trc-primary);
    transition: transform 0.3s ease;
}

.trc-faq-accordion .accordion-button:hover i {
    transform: scale(1.2) rotate(10deg);
}

.trc-faq-accordion .accordion-body {
    padding: 20px 25px 25px;
    color: #6c757d;
    line-height: 1.8;
}

/* ========================================
   CTA CARD
   ======================================== */

.trc-cta-card {
    background: linear-gradient(135deg, var(--trc-primary) 0%, var(--trc-secondary) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.trc-cta-card::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    pointer-events: none;
}

.trc-cta-card::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

.trc-cta-card .btn {
    position: relative;
    z-index: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and below (@991px) */
@media (max-width: 991px) {
    .trc-hero-section {
        padding: 140px 0 80px;
    }

    .trc-graffiti {
        display: none;
    }

    .trc-process-card,
    .trc-benefit-card,
    .trc-who-card {
        margin-bottom: 20px;
    }

    .trc-floating-card {
        bottom: 20px;
        left: 20px;
        padding: 15px 20px;
    }

    .trc-faq-image-wrapper {
        margin-bottom: 40px;
    }
}

/* Mobile (@767px) */
@media (max-width: 767px) {
    .trc-hero-section {
        padding: 120px 0 60px;
    }

    .trc-hero-pill {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .trc-hero-image-placeholder {
        padding: 40px 20px;
    }

    .trc-circle-1,
    .trc-circle-2 {
        display: none;
    }

    .trc-process-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .trc-process-icon {
        font-size: 32px;
    }

    .trc-benefit-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .trc-benefit-icon-wrapper i {
        font-size: 28px;
    }

    .trc-who-icon {
        width: 50px;
        height: 50px;
    }

    .trc-who-icon i {
        font-size: 22px;
    }

    .trc-cta-card {
        padding: 40px 30px !important;
    }

    .trc-floating-card {
        position: static;
        margin-top: 20px;
    }

    .trc-decorative-square {
        display: none;
    }

    h1.display-4 {
        font-size: 2rem !important;
    }

    h2.display-5 {
        font-size: 1.8rem !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Smooth transitions for all interactive elements */
.trc-hero-section *,
.trc-process-card *,
.trc-benefit-card *,
.trc-who-card *,
.trc-problem-item *,
.trc-faq-item * {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* GPU Acceleration for animations */
.trc-hero-pill,
.trc-hero-image-placeholder,
.trc-process-card,
.trc-benefit-card,
.trc-who-card,
.trc-problem-item,
.trc-faq-item {
    transform: translateZ(0);
    will-change: transform;
}

/* Pointer events for decorative elements */
.trc-floating-circle,
.trc-graffiti,
.trc-decorative-circle-1,
.trc-decorative-circle-2,
.trc-decorative-square {
    pointer-events: none;
}
