/*
============================
Name:  Justlaw Law and Attorney Template
Version: 1.0.0
Description: Justlaw Law and Attorney Template
Author: Vikiglab
Author URI: https://themeforest.net/user/vikinglab/portfolio
Location:
============================
*/

/* =========================================
   MODERN ENHANCEMENTS & BEAUTIFICATION
   ========================================= */

/* 1. Global Polish */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Hero Section Enhancements */
.hero-area1 {
    position: relative;
    overflow: hidden;
}

/* Subtle background glow for hero */
.hero-area1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(251, 133, 0, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.hero1-main-img-box img {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero1-main-img-box:hover img {
    transform: scale(1.02) rotate(1deg);
}

/* Floating Animation for Side Images */
@keyframes floatY {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero1-side-img1, .hero1-side-img2 {
    animation: floatY 6s ease-in-out infinite;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hero1-side-img1 img, .hero1-side-img2 img {
    border-radius: 12px;
    display: block; 
}

.hero1-side-img2 {
    animation-delay: 3s; 
}

/* 3. Service Box Interactions */
.service1-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.service1-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(30, 47, 133, 0.12);
    border-color: transparent;
}

/* Icon Animation */
.service1-box .icon {
    width: 80px;
    height: 80px;
    background: rgba(251, 133, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.5s ease;
}

.service1-box:hover .icon {
    background: #FB8500;
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px rgba(251, 133, 0, 0.3);
}

.service1-box .icon img {
    transition: filter 0.4s ease;
    width: 40px; /* Enforce consistent size */
}

.service1-box:hover .icon img {
    filter: brightness(0) invert(1);
    transform: rotateY(-180deg);
}

/* Link Underline Effect */
.service1-box h4 a {
    text-decoration: none;
    background-image: linear-gradient(#FB8500, #FB8500);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s, color .3s;
    padding-bottom: 3px;
}

.service1-box:hover h4 a {
    color: #FB8500;
    background-size: 100% 2px;
}

/* 4. Button Modernization */
.theme-btn1 {
    background: linear-gradient(135deg, #FB8500 0%, #FF9E2C 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
    border-radius: 50px;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    z-index: 1;
}

.theme-btn1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #1E2F85 0%, #3a4b9f 100%);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

.theme-btn1:hover::before {
    width: 100%;
}

.theme-btn1:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 47, 133, 0.25);
    color: #fff;
}

.theme-btn1 span i {
    transition: transform 0.3s ease;
}

.theme-btn1:hover span i {
    transform: translateX(5px);
}

/* 5. Typography & Section Headers */
.hadding1 h1 {
    position: relative;
    display: inline-block;
}

.hadding1 span.span {
    background: rgba(30, 47, 133, 0.06); 
    border: none;
    color: #1E2F85;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 30px;
}

/* 6. Case Study Images */
.case2-box {
    overflow: hidden;
    border-radius: 12px;
}
.case2-box .case1-img {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.case2-box .case1-img img {
    transition: transform 0.6s ease;
    width: 100%;
}

.case2-box:hover .case1-img img {
    transform: scale(1.1);
}

/* Enhance Footer */
.footer {
    position: relative;
    background-color: #f9f9f9;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1E2F85 0%, #FB8500 100%);
}

.footer .social li a {
    background: #fff;
    color: #1E2F85;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.footer .social li a:hover {
    background: #FB8500;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 133, 0, 0.4);
}