/* Base styles that apply to all screens */
section.about {
    position: relative;
    background: #1a2a6c;
    background-image: linear-gradient(to bottom, #1a2a6c, #2c428a);
    background-size: cover;
    animation: none;
    overflow: hidden;
}

section.about::before, section.about::after {
    content: none;
}

/* Animation keyframes (outside media queries) */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        opacity: 0.8;
    }
}

@media screen and (min-width: 769px) {
    section.about {
        padding: 60px 0;
    }

    section.about .about h2 {
        font-size: 6rem;
        text-align: center;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        width: 100%;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
        color: #ffffff;
    }

    .about-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 85%;
        padding: 0 0.8rem;
        margin-top: 0;
        margin-inline: auto;
    }

    /* Service section squares */
    section.about .about-content .service-section {
        background: #000000;
        border-radius: 1vw;
        transition: all 0.3s ease;
        cursor: pointer;
        padding: 0.4rem;
        justify-content: space-between;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        aspect-ratio: 1.1;
        border: 2px solid #ffffff;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        background-color: #000000;
        text-align: left;
        transform: translateX(-2.2vw);

    }

    /* Colored titles */
    section.about .about-content .service-section .section-title {
        font-size: 7vw;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
        padding: 0.4rem 0;
        line-height: 1.1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        position: relative;
        
    }

    /* Animated underline */
    section.about .about-content .service-section .section-title::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        animation: glowPulse 2s ease-in-out infinite;
    }

    /* Set specific colors for each title */
    section.about .about-content .service-section .section-title[style*="color: green"] {
        color: #00ff00;
    }

    section.about .about-content .service-section .section-title[style*="color: red"] {
        color: #ff4444;
    }

    section.about .about-content .service-section .section-title[style*="color: blue"] {
        color: #4444ff;
    }

    section.about .about-content .service-section .section-title[style*="color: yellow"] {
        color: #ffff00;
    }

    /* Bullet points */
    section.about .about-content .bullet-point {
        text-align: left;
        margin: 0.5rem 0;
        padding-left: 1rem;
        line-height: 1.2;
        font-size: 1.8rem;
        margin-right: 2rem;
        color: #ffffff;
    }

    /* Hover effect */
    .about-content .service-section:hover {
        border-width: 3px;
        transform: scale(1.02);
    }
}
