/* ============================================
   DF DEV - Final Aesthetic Polish & Details
   Last Touch Professional Styling
   ============================================ */

/* ===== DECORATIVE SHAPES ===== */
.shape-decoration {
    position: absolute;
    pointer-events: none;
}

.shape-circle {
    border-radius: 50%;
}

.shape-blob {
    filter: blur(80px);
    opacity: 0.1;
}

.shape-animated {
    animation: shapeFloat 8s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent);
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

/* ===== ENHANCED FEATURE ICONS ===== */
.feature-icon-enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius);
    font-size: 32px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-icon-enhanced::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, var(--red), var(--blue), var(--red));
    animation: iconSpin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-icon-enhanced:hover {
    border-color: var(--red);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

.feature-icon-enhanced:hover::before {
    opacity: 0.2;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CODE BLOCKS & HIGHLIGHTS ===== */
.code-highlight {
    background: rgba(10, 10, 10, 0.8);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--blue);
    overflow-x: auto;
    margin: 12px 0;
}

/* ===== STAT BOXES ===== */
.stat-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.15);
}

.stat-box-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
}

.stat-box-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===== TAG CLOUDS ===== */
.tag {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: linear-gradient(135deg, var(--red), var(--blue));
    border-color: var(--red);
    transform: scale(1.05);
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 10px;
    animation: fillProgress 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
}

/* ===== TOOLTIP IMPROVEMENTS ===== */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--red);
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--blue);
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb-separator {
    color: var(--gray-600);
}

/* ===== ENHANCED LISTS ===== */
.list-enhanced li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-300);
}

.list-enhanced li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 1.2rem;
}

.list-enhanced li:hover {
    color: var(--white);
    padding-left: 32px;
    transition: all 0.2s ease;
}

/* ===== FAQs ===== */
.faq-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(230, 57, 70, 0.05);
    padding-left: 20px;
}

.faq-icon {
    color: var(--red);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray-300);
}

.faq-item.open .faq-answer {
    padding: 0 16px 16px;
    max-height: 500px;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--red), var(--blue), transparent);
}

.timeline-item {
    margin-bottom: 32px;
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--red);
    border: 3px solid var(--black);
    border-radius: 50%;
    top: 0;
    right: -40px;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -40px;
    right: auto;
}

.timeline-dot:hover {
    width: 24px;
    height: 24px;
    box-shadow: 0 0 20px var(--red);
    background: var(--red);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(230, 57, 70, 0.15);
    padding: 16px;
    border-radius: var(--radius);
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .feature-icon-enhanced {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .stat-box-value {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -20px;
        right: auto;
    }
}
