/* Technology Hero */
.technology-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8rem 5% 4rem;
    text-align: center;
    background: linear-gradient(135deg, #e8f7ef 0%, #d4f0e4 100%);
}

.technology-hero .hero-content {
    max-width: 900px;
    z-index: 2;
}

.technology-hero .hero-logo-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styled circular chip icon above the heading (matches sample) */
.technology-hero .hero-logo-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(45,134,89,0.15), rgba(45,134,89,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(26,94,61,0.12), inset 0 2px 6px rgba(255,255,255,0.25);
    border: 4px solid rgba(255,255,255,0.55);
    margin-bottom: 0.6rem;
    animation: float 3s ease-in-out infinite;
}

.technology-hero .hero-logo-icon i {
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.technology-hero .hero-logo-image {
    height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.technology-hero .hero-logo-text {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.technology-hero .hero-organization {
    font-size: 1.3rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.technology-hero .hero-tagline {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 800px;
    line-height: 1.4;
}

/* Technology Section */
.technology-section {
    padding: 6rem 5%;
}

.technology-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Technology Grid */
.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.technology-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.technology-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-green);
}

.technology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--dark-green), var(--light-green));
}

.tech-icon {
    font-size: 1.75rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.tech-title {
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 1.2rem;
}

.tech-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-features {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.tech-features li {
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
}

.tech-features li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Active link in navigation */
.nav-links a.active {
    color: var(--primary-green);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Responsive for Technology Page */
@media (max-width: 992px) {
    .technology-hero .hero-logo-text {
        font-size: 2.8rem;
    }

    .technology-hero .hero-organization {
        font-size: 1.2rem;
    }

    .technology-hero .hero-tagline {
        font-size: 1.4rem;
    }

    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .technology-hero .hero-logo-image {
        height: 100px;
    }

    .technology-hero .hero-logo-text {
        font-size: 2.2rem;
    }

    .technology-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .technology-hero .hero-logo-image {
        height: 80px;
    }

    .technology-hero .hero-logo-text {
        font-size: 1.8rem;
    }

    .technology-hero .hero-organization {
        font-size: 1rem;
    }

    .technology-hero .hero-tagline {
        font-size: 1.2rem;
    }

    .technology-card {
        padding: 2rem 1.5rem;
    }
}

/* RTL Support for Technology Page */
body.rtl .tech-features {
    text-align: right;
}

body.rtl .tech-features li {
    padding-left: 0;
    padding-right: 1.5rem;
}

body.rtl .tech-features li:before {
    left: auto;
    right: 0;
}

/* Click More Indicator */
.click-more {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(46, 125, 50, 0.1);
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.technology-card:hover .click-more {
    opacity: 1;
}

.click-more i {
    transition: transform 0.3s ease;
}

.technology-card:hover .click-more i {
    transform: translateX(5px);
}

/* Modal Styles */
.tech-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-content {
    background-color: #fff;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 1rem 1.5rem;
    background: #fff;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-green);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-header i {
    font-size: 2.5rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
    line-height: 1.8;
    color: #333;
}

.modal-body h3 {
    color: var(--dark-green);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-green);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body h4 i {
    color: var(--primary-green);
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-green);
}

.detail-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.detail-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.detail-section li strong {
    color: var(--dark-green);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.spec-item {
    background: linear-gradient(135deg, #e8f7ef 0%, #d4f0e4 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-green);
}

.spec-item strong {
    color: var(--dark-green);
    display: block;
    margin-bottom: 0.3rem;
}

.workflow-steps {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    margin: 1rem 0;
    counter-reset: step-counter;
}

.workflow-steps li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
}

.workflow-steps li strong {
    color: var(--primary-green);
}

.workflow-example {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-green);
}

.workflow-example p {
    margin-bottom: 1rem;
}

.workflow-example strong {
    color: var(--dark-green);
    font-size: 1.1rem;
}

.workflow-example ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.workflow-example ol li {
    margin-bottom: 0.8rem;
}

.workflow-example ol li strong {
    color: var(--primary-green);
    font-size: 1rem;
}

.workflow-example table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.workflow-example table th,
.workflow-example table td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid #ddd;
}

.workflow-example table th {
    background: var(--primary-green);
    color: white;
    font-weight: 600;
}

.workflow-example table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Technology Card Hover Effect */
.technology-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.technology-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        margin: 1rem 0;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-header i {
        font-size: 2rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h3 {
        font-size: 1.5rem;
    }

    .modal-body h4 {
        font-size: 1.2rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .workflow-example table {
        font-size: 0.9rem;
    }

    .workflow-example table th,
    .workflow-example table td {
        padding: 0.5rem;
    }
}