/* Tech Content Component Styles */

/* Content Section */
.content-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.content-item {
    background: white;
    display: grid;
    grid-template-columns: 4fr 5fr;
    min-height: 400px;
}

.content-item-reverse {
    grid-template-columns: 5fr 4fr;
}

.content-item-reverse .content-image {
    order: 2;
}

.content-item-reverse .content-text {
    order: 1;
}

/* Content Image Styles */
.content-item .content-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-slider .content-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-slider .content-slide.active {
    opacity: 1;
}

.image-slider .content-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Single image styles */
.content-item .content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    /* Lazy loading optimization */
    background-color: #f8f9fa;
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.slider-btn i {
    color: #333;
    font-size: 14px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: rgba(255, 255, 255, 1);
}

/* Content Text Styles */
.content-item .content-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-item .content-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.4;
}

.content-item .content-text p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Tech List Styles */
.tech-summary {
    margin-bottom: 20px;
}

.tech-summary p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

.tech-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    margin-bottom: 20px;
}

.tech-list.expanded {
    max-height: 2000px;
}

.tech-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tech-item h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-item h4 i {
    color: #ff6b35;
    font-size: 1.2rem;
    width: 20px;
}

.tech-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.tech-section {
    margin-bottom: 30px;
}

.tech-section h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.tech-section h4 i {
    color: #ff6b35;
    font-size: 1.3rem;
}

.tech-item h5 {
    color: #444;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.tech-item h5 i {
    color: #ff6b35;
    font-size: 1.1rem;
    width: 16px;
}

/* Toggle Button Styles */
.toggle-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.toggle-btn:active {
    transform: translateY(0);
}

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

.toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        gap: 40px;
    }

    .content-item .content-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .content-item,
    .content-item-reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .content-item-reverse .content-image,
    .content-item-reverse .content-text {
        order: unset;
    }

    .content-item .content-image {
        min-height: 200px;
    }

    .content-item .content-text {
        padding: 30px;
    }

    .tech-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .tech-item h4 {
        font-size: 1rem;
        gap: 8px;
    }

    .tech-item h4 i {
        font-size: 1.1rem;
        width: 18px;
    }

    .tech-item p {
        font-size: 0.95rem;
    }

    .tech-section h4 {
        font-size: 1.1rem;
        gap: 8px;
    }

    .tech-section h4 i {
        font-size: 1.2rem;
    }

    .tech-item h5 {
        font-size: 0.95rem;
        gap: 6px;
    }

    .tech-item h5 i {
        font-size: 1rem;
        width: 14px;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .slider-controls {
        bottom: 15px;
        gap: 15px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .content-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .content-item,
    .content-item-reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .content-item-reverse .content-image,
    .content-item-reverse .content-text {
        order: unset;
    }

    .content-item .content-image {
        min-height: 180px;
    }

    .content-item .content-text {
        padding: 20px;
    }

    .tech-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .tech-item h4 {
        font-size: 0.95rem;
        gap: 6px;
    }

    .tech-item h4 i {
        font-size: 1rem;
        width: 16px;
    }

    .tech-item p {
        font-size: 0.9rem;
    }

    .tech-section h4 {
        font-size: 1rem;
        gap: 6px;
    }

    .tech-section h4 i {
        font-size: 1.1rem;
    }

    .tech-item h5 {
        font-size: 0.9rem;
        gap: 5px;
    }

    .tech-item h5 i {
        font-size: 0.95rem;
        width: 12px;
    }

    .toggle-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .tech-summary p {
        font-size: 1rem;
    }

    .slider-controls {
        bottom: 10px;
        gap: 10px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
    }

    .slider-btn i {
        font-size: 12px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }

    .content-section {
        padding: 40px 0;
    }
}
