/* Softcadd Technologies - Enhanced Homepage Styles */

/* Hero Section - Premium Design */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* Better for mobile devices */
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-section > .container-custom {
    position: relative;
    z-index: 5; /* Above grid backgrounds */
}

/* Hero Grid Background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 1;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    pointer-events: none;
    z-index: 0;
}

.hero-grid-active {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(243, 112, 33, 0.4) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(243, 112, 33, 0.4) 2px, transparent 2px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 40%), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 40%), black 0%, transparent 100%);
    opacity: 1;
}

/* Hero Typography - Larger & Bolder */
.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 1.5rem !important;
}

.hero-section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    color: #475569 !important;
    max-width: 550px !important;
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-section p {
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 1.1rem !important;
    }
    /* Ensure the text column takes full width when image is hidden */
    .hero-section .col-lg-6 {
        width: 100%;
    }
}

/* Hero Image - Enhanced & Always Visible */
.hero-image-container {
    border-radius: 2rem;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.15),
        0 30px 60px -30px rgba(243, 112, 33, 0.2);
    border: 1px solid rgba(243, 112, 33, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.08), rgba(37, 99, 235, 0.08));
    max-width: 580px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 1.8rem;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(1.05) contrast(1.1);
}

@media (min-width: 992px) {
    .hero-img {
        height: 600px;
        aspect-ratio: auto;
    }
}


/* HUD Cards - More Prominent & Always Visible */
.hud-card {
    position: absolute;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    border: 1px solid rgba(243, 112, 33, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hud-top-right {
    top: 10%;
    right: -5%;
}

.hud-bottom-left {
    bottom: 15%;
    left: -5%;
}

@media (max-width: 992px) {
    .hud-top-right {
        right: 5%;
        top: 5%;
    }
    .hud-bottom-left {
        left: 5%;
        bottom: 5%;
    }
    .hud-card {
        padding: 0.75rem 1.25rem;
    }
    .hud-card .fs-4 {
        font-size: 1.25rem !important;
    }
}

.hud-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff;
    border-color: #f37021;
}

.hud-card .lucide {
    width: clamp(20px, 4vw, 28px) !important;
    height: clamp(20px, 4vw, 28px) !important;
} 

.hud-card .fs-4 {
    font-size: clamp(1.25rem, 4vw, 2rem) !important;
    font-weight: 900 !important;
}

/* Why Softcadd Section - Ultra Premium */
/* Why Softcadd Section - Redesigned Compact */
#about {
    background: #ffffff;
    padding: 6rem 0;
}

#about h2 {
    line-height: 1.2 !important; /* Fix clipping of descenders/multi-line */
    padding-bottom: 0.2em; /* Extra buffer */
}

/* Why Softcadd - Premium Cards */
.why-card {
    background: #ffffff !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gradient Sweep Effect */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(243, 112, 33, 0.03), 
        transparent
    );
    transition: left 0.7s ease;
    z-index: -1;
}

.why-card:hover::before {
    left: 100%;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(243, 112, 33, 0.2);
    border-color: rgba(243, 112, 33, 0.2) !important;
}

/* Icon Box Animation - Heartbeat Pulse */
.icon-box-tilt {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #f8fafc;
}

.why-card:hover .icon-box-tilt {
    transform: scale(1.15) rotate(5deg);
    background: var(--brand-orange) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(243, 112, 33, 0.3);
    border-color: transparent;
    animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(243, 112, 33, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0); }
}

.why-card:hover .icon-box-tilt .lucide {
    stroke: #ffffff;
    transition: all 0.3s ease;
    transform: scale(1.1);
}

.why-card h4 {
    transition: color 0.3s ease;
}

