/* Enhanced Hero Section Styles for Service Pages */

/* Hero Container with better spacing and overflow handling */
.ser-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 195px;
    margin: 0px auto 80px;
    width: calc(100% - 100px);
    max-width: 1377px;
    font-size: 0px;
    overflow: visible;
}

.ser-container > * {
    font-size: 16px;
}

/* Left side - Text content */
.ser-container .home-how-side.left {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 45%;
    max-width: 550px;
    aspect-ratio: unset;
    top: 0 !important;
    animation: none !important;
    z-index: 2;
}

.ser-container .home-how-side.left .mid {
    width: 100%;
}

.ser-container .home-how-ctn {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0px;
}

/* Enhanced Title Styling */
.ser-container .home-work-title.how {
    position: relative;
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 25px;
    padding-top: 40px;
}

.ser-container .home-work-title.how::before {
    content: '';
    position: absolute;
    display: block;
    width: 100px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    left: 0px;
    top: 0px;
}

/* Enhanced description */
.ser-container .home-how-art {
    position: relative;
    display: block;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #555;
    letter-spacing: 0.3px;
}

/* Enhanced CTA Link */
.ser-container .home-how-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #222;
    padding: 12px 0;
    padding-top: 30px;
    overflow: hidden;
    font-weight: 500;
    transition: color 0.4s ease;
}

.ser-container .home-how-link:hover {
    color: #f7951f;
}

/* Arrow icon styling */
.ser-container .home-how-link .link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.ser-container .home-how-link:hover .link-icon {
    transform: translateX(5px);
}

/* ===========================================
   ENHANCED IMAGE STYLES - The Magic Happens Here
   =========================================== */

/* Right side - Enhanced Image Container */
.ser-container .home-how-side.right {
    position: relative;
    flex: 0 0 50%;
    max-width: 600px;
    aspect-ratio: 4/3;
    margin: 0;
    border-radius: 30px;
    overflow: visible;
    top: 0 !important;
    animation: none !important;
    z-index: 1;
}

/* The actual image */
.ser-container .home-how-side.right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Decorative border frame - creates depth */
.ser-container .home-how-side.right::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid #f7951f;
    border-radius: 30px;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Secondary decorative element */
.ser-container .home-how-side.right::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, rgba(247, 149, 31, 0.1) 0%, transparent 50%);
    border-radius: 30px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Hover effects */
.ser-container .home-how-side.right:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.2),
        0 12px 35px rgba(0, 0, 0, 0.12);
}

.ser-container .home-how-side.right:hover::before {
    top: 25px;
    left: 25px;
    right: -25px;
    bottom: -25px;
    opacity: 0.8;
}

.ser-container .home-how-side.right:hover::after {
    opacity: 1;
}

/* Decorative dots pattern */
.ser-container .hero-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #f7951f 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
    z-index: 0;
}

.ser-container .hero-dots.top-left {
    top: -40px;
    left: -40px;
}

.ser-container .hero-dots.bottom-right {
    bottom: -40px;
    right: -40px;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

/* Large screens */
@media screen and (max-width: 1200px) {
    .ser-container {
        width: calc(100% - 60px);
        gap: 40px;
    }
    
    .ser-container .home-work-title.how {
        font-size: 60px;
    }
    
    .ser-container .home-how-side.right {
        flex: 0 0 48%;
    }
}

/* Tablet landscape */
@media screen and (max-width: 992px) {
    .ser-container {
        width: calc(100% - 40px);
        padding-top: 160px;
        flex-direction: column;
        gap: 50px;
    }
    
    .ser-container .home-how-side.left,
    .ser-container .home-how-side.right {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .ser-container .home-how-side.left {
        text-align: center;
        order: 1;
    }
    
    .ser-container .home-how-side.right {
        order: 2;
        max-width: 500px;
    }
    
    .ser-container .home-work-title.how {
        font-size: 52px;
        padding-top: 30px;
    }
    
    .ser-container .home-work-title.how::before {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .ser-container .home-how-link {
        margin: 0 auto;
    }
    
    /* Adjust decorative elements for tablet */
    .ser-container .home-how-side.right::before {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
    }
}

/* Tablet portrait */
@media screen and (max-width: 768px) {
    .ser-container {
        width: 100%;
        padding: 140px 20px 0;
        margin-bottom: 60px;
        gap: 40px;
    }
    
    .ser-container .home-work-title.how {
        font-size: 44px;
    }
    
    .ser-container .home-how-art {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .ser-container .home-how-side.right {
        border-radius: 20px;
    }
    
    .ser-container .home-how-side.right img {
        border-radius: 20px;
    }
    
    .ser-container .home-how-side.right::before {
        border-radius: 20px;
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
    }
    
    .ser-container .hero-dots {
        width: 80px;
        height: 80px;
        background-size: 12px 12px;
    }
    
    .ser-container .hero-dots.top-left {
        top: -25px;
        left: -25px;
    }
    
    .ser-container .hero-dots.bottom-right {
        bottom: -25px;
        right: -25px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .ser-container {
        padding: 120px 15px 0;
        margin-bottom: 50px;
        gap: 30px;
    }
    
    .ser-container .home-work-title.how {
        font-size: 36px;
        line-height: 1.15;
        padding-top: 25px;
    }
    
    .ser-container .home-work-title.how::before {
        width: 60px;
        height: 4px;
    }
    
    .ser-container .home-how-art {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .ser-container .home-how-side.right {
        border-radius: 16px;
    }
    
    .ser-container .home-how-side.right img {
        border-radius: 16px;
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.12),
            0 6px 15px rgba(0, 0, 0, 0.08);
    }
    
    .ser-container .home-how-side.right::before {
        border-radius: 16px;
        top: 8px;
        left: 8px;
        right: -8px;
        bottom: -8px;
        border-width: 1.5px;
    }
    
    .ser-container .home-how-link {
        font-size: 14px;
        padding-top: 25px;
    }
}

/* Small mobile */
@media screen and (max-width: 360px) {
    .ser-container .home-work-title.how {
        font-size: 32px;
    }
    
    .ser-container .home-how-side.right {
        border-radius: 12px;
    }
    
    .ser-container .home-how-side.right img {
        border-radius: 12px;
    }
    
    .ser-container .home-how-side.right::before {
        border-radius: 12px;
    }
}

/* ===========================================
   ACCESSIBILITY - Reduced Motion
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .ser-container .home-how-side.right img,
    .ser-container .home-how-side.right::before,
    .ser-container .home-how-side.right::after,
    .ser-container .home-how-link .link-icon {
        transition: none;
    }
    
    .ser-container .home-how-side.right:hover img {
        transform: none;
    }
}
