/* Base Styles */
:root {
    --primary-color: #2196F3;
    --primary-light: #BBDEFB;
    --primary-dark: #1976D2;
    --accent-color: #FF9800;
    --text-color: #333333;
    --text-light: #757575;
    --background-light: #FFF8E1;
    --background-white: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

/* Header & Navigation */
.header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

/* What is CAAR Section */
.what-is-caar {
    background-color: var(--background-white);
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.interactive-house {
    flex: 1;
    min-width: 300px;
}

.house-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.house-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    z-index: 2;
}

.hotspot:before {
    content: '+';
    font-size: 20px;
}

.hotspot:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.hotspot-content {
    position: absolute;
    top: 40px;
    left: -100px;
    width: 250px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 3;
}

.hotspot:hover .hotspot-content {
    opacity: 1;
    visibility: visible;
}

.hotspot-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hotspot-content ul {
    padding-left: 20px;
}

.instruction {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

/* Benefits Section */
.benefits {
    background-color: var(--background-light);
}

.benefits-slider {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.slider-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.slider-before-after {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.slider-image {
    width: 100%;
    display: block;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.slider-handle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-handle:after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.benefit-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed);
}

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

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon.time:before {
    content: '⏰';
    font-size: 30px;
}

.benefit-icon.organization:before {
    content: '📋';
    font-size: 30px;
}

.benefit-icon.stress:before {
    content: '😌';
    font-size: 30px;
}

.benefit-icon.money:before {
    content: '💰';
    font-size: 30px;
}

/* Examples Section */
.examples {
    background-color: var(--background-white);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.timeline-points {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.timeline-point {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.point-marker {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all var(--transition-speed);
}

.timeline-point:hover .point-marker {
    transform: scale(1.2);
    background-color: var(--primary-dark);
}

.point-content {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    position: absolute;
    top: -200px;
    width: 250px;
    z-index: 2;
}

.timeline-point:hover .point-content {
    opacity: 1;
    visibility: visible;
}

/* Get Started Section */
.get-started {
    background-color: var(--background-light);
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.quiz-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 800px;
    margin: 0 auto;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quiz-option {
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
}

.quiz-option:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.quiz-option.selected {
    background-color: var(--primary-color);
    color: white;
}

.quiz-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.quiz-next, .restart-quiz {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.quiz-next:hover, .restart-quiz:hover {
    background-color: var(--primary-dark);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-white);
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    margin-right: 1rem;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.testimonial-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-preview {
    font-style: italic;
}

.read-more {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    margin-top: 0.5rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* FAQ Section */
.faq {
    background-color: var(--background-light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px var(--shadow-color);
    overflow: hidden;
}

.accordion-header {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
}

.accordion-item.active .accordion-content {
    padding: 0 1.2rem 1.2rem;
    max-height: 500px;
}

/* Contact Section */
.contact {
    background-color: var(--background-white);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: white;
    margin: 0 1rem;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 50px;
    height: 5px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.progress-bar:before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content, .hero-image {
        flex: 100%;
        padding-right: 0;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .timeline-point .point-content {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .timeline-points {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .timeline-point {
        width: 100%;
    }
    
    .point-content {
        width: 90% !important;
    }
}