.why-card:hover h4 {
    color: var(--brand-orange) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .why-card {
        padding: 1.75rem !important;
        text-align: left;
    }
    
    .why-card .d-flex {
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .icon-box-tilt {
        width: 3rem;
        height: 3rem;
        flex-shrink: 0; /* Prevent icon from shrinking */
    }

    .why-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .why-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Section header improvements */
    #about .display-4 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    #about p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .why-card {
        padding: 1.5rem !important;
    }

    .why-card .d-flex {
        gap: 0.875rem !important;
    }

    .icon-box-tilt {
        width: 2.75rem;
        height: 2.75rem;
    }

    .why-card h4 {
        font-size: 1.05rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .why-card p {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
    }

    /* Section header for very small screens */
    #about .display-4 {
        font-size: 1.75rem !important;
    }

    #about p {
        font-size: 0.95rem !important;
        max-width: 100% !important;
        padding: 0 0.5rem;
    }

    #about .reveal {
        max-width: 95% !important;
    }

    /* Reduce gap between cards on mobile */
    #about .row {
        row-gap: 1rem !important;
    }
}

/* Stats Section - Larger Numbers */
.stat-number {
    font-size: 4rem !important;
    font-weight: 900 !important;
}

/* Professional Search & Other Sections */
.hover-up {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-up:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hover-border-orange:hover {
    border-color: var(--brand-orange) !important;
}

.hover-border-blue:hover {
    border-color: var(--brand-blue) !important;
}

/* Button Enhancements */
.btn-orange {
    font-size: 1.1rem !important;
    padding: 1.25rem 2.5rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-orange:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(243, 112, 33, 0.4) !important;
}

@media (max-width: 576px) {
    .btn-orange {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}


/* =========================================
   ENHANCED NETWORK & TRAINING SECTION
   ========================================= */

/* Background Pattern */
.bg-dot-grid {
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0;
}

/* Common Card Styles */
.network-card > div,
.training-card > div {
    background: #ffffff !important; /* Reset to white for cleaner look */
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.05),
        0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    z-index: 1;
}

/* Hover Effects - Lift and Glow */
.network-card:hover > div {
    transform: translateY(-8px);
    border-color: rgba(243, 112, 33, 0.3) !important;
    box-shadow: 
        0 25px 50px -12px rgba(243, 112, 33, 0.15),
        0 0 0 4px rgba(243, 112, 33, 0.05) !important;
}

.training-card:hover > div {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: 
        0 25px 50px -12px rgba(37, 99, 235, 0.15),
        0 0 0 4px rgba(37, 99, 235, 0.05) !important;
}

/* Background Gradients (Subtle) */
.network-card > div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 1;
}

.training-card > div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 1;
}

/* Icon Box Animation */
.network-card .rounded-4,
.training-card .rounded-4 {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.network-card:hover .rounded-4,
.training-card:hover .rounded-4 {
    transform: scale(1.1) rotate(6deg);
}

/* Large Background Icon Animation */
.network-card .opacity-10,
.training-card .opacity-10 {
    opacity: 0.08 !important; /* Slightly more visible */
    transition: all 0.8s ease;
}

.network-card:hover .opacity-10,
.training-card:hover .opacity-10 {
    transform: scale(1.2) rotate(-10deg);
    opacity: 0.12 !important;
}

/* Button Refinement */
.network-card .btn-primary,
.training-card .btn-outline-primary {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.85rem !important;
}

/* Explicit Fix for Training Button Hover */
.training-btn {
    color: var(--brand-blue) !important;
    border: 2px solid var(--brand-blue) !important;
    background: transparent !important;
    font-weight: 800 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.training-btn:hover {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.training-btn:hover i {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .network-card > div,
    .training-card > div {
        padding: 2rem !important; /* Reduce padding on mobile */
    }

    .network-card .fs-2,
    .training-card .fs-2 {
        font-size: 1.5rem !important;
    }
}


/* =========================================
   PROFESSIONAL SEARCH SHOWCASE - PREMIUM
   ========================================= */

.professional-search-section {
    position: relative;
}

/* Animated Background Pattern */
.ps-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(243, 112, 33, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(7, 175, 246, 0.03) 0%, transparent 50%),
        radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 600px 600px, 800px 800px, 40px 40px;
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0 0; }
    50% { background-position: 100% 100%, 0% 0%, 20px 20px; }
}

/* Badge */
.ps-badge {
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.1), rgba(243, 112, 33, 0.05));
    border: 1px solid rgba(243, 112, 33, 0.2);
    animation: badgePulse 3s ease-in-out infinite;
}

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

