/* --- Core & Reset --- */
body {
    background-color: var(--tw-colors-brand-light-bg, #F5F8FF);
    color: #1f2937;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--tw-colors-brand-purple, #6633FF);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(102, 51, 255, 0.5);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

body.hovering .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--tw-colors-brand-pink, #FF4082);
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(102, 51, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* --- Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, var(--tw-colors-brand-purple, #6633FF) 0%, var(--tw-colors-brand-pink, #FF4082) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-flow 5s ease infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--tw-colors-brand-purple, #6633FF) 0%, var(--tw-colors-brand-pink, #FF4082) 100%);
    background-size: 200% 200%;
    animation: gradient-flow 5s ease infinite;
}

/* --- Animations & Reveals --- */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-delay-1 {
    transition-delay: 100ms;
}

.stagger-delay-2 {
    transition-delay: 200ms;
}

.stagger-delay-3 {
    transition-delay: 300ms;
}

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

/* --- Glassmorphism --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 3D Tilt Effect Base */
.tilt-card-wrapper>div {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.tilt-card-inner {
    transform: translateZ(20px);
}

/* --- Input Styles --- */
.input-group {
    position: relative;
}

.input-field {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.input-label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: #9ca3af;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--tw-colors-brand-purple, #6633FF);
    font-weight: 600;
}

.input-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tw-colors-brand-purple, #6633FF), var(--tw-colors-brand-pink, #FF4082));
    transition: width 0.4s ease;
}

.input-field:focus~.input-bar {
    width: 100%;
}

/* --- Validation Error Style (Red & Bottom) --- */
form label.error {
    color: #ef4444 !important;
    /* Red Color */
    font-size: 0.8rem;
    font-weight: 500;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    z-index: 10;
    text-transform: none;
    line-height: 1.2;
}

.tech-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(102, 51, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(102, 51, 255, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.nav-link {
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: var(--tw-colors-brand-purple, #6633FF);
    transform: translateY(-2px) scale(1.02);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tw-colors-brand-purple, #6633FF), var(--tw-colors-brand-pink, #FF4082));
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease-out;
    border-radius: 9999px;
}

.nav-link:hover:after {
    width: 100%;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Testimonial Dots --- */
#testimonials-track {
    cursor: grab;
    scroll-behavior: smooth;
}

#testimonials-track.active {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.testimonial-dot.active {
    width: 36px;
    background-color: var(--tw-colors-brand-purple, #6633FF);
    border-radius: 999px;
}

.testimonial-dot:hover:not(.active) {
    background-color: #cbd5e1;
    transform: scale(1.1);
}

/* FIX for Border Radius Glitch */
.fix-radius {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    overflow: hidden;
    width: 55px;
    height: 55px;
}

.whatsapp-float:hover {
    width: 170px;
    background-color: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.whatsapp-text {
    opacity: 0;
    max-width: 0;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.4s ease;
    transform: translateX(20px);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    max-width: 100px;
    transform: translateX(0);
    margin-left: 10px;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}