html,
body {
    height: 200vh;
}

#technology {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-content {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 700px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
    overflow-y: hidden;/
}

.tech-content h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-blue), #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.tech-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-points li {
    padding: 1.5rem 0;
    position: relative;
}

.tech-points li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.tech-points p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 992px) {
    .tech-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: none;
        height: auto;
        max-height: 70vh;
        padding: 2rem;
        overflow-y: auto;
    }

    .tech-content h1 {
        font-size: 2.2rem;
        background: linear-gradient(45deg, var(--primary-blue), #34a853);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tech-content {
        max-height: 75vh;
        padding: 1.5rem;
    }

    .tech-content h1 {
        font-size: 2rem;
        background: linear-gradient(45deg, var(--primary-blue), #34a853);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .tech-points li {
        padding: 1.25rem 0;
    }
}

#overview {
    padding: 6rem 2rem;
    background-color: #f0f2f5;
}

.overview-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.text-content {
    flex: 1;
    padding-right: 2rem;
}

.section-title {
    font-size: 2.4rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.section-text p {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 0.8rem;
    color: #333;
    transition: all 0.3s ease;
    cursor: default;
}


.section-text p:hover {
    color: #1a73e8;
    transform: translateX(5px);

}


.section-text p::before {
    content: "→";
    position: absolute;
    left: 0;
    top: -0.7rem;
    color: black;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.section-text p:hover::before {
    color: blue;
    transform: translateX(6px);
}

.image-content {
    flex: 1;
    position: relative;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

.image-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 80%;
}

.image-content:hover::before {
    border-color: var(--primary-blue);
}

.image-content img {
    width: 80%;
    height: auto;
    border-radius: 8px;
}


@media (max-width: 992px) {
    .overview-container {
        flex-direction: column;
        gap: 2rem;
    }

    .text-content {
        padding-right: 0;
    }

    .image-content {
        width: 100%;
    }

    .image-content::before {
        left: 0;
        right: 0;
        width: 100%;
    }

    .image-content img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #overview {
        padding: 4rem 1rem;
    }

    .overview-container {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text p {
        padding-left: 1.8rem;
    }

    .section-text p::before {
        font-size: 1.3rem;
        top: 0;
    }
}

#advantage {
    padding: 6rem 2rem;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.advantage-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    grid-template-rows: repeat(7, auto);
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    gap: 1px;
    box-sizing: border-box;
    padding: 0 1rem;
}

.advantage-row {
    display: contents;
}

.advantage-title {
    font-size: 1rem;
    font-weight: 600;
    padding: 1.5rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    grid-column: 1;
}

.advantage-point {
    font-size: 1rem;
    padding: 1.5rem;
    background: white;
    text-align: left;
    transition: all 0.3s ease;
    line-height: 1.6;
    grid-column: 2;
}

.advantage-point br {
    display: block;
    content: "";
    margin-bottom: 1.2rem;
}

.advantage-row:hover .advantage-title,
.advantage-row:hover .advantage-point {
    background: #daeaff !important;
}

@media (max-width: 768px) {
    .advantage-grid {
        grid-template-columns: 100%;
        grid-template-rows: auto;
        padding: 0;
    }

    .advantage-title,
    .advantage-point {
        grid-column: auto;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .advantage-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
    }

    .advantage-title,
    .advantage-point {
        grid-column: 1;
    }

    .advantage-title {
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        text-align: left;
    }

    .advantage-point {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }
}

#certifications {
    max-width: 1000px !important;
    width: 90% !important;
    margin: 0 auto;
    padding: 4rem 1rem !important;
}

#certifications p {
    max-width: 1000px !important;
    margin: 0 auto 1rem !important;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem;
}

