/* --- General Setup & Variables --- */
:root {
    --primary-color: #4A90E2; 
    --primary-hover: #357ABD;
    --secondary-color: #50E3C2;
    --dark-color: #2c3e50; /* Darker, more professional blue/gray */
    --gray-color: #555;
    --light-gray-color: #f8f9fa; /* Lighter, cleaner background */
    --white-color: #fff;
    --border-color: #e9ecef;
    --gradient-start: #4A90E2;
    --gradient-end: #50E3C2;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    --border-radius: 12px; /* Slightly larger radius */
    --transition-speed: 0.3s ease;
}

/* Base styles (same as before) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); line-height: 1.6; color: var(--gray-color); background-color: var(--white-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.8rem; font-weight: 700; color: var(--dark-color); margin-bottom: 15px; }
.section-subtitle { font-size: 1.1rem; max-width: 650px; margin: 0 auto; color: var(--gray-color); }
a { text-decoration: none; color: var(--primary-color); transition: color var(--transition-speed); }
a:hover { color: var(--primary-hover); }
ul { list-style-type: none; }

/* Buttons (same as before) */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; transition: all var(--transition-speed); cursor: pointer; border: none; font-size: 1rem; }
.btn-signup { background-color: var(--primary-color); color: var(--white-color); }
.btn-signup:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4); }
.btn-login { background-color: transparent; color: var(--dark-color); border: 1px solid var(--border-color); }
.btn-login:hover { background-color: var(--light-gray-color); }

/* --- Header & Navigation (Updated Mega Menu) --- */
.header { background-color: var(--white-color); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; color: var(--dark-color); }
.logo i { color: var(--primary-color); margin-right: 10px; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--dark-color); font-weight: 500; padding: 5px 0; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed); }
.nav-link:hover::after { width: 100%; }
.dropdown-toggle i { font-size: 0.8em; margin-left: 5px; }
.nav-actions { display: flex; gap: 15px; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background-color: var(--white-color); box-shadow: var(--box-shadow); border-radius: var(--border-radius); padding: 25px; opacity: 0; visibility: hidden; transition: all var(--transition-speed); z-index: 1001; }
.dropdown:hover .dropdown-menu { display: flex; opacity: 1; visibility: visible; top: 100%; }
.dropdown-menu-large { min-width: 850px; gap: 25px; }
.dropdown-column { flex: 1; }
.dropdown-category-title { font-size: 0.9rem; font-weight: 600; color: var(--dark-color); margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.tool-list-dropdown li a { display: flex; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--gray-color); font-size: 0.95rem; }
.tool-list-dropdown li a:hover { background-color: var(--light-gray-color); color: var(--primary-color); }
.tool-list-dropdown i { width: 25px; text-align: center; margin-right: 10px; color: var(--primary-color); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-color); transition: all var(--transition-speed); }


