/* Custom Styles for Prashant BizSite */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Primary Color */
.bg-primary {
    background-color: #25D366;
}

.text-primary {
    color: #25D366;
}

.border-primary {
    border-color: #25D366;
}

.bg-secondary {
    background-color: #128C7E;
}

.text-secondary {
    color: #128C7E;
}

.hover\:bg-secondary:hover {
    background-color: #128C7E;
}

/* Custom Colors */
.bg-dark {
    background-color: #1a1a1a;
}

.bg-light {
    background-color: #f8f9fa;
}

.text-dark {
    color: #1a1a1a;
}

/* Primary color with opacity */
.bg-primary\/10 {
    background-color: rgba(37, 211, 102, 0.1);
}

.text-primary\/20 {
    color: rgba(37, 211, 102, 0.2);
}

.focus\:ring-primary\/20:focus {
    --tw-ring-color: rgba(37, 211, 102, 0.2);
}

/* Focus states */
.focus\:border-primary:focus {
    border-color: #25D366;
}

/* Navbar shadow on scroll */
nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-full font-semibold transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-secondary transform scale-105;
}

/* Card hover effects */
.service-card {
    @apply transition-all duration-300;
}

.service-card:hover {
    @apply transform -translate-y-2 shadow-xl;
}

/* Section spacing */
section {
    @apply scroll-mt-20;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* WhatsApp float button animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.whatsapp-float:hover {
    animation: pulse 1s infinite;
}

/* Form input focus animation */
input:focus,
textarea:focus {
    @apply transition-all duration-300;
}

/* Package card popular badge */
.popular-badge {
    animation: pulse 2s infinite;
}

/* Testimonial cards */
.testimonial-card {
    @apply transition-all duration-300;
}

.testimonial-card:hover {
    @apply transform scale-102 shadow-xl;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to top button */
.scroll-top {
    @apply fixed bottom-8 right-8 bg-primary text-white w-12 h-12 rounded-full flex items-center justify-center cursor-pointer opacity-0 transition-opacity duration-300;
    z-index: 1000;
}

.scroll-top.visible {
    @apply opacity-100;
}

.scroll-top:hover {
    @apply bg-secondary;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}

/* Logo styling - Circular with animation */
.logo-img {
    @apply h-12 w-auto;
    border-radius: 50%;
    border: 3px solid #25D366;
    padding: 2px;
    transition: transform 0.3s ease;
}

/* Logo hover animation */
.logo-img:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Logo bounce animation on page load */
@keyframes logoBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-animate {
    animation: logoBounce 1s ease-out forwards;
}

/* Logo continuous subtle animation */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-float {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Hero section background */
.hero-gradient {
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
}

/* Trust badge styling */
.trust-badge {
    @apply inline-flex items-center gap-2 px-4 py-2 bg-white rounded-full shadow-sm;
}

/* Service icon container */
.service-icon {
    @apply w-16 h-16 rounded-full flex items-center justify-center;
}

/* Contact form styling */
.form-input {
    @apply w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none transition-all duration-300;
}

/* Footer links */
.footer-link {
    @apply text-gray-400 hover:text-primary transition-colors duration-300;
}

/* Section title underline */
.section-title::after {
    content: '';
    @apply block w-24 h-1 bg-primary mx-auto mt-4;
}

/* Package price styling */
.price {
    @apply text-4xl font-bold text-primary;
}

.price-period {
    @apply text-lg text-gray-500;
}

/* Demo site card overlay */
.demo-card-overlay {
    @apply absolute inset-0 bg-black/50 flex items-center justify-center opacity-0 transition-opacity duration-300;
}

.demo-card:hover .demo-card-overlay {
    @apply opacity-100;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        @apply pt-20;
    }

    .section-padding {
        @apply py-12;
    }
}

/* Print styles */
@media print {

    nav,
    .scroll-top,
    .whatsapp-float {
        display: none;
    }
}

/* ========================================
   NEW ANIMATIONS FOR WHOLE SITE
   ======================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s ease-out;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.5s ease-out;
}

/* Wiggle Animation */
@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

.animate-wiggle {
    animation: wiggle 0.5s ease-in-out;
}

/* Heart Beat Animation */
@keyframes heartbeat {

    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

/* Slide In Bottom */
@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-bottom {
    animation: slideInBottom 0.6s ease-out forwards;
}

/* ========================================
   ANIMATION DELAY CLASSES
   ======================================== */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

/* ========================================
   HOVER ANIMATIONS
   ======================================== */

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Hover scale effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Hover glow effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

/* ========================================
   SCROLL ANIMATIONS (using Intersection Observer)
   ======================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-children.is-visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(2) {
    transition-delay: 100ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(3) {
    transition-delay: 200ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(4) {
    transition-delay: 300ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(5) {
    transition-delay: 400ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.is-visible>*:nth-child(6) {
    transition-delay: 500ms;
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PARALLAX EFFECT
   ======================================== */

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ========================================
   FLOATING ANIMATION
   ======================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Different float speeds */
.float-fast {
    animation: float 2s ease-in-out infinite;
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

/* ========================================
   RUBBER BAND EFFECT
   ======================================== */

@keyframes rubberBand {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

.animate-rubber-band {
    animation: rubberBand 1s ease-out;
}

/* ========================================
   LIGHT SPEED IN
   ======================================== */

@keyframes lightSpeedIn {
    from {
        transform: translateX(100%) skewX(-20deg);
        opacity: 0;
    }

    60% {
        transform: translateX(-10%) skewX(20deg);
    }

    80% {
        transform: translateX(5%) skewX(-10deg);
    }

    100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
    }
}

.animate-light-speed-in {
    animation: lightSpeedIn 0.8s ease-out;
}

/* ========================================
   ROLL IN
   ======================================== */

@keyframes rollIn {
    from {
        opacity: 0;
        transform: translateX(-100%) rotate(-120deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.animate-roll-in {
    animation: rollIn 0.8s ease-out;
}

/* ========================================
   OFFER POPUP MODAL STYLES
   ======================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #25D366;
    color: white;
    transform: rotate(90deg);
}

/* Modal Header/Icon */
.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.modal-icon i {
    font-size: 40px;
    color: white;
}

/* Modal Title */
.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Modal Description */
.modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Modal Offer Highlight */
.modal-offer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px dashed #ffc107;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.modal-offer-text {
    font-size: 24px;
    font-weight: 800;
    color: #d39e00;
    margin-bottom: 5px;
}

.modal-offer-subtext {
    font-size: 14px;
    color: #856404;
}

/* Modal CTA Button */
.modal-cta {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    border: none;
    cursor: pointer;
}

.modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* Modal Note */
.modal-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ========================================
   FLOATING OFFER BUTTON STYLES
   ======================================== */

.offer-float {
    position: fixed;
    bottom: 130px;
    right: 24px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 10px 25px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
    animation: offerPulse 2s infinite;
}

.offer-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(238, 90, 36, 0.5);
}

.offer-float i {
    font-size: 28px;
    color: white;
}

.offer-float .offer-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #25D366;
    color: white;
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite;
}

/* Offer Float Pulse Animation */
@keyframes offerPulse {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(238, 90, 36, 0.4);
    }
    50% {
        box-shadow: 0 10px 35px rgba(238, 90, 36, 0.6), 0 0 0 10px rgba(238, 90, 36, 0.1);
    }
}

/* Mobile adjustments for modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-offer-text {
        font-size: 20px;
    }
    
    .offer-float {
        bottom: 120px;
        right: 16px;
        width: 55px;
        height: 55px;
    }
    
    .offer-float i {
        font-size: 24px;
    }
}

/* ========================================
   PRODUCT SLIDER STYLES
   ======================================== */

.product-slider-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.product-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-slider-title {
    text-align: center;
    margin-bottom: 40px;
}

.product-slider-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.product-slider-title p {
    color: #666;
    font-size: 1.1rem;
}

.product-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: white;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.slider-slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.slider-arrow:hover {
    background: #128C7E;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Navigation Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #25D366;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.slider-dot:hover:not(.active) {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .product-slider-title h2 {
        font-size: 1.8rem;
    }
    
    .slider-slide {
        padding: 20px;
    }
    
    .slider-slide img {
        max-height: 250px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
}