/* Heading Animation - Triggered on Visibility */
.is-visible .ps-heading {
    animation: fadeInUp 0.8s ease-out both;
}

.ps-heading {
    will-change: transform, opacity;
}

.is-visible .ps-tagline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.ps-tagline {
    will-change: transform, opacity;
}

.is-visible .ps-description {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ps-description {
    will-change: transform, opacity;
}

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

/* Gradient Backgrounds */
.bg-gradient-orange {
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #07aff6 0%, #3b82f6 100%);
}

.bg-gradient-orange-light {
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.1), rgba(255, 140, 66, 0.05));
}

/* Feature Items */
.ps-feature-item {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.ps-feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15) !important;
    border-color: rgba(243, 112, 33, 0.3) !important;
}

.ps-feature-icon {
    transition: all 0.3s ease;
}

.ps-feature-item:hover .ps-feature-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 16px -4px rgba(243, 112, 33, 0.4);
}

/* Clean Feature Cards - Matching Uploaded Design */
.ps-feature-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ps-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12) !important;
    border-color: rgba(0,0,0,0.08) !important;
}

.ps-feature-icon-large {
    transition: all 0.3s ease;
}

.ps-feature-card:hover .ps-feature-icon-large {
    transform: scale(1.1) rotate(5deg);
}

