/* ================================
   Home Page Styles
================================ */

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--glow-gold);
    }

    50% {
        box-shadow: 0 0 20px var(--glow-gold), 0 0 10px var(--primary-gold);
    }

    100% {
        box-shadow: 0 0 5px var(--glow-gold);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* --- Hero Text Rotator --- */
.hero-rotator {
    display: inline-block;
    color: black;
    font-weight: 500;
    position: relative;
    font-size: 18px;
    background: #f7d482;
    padding: 0 0px;
    border-radius: 5px;
    min-width: 55px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-rotator.slide-up {
    animation: slideUpFade 0.5s ease forwards;
}

.hero-rotator.final-state {
    background: transparent;
    padding: 0;
    color: var(--text-gradient-gold);
    font-weight: 300;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Hero Section Enhanced --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: black;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(242, 183, 44, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(242, 183, 44, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(242, 183, 44, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(242, 183, 44, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 183, 44, 0.02) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
    opacity: 0.6;
    pointer-events: none;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 10;
    padding-top: 6rem;
}

.hero-section h1 {
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #d9d9d9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section .d-flex {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-section img {
    margin-top: -7rem;
    max-width: 75%;
}

@media (max-width: 991.98px) {
    .hero-section img {
        margin-top: -4rem;
        max-width: 100%;
    }
}

.mini-proof {
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin: 1rem 0 4rem;
    opacity: 0.6;
}

.mini-proof::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gold);
    animation: shimmer 3s ease-in-out infinite;
}

/* --- Floating Particles --- */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 1.5s;
}

/* --- Logo Strip --- */
.logo-strip {
    background: linear-gradient(90deg, var(--bg-dark), var(--bg-mid), var(--bg-dark));
    border-top: 1px solid rgba(242, 183, 44, 0.1);
    border-bottom: 1px solid rgba(242, 183, 44, 0.1);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    min-height: 10vh;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(11, 15, 20, 0.95);
}

.logo-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.logo-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
}

.logo-scroll:hover {
    animation-play-state: paused;
}

.platform-name {
    margin: 0 40px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 1.3rem;
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: default;
    white-space: nowrap;
    flex-shrink: 0;
}

.platform-name:hover {
    color: var(--primary-gold);
    opacity: 1;
    text-shadow: 0 0 20px var(--glow-gold);
    transform: scale(1.1);
}

/* --- Service Cards Enhanced --- */
.service-card {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.95) 0%, rgba(15, 20, 28, 0.95) 100%);
    border: 1px solid rgba(242, 183, 44, 0.15);
    padding: 50px 35px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 183, 44, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 70px rgba(242, 183, 44, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(26, 34, 46, 1) 0%, rgba(20, 26, 34, 1) 100%);
}

.service-card i {
    transition: all 0.5s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px var(--primary-gold));
}

.service-card h3 {
    margin-top: 20px;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-gold);
}

/* --- Steps --- */
.step-timeline {
    position: relative;
    padding-left: 30px;
    padding-bottom: 50px;
    border-left: 1px dashed rgba(242, 183, 44, 0.3);
}

.step-timeline:last-child {
    border-left: none;
    padding-bottom: 0;
}

.step-timeline:hover {
    border-left-color: var(--primary-gold);
}

.step-timeline:hover .step-marker {
    background: var(--primary-gold);
    box-shadow: 0 0 20px var(--glow-gold);
    transform: scale(1.3);
}

.step-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 11px;
    height: 11px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-gold);
    transition: all 0.3s ease;
}

.step-number {
    font-family: 'Bricolage Grotesque';
    font-size: 1.4rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--glow-gold);
}

