/* Components CSS - All Component Styles */

/* MetLen Visualization */
.data-flow-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.customer-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.customer-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    transition: all 0.5s;
}

.customer-dot.staying {
    background: var(--success);
    animation: pulse 2s infinite;
}

.customer-dot.leaving {
    background: var(--warning);
    animation: fadeOut 3s infinite;
}

@keyframes fadeOut {
    0%, 70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(0.8) translateY(20px); }
}

.prediction-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.insight-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Raymetrics Visualization */
.document-search-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}



/* Also add this if the text is too wide */
.search-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap; /* Add this to prevent wrapping */
    overflow: hidden; /* Add this */
    animation: typing 4s steps(20) infinite;
}

@keyframes typing {
    0%, 20% { width: 0; }
    50%, 100% { width: 100%; }
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 200px;
}

.doc-icon {
    width: 50px;
    height: 60px;
    background: var(--gray-200);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
}

.doc-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--gray-400);
    border-radius: 2px;
}

.doc-icon::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 8px;
    right: 20px;
    height: 3px;
    background: var(--gray-400);
    border-radius: 2px;
}

.doc-icon.active {
    background: var(--primary);
    transform: scale(1.1);
    animation: docPulse 2s infinite;
}

.doc-icon.active::before,
.doc-icon.active::after {
    background: var(--light);
}

@keyframes docPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* Add this to fix the answer-box visibility */
.answer-box {
    padding: 1rem 2rem;
    background: var(--success);
    color: var(--light);
    border-radius: 12px;
    font-weight: 700;
    opacity: 0; /* Add this line - starts hidden */
    transform: translateY(20px); /* Add this line - starts below */
    animation: slideUp 4s infinite;
}

@keyframes slideUp {
    0%, 40% { opacity: 0; transform: translateY(20px); }  /* Hidden for first 40% */
    50%, 100% { opacity: 1; transform: translateY(0); }    /* Visible for last 50% */
}
/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-900);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.logo-lab {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.7;
    position: relative;
    top: 2px;
}

.logo-icon {
    height: 80px;     /* Try 80–100px for a bold look */
    width: auto;      /* Keeps aspect ratio */
    max-height: 100px; /* Prevents layout breakage */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-800);
    transition: all var(--transition-base);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform var(--transition-fast);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform var(--transition-slow) cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--light) 50%, var(--gray-100) 100%);
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

/* Solutions Section */
.what-we-do {
    padding: 5rem 0;
    background: var(--gray-50);
}

.solutions-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* .solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--light);
} */

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.solution-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Clients Section */
.clients {
    padding: 5rem 0;
    background: var(--light);
}

.clients-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.clients-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.client-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-slow);
}

.client-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-600);
    transition: color var(--transition-base);
}

.client-item:hover .client-name {
    color: var(--primary);
}

/* How We Work Section */
.how-we-work {
    padding: 5rem 0;
    background: var(--gray-50);
}

.pillars-grid {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--light);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 1; /* <- Important: previously was 0! */
    transform: translateY(0); /* <- Important: previously had 30px! */
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.pillar-description {
    color: var(--gray-600);
    line-height: 1.6;
}


/* Products Section */
.products {
    padding: 5rem 0;
    background: var(--light);
}

.product {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
}

.product:nth-child(even) {
    direction: rtl;
}

.product:nth-child(even) .product-content {
    direction: ltr;
}

.product-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.product-visual {
    height: 400px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-animation {
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

/* Coming Soon Section */
.coming-soon {
    padding: 5rem 0;
    background: var(--gray-50);
}

.coming-soon-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* CTA Section */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-900), var(--dark));
    color: var(--light);
    text-align: center;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.final-cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.final-cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--light);
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.7;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    opacity: 0.6;
}

/* Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
}