/*Made by Tanish Sharma
All copyright has been reserved by Tanish Sharma  */

:root {
    /* Global Dark Theme Variables */
    --bg-color: #020617; /* Deep Dark Navy */
    --nav-bg: rgba(15, 23, 42, 0.7); /* Glass Navy */
    --card-bg: rgba(30, 41, 59, 0.4); /* Subtle Glass */
    --border-color: rgba(255, 255, 255, 0.1); /* Subtle White Border */
    --text-main: #f8fafc; /* Premium White */
    --text-muted: #94a3b8; /* Muted Slate */
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-color: #818cf8; /* Premium Lavender/Indigo */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Venta BG  */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 90px;
}

.dynamic-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 90px);
    overflow: hidden;
    padding-bottom: 60px;
}

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Premium Navbar */
.premium-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback */
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

.functional-nav {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    justify-content: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    display: flex;
    justify-content: flex-start;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #a855f7;
}

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

.mobile-only {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    display: none;
    margin-left: auto;
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.close-mobile-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #a855f7;
}

@media (max-width: 1024px) {
    .functional-nav {
        display: flex;
        justify-content: space-between;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Logo & Animation */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: default;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
}

.logo-container:hover {
    transform: translateY(-1px);
}

.logo-container:hover::before {
    opacity: 1;
    transform: scale(1.15);
}

.logo-icon {
    color: var(--text-main);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    will-change: transform;
}

.logo-container:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent-color);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--text-main);
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*  Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 10;
}

.hero-bg-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content: Form Card */
.main-content {
    padding: 20px;
    position: relative;
    z-index: 10;
}

.card-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Optional soft inner glow for the card */
.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

/*Form Inputs & New Smart UX */
.form-mode-toggle {
    display: flex;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto 40px auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    letter-spacing: 0.02em;
}

.toggle-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #4b11af 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.toggle-btn:not(.active):hover {
    color: #cbd5e1;
}

/* Form Arrays & Grids */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.input-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.input-card label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.optional-badge {
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 4px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 12px;
    padding: 14px 14px 14px 44px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    appearance: none;
}

.input-with-icon select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
}

.input-with-icon select option {
    background-color: #0f172a;
    color: #e2e8f0;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.helper-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    padding-left: 2px;
}