/* Launch Dashboard Button */
.btn-launch-dashboard {
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
    box-shadow: 0 15px 40px -5px rgba(243, 112, 33, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-launch-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.btn-launch-dashboard:hover::before {
    left: 100%;
}

.btn-launch-dashboard:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px -5px rgba(243, 112, 33, 0.6);
}

.btn-launch-dashboard .ps-arrow {
    transition: transform 0.3s ease;
}

.btn-launch-dashboard:hover .ps-arrow {
    transform: translateX(5px);
}

/* User Avatars Stack */
.ps-avatar-stack {
    position: relative;
}

.ps-avatar,
.ps-avatar-count {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ps-avatar:first-child {
    margin-left: 0;
}

.ps-avatar-count {
    font-size: 0.75rem;
}

/* Primary Button */
.btn-ps-primary {
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
    box-shadow: 0 10px 30px -5px rgba(243, 112, 33, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-ps-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-ps-primary:hover::before {
    left: 100%;
}

.btn-ps-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px -5px rgba(243, 112, 33, 0.5);
}

.btn-ps-primary .ps-arrow {
    transition: transform 0.3s ease;
}

.btn-ps-primary:hover .ps-arrow {
    transform: translateX(5px);
}

/* Secondary Button */
.btn-ps-secondary {
    background: transparent;
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    transition: all 0.3s ease;
}

.btn-ps-secondary:hover {
    background: var(--brand-orange);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(243, 112, 33, 0.4);
}

/* Launch Button - Single Premium CTA */
.btn-ps-launch {
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
    box-shadow: 0 15px 40px -5px rgba(243, 112, 33, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-ps-launch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.btn-ps-launch:hover::before {
    left: 100%;
}

.btn-ps-launch:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 25px 50px -5px rgba(243, 112, 33, 0.6);
}

.btn-ps-launch .ps-arrow {
    transition: transform 0.3s ease;
}

.btn-ps-launch:hover .ps-arrow {
    transform: translateX(6px);
}

/* Image Showcase - Triggered on Visibility */
.is-visible .ps-image-showcase {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.ps-image-showcase {
    will-change: transform, opacity;
}

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

/* Realistic Laptop Mockup */
.ps-realistic-laptop {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.ps-realistic-laptop:hover {
    transform: translateY(-10px);
}

.ps-laptop-top {
    position: relative;
    background: #0d0d0d;
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow: 
        inset 0 0 0 1px #222,
        0 15px 40px -10px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    z-index: 2;
}

.ps-laptop-camera {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #1a1a1a;
}

.ps-laptop-screen-border {
    background: #000;
    padding: 1px;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.ps-laptop-display {
    aspect-ratio: 16/10;
    background: #fff;
    border-radius: 4px 4px 0 0;
}

/* Subtle Section Animation */
.ps-section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.ps-section-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Realistic Metallic Base - Unibody Aluminum */
.ps-laptop-bottom {
    position: relative;
    background: linear-gradient(180deg, #e2e2e4 0%, #c7c7cc 15%, #a1a1aa 100%); /* Complex Aluminum Gradient */
    height: 12px;
    border-radius: 0 0 18px 18px;
    margin: 0 2px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 4px 6px -1px rgba(0,0,0,0.1),
        0 20px 50px -10px rgba(0,0,0,0.4);
    z-index: 1;
}

/* Machined Notch */
.ps-laptop-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #a1a1aa;
    border-radius: 0 0 6px 6px;
    box-shadow: 
        inset 0 2px 3px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.2);
}

/* Rubber Feet (Visible in perspective) */
.ps-laptop-bottom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: transparent;
    box-shadow: 
        10px 0 0 #333,
        -10px 0 0 #333;
}

/* Floating Stats High Visibility */
.ps-stat-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.ps-stat-1 {
    top: 20%;
    left: -10%;
    animation: floatStat 4s ease-in-out infinite;
}

.ps-stat-2 {
    bottom: 25%;
    right: -5%;
    animation: floatStat 4s ease-in-out infinite 1.5s;
}

.ps-stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2) !important;
}

@keyframes floatStat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Feature Cards Inline Fix */
.ps-feature-card h6 {
    line-height: 1.25;
}

.ps-feature-card:hover {
    border-color: rgba(243, 112, 33, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ps-stat-1, .ps-stat-2 { 
        display: none !important; /* Hide floating stats on tablets too to prevent overlap */
    }
    .ps-realistic-laptop { 
        margin-top: 2rem;
        margin-bottom: 2rem;
        max-width: 100%; 
    }
    .ps-content-wrapper {
        text-align: center;
        margin-bottom: 1rem;
    }
    .ps-description {
        margin-left: auto;
        margin-right: auto;
    }
    .ps-feature-grid .row {
        justify-content: center;
    }
}

/* Mobile specific */
@media (max-width: 576px) {
    .ps-stat-card { display: none !important; }
    .ps-heading { font-size: 2.2rem !important; }
    .btn-launch-dashboard { 
        width: 100%; 
        justify-content: center; 
    }
}

/* Old styles cleanup */
.ps-main-card {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.ps-card-wrapper {
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.2),
        0 30px 60px -30px rgba(243, 112, 33, 0.3);
    transition: all 0.6s ease;
}

.ps-main-card:hover .ps-card-wrapper {
    box-shadow: 
        0 60px 120px -20px rgba(0, 0, 0, 0.25),
        0 40px 80px -30px rgba(243, 112, 33, 0.4);
}

.ps-gradient-border {
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.1), rgba(7, 175, 246, 0.1));
    z-index: 0;
    pointer-events: none;
}

.ps-image-container img {
    transition: transform 0.6s ease;
}

.ps-main-card:hover .ps-image-container img {
    transform: scale(1.03);
}

/* Live Badge */
.ps-live-badge {
    animation: floatBadge 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ps-pulse-dot {
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* Floating Elements - Old */
.ps-float-element {
    animation: floatElement 4s ease-in-out infinite;
    z-index: 10;
}

.ps-float-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.ps-float-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 1s;
}

@keyframes floatElement {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

.ps-float-element > div {
    transition: all 0.3s ease;
}

.ps-float-element:hover > div {
    transform: scale(1.1);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2) !important;
}

/* Background Glows */
.ps-glow-orange {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: 0;
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}

.ps-glow-blue {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(7, 175, 246, 0.12) 0%, transparent 70%);
    bottom: -30px;
    left: -30px;
    z-index: 0;
    filter: blur(50px);
    animation: glowPulse 4s ease-in-out infinite 2s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 992px) {
    .ps-float-element {
        display: none;
    }
    
    .ps-glow-orange,
    .ps-glow-blue {
        display: none;
    }
    
    .ps-card-wrapper {
        padding: 1.5rem !important;
    }
    
    .ps-heading {
        font-size: 3rem !important;
    }
}

@media (max-width: 768px) {
    .ps-features .col-md-6 {
        width: 100%;
    }
}

/* =========================================
   TESTIMONIALS SECTION (Marquee)
   ========================================= */

#testimonials {
    background: #ffffff;
    padding: 6rem 0;
    overflow: hidden;
}

.testimonial-wrapper {
    position: relative;
    width: 100%;
    padding: 3rem 0; /* Vertical padding to accommodate hover effects */
    /* Premium fade mask on sides */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-row {
    display: flex;
    overflow: visible; /* Allow hover effects to break boundary */
    user-select: none;
    margin-bottom: 5.5rem; /* Increased gap between rows */
}

.marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 2.5rem; /* Better breathing room between cards */
    padding: 1.5rem 2rem; /* Buffer for hover scale */
    overflow: visible;
}

.testimonial-card {
    min-width: 450px;
    max-width: 450px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    white-space: normal;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.testimonial-card:hover {
    transform: translateY(-12px) scale(1.05); /* Slightly more prominent interaction */
    border-color: rgba(243, 112, 33, 0.4) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12) !important;
    z-index: 10; /* Ensure hovered card stays on top */
}

/* Header Layout */
.testimonial-card .client-logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Typography */
.testimonial-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.testimonial-card .fs-seven {
    font-size: 0.85rem !important;
    color: var(--slate-500) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-card p {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: var(--slate-600) !important;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Large Quote Icon */
.quote-icon-large {
    width: 3rem;
    height: 3rem;
    color: var(--brand-orange);
    opacity: 0.08;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .testimonial-card {
        min-width: 400px;
        max-width: 400px;
    }
}

@media (max-width: 991px) {
    #testimonials {
        padding: 4rem 0;
    }
    
    .testimonial-card {
        min-width: 380px;
        max-width: 380px;
        padding: 2rem;
    }
    
    .testimonial-wrapper {
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }
}

@media (max-width: 767px) {
    #testimonials {
        padding: 3rem 0 2rem 0;
    }

    .testimonial-card {
        min-width: 85vw; /* Use viewport width for better mobile fit */
        max-width: 85vw;
        border-radius: 1.5rem;
        padding: 1.75rem;
    }
    
    .testimonial-card:hover {
        transform: translateY(-8px) scale(1.02); /* Reduce hover effect on mobile */
    }
    
    .marquee-content {
        gap: 1.25rem;
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .testimonial-card h5 {
        font-size: 1.15rem !important;
    }

    .testimonial-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .testimonial-card .client-logo-wrapper {
        width: 56px;
        height: 56px;
    }

    .quote-icon-large {
        width: 2.5rem;
        height: 2.5rem;
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 576px) {
    #testimonials {
        padding: 2.5rem 0 1.5rem 0;
    }

    .testimonial-card {
        min-width: 90vw; /* Even wider on very small screens */
        max-width: 90vw;
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
    
    .testimonial-card h5 {
        font-size: 1.05rem !important;
    }

    .testimonial-card p {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        margin-top: 1rem;
    }

    .testimonial-card .fs-seven {
        font-size: 0.75rem !important;
    }

    .testimonial-card .client-logo-wrapper {
        width: 48px;
        height: 48px;
    }

    .marquee-content {
        gap: 1rem;
        padding: 0.75rem;
    }

    .quote-icon-large {
        width: 2rem;
        height: 2rem;
        opacity: 0.06;
    }

    /* Optimize section header for mobile */
    #testimonials .display-4 {
        font-size: 1.75rem !important;
    }

    #testimonials .reveal {
        max-width: 95% !important;
    }
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #f37021 0%, #ff8c42 100%);
}

/* Mobile navbar right-aligned vertical menu */
@media (max-width: 767px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 16px;
    width: 260px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 999;
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}
@media (max-width: 767px) {
  .navbar-collapse {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.25s ease;
  }

  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 767px) {

  /* Position dropdown properly */
  #navbarNav {
    position: absolute;
    top: 72px;              /* below navbar */
    right: 16px;
    width: 280px;
    background: transparent;
    z-index: 999;
  }

  /* Menu card */
  .nav-items {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    padding: 12px;
    gap: 6px;
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
  }

  /* Links */
  .nav-items .nav-link,
  .nav-items .dropdown > button {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
  }

  /* Services dropdown button style */
  .nav-items .dropdown > button {
    background: #ffffff;
  }

  /* Contact button separation */
  #navbarNav > a.btn-primary {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }
}
@media (max-width: 767px) {
  #navbarNav {
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease;
  }

  #navbarNav.show {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   STATS SECTION REFINEMENT (OVERRIDES)
   ========================================= */
