/* ========================================
   PREMIUM ANIMATIONS & EFFECTS
   ======================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #040F28;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FD5D14, #FDBE33);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FDBE33, #FD5D14);
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #040F28 0%, #0a1a3a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(253, 93, 20, 0.2);
    border-top: 5px solid #FD5D14;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   HEADER ANIMATIONS
   ======================================== */
.navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(4, 15, 40, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FD5D14, #FDBE33);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* ========================================
   3D CARD EFFECTS
   ======================================== */
.card-3d {
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-3d-inner {
    position: relative;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: translateY(-12px) scale(1.02);
}

.feature-item {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 35px rgba(253, 93, 20, 0.3);
}

.feature-item:hover .feature-icon i {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ========================================
   BUTTON ANIMATIONS
   ======================================== */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::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;
    z-index: -1;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(253, 93, 20, 0.4);
}

.btn-premium:active {
    transform: translateY(-1px);
}

/* ========================================
   FLOATING ANIMATIONS
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   GRADIENT ANIMATIONS
   ======================================== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background: linear-gradient(270deg, #FD5D14, #FDBE33, #FD5D14);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

/* ========================================
   PARALLAX EFFECTS
   ======================================== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, 0.7);
}

/* ========================================
   COUNTER ANIMATIONS
   ======================================== */
.counter-box {
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: scale(1.1);
}

.counter-number {
    font-weight: 700;
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   IMAGE HOVER EFFECTS
   ======================================== */
.image-hover-zoom {
    overflow: hidden;
    position: relative;
}

.image-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-zoom:hover img {
    transform: scale(1.15) rotate(2deg);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 93, 20, 0.8), rgba(253, 190, 51, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-hover-zoom:hover .image-overlay {
    opacity: 1;
}

/* ========================================
   GLOWING EFFECTS
   ======================================== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(253, 93, 20, 0.5),
                    0 0 10px rgba(253, 93, 20, 0.4),
                    0 0 15px rgba(253, 93, 20, 0.3);
    }
    50% {
        box-shadow: 0 0 10px rgba(253, 93, 20, 0.8),
                    0 0 20px rgba(253, 93, 20, 0.6),
                    0 0 30px rgba(253, 93, 20, 0.4);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CAROUSEL ENHANCEMENTS
   ======================================== */
.carousel-item {
    transition: transform 1s ease-in-out;
    height: 65vh;
    min-height: 500px;
}

.carousel-item img {
    height: 65vh;
    min-height: 500px;
    object-fit: cover;
}

.carousel-caption {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   WHATSAPP CHAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========================================
   PARTICLES BACKGROUND
   ======================================== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   STATISTICS SECTION
   ======================================== */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 93, 20, 0.1), rgba(253, 190, 51, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */
.video-background {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 15, 40, 0.7);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   MODERN SHADOWS
   ======================================== */
.shadow-premium {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06);
}

.shadow-premium-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-premium-hover:hover {
    box-shadow: 0 20px 60px rgba(253, 93, 20, 0.15),
                0 5px 15px rgba(253, 93, 20, 0.1);
}

/* ========================================
   MODERN SERVICE CARDS
   ======================================== */
.service-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
    background: white;
    border: 2px solid transparent;
}

.service-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-item:hover::after {
    opacity: 1;
}

.service-item img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-item:hover img {
    transform: scale(1.08);
}

.service-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-item:hover .service-icon {
    transform: rotateY(360deg) scale(1.15);
    box-shadow: 0 15px 40px rgba(253, 93, 20, 0.3);
}

.service-item .p-4 {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    background: white;
    border-radius: 0 0 20px 20px;
}

.service-item:hover .p-4 {
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
}

.service-item:hover .p-4 h4,
.service-item:hover .p-4 p,
.service-item:hover .p-4 a,
.service-item:hover .p-4 .text-muted {
    color: white !important;
}

.service-item a.btn-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-item a.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.service-item:hover a.btn-link::after {
    width: 100%;
}

.service-item:hover a.btn-link {
    transform: translateX(5px);
}

.service-item:hover a.btn-link i {
    animation: arrowSlide 0.6s ease infinite;
}

.service-item:hover .service-icon i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ========================================
   MODERN TEAM CARDS
   ======================================== */
.team-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover img {
    transform: scale(1.08);
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-social {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.team-card:hover .team-social a {
    background: #FD5D14 !important;
    color: white !important;
    transform: scale(1.1);
}

.team-social a {
    transition: all 0.3s ease;
}

.team-info {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    border-radius: 0 0 18px 18px;
}

.team-card:hover .team-info {
    background: white !important;
    transform: translateY(-5px);
}

.team-card:hover .team-info h4 {
    color: #FD5D14 !important;
}

/* ========================================
   MODERN BLOG CARDS
   ======================================== */
.blog-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-card .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.blog-card img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px 20px 0 0;
}

.blog-card:hover img {
    transform: scale(1.08);
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-card .p-4 {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    background: white;
    border-radius: 0 0 20px 20px;
}

.blog-card:hover .p-4 {
    background: linear-gradient(135deg, #FD5D14, #FDBE33);
}

.blog-card:hover .p-4 h4,
.blog-card:hover .p-4 p,
.blog-card:hover .p-4 a,
.blog-card:hover .p-4 .text-muted,
.blog-card:hover .p-4 small {
    color: white !important;
}

.blog-card a.text-uppercase {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.blog-card a.text-uppercase::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.blog-card:hover a.text-uppercase::after {
    width: 100%;
}

.blog-card:hover a.text-uppercase {
    transform: translateX(5px);
}

.blog-card:hover a.text-uppercase i {
    animation: arrowSlide 0.6s ease infinite;
}

@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* ========================================
   PORTFOLIO/PROJECT HOVER EFFECTS
   ======================================== */
.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.portfolio-box img {
    border-radius: 20px;
}

.portfolio-title {
    position: relative;
    z-index: 2;
}

/* Filter button styles */
.btn-filter:hover,
.btn-filter.active {
    background: linear-gradient(135deg, #FD5D14, #FDBE33) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(253, 93, 20, 0.3) !important;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .service-item:hover,
    .blog-card:hover,
    .team-card:hover {
        transform: translateY(-10px);
    }
}
