/* ===== TECH CIRCULAR DIAGRAM STYLES ===== */

/* CSS Variables for Tech Section */
:root {
    --tech-primary: #2563EB;
    --tech-primary-light: #3B82F6;
    --tech-dark: #0F172A;
    --tech-dark-light: #1E293B;
    --tech-accent: #60A5FA;
    --tech-glow: rgba(37, 99, 235, 0.3);
    --tech-glow-strong: rgba(37, 99, 235, 0.6);
    --tech-text-light: #F1F5F9;
    --tech-text-muted: #94A3B8;
    --tech-border: rgba(148, 163, 184, 0.2);
    --tech-hover-scale: 1.02;
    --tech-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tech-transition-fast: all 0.15s ease;
}

/* Tech Section Container */
.tech-section {
    background: linear-gradient(135deg, var(--tech-dark) 0%, var(--tech-dark-light) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden; /* Changed to hidden to contain background effects properly */
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--tech-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

/* Section Header */
.tech-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.tech-section .section-header h2 {
    color: var(--tech-text-light);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-section .section-header p {
    color: var(--tech-text-muted);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
}

/* Circular Diagram Container */
.tech-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    overflow: visible; /* Allow hover effects to extend beyond container */
    padding: 2rem; /* Add padding to prevent clipping at edges */
    z-index: 10; /* Ensure diagram appears above background effects */
}

.tech-diagram {
    position: relative;
    width: 100%;
    max-width: 750px;
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: visible; /* Allow hover effects to extend beyond container */
}

/* SVG Styling */
.tech-diagram svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    /* Performance optimization */
    will-change: transform;
    backface-visibility: hidden;
    overflow: visible; /* Allow hover effects to extend beyond SVG bounds */
}

/* Wedge Styling */
.tech-wedge {
    fill: var(--tech-dark-light);
    stroke: var(--tech-border);
    stroke-width: 1;
    cursor: pointer;
    transition: var(--tech-transition);
    transform-origin: center;
    /* Performance optimization */
    will-change: transform, fill, filter;
}

.tech-wedge:hover {
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 20px var(--tech-glow));
    transform: scale(1.01); /* Reduced scale to prevent clipping */
}

.tech-wedge:focus {
    outline: none;
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 20px var(--tech-glow));
}

.tech-wedge.active {
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 25px var(--tech-glow-strong));
    transform: scale(1.02); /* Reduced scale to prevent clipping */
}

/* Inner Ring Sections */
.tech-inner-section {
    fill: var(--tech-dark);
    stroke: var(--tech-border);
    stroke-width: 1;
    cursor: pointer;
    transition: var(--tech-transition);
    transform-origin: center;
    /* Performance optimization */
    will-change: transform, fill, filter;
}

.tech-inner-section:hover {
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 15px var(--tech-glow));
    transform: scale(1.01);
}

.tech-inner-section:focus {
    outline: none;
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 15px var(--tech-glow));
}

.tech-inner-section.active {
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 20px var(--tech-glow-strong));
    transform: scale(1.02);
}

/* Center Core */
.tech-center {
    fill: var(--tech-primary);
    stroke: var(--tech-accent);
    stroke-width: 2;
    cursor: pointer;
    transition: var(--tech-transition);
    filter: drop-shadow(0 0 15px var(--tech-glow));
}

.tech-center:hover {
    fill: var(--tech-primary-light);
    filter: drop-shadow(0 0 25px var(--tech-glow-strong));
    animation: glow-pulse 2s infinite;
}

.tech-center:focus {
    outline: none;
    fill: var(--tech-primary-light);
    filter: drop-shadow(0 0 25px var(--tech-glow-strong));
}

/* Text Labels */
.tech-label {
    fill: var(--tech-text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    user-select: none;
}

/* Tech Icons */
.tech-icon {
    width: 50px;
    height: 50px;
    opacity: 0.9;
    transition: var(--tech-transition-fast);
    filter: brightness(0) invert(1); /* Make icon white */
    /* Ensure proper rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Icon hover effects will be handled via JavaScript */
.tech-icon.active {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--tech-glow));
}

.tech-label-small {
    font-size: 12px;
    font-weight: 700;
    fill: var(--tech-text-light);
}

.tech-center-label {
    font-size: 16px;
    font-weight: 700;
    fill: var(--tech-text-light);
}

/* Modal Styles */
.tech-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--tech-transition);
    padding: 2rem;
    box-sizing: border-box;
}

.tech-modal.active {
    opacity: 1;
    visibility: visible;
}

