/*
=================================================================
|   ARISTOS - Modern Components Stylesheet
|   Version: 1.0
|   Description: Modern and sophisticated UI components
=================================================================
*/

/* --- Modern Card Components --- */
.card-modern {
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold-hover);
}

.card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: var(--gold-gradient);
}

.card-modern .card-header {
    padding: 25px 30px 15px;
    position: relative;
}

.card-modern .card-body {
    padding: 20px 30px 30px;
}

.card-modern .card-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Feature Blocks --- */
.feature-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.feature-item {
    position: relative;
    padding: 40px 30px;
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
    z-index: -1;
    animation: pulse 2s infinite;
}

.feature-icon i {
    font-size: 32px;
    color: var(--color-gold);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-item p {
    margin-bottom: 0;
    color: var(--color-secondary-text);
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: -1;
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse .content-text {
    direction: ltr;
}

.content-grid.reverse .content-media {
    direction: ltr;
}

.content-text {
    padding: 20px;
}

.content-media {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.content-media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.content-media:hover img {
    transform: scale(1.05);
}

.content-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
    pointer-events: none;
}

/* --- Timeline Component --- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-image: var(--gold-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-black);
    border: 4px solid;
    border-image: var(--gold-gradient) 1;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-black);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-content::after {
    content: '';
    position: absolute;
    border-width: 10px;
    border-style: solid;
    top: 15px;
}

.timeline-item.left .timeline-content::after {
    border-color: transparent transparent transparent var(--color-black);
    right: -20px;
}

.timeline-item.right .timeline-content::after {
    border-color: transparent var(--color-black) transparent transparent;
    left: -20px;
}

/* --- Stats Counter --- */
.stats-counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 10px;
    background-image: var(--gold-gradient);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.stat-label {
    font-size: 1.1em;
    color: var(--color-secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Accordion --- */
.accordion {
    margin: 40px 0;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--color-black);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.accordion-icon {
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

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

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 25px;
}

/* --- Testimonial Cards --- */
.testimonial-modern {
    padding: 30px;
    background-color: var(--color-black);
    border-radius: var(--border-radius);
    position: relative;
    margin-top: 40px;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.testimonial-modern::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 100px;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid;
    border-image: var(--gold-gradient) 1;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Animations --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }
    
    .timeline-item.left .timeline-content::after {
        border-color: transparent var(--color-black) transparent transparent;
        right: auto;
        left: -20px;
    }
}

@media (max-width: 768px) {
    .feature-block {
        gap: 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-counter {
        grid-template-columns: 1fr;
    }
}
