/* User Provided Premium Styles & Mobile Optimizations */

/* =========================================
   1. Typography & Reset (Global)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --primary-color: #1DBF73;
    --primary-hover: #19a463;
    --text-dark: #222325;
    --text-muted: #62646A;
    --border-color: #E4E5E7;
}

body,
html {
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.title {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

/* =========================================
   2. Animations
   ========================================= */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* =========================================
   3. Components (Desktop Defaults)
   ========================================= */

/* Buttons */
.view-all-btn,
.btn-premium {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.view-all-btn:hover,
.btn-premium:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.3);
}

/* Premium Cards */
.gig-card,
.fiverr-new-gig-card,
.testimonial-card-premium {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gig-card:hover,
.fiverr-new-gig-card:hover,
.testimonial-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border-color: var(--primary-color);
}

/* Testimonial Specifics */
.testimonial-card-premium {
    padding: 32px;
    height: 100%;
    position: relative;
    display: flex;
    /* Flexbox for height distribution */
    flex-direction: column;
}

/* Fix Profile Image Overlap similar to Fiverr */
/* Fix Profile Image Overlap similar to Fiverr */
.seller-avatar {
    margin-top: -18px;
    /* Negative margin to pull it up over the image */
    z-index: 2;
    background: #fff;
    /* Ensure background behind transparency */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gig-card:hover .seller-avatar,
.fiverr-new-gig-card:hover .seller-avatar,
.testimonial-card-premium:hover .author-image-premium {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Specific fix for Project Details Mobile Layout */
.project-preview,
.preview-area,
.carousel-item img {
    max-width: 100vw !important;
}

/* Forcing container constraints on mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
    }

    .carousel-item img {
        height: 250px !important;
        /* Reduce height on mobile */
    }

    .project-preview-thumb {
        height: auto !important;
    }
}

.testimonial-text-premium {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author-premium {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-image-premium {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #F7F8FA;
}

.author-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   4. Mobile Responsiveness (Max-Width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* Container & Layout */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    [class^="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Typography Scaling */
    .section-title,
    h2.title {
        font-size: 24px !important;
        /* Force readable size */
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .section-subtitle,
    p {
        font-size: 14px !important;
        line-height: 1.5;
    }

    /* Gigs & Cards */
    .gig-image-wrapper,
    .gig-image {
        height: 180px !important;
        /* Proper aspect ratio for mobile */
    }

    .fiverr-new-gig-card {
        margin-bottom: 16px;
        /* Spacing between stacked cards */
    }

    /* Testimonials */
    .testimonial-card-premium {
        padding: 24px;
        /* Reduced padding */
        margin-bottom: 16px;
    }

    /* Hero Section Mobile */
    .hero-area {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        text-align: center;
    }

    .hero-title {
        font-size: 32px !important;
    }

    .hero-search-wrapper {
        width: 100% !important;
        padding: 0 10px;
    }

    .hero-input {
        height: 50px !important;
        font-size: 14px;
    }

    /* Hide non-essential decorative elements on mobile */
    .shape-image,
    .floating-icon {
        display: none !important;
    }

    /* Buttons */
    .view-all-btn,
    .cmn-btn {
        width: 100%;
        /* Full width buttons for easier touch */
        justify-content: center;
        margin-top: 10px;
    }
}

/* =========================================
   5. Small Mobile (Max-Width: 480px)
   ========================================= */
@media (max-width: 480px) {
    .section-title {
        font-size: 22px !important;
    }

    .testimonial-card-premium {
        padding: 20px;
    }

    .gig-stats {
        display: none;
    }

    /* Hide less important info */
    .gig-price {
        width: 100%;
        justify-content: space-between;
        flex-direction: row !important;
        align-items: center;
    }
}