/* =============================================== Hero Section ================================================ */

/* --- Base Styles --- */
.hero-section {
    margin: 0;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* --- Left content --- */
.hero-content {
    max-width: 620px;
    z-index: 2;
    position: relative;
    margin-top: 40px;
    right: -80px;
}

.hero-content h1 {
    font-size: 2.9rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* --- Button --- */
.contact-btn {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

/* --- Right side image setup --- */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

/* --- Purple Gradient Background --- */
.purple-bg {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    width: 700px;
    height: auto;
    z-index: 0;
}

/* --- Phone image --- */
.phones-img {
    position: relative;
    width: 550px;
    max-width: 100%;
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
    border-radius: 20px;
    transition: transform 0.3s ease;
    right: -115px;
    top: 70px;
}

.phones-img:hover {
    transform: scale(1.03);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column-reverse;
        /* ✅ Phone top, content below */
    }

    .hero-content {
        right: 0;
        text-align: center;
        margin: 0 auto 40px auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .purple-bg {
        right: -60px;
        width: 500px;
    }

    .phones-img {
        right: 0;
        top: 20px;
        width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        text-align: center;
        margin-top: 80px;
        /* ✅ Added top margin for mobile */
    }

    .hero-section .container {
        flex-direction: column-reverse;
        /* ✅ Keep image first, content after */
    }

    .purple-bg {
        display: none !important;
    }

    .hero-image {
        display: none !important;
    }

    .hero-content {
        right: 0;
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .phones-img {
        width: 320px;
        right: 0;
        top: 0;
    }
}

/* --- Small Phones --- */
@media (max-width: 576px) {
    .hero-section {
        padding: 50px 15px;
        margin-top: 80px;
        /* ✅ Added top margin for smaller phones too */
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .phones-img {
        width: 260px;
    }

    .purple-bg {
        display: none !important;
    }

    .hero-image {
        display: none !important;
    }
}

/* Phones Carousel Container */
.phones-carousel {
    position: relative;
    width: 600px;
    height: 600px;
    top: 120px;
    left: 40%;
}

/* Phone Frame */
.phone {
    position: absolute;
    width: 220px;
    height: 400px;
    border-radius: 40px;
    overflow: hidden;
    border: 2px solid #333;
    /* subtle bezel */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.8s ease-in-out;
    backface-visibility: hidden;
    position: absolute;
    background: #111;
    z-index: 1000;
}

.phone video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Base positions */
.phone-left {
    transform: translateX(-190px) scale(0.8) rotateY(30deg);
    opacity: 0.6;
    z-index: 1;
}

.phone-center {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 3;
}

.phone-right {
    transform: translateX(190px) scale(0.8) rotateY(-30deg);
    opacity: 0.6;
    z-index: 1;
}

.video-frame {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    /* rounded corners like phone frame */
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border: 8px solid #fff;
    /* phone bezel */
    background: #000;
    /* fallback background behind video */
}

/* Responsive */
@media (max-width: 992px) {
    .phones-carousel {
        width: 500px;
        height: 500px;
    }

    .phone-left,
    .phone-right {
        transform: translateX(-160px) scale(0.8) rotateY(25deg);
        transform: translateX(160px) scale(0.8) rotateY(-25deg);
    }
}

.video-frame {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    /* screen corners */
    overflow: hidden;
    border: 8px solid #000;
    /* bezel around screen */
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
    background: #000;
    /* fallback behind video */
}

/* Optional top notch for realism */
.phone::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    border-radius: 3px;
    background: #222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hover lift effect */
.phone:hover {
    transform: scale(1.05) rotateY(0deg) translateZ(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* =============================== */
/* Responsive adjustments for ≥768px */
/* =============================== */
@media (min-width: 768px) and (max-width: 991px) {

    /* Hero Section */
    .hero-section {
        padding: 60px 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .purple-bg {
        display: block !important;
        width: 500px;
        right: -60px;
    }

    .hero-image {
        display: flex !important;
    }

    .phones-carousel {
        display: block;
        width: 500px;
        height: 500px;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
    }

    .phone-left {
        transform: translateX(-160px) scale(0.8) rotateY(25deg);
    }

    .phone-right {
        transform: translateX(160px) scale(0.8) rotateY(-25deg);
    }

    /* Case Study Section */
    .case-study-section .case-study-box {
        padding: 2rem;
    }

    /* Process Section */
    .process-title {
        font-size: 2rem;
    }
}

/* Large Tablets and Small Desktops ≥992px */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .phones-carousel {
        width: 600px;
        height: 600px;
        top: 120px;
    }

    .phone-left {
        transform: translateX(-190px) scale(0.8) rotateY(30deg);
    }

    .phone-right {
        transform: translateX(190px) scale(0.8) rotateY(-30deg);
    }

    .process-title {
        font-size: 2.3rem;
    }
}

/* Large Screens ≥1200px */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 2.9rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .phones-carousel {
        width: 700px;
        height: 600px;
        top: 140px;
    }

    .purple-bg {
        width: 700px;
        right: -100px;
    }

    .process-title {
        font-size: 2.5rem;
    }
}

/* Fix for 1024px width screens */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero-section .container {
        flex-direction: row;
        /* keep content and image side by side */
    }

    .hero-content {
        max-width: 550px;
        right: 0;
    }

    .hero-image {
        min-width: 400px;
        justify-content: flex-end;
        overflow: hidden;
    }

    .purple-bg {
        width: 550px;
        right: -40px;
        /* adjust so it stays in viewport */
    }

    .phones-carousel {
        width: 500px;
        height: 500px;
        top: 100px;
        left: 70%;
        transform: translateX(-50%);
    }

    .phone-left {
        transform: translateX(-150px) scale(0.8) rotateY(25deg);
    }

    .phone-center {
        transform: translateX(0) scale(1) rotateY(0deg);
    }

    .phone-right {
        transform: translateX(150px) scale(0.8) rotateY(-25deg);
    }
}


/* =============================================== Case Study Section ================================================ */

/* =============================== */
/* Case Study Section  */
/* =============================== */

.case-study-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* =============================== */
/* Section Titles */
/* =============================== */
.section-title {
    font-weight: 700;
    color: #7b3aed;
    font-size: 2rem;
}

.section-subtitle {
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
}

/* =============================== */
/* Case Study Box */
/* =============================== */
.case-study-section .case-study-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.case-study-section .case-study-box:hover {
    transform: translateY(-5px);
}

.case-study-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-study-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* =============================== */
/* Case Text */
/* =============================== */
.case-text p {
    color: #6c757d;
}

/* =============================== */
/* Badge */
/* =============================== */
.badge {
    font-size: 0.85rem;
    background: #f8f9fa;
    border-radius: 20px;
}

/* =============================== */
/* Buttons */
/* =============================== */
.btn-gradient {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    color: #fff;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    color: #fff;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* =============================== */
/* Image Styling */
/* =============================== */
img.rounded-4 {
    border-radius: 1rem !important;
}

/* =============================== */
/* Case Metrics */
/* =============================== */
.case-study-section .case-metric {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    transition: 0.3s ease;
}

.case-study-section .case-metric i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}

/* Color variations */
.case-study-section .case-metric.purple i,
.case-study-section .case-metric.purple h4 {
    color: #7b4bff;
}

.case-study-section .case-metric.pink i,
.case-study-section .case-metric.pink h4 {
    color: #ff3e8b;
}

.case-study-section .case-metric:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* =============================== */
/* Responsive Adjustments */
/* =============================== */

/* Tablets and below */
@media (max-width: 991px) {
    .case-study-box {
        text-align: center;
        padding: 2rem 1rem;
    }

    .case-text {
        margin-top: 1rem;
    }

    .case-study-box .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile and below */
@media (max-width: 768px) {
    .case-study-section .case-metric {
        padding: 0.8rem;
    }
}


/* ========================== Influencer Marketing Agency In India (3 row box section) ============================ */

/* Gradient for the pink text in the title */
.gradient-text {
    background: linear-gradient(130deg, #9647f7, #e957b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.process-title {
    font-size: 2.5rem;
    font-weight: 900;
}

/* Card Styling */
.process-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.process-card:hover {
    box-shadow: 0 10px 30px rgba(150, 71, 247, 0.1);
    transform: translateY(-5px);
}

.process-card-title {
    font-size: 1.25rem;
    color: #333;
}

.process-card-text {
    font-size: 0.95rem;
}

/* Icon Wrapper */
.process-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a766f7, #f770a8);
    box-shadow: 0 5px 15px rgba(150, 71, 247, 0.4);
}

.process-icon {
    color: #fff;
    stroke-width: 2.5;
}

/* Read More Link */
.process-read-more {
    color: #c83ef2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.process-read-more:hover {
    color: #9647f7;
}

/* Carousel Specific Styles */
.process-carousel .process-card {
    min-height: auto;
    margin: 0 auto;
}

.process-carousel .process-icon-wrapper {
    margin: 0 auto 1rem;
}

.process-carousel .carousel-inner {
    padding-bottom: 1rem;
}

/* Carousel Dots Styles */
.process-carousel .carousel-indicators {
    bottom: -20px;
}

.process-carousel .carousel-indicators [data-bs-target] {
    background-color: #c83ef2;
    opacity: 0.6;
}

.process-carousel .carousel-indicators .active {
    background-color: #9647f7;
    opacity: 1;
}

/* Responsiveness adjustments */
@media (max-width: 991px) {
    .process-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .process-title {
        font-size: 1.75rem;
    }
}