.fade-in {
    animation: fadeInMode 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInMode {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy Advanced Variables Layout Constraints */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.9;
}

.prediction-form input {
    background: rgba(128, 128, 128, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.prediction-form input:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.prediction-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: transparent;
}

.submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.glow-button {
    background: linear-gradient(135deg, #000000 0%, #4b11af 100%);
    color: var(--text-main);
    border: none;
    padding: 16px 36px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    width: 100%;
    max-width: 320px;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.glow-button:active {
    transform: translateY(1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.glow-button:hover .btn-icon {
    transform: translateX(4px);
}

.result-text {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 10px;
}

/* How It Works Section */
.how-it-works {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.step-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.step-desc {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .card-container {
        padding: 24px;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 24px;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .step-icon-wrap {
        flex-shrink: 0;
    }
}

/* Result Dashboard */
.dashboard-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.dashboard-visible {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
    margin-top: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    margin: 40px 0;
}

/* Spinner Animation */
.btn-spinner {
    animation: spin 1.2s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Trust Label */
.trust-label {
    font-size: 11px;
    color: #64748b;
    margin: -10px 0 16px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.dashboard-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 650px) {
    .dashboard-top {
        grid-template-columns: 1fr;
    }
}

.score-card,
.chart-card,
.insights-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.card-label {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.score-number-wrap {
    font-family: 'Outfit', sans-serif;
}

.score-val {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-main);
}

.score-max {
    font-size: 24px;
    color: #64748b;
    font-weight: 500;
}

.risk-badge {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.badge-high {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-medium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-low {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.metric-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

.chart-wrapper {
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insights-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.insight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.dot-warn {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.dot-good {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.dot-info {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* Informational Sections */
.info-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Stacking Order on Mobile */
@media (max-width: 900px) {
    .info-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .block-right .info-image-wrapper {
        order: -1;
    }
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-desc {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.7;
}

.info-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.info-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.5;
}

.bullet-icon {
    font-size: 20px;
    line-height: 1;
}

/* Specific styling for the second section bullets */
.modern-bullets li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-bullets li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.info-image-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.image-placeholder img,
.image-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.gradient-bg-1 {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

/* Storytelling Section  */
.story-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 24px;
}

.story-header {
    text-align: center;
    margin-bottom: 50px;
}

.story-subtitle {
    font-size: 18px;
    color: #94a3b8;
    margin-top: 12px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Sibling Hover Blur Effect */
.story-grid:hover .story-card:not(:hover) {
    opacity: 0.5;
    filter: blur(3px);
    transform: scale(0.96);
}

.story-card {
    position: relative;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.7s ease, filter 0.7s ease;
    height: 100%;
    cursor: pointer;
}

.story-card:hover,
.story-card.expanded {
    transform: translateY(-8px) scale(1.03);
    z-index: 10;
}

.story-card:hover::before,
.story-card.expanded::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #a855f7, #ec4899, #3b82f6);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderSpin 3s linear infinite;
    z-index: 20;
}

@keyframes borderSpin {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
    }

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

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

.story-card-inner {
    background: var(--nav-bg);
    border-radius: 19px;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.story-content-default {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.story-card:hover .story-content-default,
.story-card.expanded .story-content-default {
    opacity: 0.1;
    transform: scale(0.95);
}

.story-content-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    transform: translateY(105%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.story-card:hover .story-content-overlay,
.story-card.expanded .story-content-overlay {
    transform: translateY(0);
}

.overlay-subtitle {
    font-family: 'Outfit', sans-serif;
    color: #a855f7;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.overlay-text {
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.overlay-gradient-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
}

.story-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
}

.highlight-glow {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    width: 200px;
    height: 200px;
    opacity: 0;
}

.story-card:hover .story-glow {
    opacity: 1;
    transform: scale(1.2);
}

.story-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}

.story-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.highlight-text {
    background: linear-gradient(135deg, #ffffff 0%, #4b11af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-text {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0s;
}

.delay-2 {
    transition-delay: 0.15s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.45s;
}

@media (max-width: 1024px) {
    .delay-3 {
        transition-delay: 0s;
    }

    .delay-4 {
        transition-delay: 0.15s;
    }
}

@media (max-width: 600px) {

    .delay-1,
    .delay-2,
    .delay-3,
    .delay-4 {
        transition-delay: 0s;
    }
}

/* 
   Smart CTA System (Floating Button) 
 */
.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #000000 0%, #4b11af 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: premiumPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.floating-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, #4b11af 0%, #000000 100%);
    animation: none;
    /* pause pulse on hover */
}

@keyframes premiumPulse {

    0%,
    100% {
        box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    }

    50% {
        box-shadow: 0 10px 40px rgba(168, 85, 247, 0.6);
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 24px;
        right: 50%;
        transform: translateX(50%) translateY(20px);
        width: calc(100% - 48px);
        justify-content: center;
        padding: 18px;
        animation: none;
    }

    .floating-cta.visible {
        transform: translateX(50%) translateY(0);
    }

    .floating-cta:hover {
        transform: translateX(50%) translateY(0) scale(1.02);
    }
}

/* Testimonial Section  */
.testimonial-section {
    position: relative;
    max-width: 1000px;
    margin: 120px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    z-index: -1;
    filter: blur(50px);
}

.testimonial-container {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    top: 40px;
    left: 40px;
    color: #a855f7;
    z-index: 0;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 40px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    position: relative;
    z-index: 2;
    padding-bottom: 20px;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.testimonial-quote {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .testimonial-quote {
        font-size: 22px;
    }

    .testimonial-container {
        padding: 40px 20px;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.author-role {
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

/* Testimonial Arrow Overlay */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-arrow:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.5));
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-50%) scale(1.15);
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}

.slider-dot.active {
    background: #a855f7;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Footer Section by Tanish Sharma */
.app-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 24px 40px;
    margin-top: 80px;
    overflow: hidden;
    /* Added to clip parallax text */
}

/* Footer Parallax Hero Text */
.footer-bg-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    overflow: hidden;
    /* IMPORTANT FIX: Allow clicks to pass through background text */
    pointer-events: none;
}

.footer-bg-text {
    font-family: 'Outfit', sans-serif;
    font-size: 13vw;
    font-weight: 900;
    text-align: center;
    /* IMPORTANT */
    white-space: nowrap;
    position: relative;
    /* left: 25%; */
    transform: translateX(-50%);
    /* KEY FIX */
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    -webkit-background-clip: text;
    /* Background clip text for venta */
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .footer-bg-text {
        font-size: 13vw;
        left: 25%;
    }
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.footer-links-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #a855f7;
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #3b82f6;
    transform: scale(1.15) translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright,
.built-by {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.highlight-author {
    color: #e2e8f0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.highlight-author:hover {
    color: #a855f7;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Analyze Grid & Smart Cards by Tanish Sharma */
.analyze-content {
    max-width: 600px;
}

.analyze-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.analyze-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 20px;
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.analyze-card:hover {
    transform: translateX(8px);
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(168, 85, 247, 0.4);
}

.analyze-icon {
    flex-shrink: 0;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyze-text h4 {
    font-family: 'Outfit', sans-serif;
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.analyze-text p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Made by Tanish Sharma
 All copyright has been reserved by Tanish Sharma */

/* Auth Modal Styles */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    width: 100%;
    max-width: 420px;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
    text-align: center;
}

.auth-modal-overlay.open .auth-modal-content {
    transform: translateY(0) scale(1);
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: var(--text-main);
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main) 0%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.auth-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.auth-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
    color: var(--text-main);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.auth-btn:hover {
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
    margin-right: 12px;
}

.auth-divider::after {
    margin-left: 12px;
}

.google-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.auth-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Auth usage warning badge */
.usage-warning {
    color: #f43f5e;
    font-size: 13px;
    background: rgba(244, 63, 94, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}