/* ===== INDUSTRIES PAGE STYLES ===== */
/* For industries.html */

/* ===== HERO TV STYLES ===== */
.industry-tv {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: #2c3e50;
    border-radius: 30px 30px 20px 20px;
    padding: 15px 15px 12px 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #95a5a6;
}

.tv-screen {
    position: relative;
    background: #0f172a;
    border-radius: 12px;
    padding: 1rem;
    border: 3px solid #34495e;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
}

/* TV Static Effect */
.tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 2px,
        transparent 3px,
        transparent 5px
    );
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.15s ease;
    mix-blend-mode: overlay;
    animation: staticNoise 0.1s infinite;
}

@keyframes staticNoise {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}

.tv-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.tv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-align: center;
    padding: 0.5rem;
    z-index: 1;
}

.tv-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.tv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2A5DBB, #1E4B94);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(42, 93, 187, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tv-icon i {
    font-size: 2.2rem;
    color: white;
}

.tv-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #2A5DBB;
}

.tv-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    max-width: 90%;
    margin: 0 auto;
}

.tv-channel-display {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #00ff00;
    z-index: 30;
}

.tv-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 5px;
    flex-wrap: wrap;
}

.tv-knob {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #ecf0f1, #bdc3c7);
    border-radius: 50%;
    border: 2px solid #95a5a6;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.tv-knob:active {
    transform: scale(0.95);
    background: radial-gradient(circle at 30% 30%, #bdc3c7, #95a5a6);
}

.tv-indicators {
    display: flex;
    gap: 5px;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.tv-dot {
    width: 28px;
    height: 28px;
    background: #34495e;
    border: 1px solid #7f8c8d;
    border-radius: 4px;
    color: #95a5a6;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.tv-dot.active {
    background: #FF6B00;
    border-color: white;
    color: white;
    box-shadow: 0 0 10px #FF6B00;
}

.tv-brand {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ===== INDUSTRIES OVERVIEW ===== */
.industries-overview {
    padding: 6rem 0;
    background-color: var(--background-white);
    position: relative;
}

.industries-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.industries-overview h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.industries-overview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.industry-overview-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.industry-overview-card:nth-child(odd) {
    grid-template-columns: 1fr 2fr;
}

.industry-overview-card:nth-child(even) {
    grid-template-columns: 2fr 1fr;
}

.industry-overview-card:nth-child(even) .industry-overview-card__image {
    order: 2;
}

.industry-overview-card:nth-child(even) .industry-overview-card__content {
    order: 1;
}

.industry-overview-card:nth-child(odd) {
    border-right: 2px solid var(--accent-color);
}

.industry-overview-card:nth-child(even) {
    border-left: 2px solid var(--accent-color);
    border-right: none;
}

.industry-overview-card__image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.industry-overview-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.industry-overview-card:hover .industry-overview-card__image img {
    transform: scale(1.05);
}

.industry-overview-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.industry-overview-card__content h3 {
    text-align: center !important;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--accent-color);
}

.industry-overview-card__content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.industry-overview-card__content ul {
    list-style: none;
    padding-left: 0.5rem;
}

.industry-overview-card__content li {
    position: relative;
    padding-left: 2rem;
    line-height: 2;
    color: var(--text-dark);
}

.industry-overview-card__content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.industry-details-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 1rem auto 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.industry-details-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.industry-details-btn:active {
    transform: translateY(0);
}

.industry-details-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.industry-details-btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* ===== INDUSTRY MODAL ===== */
.industry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.industry-modal__content {
    position: relative;
    background-color: var(--background-white);
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-modal__header h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    font-size: 2.2rem;
    padding-bottom: 1rem;
}

.industry-close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
}

.industry-close-modal:hover {
    background: var(--accent-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.industry-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    transition: all 0.5s ease;
}

.industry-card {
    background: rgb(23, 100, 159);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(42, 93, 187, 0.1);
    transition: all 0.5s ease, z-index 0s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.industry-card__image {
    height: 200px;
    width: 100%;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.industry-card__image:before {
    content: "Image not found";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(23, 100, 159);
    color: #999;
    text-align: center;
    line-height: 200px;
    font-size: 14px;
}

.industry-card__header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgb(23, 100, 159);
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    z-index: 2;
}

.industry-card__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: rgb(23, 100, 159);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow-y: auto;
    line-height: 1.6;
}

.industry-card.selected {
    background: rgb(23, 100, 159);
    grid-column: 2 / span 2 !important;
    grid-row: 2 / span 2 !important;
    z-index: 10;
    box-shadow: 0 15px 30px rgb(23, 100, 159);
    width: 75%;
    max-width: 800px;
    margin: 0 auto;
    transform: scale(1);
}

.industry-card.selected .industry-card__header {
    border-bottom: 3px solid var(--accent-color);
    text-align: center;
    position: relative;
    background: rgba(23, 100, 159);
    padding: 15px;
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.industry-card.selected .industry-card__content {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
    background: rgb(23, 100, 159);
    color: white;
    flex-grow: 1;
    overflow-y: auto;
}

.industry-card__content ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.industry-card__content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: transform 0.2s ease;
}

.industry-card__content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
    top: 1px;
}

.industry-card__content li:hover {
    transform: translateX(3px);
}

.industry-card.surrounding {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

.industry-back-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    transition: all 0.3s ease;
}

.industry-back-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .industry-overview-card {
        grid-template-columns: 1fr !important;
    }
    
    .industry-overview-card:nth-child(even) .industry-overview-card__image,
    .industry-overview-card:nth-child(odd) .industry-overview-card__image {
        order: 3 !important;
    }
    
    .industry-overview-card__content {
        padding: 1.5rem;
    }
    
    .industry-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .industry-tv {
        max-width: 400px;
        margin-top: 20px;
    }
    
    .tv-screen {
        padding: 0.8rem;
    }
    
    .tv-icon {
        width: 60px;
        height: 60px;
    }
    
    .tv-icon i {
        font-size: 1.8rem;
    }
    
    .tv-title {
        font-size: 1.3rem;
    }
    
    .tv-desc {
        font-size: 0.8rem;
    }
    
    .tv-controls {
        gap: 8px;
    }
    
    .tv-knob {
        width: 30px;
        height: 30px;
    }
    
    .tv-dot {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .tv-brand {
        font-size: 0.9rem;
    }
    
    .tv-channel-display {
        font-size: 1rem;
        padding: 3px 6px;
    }
    
    .industries-overview {
        padding: 4rem 0;
    }
    
    .industries-overview h2 {
        font-size: 2rem;
    }
    
    .industry-overview-card__content h3 {
        font-size: 1.5rem;
    }
    
    .industry-overview-card__content p,
    .industry-overview-card__content li {
        font-size: 0.95rem;
    }
    
    .industry-details-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .industry-modal__content {
        padding: 1rem;
        width: 95%;
        margin: 1rem auto;
    }
    
    .industry-masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .industry-card {
        width: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        cursor: default;
        text-align: center;
    }
    
    .industry-card__image {
        height: 180px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
    }
    
    .industry-card__header {
        position: relative;
        background: transparent;
        color: var(--text-light);
        padding: 15px 0 5px;
        font-size: 1.1rem;
        text-align: center;
        justify-items: center;
    }
    
    .industry-card__content {
        position: relative;
        opacity: 1;
        transform: none;
        padding: 0;
        background: transparent;
        color: var(--text-light);
        overflow: visible;
    }
    
    .industry-card__content ul {
        margin: 10px 0;
        padding-left: 20px;
        text-align: left;
    }
    
    .industry-card__content li::before {
        color: var(--accent-color);
    }
    
    .industry-close-modal {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .industry-modal__header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .industry-tv {
        max-width: 350px;
    }
    
    .tv-icon {
        width: 50px;
        height: 50px;
    }
    
    .tv-icon i {
        font-size: 1.5rem;
    }
    
    .tv-title {
        font-size: 1.2rem;
    }
    
    .tv-dot {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
    }
    
    .industry-overview-card__content {
        padding: 1.2rem;
    }
    
    .industry-overview-card__content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    .industry-tv {
        max-width: 300px;
        padding: 10px;
    }
    
    .tv-indicators {
        gap: 3px;
    }
    
    .tv-dot {
        width: 20px;
        height: 20px;
        font-size: 0.5rem;
    }
    
    .tv-brand {
        font-size: 0.8rem;
    }
}

/* ===== ADDITIONAL MODAL STYLES ===== */
.industry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.industry-modal__content {
    position: relative;
    background-color: var(--background-white);
    margin: 40px auto;
    padding: 30px;
    width: 95%;
    max-width: 1300px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.industry-modal__header {
    margin-bottom: 30px;
    padding-right: 50px;
}

.industry-modal__header h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin: 0;
    padding-bottom: 15px;
}

/* Mobile modal styles */
@media (max-width: 768px) {
    .industry-modal {
        padding: 10px;
    }
    
    .industry-modal__content {
        margin: 20px auto;
        padding: 20px 15px;
        width: 100%;
        border-radius: 15px;
    }
    
    .industry-modal__header {
        margin-bottom: 20px;
        padding-right: 40px;
    }
    
    .industry-modal__header h2 {
        font-size: 1.6rem;
        padding-bottom: 10px;
    }
    
    .industry-close-modal {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .industry-modal__content {
        padding: 15px 10px;
    }
    
    .industry-modal__header h2 {
        font-size: 1.4rem;
    }
    
    .industry-close-modal {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
}

/* Fix for masonry grid cards in modal */
.industry-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.industry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(42,93,187,0.3);
}

.industry-card__image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry-card:hover .industry-card__image {
    transform: scale(1.05);
}

.industry-card__header {
    padding: 15px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: #e9effa;
}

.industry-card__content {
    padding: 15px;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.industry-card.selected .industry-card__content {
    background: #e9effa;
    max-height: 300px;
    padding: 15px;
    overflow-y: auto;
    color: var(--text-dark);
}

/* Mobile card styles */
@media (max-width: 768px) {
    .industry-masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .industry-card {
        width: 100%;
    }
    
    .industry-card__image-container {
        height: 160px;
    }
    
    .industry-card__header {
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .industry-card__content {
        max-height: none; /* Always visible on mobile */
        padding: 12px;
    }
    
    .industry-card.selected {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}