body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* Light gray background */
}

.gradient-text {
    background: linear-gradient(to right, #10b981, #0d9488);
    /* Vendor prefix for Chrome, Safari, Edge */
    -webkit-background-clip: text;
    /* Standard property for compatibility */
    background-clip: text;
    /* Fill color transparent to show background */
    -webkit-text-fill-color: transparent;
}

/* Updated FAQ rule for <details> element */
details[open] > summary svg {
    transform: rotate(180deg);
}

summary svg {
    transition: transform 0.3s ease;
}

#success-modal, #lightbox-modal, #qr-code-modal {
    transition: opacity 0.3s ease-in-out;
}

/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 1rem; /* Add some padding to prevent content from touching edges */
}

/* Specific styles for hero slider to maintain height */
.hero-slide-wrapper {
    min-height: 420px; /* Adjust this value based on your content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Slider Arrow Styles */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: white;
}

.slider-prev {
    left: -1rem;
}

.slider-next {
    right: -1rem;
}

.slider-prev svg, .slider-next svg {
    color: #334155;
}

/* Specific arrow adjustments for full-width sliders */
#hero-slider .slider-prev, #large-image-slider .slider-prev {
    left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
}
#hero-slider .slider-next, #large-image-slider .slider-next {
    right: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
}
#hero-slider .slider-prev:hover, #large-image-slider .slider-prev:hover,
#hero-slider .slider-next:hover, #large-image-slider .slider-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
#hero-slider svg, #large-image-slider svg {
    color: white;
}


/* Active Nav Link Style */
.nav-link.active {
    color: #10b981;
    font-weight: 600;
}

/* Go to Top Button Style */
#to-top-button {
    transition: opacity 0.3s, transform 0.3s;
}

.card-shadow {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.footer-dark {
    background-color: #1e293b;
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Technology Scroller */
.tech-scroller {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.tech-scroller-inner {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.tech-scroller-inner img {
    height: 40px;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.tech-scroller-inner:hover img {
    filter: grayscale(0);
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem));
    }
}

/* Add this custom animation */
@keyframes splashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    transform: scale(1);
  }
}

.splash-blink {
  animation: splashPulse 2s infinite;
}


/* =========================================
   Waaibot Ecosystem Animations (Finalized)
   ========================================= */

/* --- Keyframes --- */
@keyframes zoomPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes swayHorizontal {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(6px); }
}

@keyframes swayVertical {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(6px); }
}

/* --- Animation Classes --- */

/* 1. Pulsing Green Background Auras */
.zoom-in-out-green1, 
.zoom-in-out-green2 {
    animation: zoomPulse 4s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box; /* Ensures rotation/scaling happens from the element's own center */
}

/* 2. Floating Icons */
.floating { 
    animation: floatNode 4s ease-in-out infinite; 
}

.left-right-smooth { 
    animation: swayHorizontal 5s ease-in-out infinite; 
}

.right-left-smooth { 
    animation: swayHorizontal 5s ease-in-out infinite reverse; 
}

.top-bottom-smooth { 
    animation: swayVertical 6s ease-in-out infinite; 
}

/* 3. Central Waaibot Logo (Pulse + Interactive Hover) */
.zoom-in-out-wati {
    animation: zoomPulse 3s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy smooth transition */
}

/* Hover Effect: Pause pulse and scale up significantly */
.zoom-in-out-wati:hover {
    animation-play-state: paused;
    transform: scale(1.5);
    z-index: 10; /* Ensure it pops over other elements */
}


/* === NEURAL NETWORK ANIMATIONS (Phase 2) === */

/* The Lines (Synapses) */
.neural-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.4;
    transition: opacity 0.5s;
}

/* Animation class triggered by JS */
.neural-line.active {
    animation: drawSynapse 2.5s ease-out forwards;
    opacity: 0.8;
}

@keyframes drawSynapse {
    to { stroke-dashoffset: 0; }
}

/* The Nodes (Dots at intersections) */




@keyframes popInNode {
    to { opacity: 1; transform: scale(1); }
}

/* App Icons Floating */
.app-icon-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.app-icon-group.active {
    opacity: 1;
    transform: translateY(0);
}

/* Central Brain Pulse ( distinct from Phase 1) */
.brain-pulse {
    animation: brainHeartbeat 3s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes brainHeartbeat {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* === NEURAL NETWORK CENTER ANIMATION === */
.neural-spin {
    animation: spinSlow 20s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Update text colors for light mode compatibility */
#neural-stack-section h2 { color: #0f172a; } /* Slate-900 */
#neural-stack-section p { color: #475569; } /* Slate-600 */



/* === NEURAL NODE STYLING (Centralized Control) === */
.neural-node {
    /* Geometry */
    r: 6px; /* Size of the dot */
    
    /* Branding Colors - Change here to update ALL nodes */
    fill: #044a36;   /* Waaibot Dark Green */
    stroke: #10b981; /* Emerald Green Border */
    stroke-width: 1.5px;

    /* Animation States */
    opacity: 0; 
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
}

/* The animation trigger */
.neural-node.active {
    animation: popInNode 0.5s ease-out forwards 1.5s;
}