.step-timeline h5 {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* --- Tabbed Services --- */
.nav-pills .nav-link {
    background: transparent;
    border: 2px solid rgba(242, 183, 44, 0.2);
    color: var(--text-light);
    border-radius: 50px;
    margin: 5px;
    padding: 12px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-pills .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav-pills .nav-link.active::before {
    width: 400px;
    height: 400px;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: var(--bg-dark) !important;
    border-color: var(--primary-gold);
}

.nav-pills .nav-link span {
    position: relative;
    z-index: 1;
}

.nav-pills .nav-link:hover:not(.active) {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.detail-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    transition: all 0.3s ease;
}

.detail-list li:hover {
    transform: translateX(10px);
    color: var(--text-light);
}

.detail-list i {
    color: var(--primary-gold);
    margin-right: 15px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.detail-list li:hover i {
    transform: scale(1.3);
    filter: drop-shadow(0 0 10px var(--primary-gold));
}

/* --- Tab Content Animation --- */
.tab-pane {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.tab-pane.active {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* --- Service Detail Box Enhanced --- */
.service-detail-box {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.6) 0%, rgba(15, 20, 28, 0.6) 100%);
    padding: 60px 50px;
    border-radius: 24px;
    border: 1px solid rgba(242, 183, 44, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* --- Client Logo Boxes Enhanced --- */
.client-logo-box {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.5) 0%, rgba(15, 20, 28, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.client-logo-box:hover {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.8) 0%, rgba(20, 26, 34, 0.8) 100%);
    border-color: var(--primary-gold);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(242, 183, 44, 0.25), 0 6px 15px rgba(0, 0, 0, 0.3);
}

.client-logo-text {
    color: var(--text-gray);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.client-logo-box:hover .client-logo-text {
    color: var(--primary-gold);
}

/* --- Stats Section Enhanced --- */
.stat-box {
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 35px rgba(242, 183, 44, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    transition: all 0.4s ease;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-box:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 0 0 50px rgba(242, 183, 44, 0.6), 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* --- Testimonials Enhanced --- */
.testimonial-card {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.95) 0%, rgba(15, 20, 28, 0.95) 100%);
    border: 1px solid rgba(242, 183, 44, 0.15);
    padding: 45px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 183, 44, 0.08), transparent);
    transition: left 0.7s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(242, 183, 44, 0.25), 0 10px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-stars {
    font-size: 1.15rem;
    text-shadow: 0 0 10px rgba(242, 183, 44, 0.3);
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #F2B72C 0%, #FFD700 100%);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(242, 183, 44, 0.4);
}

.author-name {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
}

.author-company {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Team/Expertise Badges Enhanced --- */
.expertise-badge {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.6) 0%, rgba(15, 20, 28, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.expertise-badge:hover {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.9) 0%, rgba(20, 26, 34, 0.9) 100%);
    border-color: var(--primary-gold);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(242, 183, 44, 0.2), 0 6px 15px rgba(0, 0, 0, 0.3);
}

.expertise-badge i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.expertise-badge:hover i {
    transform: scale(1.25) rotate(5deg);
    filter: drop-shadow(0 0 25px var(--primary-gold));
}

.expertise-badge h5 {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 0;
    font-weight: 700;
}

/* --- FAQ Accordion Enhanced --- */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(242, 183, 44, 0.15);
}

.accordion-item {
    background: linear-gradient(135deg, rgba(26, 34, 46, 0.8) 0%, rgba(15, 20, 28, 0.8) 100%);
    border: 1px solid rgba(242, 183, 44, 0.15);
    border-radius: 16px !important;
    margin-bottom: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accordion-item:hover {
    border-color: rgba(242, 183, 44, 0.4);
    box-shadow: 0 8px 25px rgba(242, 183, 44, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.accordion-button {
    background: transparent;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 22px 28px;
    border: none;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-button:not(.collapsed) {
    background: rgba(242, 183, 44, 0.08);
    color: var(--primary-gold);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F2B72C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:hover {
    background: rgba(242, 183, 44, 0.1);
}

.accordion-body {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-gray);
    padding: 28px 28px;
    line-height: 1.8;
    font-size: 1.02rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Feature Section --- */
.feature-section {
    position: relative;
    overflow: hidden;
}

.feature-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(242, 183, 44, 0.2);
}

.feature-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 183, 44, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.feature-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.feature-img-wrapper:hover .feature-img {
    transform: scale(1.05);
}

/* --- Blog Cards Enhanced --- */
.blog-card {
    background: var(--bg-mid);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.blog-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-tag {
    font-size: 0.75rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-gold);
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-link i {
    color: var(--primary-gold);
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-gold);
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* --- CTA Section --- */
.cta-section-bg {
    position: relative;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.cta-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.cta-section-bg:hover .cta-bg-img {
    opacity: 0.4;
    filter: grayscale(80%) contrast(1.2);
    transform: scale(1.02);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-mid) 0%, rgba(11, 15, 20, 0.8) 50%, var(--bg-mid) 100%);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), #FFD700);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .service-detail-box {
        padding: 40px 30px;
    }

    .hero-section {
        min-height: 80vh;
    }

    .logo-strip {
        position: relative;
    }
}

@media (max-width: 991px) {
    .service-detail-box {
        padding: 30px;
    }

    .nav-pills .nav-link {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}