/* ===== MEGA SECTIONS STYLES ===== */

/* Section base */
.mega-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.mega-section.alt-bg {
    background: var(--color-muted);
}

.mega-section.dark-bg {
    background: var(--color-foreground);
    color: var(--color-background);
}

.mega-section.accent-bg {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff8080 100%);
    color: white;
}

.mega-section.blue-bg {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #5a8fd4 100%);
    color: white;
}

/* Mini cards */
.mini-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-wobbly-sm);
    padding: 1rem;
    box-shadow: var(--shadow-small);
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {

    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: 1fr;
    }
}

/* Quote card */
.quote-card {
    background: var(--color-white);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-wobbly-md);
    padding: 2rem;
    position: relative;
    font-size: 1.2rem;
    font-style: italic;
}

.quote-card::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    color: var(--color-accent);
    font-family: Georgia, serif;
}

/* Icon box */
.icon-box {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-border);
    border-radius: var(--radius-blob);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-box.small {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.icon-box.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Progress bars */
.progress-bar {
    height: 20px;
    background: var(--color-muted);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-wobbly-sm);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-wobbly-sm);
    transition: width 1.5s ease;
}

/* Metric card */
.metric-card {
    background: var(--color-white);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-wobbly-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-normal);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(45, 45, 45, 0.7);
}

/* Badge pill */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 2px solid var(--color-border);
}

.badge.primary {
    background: var(--color-accent);
    color: white;
}

.badge.secondary {
    background: var(--color-secondary);
    color: white;
}

.badge.outline {
    background: transparent;
}

/* Timeline vertical */
.v-timeline {
    position: relative;
    padding-left: 30px;
}

.v-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-border);
    border-radius: 3px;
}

.v-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.v-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border: 3px solid var(--color-border);
    border-radius: 50%;
}

/* Card hover effects */
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

.hover-grow:hover {
    transform: scale(1.05);
}

/* Masonry-like layout */
.masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry>* {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 1;
    }
}

/* Chip tags */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 0.25rem;
}

/* Avatar */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    object-fit: cover;
}

.avatar.large {
    width: 80px;
    height: 80px;
}

.avatar.small {
    width: 32px;
    height: 32px;
}

/* Divider */
.divider {
    height: 3px;
    background: var(--color-border);
    border-radius: 3px;
    margin: 2rem 0;
}

.divider.dashed {
    background: transparent;
    border-top: 3px dashed var(--color-border);
}

/* Highlight box */
.highlight-box {
    background: var(--color-yellow);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-wobbly-md);
    padding: 1.5rem;
    position: relative;
}

.highlight-box::before {
    content: '★';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 1.5rem;
    background: var(--color-white);
    padding: 0 0.5rem;
}

/* List styles */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Number list */
.number-list {
    list-style: none;
    padding: 0;
    counter-reset: item;
}

.number-list li {
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
    counter-increment: item;
}

.number-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Accordion */
.accordion-item {
    background: var(--color-white);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-wobbly-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: var(--color-muted);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-wobbly-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
}

.tab.active,
.tab:hover {
    background: var(--color-accent);
    color: white;
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--color-foreground);
    color: white;
    border-radius: var(--radius-wobbly-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Rating stars */
.stars {
    color: #ffc107;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

/* Notification dot */
.has-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 2px solid white;
}

/* Ribbon */
.ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: bold;
}

/* Counter animation helper */
.counter {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

/* Blur card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-wobbly-md);
    padding: 1.5rem;
}

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Split layout */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split.reverse {
    direction: rtl;
}

.split>* {
    direction: ltr;
}

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

/* Feature list */
.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-yellow);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-content h4 {
    margin-bottom: 0.25rem;
}

/* Circular progress */
.circular-progress {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--color-accent) var(--progress, 0%), var(--color-muted) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border-radius: 50%;
}

.circular-progress span {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Pricing card */
.pricing-card {
    background: var(--color-white);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-wobbly-md);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.pricing-price span {
    font-size: 1rem;
    color: var(--color-foreground);
}

/* Team member card */
.team-card {
    text-align: center;
    padding: 1.5rem;
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--color-border);
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Process step */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border: 2px solid var(--color-border);
    text-align: center;
}

.comparison-table th {
    background: var(--color-muted);
    font-family: var(--font-heading);
}

.comparison-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* FAQ */
.faq-item {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-wobbly-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question::before {
    content: 'Q';
    background: var(--color-accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.faq-answer {
    padding-left: 2rem;
    color: rgba(45, 45, 45, 0.8);
}