/* Additional inline styles for specific welcome page components */
.portfolio-card:hover .portfolio-overlay {
    opacity: 1 !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Premium Services Card */
.service-card-premium {
    background: var(--bg-color-light) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-bs-theme="dark"] .service-card-premium {
    background: #111 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .service-card-premium:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.explore-link {
    transition: margin-left 0.3s ease;
}

.service-card-premium:hover .explore-link {
    margin-left: 10px;
}

.tracking-wider {
    letter-spacing: 2px;
}

/* Premium Testimonials */
.testimonial-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.glass-card-dark:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    border-color: rgba(220, 20, 60, 0.3) !important;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    transform: scale(1.1);
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    transition: all 0.3s ease;
}

/* Parallax Dividers */
.parallax-divider {
    min-height: 40vh;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-divider-2 {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop');
}

.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Tech Cards */
.tech-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-bs-theme="dark"] .tech-card {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #111 !important;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .tech-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Tech Vertical Tabs */
.tech-vertical-tabs .nav-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-vertical-tabs .nav-link:hover {
    opacity: 0.9;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.tech-vertical-tabs .nav-link.active {
    opacity: 1;
    background: var(--primary-color) !important;
    color: #fff !important;
}

@media (min-width: 992px) {
    .tech-vertical-tabs .nav-link::after {
        content: '';
        position: absolute;
        top: 0;
        right: -24.5px;
        width: 3px;
        height: 100%;
        background-color: var(--primary-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        transform-origin: center;
        z-index: 2;
    }

    .tech-vertical-tabs .nav-link.active::after {
        transform: scaleY(1);
    }
}

/* Sticky Portfolio Cards */
.portfolio-card-sticky {
    position: sticky;
    height: 500px;
}

.portfolio-card-inner {
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.1s ease, filter 0.1s ease;
    transform-origin: top center;
}

[data-bs-theme="dark"] .portfolio-card-inner {
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 991.98px) {
    .portfolio-card-sticky {
        height: auto;
        min-height: 500px;
    }

    .portfolio-card-sticky .col-lg-6:last-child {
        min-height: 300px;
    }
}

/* Marquee Animation */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    animation: marquee 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.brand-logo {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    opacity: 1 !important;
    color: #fff;
}

.marquee-container:hover .brand-logo:not(:hover) {
    opacity: 0.5;
}

/* Blog Cards Hover Effect */
.blog-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.blog-card:hover .blog-image {
    height: 100% !important;
}

.blog-card:hover .blog-overlay {
    opacity: 0.8 !important;
}

.blog-card:hover .blog-content {
    height: 100% !important;
    background: transparent !important;
    color: white !important;
    justify-content: flex-end !important;
    padding-bottom: 2rem !important;
}

.blog-card:hover .blog-content h5 {
    color: white !important;
    white-space: normal !important;
}

.blog-card:hover .blog-content .text-muted,
.blog-card:hover .blog-content .text-body-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.blog-card:hover .blog-excerpt {
    max-height: 150px !important;
    opacity: 1 !important;
}

[data-bs-theme="dark"] .blog-card {
    background-color: var(--bs-body-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

/* New Services Section Styles */
.services-section {
    position: relative;
    background-color: #080808;
    overflow: hidden;
    width: 100%;
    font-family: 'Inter', sans-serif;
    padding-top: 40px;
}

.services-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cards-track-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cards-track {
    display: flex;
    flex-direction: row;
    width: fit-content;
    height: 100vh;
    align-items: center;
}

.service-card {
    position: relative;
    width: 80vw;
    min-width: 80vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
}

.sc-inner {
    border-radius: 24px;
    width: 100%;
    max-width: 1050px;
    min-height: 480px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid transparent;
    transition: box-shadow 0.4s ease;
}

/* Decor element base */
.sc-decor-wrapper {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    opacity: 0.15;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    z-index: 1;
}

.sc-pattern {
    width: 100%;
    height: 100%;
}

/* Pattern Definitions */
.pattern-circles {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.pattern-circles::before {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.pattern-circles::after {
    content: '';
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.pattern-grid {
    background-image: linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 30px 30px;
}

.pattern-dots {
    background-image: radial-gradient(currentColor 2px, transparent 2px);
    background-size: 20px 20px;
}

.pattern-stripes {
    background-image: repeating-linear-gradient(45deg, currentColor, currentColor 2px, transparent 2px, transparent 15px);
}

.pattern-waves {
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, currentColor 2px, transparent 4px, transparent 15px);
}

.sc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.sc-counter {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.sc-category {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-top: 20px;
}

.sc-mid {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 30px;
}

.sc-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
    transform-origin: left center;
}

.sc-title-white {
    color: #ffffff;
    display: inline-block;
}

.sc-title-accent {
    display: inline-block;
}

.sc-title-line2 {
    color: #ffffff;
    display: block;
}

.sc-desc {
    color: #a0b5a8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 550px;
    margin: 0;
}

.sc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.sc-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

.sc-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid transparent;
}

@media (max-width: 991px) {
    .sc-inner {
        aspect-ratio: auto;
        min-height: 500px;
        padding: 30px;
    }

    .services-section {
        overflow: visible;
    }

    .cards-track-container {
        overflow: visible;
    }

    .cards-track {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .service-card {
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 20px;
    }

    .services-bg {
        display: none;
    }
}

/* Testimonials Section Styles */
.testimonial-redesign {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 120px 5%;
    font-family: 'Inter', sans-serif;
}

.testi-container {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Left Column */
.testi-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.testi-label {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    font-weight: 600;
}

.testi-subtitle {
    font-size: 1rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
    max-width: 280px;
}

.testi-badges {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 80px;
}

.clutch-badge {
    width: 70px;
    height: 70px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid var(--bs-body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--bs-body-color);
    text-align: center;
    background: transparent;
}

/* Right Column (Carousel) */
.testi-right {
    position: relative;
    display: flex;
    flex-direction: column;
}

.testi-carousel {
    position: relative;
    display: grid;
    flex: 1;
}

.testi-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testi-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.testi-quote-mark {
    font-size: 6rem;
    line-height: 1;
    color: var(--bs-heading-color, var(--bs-body-color));
    font-family: serif;
    margin-bottom: -20px;
    font-weight: bold;
}

.testi-quote {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    color: var(--bs-heading-color, var(--bs-body-color));
}

.testi-divider {
    height: 1px;
    background-color: var(--bs-border-color);
    margin-bottom: 35px;
    width: 100%;
}

.testi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 140px;
    /* Space for absolute navigation */
}

.testi-author-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testi-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-author-name {
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 4px 0;
    color: var(--bs-heading-color, var(--bs-body-color));
}

.testi-author-title {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    margin: 0;
}

.testi-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.testi-arrow {
    width: 56px;
    height: 56px;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.testi-arrow:hover {
    background: var(--bs-body-color);
    color: var(--bs-body-bg);
    border-color: var(--bs-body-color);
    transform: scale(1.05);
}

/* Red Reveal Animation */
.reveal-block {
    position: relative;
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.reveal-block.block-block {
    display: block;
}

.reveal-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    z-index: 10;
}

.reveal-block.revealed::after {
    animation: sweep 1s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes sweep {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50.1% {
        transform: scaleX(1);
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* Staggering */
.delay-1::after {
    animation-delay: 0.1s;
}

.delay-2::after {
    animation-delay: 0.2s;
}

.delay-3::after {
    animation-delay: 0.3s;
}

.delay-4::after {
    animation-delay: 0.4s;
}

.delay-5::after {
    animation-delay: 0.5s;
}

.delay-6::after {
    animation-delay: 0.6s;
}

.reveal-block .content-wrapper {
    position: relative;
    z-index: 1;
    opacity: 0;
}

.reveal-block.revealed .content-wrapper {
    animation: showContent 0.1s forwards;
}

/* Content shows up halfway through the sweep animation (0.5s) + staggering */
.reveal-block.revealed.delay-1 .content-wrapper {
    animation-delay: 0.6s;
}

.reveal-block.revealed.delay-2 .content-wrapper {
    animation-delay: 0.7s;
}

.reveal-block.revealed.delay-3 .content-wrapper {
    animation-delay: 0.8s;
}

.reveal-block.revealed.delay-4 .content-wrapper {
    animation-delay: 0.9s;
}

.reveal-block.revealed.delay-5 .content-wrapper {
    animation-delay: 1.0s;
}

.reveal-block.revealed.delay-6 .content-wrapper {
    animation-delay: 1.1s;
}

.reveal-block.revealed:not([class*="delay-"]) .content-wrapper {
    animation-delay: 0.5s;
}

@keyframes showContent {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-block::after {
        display: none;
    }

    .reveal-block .content-wrapper,
    .reveal-block.revealed .content-wrapper {
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 991px) {
    .testi-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .testi-footer {
        padding-right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .testi-nav {
        position: relative;
        bottom: auto;
        right: auto;
    }

    .testi-badges {
        padding-top: 30px;
    }
}

/* --- GLOBAL THEME VARIABLES --- */
:root {
    --marquee-bg: #f8f9fa;
    --marquee-border: rgba(0, 0, 0, 0.05);
    --marquee-text: #6c757d;
    --section-bg-alt: #f1f5f9;
    --text-main: #212529;
    --text-muted: #6c757d;
    --card-bg-subtle: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
    --marquee-bg: #0b1c3a;
    --marquee-border: rgba(255, 255, 255, 0.05);
    --marquee-text: rgba(255, 255, 255, 0.75);
    --section-bg-alt: #000000;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --card-bg-subtle: #111111;
    --card-border: rgba(255, 255, 255, 0.05);
}