/* ==========================================
   Technologies Section Styles
   ========================================== */

.technologies-section {
    background-color: var(--navy-primary); /* Use variable */
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
}

/* Section Header Overrides for Dark Theme */
.technologies-section .section-title {
    color: var(--text-primary); /* Use variable */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.technologies-section .section-line {
    width: 60px;
    height: 4px;
    background-color: var(--gold-primary);
    margin: 0 auto 50px;
    border-radius: 2px;
}

/* Slider/Wrapper */
.technologies-wrapper {
    position: relative;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.technologies-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    direction: ltr; /* Force LTR for consistent marquee behavior */
}

.tech-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll 30s linear infinite;
    /* Ensure flex items don't shrink */
}

.tech-track > * {
    flex-shrink: 0;
}

.technologies-slider:hover .tech-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%); /* Move from Left (Clone) */
    }
    100% {
        transform: translateX(0%); /* To Right (Original) */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .technologies-wrapper {
        padding: 0 10px;
    }
    
    .tech-track {
        gap: 40px; 
    }
    
    .tech-icon {
        font-size: 3rem;
    }
}

/* Tech Card Icon */
.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-10px);
}

.tech-icon {
    font-size: 4rem; /* Large Icons */
    color: var(--gold-primary) !important; /* Force Gold Color */
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.tech-card:hover .tech-icon {
    color: #ffd700 !important; /* Brighter Gold on Hover */
    filter: drop-shadow(0 8px 12px rgba(212, 175, 55, 0.4));
    transform: scale(1.1);
}

.tech-name {
    color: var(--text-primary); /* Use variable */
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tech-card:hover .tech-name {
    opacity: 1;
    color: var(--gold-primary);
}

/* Navigation Arrows */
.tech-nav {
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.tech-nav:hover {
    color: var(--gold-primary);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .tech-track {
        gap: 30px;
    }
    
    .tech-icon {
        font-size: 3rem;
    }
}