.button-group {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.certifications-modal .modal-container {
    width: 90vw;
    max-width: 800px;
    height: auto;
    max-height: 85vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.modal-header {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.modal-header h1 {
    margin: 0 auto;
    padding: 0;
    margin-top: 8px;
    position: relative;
    margin-left: 82px;
    transform: none;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    transition: all 0.2s ease;
    position: absolute;
    right: 10px;
    top: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    color: #fff;
    background-color: #e81123;
    transform: scale(1.1);
}

/* Content Area */
.certifications-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4ff 100%);
}

/* Certificate Boxes - with new hover effects */
.cert-box {
    display: flex;
    gap: 0.8rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    /* Add these for the left border effect */
    border-left: 3px solid transparent;
}

.cert-box:hover {
    transform: translateX(5px);
    /* Changed to X axis movement */
    border-left: 3px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    /* Changed to only top */
    height: 3px;
    /* Changed to only top */
    width: 100%;
    /* Changed to X axis */
    background: var(--primary-blue);
    transform: scaleX(0);
    /* Changed to X axis */
    transform-origin: left;
    /* Changed to left */
    transition: transform 0.3s ease;
}

.cert-box:hover::before {
    transform: scaleX(1);
    /* Changed to X axis */
}

.cert-number {
    background: var(--primary-blue);
    color: white;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.cert-text {
    flex: 1;
}

.cert-text h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.cert-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

/* Mobile Responsive Adjustments */
/* Small Phones (up to 360px) */
@media (max-width: 360px) {
    .certifications-modal .modal-container {
        width: 96vw;
        max-height: 90vh;
        max-width: 340px;
    }

    .modal-header {
        padding: 1rem 1.2rem;
    }

    .modal-header h1 {
        font-size: 1.3rem !important;
        max-width: 75%;
    }

    .modal-close {
        font-size: 1.5rem;
        right: 8px;
        top: 20px;
        width: 32px;
        height: 32px;
    }

    .certifications-content {
        padding: 1rem;
        gap: 1rem;
    }

    .cert-box {
        padding: 0.7rem;
        gap: 0.6rem;
    }

    .cert-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .cert-text h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .cert-text p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Phones (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .certifications-modal .modal-container {
        width: 94vw;
        max-height: 85vh;
        max-width: 420px;
    }

    .modal-header {
        padding: 1.1rem 1.4rem;
    }

    .modal-header h1 {
        font-size: 1.4rem !important;
        max-width: 75%;
    }

    .modal-close {
        font-size: 1.6rem;
        right: 10px;
        top: 22px;
        width: 34px;
        height: 34px;
    }

    .certifications-content {
        padding: 1.2rem;
        gap: 1.1rem;
    }

    .cert-box {
        padding: 0.8rem;
        gap: 0.7rem;
    }

    .cert-number {
        min-width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .cert-text h3 {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .cert-text p {
        font-size: 0.85rem;
    }
}

/* Large Phones (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .certifications-modal .modal-container {
        width: 92vw;
        max-height: 80vh;
        max-width: 500px;
    }

    .modal-header {
        padding: 1.2rem 1.6rem;
    }

    .modal-header h1 {
        font-size: 1.5rem !important;
        max-width: 75%;
        margin-top: 100px;
    }

    .modal-close {
        font-size: 1.7rem;
        right: 12px;
        top: 24px;
        width: 36px;
        height: 36px;
    }

    .certifications-content {
        padding: 1.4rem;
        gap: 1.2rem;
    }

    .cert-box {
        padding: 0.9rem;
        gap: 0.8rem;
    }

    .cert-number {
        min-width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .cert-text h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .cert-text p {
        font-size: 0.9rem;
    }
}

/* Small Tablets (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .certifications-modal .modal-container {
        width: 90vw;
        max-height: 75vh;
        max-width: 600px;
    }

    .modal-header {
        padding: 1.3rem 1.8rem;
    }

    .modal-header h1 {
        font-size: 1.6rem !important;
        max-width: 75%;
    }

    .modal-close {
        font-size: 1.8rem;
        right: 14px;
        top: 26px;
        width: 38px;
        height: 38px;
    }

    .certifications-content {
        padding: 1.6rem;
        gap: 1.3rem;
    }

    .cert-box {
        padding: 1rem;
        gap: 0.9rem;
    }

    .cert-number {
        min-width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .cert-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.45rem;
    }

    .cert-text p {
        font-size: 0.95rem;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .certifications-modal .modal-container {
        width: 88vw;
        max-height: 70vh;
        max-width: 700px;
    }

    .modal-header {
        padding: 1.4rem 2rem;
    }

    .modal-header h1 {
        font-size: 1.7rem !important;
        max-width: 75%;
    }

    .modal-close {
        font-size: 1.9rem;
        right: 16px;
        top: 28px;
        width: 40px;
        height: 40px;
    }

    .certifications-content {
        padding: 1.8rem;
        gap: 1.4rem;
    }

    .cert-box {
        padding: 1.1rem;
        gap: 1rem;
    }

    .cert-number {
        min-width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .cert-text h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .cert-text p {
        font-size: 1rem;
    }
}