/* =============== PROFESSIONAL MOBILE TECHNICAL DISPLAY SECTION =============== */

.technical-display-mobile {
    background: linear-gradient(180deg, #0f0f10 0%, #1a1a1a 50%, #0f0f10 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.technical-display-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(69, 167, 239, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.technical-display-mobile .container {
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 1;
    max-width: 1400px !important;
}

/* Match workflow section responsive padding */
@media (max-width: 1200px) {
    .technical-display-mobile .container {
        padding: 0 40px !important;
    }
}

@media (max-width: 991px) {
    .technical-display-mobile .container {
        padding: 0 25px !important;
    }
}

@media (max-width: 768px) {
    .technical-display-mobile .container {
        padding: 0 25px !important;
    }
}

@media (max-width: 480px) {
    .technical-display-mobile .container {
        padding: 0 20px !important;
    }
}

/* =============== IMAGE CAROUSEL =============== */

.image-carousel-section {
    margin-bottom: 60px;
}

.image-carousel {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.carousel-dot.active {
    background: #45a7ef;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .image-carousel {
        height: 250px;
    }
    
    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* =============== SECTION INTRO =============== */

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: #45a7ef;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    padding: 0 20px;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #45a7ef);
}

.section-label::before {
    left: -50px;
}

.section-label::after {
    right: -50px;
    background: linear-gradient(90deg, #45a7ef, transparent);
}

.section-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: #9ca3af;
    font-size: 1.1rem;
    margin: 0 auto;
    font-weight: 400;
    text-align: center;
}

/* =============== ACHIEVEMENT METRICS =============== */

.achievement-metrics {
    margin-bottom: 50px;
}

.metrics-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.metric-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    position: relative;
    padding: 10px;
}

.metric-item.highlight {
    background: linear-gradient(135deg, rgba(69, 167, 239, 0.1), rgba(52, 152, 219, 0.05));
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(69, 167, 239, 0.2);
}

.metric-icon {
    margin-bottom: 10px;
    color: #45a7ef;
    display: flex;
    justify-content: center;
}

.metric-icon svg {
    filter: drop-shadow(0 2px 4px rgba(69, 167, 239, 0.3));
}

.metric-icon img {
    filter: drop-shadow(0 2px 4px rgba(69, 167, 239, 0.3));
    border-radius: 4px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.metric-number {
    background: linear-gradient(135deg, #45a7ef, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-plus,
.metric-percent {
    font-size: 1.8rem;
    color: #45a7ef;
    opacity: 0.8;
}

.metric-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.metric-sublabel {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 400;
}

.metric-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(69, 167, 239, 0.3), transparent);
    margin: 0 10px;
}

/* =============== CERTIFICATIONS GRID =============== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(69, 167, 239, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(69, 167, 239, 0.2);
}

.cert-card.primary {
    background: linear-gradient(135deg, rgba(69, 167, 239, 0.15), rgba(52, 152, 219, 0.08));
    border-color: rgba(69, 167, 239, 0.3);
}

.cert-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(69, 167, 239, 0.2), rgba(52, 152, 219, 0.1));
    border-radius: 12px;
    color: #45a7ef;
}

.cert-icon svg {
    filter: drop-shadow(0 2px 4px rgba(69, 167, 239, 0.3));
}

.cert-icon img {
    filter: drop-shadow(0 2px 4px rgba(69, 167, 239, 0.3));
    border-radius: 4px;
}

.cert-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cert-content p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

/* =============== PROJECTS SHOWCASE =============== */

.projects-showcase {
    margin-bottom: 60px;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.showcase-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.showcase-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #45a7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(69, 167, 239, 0.1);
    border-color: rgba(69, 167, 239, 0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.project-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: #45a7ef;
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
    flex: 0 0 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card.active {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image-container img {
    transform: scale(1.05);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(69, 167, 239, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-info {
    padding: 25px 25px 40px 25px !important;
}

.project-info h4 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.meta-item svg {
    flex-shrink: 0;
    color: #45a7ef;
}

.project-info p {
    color: #cbd5e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =============== VALUE PROPOSITIONS =============== */

.value-propositions {
    margin-bottom: 60px;
}

.value-header {
    text-align: center;
    margin-bottom: 40px;
}

.value-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-header p {
    color: #9ca3af;
    font-size: 1rem;
    margin: 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.value-card {
    padding: 30px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #45a7ef, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.value-card:hover::before {
    transform: translateX(100%);
}

.value-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(69, 167, 239, 0.1), rgba(52, 152, 219, 0.05));
    border-color: rgba(69, 167, 239, 0.3);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(69, 167, 239, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.value-icon {
    margin-bottom: 20px;
    color: #45a7ef;
    display: flex;
    justify-content: center;
}

.value-icon svg {
    filter: drop-shadow(0 4px 8px rgba(69, 167, 239, 0.3));
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.value-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* =============== RESPONSIVE DESIGN =============== */

/* Mobile - 2x2 Grid for Value Props */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .metrics-container {
        padding: 20px;
        gap: 20px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-image-container {
        height: 180px;
        flex-shrink: 0;
    }
    
    /* Fix mobile carousel blank space with tight layout */
    .projects-carousel {
        height: auto !important;
        max-height: 375px !important;
        min-height: auto !important;
    }
    
    /* Fix carousel track height on mobile */
    .carousel-track {
        height: auto !important;
        min-height: auto !important;
    }
    
    .project-card {
        display: flex !important;
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: 375px;
        overflow: hidden;
    }
    
    /* Ensure project badge is properly positioned on mobile with higher specificity */
    .projects-showcase .project-badge,
    .project-card .project-badge {
        top: 15px !important;
        right: 15px !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        z-index: 3 !important;
    }
    
    /* Optimize project info padding on mobile for compact layout */
    .project-info {
        padding: 12px 15px 25px 15px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .project-info h4 {
        margin-bottom: 8px !important;
        font-size: 1.2rem !important;
    }
    
    .project-meta {
        margin-bottom: 8px !important;
    }
    
    .project-info p {
        margin: 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    .value-card h4 {
        font-size: 1rem;
    }
    
    .value-card p {
        font-size: 0.85rem;
    }
    
    /* Reduce margin space below value propositions section */
    .value-propositions {
        margin-bottom: 30px !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 992px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 993px) {
    .technical-display-mobile {
        padding: 100px 0;
    }
    
    /* Ensure proper container centering for desktop */
    .technical-display-mobile .container {
        max-width: 960px !important;
        margin: 0 auto !important;
        padding: 0 40px !important;
    }
    
    /* Larger carousel for desktop to show high-quality images better */
    .image-carousel {
        height: 450px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .metrics-container {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .project-image-container {
        height: 500px;
    }
    
    .value-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .technical-display-mobile .container {
        max-width: 1170px !important;
        padding: 0 50px !important;
    }
}

@media (min-width: 1280px) {
    .technical-display-mobile .container {
        max-width: 1200px !important;
        padding: 0 55px !important;
    }
}

@media (min-width: 1366px) {
    .technical-display-mobile .container {
        max-width: 1356px !important;
        padding: 0 60px !important;
    }
}

/* =============== ANIMATIONS =============== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}