/* Modern CSS Enhancements for EsJay IT Solutions */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Modern card effects for service sections */
.service-grid,
.services-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-grid:hover,
.services-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Removed gradient border effect - replaced with cleaner hover */

/* Modern button animations */
.readmore,
.readon {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.readmore::before,
.readon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.readmore:hover::before,
.readon:hover::before {
    width: 300px;
    height: 300px;
}

/* Gradient text effect for headings */
.sec-title4 .title {
    background: linear-gradient(135deg, #043d72 0%, #0a5a9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern shadow effects */
.rs-about.style5 .left-side img,
.footer-logo img,
.logo-area img {
    transition: all 0.4s ease;
}

.rs-about.style5 .left-side img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Animated skill tag */
.skill-tag {
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(187, 11, 11, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* Modern footer social icons */
.footer-social li a,
.toolbar-sl-share ul li a,
.social li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-social li a:hover,
.toolbar-sl-share ul li a:hover,
.social li a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Scroll to top button modern effect */
#scrollUp {
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(187, 11, 11, 0.4);
    border-radius: 50%;
    background: linear-gradient(135deg, #bb0b0b 0%, #e94d65 100%);
}

#scrollUp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(187, 11, 11, 0.6);
}

/* Fade in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rs-services,
.rs-about,
.rs-contact {
    animation: fadeInUp 0.8s ease-out;
}

/* Modern topbar with glass effect */
.topbar-area.style1 {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Smooth menu transitions */
.menu-area.sticky {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modern banner text animation */
.rs-banner .sub-title {
    animation: slideInLeft 0.8s ease-out backwards;
}

.rs-banner .sub-title:nth-child(2) {
    animation-delay: 0.2s;
}

.rs-banner .sub-title:nth-child(3) {
    animation-delay: 0.4s;
}

.rs-banner .sub-title:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern border line animation */
.border-line {
    position: relative;
    overflow: hidden;
}

.border-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #bb0b0b, #e94d65, #bb0b0b);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Icon animations */
.services-icon img,
.info-icon i {
    transition: all 0.4s ease;
}

.services-item:hover .services-icon img {
    transform: scale(1.1) rotate(5deg);
}

.address-list:hover .info-icon i {
    transform: scale(1.2);
    color: #e94d65;
}

/* Modern link hover effects */
a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #bb0b0b;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Improved form inputs */
input[type="text"],
input[type="email"],
textarea,
select {
    transition: all 0.3s ease;
    border-radius: 8px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 11, 11, 0.2);
}

/* Modern iframe container */
.contact-map iframe {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-map iframe:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Gradient overlay for sections */
.rs-services.chooseus-style {
    position: relative;
}

.rs-services.chooseus-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 61, 114, 0.03) 0%, rgba(233, 77, 101, 0.03) 100%);
    pointer-events: none;
}

/* Modern footer effect */
.footer-top {
    position: relative;
    overflow: hidden;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e94d65, transparent);
    animation: footerSlide 4s infinite;
}

@keyframes footerSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Parallax effect for pattern images */
.pattern-img img {
    transition: transform 0.3s ease;
}

.rs-about:hover .pattern-img img {
    transform: scale(1.05);
}

/* Modern checkbox and radio styles */
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Smooth transitions for all interactive elements */
button,
.btn,
.submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loading state animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 991px) {
    .service-grid:hover,
    .services-item:hover {
        transform: translateY(-5px);
    }
}

/* Add subtle entrance animation for loaded sections */
section.loaded {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
