body {
    font-family: 'Graphik Medium', Arial, sans-serif;
}

.font-serif-display {
    font-family: 'DM Serif Display', serif;
}

#interactive-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    animation: fadeIn 3s 1s forwards;
}

#footer-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    animation: fadeIn 3s 1s forwards;
    background: transparent;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.content-container,
.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-container {
    animation: fadeIn-up 1.5s 0.5s forwards;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.title-glow {
    text-shadow: 0 0 30px rgba(79, 70, 229, 0.2), 0 0 20px rgba(236, 72, 153, 0.2);
}

header {
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    transform: translateY(-100%);
}

body.scrolled header {
    transform: translateY(0);
}

#hero-logo {
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

#header-logo,
#header-nav {
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
}

body.scrolled #header-logo,
body.scrolled #header-nav {
    opacity: 1;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background-color: #ef4444;
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- MODAL ENHANCEMENTS ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.829);
    padding: 2.5rem;
    border-radius: 0.75rem;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-overlay.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: backdropPulse 1.2s ease-out;
    pointer-events: none;
}

@keyframes backdropPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.faq-question {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.heading-graphik {
    font-family: GraphikMedium, Arial, sans-serif;
}

.subheading-inter {
    font-family: Inter, Arial, sans-serif;
}

@keyframes fadeIn {
    to {
        opacity: 0.5;
    }
}

@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.infinite-scroll-container {
    overflow: hidden;
    width: 80%;
    height: 140px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.infinite-scroll {
    display: flex;
    gap: 15px;
    animation: horizontalScroll 16s linear infinite;
}

.infinite-scroll img {
    margin-top: 1rem;
    margin-right: 20px;
    transition: transform 0.5s ease;
    height: 100px;
    width: 100px;
    object-fit: contain;
}

.infinite-scroll img:hover {
    transform: scale(1.1);
}

@keyframes horizontalScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-660px);
    }
}

.infinite-scroll-duplicate {
    display: flex;
}

#case-studies {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#services .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#services .service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(to right, #ef4444, #1f2937);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

#services .benefits {
    display: flex;
    flex-direction: column;
}

#process .timeline {
    position: relative;
    padding: 2rem 0;
}

#process .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #e0e7ff;
    transform: translateX(-50%);
}

#process .timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

#process .timeline-item:nth-child(odd) {
    justify-content: flex-end;
    text-align: right;
}

#process .timeline-item:nth-child(even) {
    justify-content: flex-start;
    text-align: left;
}

#process .timeline-content {
    width: 45%;
    padding: 1rem;
}

#process .timeline-dot {
    width: 16px;
    height: 16px;
    background: #4f46e5;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-container {
    width: 100%;
}

.case-studies-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .case-studies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

.case-study-item {
    background: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 1rem;
}

.case-study-item:hover {
    background: #e5e7eb;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.case-study-item:hover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 1rem;
    z-index: -1;
    animation: pulse 2s infinite;
}

.case-study-item img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 1rem auto;
}

