/* ================================
   THURRO WEBSITE - CONSOLIDATED STYLES
   ================================ */

/* Font and Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFF1E5;
    scroll-behavior: smooth;
}

/* CSS Custom Properties for Colors */
:root {
    --ft-pink: #FFF1E5;
    --ft-pink-darker: #f0e1d3;
    --ft-cream: #FFF8F0;
    --ft-positive: #3C763D;
    --ft-negative: #A52A2A;
}

/* ================================
   LAYOUT COMPONENTS
   ================================ */

/* Clean line divider styles */
.line-divider {
    padding: 8px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.line-divider-inner {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
    opacity: 0.3;
}

/* ================================
   NAVIGATION & MOBILE MENU
   ================================ */

/* Mobile Menu Animations */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Header Shadow Transitions */
.header-shadow {
    transition: box-shadow 0.3s ease;
}

.shadow-on-scroll {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Scroll offset for anchor links */
html {
    scroll-padding-top: 80px;
}

/* ================================
   INTERACTIVE COMPONENTS
   ================================ */

/* Solutions tabs styles */
.solution-tab {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.solution-tab:hover {
    transform: translateY(-2px);
}

.solution-tab.active {
    background-color: #000;
    color: #fff;
}

.solution-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-content.active {
    display: block;
    opacity: 1;
}

/* Feature tabs styles */
.feature-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-btn:hover {
    transform: translateY(-2px);
}

.feature-btn.active {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
}

.feature-content {
    transition: opacity 0.3s ease;
}

.feature-image {
    transition: opacity 0.3s ease;
}

/* ================================
   HERO & LAYOUT SECTIONS
   ================================ */

/* Hero Animation Container */
.hero-animation-container {
    min-height: 250px;
}

@media (min-width: 768px) {
    .hero-animation-container {
        min-height: 320px;
    }
}

/* Process Flow Styles */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================================
   DATA INTELLIGENCE HUB STYLES (INDEX PAGE)
   ================================ */

.hub-container {
    position: relative;
    width: 960px;
    height: 600px;
    margin: 0 auto;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #FFF8F0; /* ft-cream color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.stat-card {
    position: absolute;
    width: 180px;
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
}

.connector {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    background-color: rgba(0, 0, 0, 1);
    transform-origin: 0 0;
    z-index: 1;
}

/* ================================
   CAROUSEL & TESTIMONIALS
   ================================ */

/* Testimonial Carousel Styles */
.testimonial-slide {
    transition: all 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-slide:not(.active) {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* Carousel Dots */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #000;
}

/* ================================
   CARD COMPONENTS
   ================================ */

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ================================
   ANIMATIONS
   ================================ */

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
    animation-play-state: paused;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounceGentle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ================================
   ALTDATA PAGE SPECIFIC STYLES
   ================================ */

/* Analysis types grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .analysis-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.analysis-item {
    background-color: #FFF8F0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.analysis-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.analysis-header {
    background-color: #f9f4ee;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.analysis-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF1E5;
    border-radius: 0.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.analysis-item:hover .analysis-icon {
    background-color: #f0e1d3;
    transform: scale(1.1);
}

.analysis-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1F2937;
}

.analysis-body {
    padding: 1.25rem;
}

.analysis-desc {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ================================
   ANSWERS PAGE SPECIFIC STYLES
   ================================ */

/* Gradient background for hero */
.hero-gradient {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* Feature video container improvements */
.feature-image video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Enhanced hover effects for answers page - specific to cards, not dropdowns */
.bg-ft-cream.card-hover:hover {
    background-color: var(--ft-pink-darker);
}

/* Smooth transitions for all interactive elements */
.transition-all {
    transition: all 0.3s ease;
}

/* For notebook browser section */
.notebook-card {
    transition: all 0.3s ease;
}

.notebook-card:hover {
    transform: translateY(-5px);
}

/* Improved visual hierarchy for answers page */
.text-ft-positive {
    color: var(--ft-positive);
}

.text-ft-negative {
    color: var(--ft-negative);
}

/* Checkmark icon styling for feature lists */
.feature-content svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ specific enhancements */
.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-toggle {
    color: #666;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-toggle {
    color: #000;
}

/* FAQ item styling */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .hero-animation-container {
        min-height: 200px;
    }
}

/* Desktop Specific Styles */
@media (min-width: 769px) {
    .desktop-hidden {
        display: none;
    }
    
    .mobile-menu-button {
        display: none;
    }
}

/* ================================
   FORMS & INPUTS
   ================================ */

/* Form Styling */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.btn-primary {
    background-color: #000;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #000;
    color: #000;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

/* ================================
   ACCESSIBILITY
   ================================ */

/* Focus Styles */
.focus-visible:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        animation: none;
        opacity: 1;
    }
}

/* ================================
   PAGE-SPECIFIC STYLES
   ================================ */

/* Process steps for institutional intelligence page */
.process-step {
    background: #333333;
    color: white;
    padding: 2rem 2.5rem;
    margin-left: 2rem;
    min-width: 240px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%, 30px 50%);
    z-index: 2;
}

.process-step:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

.process-step:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30px 50%);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid #333333;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    z-index: 3;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -17px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid rgba(0, 0, 0, 0.1);
    border-top: 27px solid transparent;
    border-bottom: 27px solid transparent;
    z-index: 1;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

@media (max-width: 1024px) {
    .process-flow {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }
    
    .process-step {
        width: 100%;
        min-width: unset;
        margin-left: 0 !important;
        clip-path: none;
        border-radius: 12px;
        padding: 1.8rem 2rem;
    }
    
    .process-step:not(:last-child)::after,
    .process-step:not(:last-child)::before {
        display: none;
    }

    .process-step:not(:last-child) {
        position: relative;
    }

    .process-step:not(:last-child)::after {
        content: '';
        display: block;
        position: absolute;
        bottom: -24px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 18px solid #333333;
        z-index: 3;
    }
}