/* Marasat - Tailwind CSS custom utilities / specific features */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
}

/* Custom Gradients not natively in Tailwind */
.bg-gradient-custom {
    background: linear-gradient(135deg, #0057FF 0%, #00D4FF 100%);
}

.text-gradient-custom {
    background: linear-gradient(135deg, #0057FF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0A0E1A 0%, #1A2340 100%);
}

/* Navbar active states and hover effects */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0057FF 0%, #00D4FF 100%);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger animation */
.hamburger span {
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Animations */
.particle {
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.pulse-dot {
    animation: pulse 2s infinite;
}

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

@keyframes waPing {
    0% { transform: scale(1); opacity: 0.5; }
    75%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Specific elements enhancements */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0057FF 0%, #00D4FF 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, #0057FF, #00D4FF);
    opacity: 0.3;
}

@media (max-width: 1024px) {
    .process-steps::before {
        display: none;
    }
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: #0057FF;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(80px);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: #0057FF;
    border-radius: 50%;
    opacity: 0.1;
}

.whatsapp-float {
    animation: bounceIn 1s ease-out 1s both;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0;
    animation: waPing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    border: 8px solid transparent;
    border-left-color: #0A0E1A;
}

/* Intersection observer classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navbar scrolled state - dark translucent background */
nav.scrolled {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile menu — open/show states toggled by app.js */
.mobile-menu.open {
    display: block;
    right: 0;
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}