.stat-item {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    background: #f8fafc; /* Subtle light background card */
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f37021, #ff8c42);
    opacity: 0.8;
}

.stat-item:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #cbd5e1;
}

/* Typography Refinement */
.stat-number {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--brand-dark) !important;
    font-size: 2.75rem !important; /* Reduced from clamp(3rem...) to roughly 2.75rem ~ 44px */
    line-height: 1.2 !important;
    margin-bottom: 0.25rem !important;
}

.stat-item .text-uppercase {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    color: var(--slate-500) !important;
    font-size: 0.85rem !important;
}

/* Remove the absolute underline since we added a top border accent */
.stat-underline {
    display: none !important;
}

/* =========================================
   OUR EXPERTISE SECTION OVERRIDES
   ========================================= */

/* Premium Card Styling - Compact & Elegant */
#services .service-card {
    padding: 2rem !important; /* Kept concise */
    border-radius: 1.5rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
    max-width: 100%;
}

#services .service-card:hover {
    border-color: rgba(243, 112, 33, 0.3) !important; /* Orange hover border */
    box-shadow: 0 20px 25px -5px rgba(243, 112, 33, 0.08), 0 10px 10px -5px rgba(243, 112, 33, 0.02) !important;
    transform: translateY(-5px) !important;
}

/* Premium Typography */
#services .service-card h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important; /* Reduced margin */
    letter-spacing: -0.01em !important;
}