.case-study-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.case-study-item p {
    font-size: 0.875rem;
    color: #4b5563;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-study-item button.modal-trigger {
    margin-top: auto;
    align-self: center;
    font-size: 0.875rem;
    color: rgb(177, 23, 23);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.case-study-item button.modal-trigger:hover {
    color: rgb(177, 23, 23);
}

.testimonial-carousel-container {
    overflow: hidden;
    width: 100%;
}

.testimonial-carousel {
    display: flex;
    gap: 3px;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-item {
    flex: 0 0 100%;
    min-width: 50%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    padding: 0 15px;
}

.testimonial-item img {
    width: 96px;
    height: 96px;
    /* border-radius: 50%; */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    section.py-12.md\:py-0.bg-transparent {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #case-studies {
        padding-top: 5rem;
        padding-bottom: 3rem;
        margin-top: 1rem;
    }

    .infinite-scroll-container {
        height: 140px;
        width: 100%;
    }

    .infinite-scroll img {
        height: 100px;
        width: 100px;
        margin-right: 10px;
    }

    .hero-section {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .heading-graphik {
        font-size: 2rem;
    }

    .subheading-inter {
        font-size: 1.5rem;
    }

    header {
        padding: 1rem;
    }

    #header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f9fafb;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 0;
    }

    #hero-logo img {
        height: 5rem;
    }

    .content-container p {
        font-size: 1rem;
        max-width: 90%;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-study-item {
        max-width: 100%;
        margin: 0 auto;
    }

    #process .timeline::before {
        display: none;
    }

    #process .timeline-dot {
        display: none;
    }

    #process .timeline-item {
        flex-direction: column;
        text-align: left !important;
        margin-left: 0;
        margin-bottom: 1.5rem;
        background: #fff;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
    }

    #process .timeline-content {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #services .service-card {
        margin: 0 auto;
        max-width: 100%;
    }

    #services .benefits {
        text-align: left;
        margin: 0 auto;
        max-width: 100%;
    }

    #why-us .grid {
        grid-template-columns: 1fr;
    }

    #testimonials .grid {
        grid-template-columns: 1fr;
    }

    #contact .grid {
        grid-template-columns: 1fr;
    }

    .mt-22 {
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .heading-graphik {
        font-size: 1.8rem;
    }

    .subheading-inter {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        min-height: 90vh;
        padding: 3rem 2rem;
    }

    .heading-graphik {
        font-size: 3.5rem;
    }

    .subheading-inter {
        font-size: 2rem;
    }

    header {
        padding: 1.5rem 2rem;
    }

    .infinite-scroll-container {
        height: 120px;
        width: 90%;
    }

    .infinite-scroll img {
        height: 80px;
        width: 80px;
        margin-right: 15px;
    }

    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-item {
        min-height: 340px;
    }

    .testimonial-item {
        flex: 0 0 calc(50% - 16px);
        min-width: calc(50% - 16px);
    }

    #why-us .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #contact .grid {
        grid-template-columns: 1fr;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.process-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 400px;
    min-height: 25px;
}

.process-node:hover {
    transform: translateY(-5px);
}

.process-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: linear-gradient(to right, #ef4444, #1f2937);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon svg {
    display: block;
    margin: auto;
}

#notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 100%;
    max-width: 340px;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-toast {
    width: 100%;
    pointer-events: auto;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #ef4444, #1f2937);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 400ms ease-in-out, transform 400ms ease-in-out;
}

.notification-toast.show {
    opacity: 1;
    transform: scale(1);
}

.notification-toast.hide {
    opacity: 0;
    transform: scale(0.9);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    flex-wrap: wrap;
}

.notification-content i {
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
    #notification {
        max-width: 90%;
    }

    .notification-toast {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .notification-content {
        font-size: 0.8rem;
        gap: 6px;
    }
}

.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.testimonial-carousel-container {
    overflow: hidden;
    width: 100%;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.testimonial-item {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="%23dc2626" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>'), auto;
}

.testimonial-item img {
    width: 100px;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .testimonial-item img {
        width: 130px;
        margin-bottom: 0;
        margin-right: 1.75rem;
    }

    .testimonial-item {
        padding: 2rem 3rem;
    }
}

.testimonial-prev-arrow,
.testimonial-next-arrow {
    opacity: 0.95;
}

@media (max-width: 767px) {

    .testimonial-prev-arrow,
    .testimonial-next-arrow {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-prev-arrow {
        left: -60px;
    }

    .testimonial-next-arrow {
        right: -60px;
    }
}

@media (min-width: 1024px) {
    .testimonial-prev-arrow {
        left: -80px;
    }

    .testimonial-next-arrow {
        right: -80px;
    }
}

.testimonial-dots .dot.active {
    width: 12px;
    background: linear-gradient(to right, #ef4444, #1f2937);
}