.tech-modal-content {
    background: linear-gradient(135deg, var(--tech-dark) 0%, var(--tech-dark-light) 100%);
    border: 1px solid var(--tech-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: var(--tech-transition);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    margin: auto;
    /* Ensure perfect centering */
    flex-shrink: 0;
}

.tech-modal.active .tech-modal-content {
    transform: scale(1) translateY(0);
}

.tech-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tech-border);
}

.tech-modal-icon {
    width: 48px;
    height: 48px;
    background: var(--tech-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--tech-glow);
}

.tech-modal-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--tech-text-light);
}

.tech-modal-title {
    color: var(--tech-text-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.tech-modal-description {
    color: var(--tech-text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tech-modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-modal-feature {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--tech-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--tech-transition-fast);
}

.tech-modal-feature:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--tech-accent);
    transform: translateY(-2px);
}

.tech-modal-feature-title {
    color: var(--tech-text-light);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

.tech-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--tech-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--tech-transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-modal-close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--tech-text-light);
}

.tech-modal-close:focus {
    outline: 2px solid var(--tech-accent);
    outline-offset: 2px;
}

/* Animations */
@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 25px var(--tech-glow-strong));
    }
    50% {
        filter: drop-shadow(0 0 35px var(--tech-glow-strong));
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--tech-glow));
    }
    50% {
        filter: drop-shadow(0 0 25px var(--tech-glow-strong));
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .tech-section {
        padding: 4rem 0;
    }
    
    .tech-diagram-container {
        min-height: 550px;
        padding: 1rem; /* Reduced padding for mobile */
    }
    
    .tech-diagram {
        max-width: 550px;
    }
    
    .tech-icon {
        width: 30px;
        height: 30px;
    }
    
    .tech-label {
        font-size: 11px;
    }
    
    .tech-label-small {
        font-size: 9px;
    }
    
    .tech-center-label {
        font-size: 13px;
    }
    
    .tech-modal {
        padding: 1rem;
    }
    
    .tech-modal-content {
        padding: 2rem;
        width: 100%;
        max-width: calc(100vw - 2rem);
        margin: auto;
    }
    
    .tech-modal-title {
        font-size: 1.5rem;
    }
    
    .tech-modal-features {
        grid-template-columns: 1fr;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .tech-diagram-container {
        padding: 1.5rem; /* Moderate padding for tablet */
    }
    
    .tech-diagram {
        max-width: 650px;
    }
    
    .tech-icon {
        width: 38px;
        height: 38px;
    }
    
    .tech-label {
        font-size: 12px;
    }
    
    .tech-label-small {
        font-size: 12px;
    }
    
    .tech-center-label {
        font-size: 14px;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1440px) {
    .tech-diagram {
        max-width: 850px;
    }
    
    .tech-icon {
        width: 58px;
        height: 58px;
    }
    
    .tech-label {
        font-size: 16px;
    }
    
    .tech-label-small {
        font-size: 16px;
    }
    
    .tech-center-label {
        font-size: 18px;
    }
    
    .tech-modal-content {
        max-width: 700px;
        padding: 4rem;
        margin: auto;
    }
}

/* Mobile Progressive Disclosure Layout */
@media (max-width: 480px) {
    .tech-diagram-container {
        display: none;
    }
    
    .tech-cards-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        position: relative;
        z-index: 10;
    }
    
    /* Technology Group Headers */
    .tech-group {
        margin-bottom: 1.5rem;
    }
    
    .tech-group-header {
        color: var(--tech-accent);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.75rem;
        padding-left: 1rem;
        position: relative;
    }
    
    .tech-group-header::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 12px;
        background: linear-gradient(to bottom, var(--tech-primary), var(--tech-accent));
        border-radius: 2px;
    }
    
    /* Enhanced Mobile Cards */
    .tech-card-mobile {
        background: linear-gradient(135deg, var(--tech-dark-light) 0%, rgba(30, 41, 59, 0.8) 100%);
        border: 1px solid var(--tech-border);
        border-radius: 16px;
        padding: 1.25rem;
        cursor: pointer;
        transition: var(--tech-transition);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .tech-card-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--tech-primary), var(--tech-accent));
        opacity: 0;
        transition: var(--tech-transition);
    }
    
    .tech-card-mobile:hover::before,
    .tech-card-mobile.expanded::before {
        opacity: 1;
    }
    
    .tech-card-mobile:hover {
        background: linear-gradient(135deg, var(--tech-primary) 0%, rgba(59, 130, 246, 0.9) 100%);
        border-color: var(--tech-accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    }
    
    /* Ensure all text turns white on hover */
    .tech-card-mobile:hover .tech-card-mobile-title,
    .tech-card-mobile:hover .tech-card-mobile-subtitle,
    .tech-card-mobile:hover .tech-card-description,
    .tech-card-mobile:hover .tech-card-features li {
        color: var(--tech-text-light);
    }
    
    /* Card Header Layout */
    .tech-card-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-card-mobile-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--tech-primary), var(--tech-accent));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: var(--tech-transition-fast);
        position: relative;
    }
    
    .tech-card-mobile-icon::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--tech-accent), var(--tech-primary));
        opacity: 0;
        transition: var(--tech-transition-fast);
    }
    
    .tech-card-mobile:hover .tech-card-mobile-icon::after {
        opacity: 1;
    }
    
    .tech-card-mobile-icon svg,
    .tech-card-mobile-icon img {
        width: 18px;
        height: 18px;
        position: relative;
        z-index: 1;
        transition: var(--tech-transition-fast);
    }
    
    .tech-card-mobile-icon svg {
        fill: var(--tech-text-light);
    }
    
    .tech-card-mobile-icon img {
        filter: brightness(0) invert(1);
    }
    
    .tech-card-mobile:hover .tech-card-mobile-icon svg {
        fill: var(--tech-text-light);
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    }
    
    .tech-card-mobile:hover .tech-card-mobile-icon img {
        filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    }
    
    /* Card Content */
    .tech-card-content {
        flex: 1;
    }
    
    .tech-card-mobile-title {
        color: var(--tech-text-light);
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
        line-height: 1.3;
    }
    
    .tech-card-mobile-subtitle {
        color: var(--tech-text-muted);
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.4;
        opacity: 0.8;
    }
    
    /* Expand/Collapse Indicator */
    .tech-card-expand {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(96, 165, 250, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: var(--tech-transition);
        margin-left: auto;
        position: relative;
    }
    
    .tech-card-expand::after {
        content: '';
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        background: transparent;
        transition: var(--tech-transition-fast);
    }
    
    .tech-card-expand svg {
        width: 12px;
        height: 12px;
        fill: var(--tech-accent);
        transition: var(--tech-transition);
    }
    
    .tech-card-mobile:hover .tech-card-expand,
    .tech-card-mobile:active .tech-card-expand {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .tech-card-mobile:hover .tech-card-expand svg {
        fill: var(--tech-text-light);
    }
    
    .tech-card-mobile:active .tech-card-expand::after {
        background: rgba(96, 165, 250, 0.1);
    }
    
    .tech-card-mobile.expanded .tech-card-expand svg {
        transform: rotate(180deg);
    }
    
    /* Touch-friendly active states */
    .tech-card-mobile:active {
        transform: translateY(-1px) scale(0.98);
    }
    
    /* Expandable Details */
    .tech-card-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 0;
    }
    
    .tech-card-mobile.expanded .tech-card-details {
        max-height: 200px;
        margin-top: 1rem;
    }
    
    .tech-card-description {
        color: var(--tech-text-muted);
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .tech-card-features {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .tech-card-features li {
        color: var(--tech-text-light);
        font-size: 0.75rem;
        padding: 0.25rem 0;
        position: relative;
        padding-left: 1rem;
    }
    
    .tech-card-features li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: var(--tech-accent);
        font-weight: 600;
    }
    
    /* Special Styling for Different Card Types */
    .tech-center-mobile {
        background: linear-gradient(135deg, var(--tech-primary) 0%, var(--tech-primary-light) 100%);
        border-color: var(--tech-accent);
        margin-top: 1rem;
    }
    
    .tech-center-mobile:hover {
        background: linear-gradient(135deg, var(--tech-primary) 0%, rgba(59, 130, 246, 0.9) 100%);
        border-color: var(--tech-accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    }
    
    /* Static Center Card - Special Design */
    .tech-center-static {
        padding: 2rem 1.5rem;
        cursor: default;
        margin-top: 2rem;
        position: relative;
        overflow: hidden;
    }
    
    .tech-center-static::before {
        opacity: 1;
    }
    
    .tech-center-static:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 48px rgba(37, 99, 235, 0.4);
    }
    
    /* Center Card Header */
    .tech-center-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tech-center-icon-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tech-center-icon {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        transition: var(--tech-transition);
    }
    
    .tech-center-icon svg {
        width: 24px;
        height: 24px;
        fill: var(--tech-text-light);
        transition: var(--tech-transition);
    }
    
    .tech-center-glow {
        position: absolute;
        inset: -8px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        opacity: 0;
        transition: var(--tech-transition);
        animation: pulse-glow 3s ease-in-out infinite;
    }
    
    @keyframes pulse-glow {
        0%, 100% { opacity: 0.3; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(1.1); }
    }
    
    .tech-center-static:hover .tech-center-glow {
        opacity: 0.8;
        animation-duration: 1.5s;
    }
    
    .tech-center-static:hover .tech-center-icon {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Center Card Content */
    .tech-center-content {
        flex: 1;
    }
    
    .tech-center-title {
        color: var(--tech-text-light);
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        line-height: 1.2;
    }
    
    .tech-center-subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        margin: 0;
        font-weight: 500;
    }
    
    /* Center Card Description */
    .tech-center-description {
        margin-bottom: 1.5rem;
    }
    
    .tech-center-description p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Center Card Features Grid */
    .tech-center-features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .tech-center-feature {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: var(--tech-transition-fast);
    }
    
    .tech-center-feature-icon {
        width: 16px;
        height: 16px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--tech-text-light);
        flex-shrink: 0;
    }
    
    .tech-center-feature-text {
        color: var(--tech-text-light);
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.3;
    }
    
    .tech-center-static:hover .tech-center-feature {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }
    
    .tech-center-static:hover .tech-center-feature-icon {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .tech-inner-mobile {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
        border-color: rgba(96, 165, 250, 0.3);
    }
    
    .tech-inner-mobile:hover {
        background: linear-gradient(135deg, var(--tech-primary) 0%, rgba(59, 130, 246, 0.9) 100%);
        border-color: var(--tech-accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    }
    
    .tech-inner-mobile .tech-card-mobile-icon {
        background: linear-gradient(135deg, var(--tech-accent), rgba(96, 165, 250, 0.8));
    }
    
    /* Ensure inner mobile text turns white on hover */
    .tech-inner-mobile:hover .tech-card-mobile-title,
    .tech-inner-mobile:hover .tech-card-mobile-subtitle,
    .tech-inner-mobile:hover .tech-card-description,
    .tech-inner-mobile:hover .tech-card-features li {
        color: var(--tech-text-light);
    }
    
    .tech-inner-mobile:hover .tech-card-expand svg {
        fill: var(--tech-text-light);
    }
}

/* Tablet and larger breakpoints */
@media (min-width: 481px) and (max-width: 768px) {
    .tech-section {
        padding: 4rem 0;
    }
    
    .tech-diagram-container {
        transform: scale(0.8);
        margin: -2rem 0;
    }
    
    .tech-cards-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .tech-cards-mobile {
        display: none;
    }
}

/* Enhanced mobile breakpoint for better UX */
@media (max-width: 600px) {
    .tech-section {
        padding: 4rem 0 3rem;
    }
    
    .tech-section .section-header {
        margin-bottom: 3rem;
    }
    
    .tech-section .section-header h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .tech-section .section-header p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        padding: 0 1rem;
    }
    
    .tech-cards-mobile {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .tech-card-mobile {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .tech-card-mobile-icon {
        width: 32px;
        height: 32px;
    }
    
    .tech-card-mobile-icon svg,
    .tech-card-mobile-icon img {
        width: 16px;
        height: 16px;
    }
    
    .tech-card-mobile-title {
        font-size: 0.85rem;
    }
    
    .tech-card-mobile-subtitle {
        font-size: 0.7rem;
    }
    
    /* Responsive adjustments for center card */
    .tech-center-static {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .tech-center-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .tech-center-icon {
        width: 40px;
        height: 40px;
    }
    
    .tech-center-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .tech-center-title {
        font-size: 1.1rem;
    }
    
    .tech-center-subtitle {
        font-size: 0.8rem;
    }
    
    .tech-center-description p {
        font-size: 0.85rem;
    }
    
    .tech-center-features-grid {
        gap: 0.5rem;
    }
    
    .tech-center-feature {
        padding: 0.4rem;
    }
    
    .tech-center-feature-text {
        font-size: 0.75rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .tech-wedge,
    .tech-inner-section,
    .tech-center,
    .tech-modal,
    .tech-modal-content,
    .tech-card-mobile {
        transition: none;
    }
    
    .tech-center:hover {
        animation: none;
    }
    
    @keyframes glow-pulse {
        0%, 100% {
            filter: drop-shadow(0 0 25px var(--tech-glow-strong));
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --tech-border: rgba(255, 255, 255, 0.5);
        --tech-text-muted: #E2E8F0;
    }
    
    .tech-wedge {
        stroke-width: 2;
    }
    
    .tech-modal-content {
        border-width: 2px;
    }
}

/* Focus visible for better keyboard navigation */
.tech-wedge:focus-visible,
.tech-inner-section:focus-visible,
.tech-center:focus-visible,
.tech-card-mobile:focus-visible {
    outline: 3px solid var(--tech-accent);
    outline-offset: 3px;
}
