/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* Ensure consistent background color for all sections */
body, 
.content-section,
#services-section,
#products-section,
#how-we-work,
#work-showcase,
#contact,
footer,
.glass-card,
.service-card,
.product-card,
.showcase-card,
.floating-element {
    background-color: white !important;
}

/* Remove glass effect backgrounds */
.glass-card,
.floating-element {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: white !important;
}

/* Remove gradient backgrounds */
.service-card {
    background: white !important;
    background-image: none !important;
}

.product-card.featured {
    background: white !important;
    background-image: none !important;
}

/* Remove any background gradients from cards */
.service-card,
.product-card,
.showcase-card {
    background: white !important;
    background-image: none !important;
}

/* Remove overflow from hero section */
section.min-h-screen {
    overflow: visible !important;
}

/* Ensure body only has one scrollbar */
body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: white;
}

/* Remove all cursor-related styles */
* {
    cursor: auto !important;
}

a, button, .service-card, .product-card, .showcase-card {
    cursor: pointer !important;
}

/* Gradient Text */
.gradient-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: black !important;
    animation: none;
}

/* Card Styles */
/* Bento Grid Container */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(139, 92, 246, 0.1),
        0 2px 4px -1px rgba(139, 92, 246, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
}

/* Bento Grid Layout */
.service-card:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
    height: auto;
    min-height: 0;
}

.service-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.service-card:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
}

.service-card:nth-child(4) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.service-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.service-card:nth-child(6) {
    grid-column: 4;
    grid-row: 2;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.1));
    box-shadow: 
        0 10px 15px -3px rgba(139, 92, 246, 0.15),
        0 4px 6px -2px rgba(139, 92, 246, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 16px;
        padding: 16px;
    }

    .service-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .service-card {
        border-radius: 16px;
        padding: 16px;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.4),
        rgba(139, 92, 246, 0.1),
        rgba(139, 92, 246, 0.4)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.service-card .glow-effect {
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(139, 92, 246, 0.2),
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .glow-effect {
    opacity: 1;
}

.service-card .service-icon {
    position: relative;
    z-index: 2;
    color: rgba(139, 92, 246, 0.8) !important;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.45rem;
    position: relative;
    z-index: 2;
    color: black !important;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: black !important;
}

.service-card p {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7) !important;
}

.service-card .flex-wrap span {
    position: relative;
    z-index: 2;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .flex-wrap span {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Product Card */
.product-card {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.08) 50%, rgba(167, 139, 250, 0.1) 100%),
        linear-gradient(45deg, rgba(167, 139, 250, 0.07) 0%, rgba(139, 92, 246, 0.05) 100%);
    background-color: white;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px -5px rgba(139, 92, 246, 0.15);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 30px -10px rgba(139, 92, 246, 0.25);
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.12) 50%, rgba(167, 139, 250, 0.15) 100%),
        linear-gradient(45deg, rgba(167, 139, 250, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    background-color: white;
}

.product-card.featured {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.15) 50%, rgba(167, 139, 250, 0.2) 100%),
        linear-gradient(45deg, rgba(167, 139, 250, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    background-color: white;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.2);
}

.product-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
    opacity: 0.5;
    z-index: 0;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