/* --- NEW HERO SECTION --- */
.hero-section {
    background-color: var(--light-gray-color);
    padding: 100px 0;
    overflow: hidden;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-text {
    flex: 1;
    max-width: 550px;
    text-align: left;
}
.hero-headline { font-size: 3.2rem; line-height: 1.2; margin-bottom: 20px; }
.hero-subheadline { font-size: 1.15rem; margin-bottom: 30px; }
.btn-cta { background: var(--primary-color); color: var(--white-color); font-size: 1.1rem; padding: 15px 35px; border-radius: 8px; }
.btn-cta:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4); }
.btn-cta i { margin-right: 10px; }

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.document-stack {
    position: relative;
    width: 200px;
    height: 250px;
}
.doc-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    transition: transform 0.5s ease-out;
}
.doc-1 { z-index: 3; color: #e74c3c; animation: process-out 6s infinite ease-in-out; }
.doc-2 { z-index: 2; transform: translate(15px, 15px) rotate(3deg); color: #3498db; }
.doc-3 { z-index: 1; transform: translate(30px, 30px) rotate(6deg); color: #9b59b6; }
.processing-pipeline { position: absolute; width: 150%; height: 2px; background: rgba(0,0,0,0.1); }
.pipeline-dot { position: absolute; width: 10px; height: 10px; background: var(--primary-color); border-radius: 50%; top: -4px; animation: move-dot 3s infinite linear; }
.pipeline-dot:nth-child(2) { animation-delay: -1s; }
.pipeline-dot:nth-child(3) { animation-delay: -2s; }

@keyframes process-out {
    0%, 100% { transform: translate(0, 0) rotate(0); opacity: 1; }
    40% { transform: translate(-200px, -50px) rotate(-15deg); opacity: 0; }
    60% { transform: translate(200px, 50px) rotate(15deg); opacity: 0; }
    90% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes move-dot {
    from { left: -5%; }
    to { left: 105%; }
}

/* --- UPDATED TOOLS SECTION --- */
.tools-section { background: var(--white-color); }
.tool-category { margin-bottom: 60px; }
.tool-category:last-child { margin-bottom: 0; }
.tool-category-title { font-size: 1.8rem; color: var(--dark-color); margin-bottom: 30px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }
.tool-card { display: block; padding: 25px 20px; color: inherit; background-color: var(--white-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); text-align: center; transition: all var(--transition-speed); }
.tool-card:hover { transform: translateY(-8px); box-shadow: var(--box-shadow); border-color: var(--primary-color); }
.tool-icon { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 15px; }
.tool-card h3 { font-size: 1.1rem; color: var(--dark-color); margin-bottom: 8px; }
.tool-card p { font-size: 0.9rem; color: var(--gray-color); }

/* =========================================================== */
/* STYLES FOR V4 "WHY CHOOSE US" (THE CORE PRISM)              */
/* =========================================================== */
.why-choose-us-section-v4 {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Neural network background */
.why-choose-us-section-v4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 1px, transparent 1.5px),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 1px, transparent 1.5px),
        radial-gradient(circle at 30% 90%, rgba(255,255,255,0.05) 1px, transparent 1.5px),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 1px, transparent 1.5px);
    background-size: 100px 100px;
    opacity: 0.5;
}

.why-choose-us-section-v4 .section-header .section-title {
    color: var(--white-color);
}
.why-choose-us-section-v4 .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.prism-showcase {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.prism-wrapper {
    perspective: 1000px;
    min-height: 200px;
}
.prism {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: rotate-prism 20s infinite linear;
}

.prism-face {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(74, 144, 226, 0.2);
    border: 1px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--secondary-color);
    backdrop-filter: blur(5px);
}

/* Positioning the 6 faces of the cube/prism */
.face-front  { transform: rotateY(0deg) translateZ(75px); }
.face-back   { transform: rotateY(180deg) translateZ(75px); }
.face-right  { transform: rotateY(90deg) translateZ(75px); }
.face-left   { transform: rotateY(-90deg) translateZ(75px); }
.face-top    { transform: rotateX(90deg) translateZ(75px); }
.face-bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes rotate-prism {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.prism-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.content-item {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-speed);
}
.content-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.content-item h3 {
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .prism-showcase {
        grid-template-columns: 1fr 2fr;
        text-align: left;
    }
    .prism-content { text-align: left; }
}


/* =========================================================== */
/* STYLES FOR V5 "CTA BANNER" (THE VEDA FORGE)                 */
/* =========================================================== */

.cta-banner-section-v5 {
    position: relative;
    height: 80vh;
    min-height: 550px;
    width: 100%;
    background-color: #0d0d0d; /* A deep, rich black */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#particle-forge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.forge-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white-color);
    padding: 20px;
    animation: forge-fade-in 2s 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes forge-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forge-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 0 25px rgba(80, 227, 194, 0.5);
    margin-bottom: 15px;
}

.forge-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-forge {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 45px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 20px rgba(80, 227, 194, 0.3);
}

.btn-forge:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 0 35px rgba(80, 227, 194, 0.7);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .forge-content h2 { font-size: 2.5rem; }
    .forge-content p { font-size: 1.1rem; }
}

/* --- Footer (same styles) --- */
.footer { background-color: var(--dark-color); color: #ccc; padding-top: 60px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-about .logo { color: var(--white-color); margin-bottom: 20px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-column h4 { color: var(--white-color); font-size: 1.1rem; margin-bottom: 20px; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #ccc; font-size: 0.95rem; }
.footer-column ul li a:hover { color: var(--white-color); padding-left: 5px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { color: #ccc; font-size: 1.2rem; }
.footer-social a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #444; padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { text-align: center; max-width: 100%; margin-bottom: 50px; }
    .pillars-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .menu-toggle { display: block; }
    .nav-actions { display: none; }
    .nav-menu { position: absolute; top: 100%; left: -100%; width: 100%; height: calc(100vh - 70px); background-color: var(--white-color); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 40px; gap: 25px; transition: left var(--transition-speed); overflow-y: auto; }
    .nav-menu.active { left: 0; }
    .nav-link { font-size: 1.2rem; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown-menu { position: static; display: none; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; width: 100%; padding: 15px 0 0 20px; }
    .dropdown.active .dropdown-menu { display: flex; } /* Changed to flex for consistency */
    .dropdown-menu-large { flex-direction: column; gap: 15px; min-width: auto; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero-headline { font-size: 2.5rem; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .footer-main { grid-template-columns: 1fr; }
    .cta-banner-section h2 { font-size: 2rem; }
}