#services .service-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: var(--slate-600) !important;
    margin-bottom: 1.5rem !important; /* Reduced bottom spacing */
}

/* Update Icon Box - ORANGE THEME */
#services .service-icon-box {
    width: 3.5rem !important;
    height: 3.5rem !important;
    margin-bottom: 1.25rem !important;
    background: rgba(243, 112, 33, 0.08) !important; /* Light orange bg */
    color: var(--brand-orange) !important; /* Brand Orange icon */
    border: none !important;
}

#services .service-icon-box i {
    width: 1.75rem !important;
    height: 1.75rem !important;
}

/* Orange Buttons (Badges) */
#services .service-card .badge {
    background-color: var(--brand-orange) !important; /* Orange background */
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    letter-spacing: 0.05em !important;
    font-size: 0.75rem !important;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2) !important;
    transition: all 0.3s ease;
}

#services .service-card .badge:hover {
    background-color: #e65a00 !important; /* Darker orange */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(243, 112, 33, 0.3) !important;
}

/* =========================================
   INFINITE MARQUEE ANIMATIONS
   ========================================= */

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-left .marquee-content {
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.marquee-right .marquee-content {
    animation: scroll-right 40s linear infinite;
    width: max-content;
}

/* Pause on Hover */
.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

/* Ensure marquee content doesn't wrap */
.marquee-content {
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* Reveal Utility Fix */
.reveal, .gs-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal.is-visible, .gs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================== */
/*   ADDITIONAL MOBILE OPTIMIZATIONS      */
/* ======================================== */

@media (max-width: 768px) {
    html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
    body { overflow-x: hidden; }
    .container-custom { padding-left: 1rem !important; padding-right: 1rem !important; }
    .justified-text { text-align: left !important; }
}