.product-card.featured:hover {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.2) 50%, rgba(167, 139, 250, 0.25) 100%),
        linear-gradient(45deg, rgba(167, 139, 250, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    background-color: white;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 30px -10px rgba(139, 92, 246, 0.3);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Button Styles */
.premium-btn {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.premium-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3), 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.premium-btn:disabled {
    cursor: not-allowed !important;
}

/* Input Styles */
.premium-input {
    background: rgba(17, 24, 39, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s ease;
}

.premium-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(17, 24, 39, 0.3);
    outline: none;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .gradient-text {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    p {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

/* Section Transitions */
.content-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Custom Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Animated Background */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, 
                               rgba(59, 130, 246, 0.1), 
                               transparent 70%);
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Text Reveal Animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text .text {
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes revealText {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mode Switcher Animation */
.mode-switch {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

/* Mode Switcher Buttons */
#services-btn, #products-btn {
    font-weight: 500;
    min-width: 120px;
    position: relative;
    z-index: 2;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.mode-switch::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.mode-switch[data-active="products"]::before {
    transform: translateX(100%);
}

/* Ensure mode switch is visible on all screen sizes */
@media (max-width: 768px) {
    .mode-switch {
        bottom: 30px;
        padding: 3px;
    }

    #services-btn, #products-btn {
        min-width: 100px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mode-switch {
        bottom: 20px;
        padding: 2px;
    }

    #services-btn, #products-btn {
        min-width: 80px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

#services-btn.active, #products-btn.active {
    background: transparent;
    box-shadow: none;
    transform: none;
    color: white;
}

#services-btn:not(.active), #products-btn:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

#services-btn:hover:not(.active), #products-btn:hover:not(.active) {
    color: white;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Grain Overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 100;
    opacity: 0.08;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Laptop Container Styles */
#laptop-container {
    position: relative;
    will-change: transform;
}

.laptop-wrapper {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Bounce Loop Animation */
@keyframes bounce-loop {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.bounce-loop {
    animation: bounce-loop 3s ease-in-out infinite;
}

#laptop-container img {
    transition: transform 0.3s ease;
}

/* Remove old hover effects */
#laptop-container:hover img {
    transform: none;
}

#laptop-container:hover .glow-effect {
    opacity: 0;
}

#laptop-container:hover .shadow-element {
    transform: none;
    opacity: 0;
}

.perspective {
    perspective: none;
    transform-style: flat;
}

/* Remove the floating animation since we're using bounce */
.floating {
    animation: none;
}

/* How We Work Section Styles */
.step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 4rem;
    width: 100%;
    padding: 0 1rem;
}

.step.active {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .step {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        padding-left: 8rem;  /* Increase space from progress line */
    }

    .step:nth-child(even) {
        flex-direction: row-reverse;
        padding-left: 0;
        padding-right: 8rem;
    }

    .step .flex-1 {
        max-width: 70% !important;  /* Override previous max-width */
        min-height: 200px;
        padding: 2.5rem !important;  /* Increase padding */
        width: 100%;
    }
}

.step .flex-1 {
    position: relative;
    border: none !important;
    background: white;
    overflow: visible;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
}

/* Gradient Border Effect */
.step .flex-1::before {
    content: '';
    position: absolute;
    inset: -1px;  /* Reduced thickness */
    border-radius: 1rem;
    padding: 1px;  /* Reduced padding */
    background: linear-gradient(135deg, #4475F2, #9D61FF);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.step .flex-1:hover::before {
    opacity: 1;
}

/* Add subtle glow effect */
.step .flex-1::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(68, 117, 242, 0.15), rgba(157, 97, 255, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step .flex-1:hover::after {
    opacity: 1;
}

@media (min-width: 768px) {
    .step .flex-1 {
        max-width: 70% !important;
        min-height: 200px;
        padding: 2.5rem !important;
        width: 100%;
    }
    
    .step .flex-1::before {
        inset: -2px;  /* Reduced thickness for larger screens */
        padding: 2px;  /* Reduced padding for larger screens */
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .step .flex-1 {
        width: 100%;
        padding: 1.5rem !important;
        min-height: auto;
        max-width: 100% !important;
    }
    
    .step .flex-1::before {
        inset: -1px;  /* Consistent thickness for mobile */
        padding: 1px;  /* Consistent padding for mobile */
    }
}

/* Step Number Styles */
.step-number {
    font-size: 2rem;  /* Slightly smaller base size */
    font-weight: bold;
    min-width: 3rem;  /* Smaller min-width for mobile */
    text-align: center;
    margin-bottom: 1rem;
    color: black;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;  /* Remove any transition effects */
}

@media (min-width: 768px) {
    .step-number {
        font-size: 3rem;
        margin-bottom: 0;
        min-width: 5rem;
        transition: none;  /* Ensure no transition on larger screens */
    }
}

/* Content Styles */
.step h3 {
    font-size: 1.45rem;  /* Smaller base size */
    font-weight: bold;
    margin-bottom: 1rem;
    color: black !important;
    line-height: 1.4;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 1.5rem;
}

.step ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.step ul li {
    color: rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Progress Line Container Styles */
.progress-line-container {
    background: rgba(0, 0, 0, 0.1);
    overflow: visible;
    border-radius: 4px;
    left: 2rem !important;  /* Adjusted for better mobile view */
    width: 4px !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .progress-line-container {
        left: 1.5rem !important;
        width: 2px !important;
    }
    
    .step {
        padding-left: 4rem;  /* Increased padding for content */
        padding-right: 1rem;
        margin-bottom: 3rem;
    }

    .step .flex-1 {
        width: 100%;
        padding: 1.5rem !important;
        min-height: auto;  /* Remove fixed height on mobile */
        max-width: 100% !important;  /* Full width on mobile */
    }

    .step h3 {
        font-size: 1.45rem;
        margin-bottom: 0.75rem;
    }

    .step p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .step ul li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

/* Small Screen Styles */
@media (max-width: 480px) {
    .step {
        padding-left: 3.5rem;
        padding-right: 0.75rem;
    }

    .step .flex-1 {
        padding: 1.25rem !important;
    }

    .step-number {
        font-size: 1.75rem;
        min-width: 2.5rem;
    }
}

/* Progress Line and Circle Styles */
.progress-line {
    transition: height 0.3s ease-out;
    opacity: 0.95;
    backdrop-filter: blur(4px);
    border-radius: 4px;
    background: black;
    box-shadow: none;
}

.progress-circle {
    transition: all 0.3s ease-out;
    background: black;
    box-shadow: none;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 12px !important;
    height: 12px !important;
}

@media (min-width: 768px) {
    .progress-circle {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Fix content overflow issues */
.step .flex-1 > * {
    position: relative;
    z-index: 2;
}

/* Work Showcase Styles */
.showcase-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px;
}

.showcase-track {
    display: flex;
    animation: scrollX 40s linear infinite;
    will-change: transform;
    gap: 24px;
}

.showcase-track:hover {
    animation-play-state: paused;
}

.showcase-card {
    flex: 0 0 auto;
    width: 400px;
    min-width: 400px;
    height: auto !important;
    position: relative;
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(59, 130, 246, 0.1),
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.showcase-card:hover::before {
    opacity: 1;
}

/* Update text colors for showcase cards */
.showcase-card h3 {
    color: black !important;
    transition: color 0.3s ease;
}

.showcase-card:hover h3 {
    color: black !important;
}

.showcase-card p {
    color: rgba(0, 0, 0, 0.7) !important;
}

.showcase-card .flex-wrap span {
    color: rgba(0, 0, 0, 0.7) !important;
    background: rgba(0, 0, 0, 0.05);
}

/* Showcase card hover effects */
.showcase-card .relative {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .relative {
    transform: scale(1.02);
}

.showcase-card iframe {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover iframe {
    transform: scale(1.05);
}

.showcase-card .glow-effect {
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(139, 92, 246, 0.15),
        transparent 40%
    );
    z-index: 1;
    transition: opacity 0.3s;
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

@media (max-width: 768px) {
    .showcase-card {
        width: 300px;
        min-width: 300px;
        height: 250px;
    }
    
    .showcase-track {
        animation-duration: 30s;
    }
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Transitions */
.transition-all {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimize Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize Custom Cursor */
.custom-cursor {
    display: none;
}

/* Optimize Scroll Animations */
.reveal-gradient {
    transform: translateZ(0);
}

/* Remove all 3D related styles */
.perspective-container,
.content-3d {
    transform: none !important;
}

/* Laptop Container Styles - Simplified */
#laptop-container {
    position: relative;
    will-change: transform;
}

#laptop-container img {
    transition: transform 0.3s ease;
}

/* Remove 3D transforms */
.service-card,
.product-card,
.showcase-card {
    will-change: transform;
    transform: none;
}

/* Remove 3D perspective and transforms */
.service-card,
.product-card,
.showcase-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card:hover,
.product-card:hover,
.showcase-card:hover {
    transform: translateY(-5px);
}

/* Remove all transform-style and backface-visibility */
* {
    transform-style: flat;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

/* Add subtle gradient border */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.3),
        rgba(139, 92, 246, 0.1),
        rgba(139, 92, 246, 0.3)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#contact-form input,
#contact-form textarea {
    font-size: 16px;
    font-weight: 400;
    background-color: #E8EDF5;
    transition: all 0.3s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #94A3B8;
}

#contact-form input:focus,
#contact-form textarea:focus {
    background-color: #EEF2F7;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

#contact-form button[type="submit"] {
    background: linear-gradient(135deg, #4475F2, #9D61FF);
    box-shadow: 0 4px 6px -1px rgba(68, 117, 242, 0.2), 0 2px 4px -1px rgba(157, 97, 255, 0.1);
}

#contact-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(68, 117, 242, 0.25), 0 4px 6px -1px rgba(157, 97, 255, 0.15);
}

#contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Ensure all headings stay black */
h1, h2, h3, h4, h5, h6 {
    color: black !important;
}

/* Override any hover states */
*:hover h1,
*:hover h2,
*:hover h3,
*:hover h4,
*:hover h5,
*:hover h6 {
    color: black !important;
}

/* Base Typography */
body,
button,
input,
textarea,
select,
p,
span,
div,
li {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-syncopate,
.font-space,
.font-tt {
    font-family: 'League Spartan', sans-serif !important;
}

/* Ensure consistent font family */
.service-card h3,
.product-card h3,
.showcase-card h3,
.step h3,
.mode-switch {
    font-family: 'League Spartan', sans-serif !important;
}

.service-card p,
.product-card p,
.showcase-card p,
.step p,
#contact-form input,
#contact-form textarea,
#contact-form button {
    font-family: 'Montserrat', sans-serif !important;
}

/* Send Message Button States */
#contact-form button[type="submit"] {
    position: relative;
    transition: all 0.3s ease;
}

#contact-form button[type="submit"].loading {
    color: transparent;
    pointer-events: none;
}

#contact-form button[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

#contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    transform: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scroll Animation Base Styles */
.scroll-fade {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.scroll-fade.active {
    opacity: 1;
}

/* Ensure smooth animations */
.service-card,
.product-card,
.showcase-card,
.step,
#contact-form,
footer .grid > div {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .product-card,
    .showcase-card,
    .step,
    #contact-form,
    footer .grid > div {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Ensure content doesn't shift during animations */
.content-section {
    overflow: hidden;
    position: relative;
}

/* Animation Keyframes - Enhanced for visibility */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 120px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -120px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-120px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(120px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.2, 0.2, 0.2);
    }
    50% {
        opacity: 0.5;
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes rotateIn {
    from {
        transform-origin: center;
        transform: rotate3d(0, 0, 1, -90deg);
        opacity: 0;
    }
    to {
        transform-origin: center;
        transform: rotate3d(0, 0, 1, 0);
        opacity: 1;
    }
}

/* Animation Classes - Longer duration for visibility */
.animate {
    opacity: 0;
    will-change: transform, opacity;
}

.animate.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animate.fade-in-down {
    animation: fadeInDown 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animate.fade-in-left {
    animation: fadeInLeft 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animate.fade-in-right {
    animation: fadeInRight 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animate.zoom-in {
    animation: zoomIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate.rotate-in {
    animation: rotateIn 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Ensure animations are visible */
.animate.active {
    opacity: 1;
}

/* Enhanced Floating Effect */
.floating-element {
    position: relative;
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 50px -15px rgba(0, 0, 0, 0.1);
    will-change: transform, box-shadow;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    overflow: hidden;
}

.floating-element:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.floating-element::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.7) 38%, 
        rgba(255, 255, 255, 0) 48%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    transform: scale(2) translateX(-100%);
}

.floating-element:hover::before {
    opacity: 1;
    transform: scale(2) translateX(50%);
    transition: transform 1.5s ease, opacity 0.3s ease;
}

/* Parallax Background Elements */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    transition: transform 0.5s ease-out;
    background: radial-gradient(circle at center, var(--color-primary), transparent 70%);
}

.parallax-wrapper {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.parallax-element {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Content Container With Depth */
.content-wrapper {
    position: relative;
    z-index: 30;
    padding: 2rem 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.7s ease;
}

.glass-card:hover::after {
    transform: rotate(30deg) translateY(200%);
}

/* Subtle Animation for Background Elements */
@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

.animated-blob {
    animation: float-blob 15s infinite ease-in-out;
}

.animated-blob:nth-child(2) {
    animation-delay: -5s;
}

.animated-blob:nth-child(3) {
    animation-delay: -10s;
}

/* Mouse Parallax Effect */
.mouse-parallax {
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Enhance Existing Elements */
.service-card,
.product-card,
.showcase-card {
    overflow: visible;
}

.service-card::before,
.product-card::before,
.showcase-card::before {
    pointer-events: none;
}

/* Disable animations for How We Work section on larger screens */
@media (min-width: 1024px) {
    #how-we-work .floating-element {
        transform: none !important;
        transition: none !important;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1) !important;
        will-change: auto !important;
    }
    
    #how-we-work .floating-element:hover {
        transform: none !important;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1) !important;
    }
    
    #how-we-work .floating-element::before {
        display: none !important;
    }
    
    #how-we-work .glass-card::after {
        display: none !important;
    }
    
    #how-we-work .step .flex-1 {
        transition: none !important;
    }
    
    #how-we-work .step {
        transition: none !important;
    }

    #how-we-work .mouse-parallax {
        transition: none !important;
        transform: none !important;
    }
}

/* Remove hover animations for How We Work section */
#how-we-work .floating-element {
    transform: none !important;
    transition: none !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1) !important;
    will-change: auto !important;
}

#how-we-work .floating-element:hover {
    transform: none !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1) !important;
}

#how-we-work .floating-element::before {
    display: none !important;
}

#how-we-work .floating-element::after {
    display: none !important;
}

#how-we-work .glass-card::after {
    display: none !important;
}

#how-we-work .step .flex-1 {
    transition: none !important;
}

#how-we-work .step {
    transition: none !important;
}

#how-we-work .step .flex-1:hover::before {
    opacity: 0.8 !important;
}

#how-we-work .step .flex-1:hover::after {
    opacity: 0 !important;
}

#how-we-work .mouse-parallax {
    transition: none !important;
    transform: none !important;
} 