/* Desktop styles */
@media screen and (min-width: 769px) {
    /* Base section styles */
    section {
        margin: 0;
        padding: 80px 0;
        font-family: 'Rajdhani', sans-serif;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        background: rgba(17, 34, 64, 0.95);
        overflow: hidden;
    }

    /* Basic body styles */
    body {
        background-color: #000913;
        color: #ffffff;
        line-height: 1.6;
        background-image: linear-gradient(to bottom right, #0a192f, #112240);
        position: relative;
        overflow-x: hidden;
    }

    section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(2px 2px at 40px 60px, #00ffff 50%, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 20px 50px, rgba(0,255,255,0.4) 50%, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 30px 100px, #00ffff 50%, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 40px 60px, rgba(0,255,255,0.4) 50%, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 110px 90px, #00ffff 50%, rgba(0,0,0,0)),
            radial-gradient(2px 2px at 190px 150px, rgba(0,255,255,0.4) 50%, rgba(0,0,0,0));
        background-size: 200px 200px;
        animation: stars 4s linear infinite;
        opacity: 0.1;
        z-index: 0;
    }

    section::after {
        content: '';
        position: absolute;
        inset: 0;
        background: 
            linear-gradient(90deg, transparent 0%, rgba(0,255,255,0.05) 45%, transparent 55%),
            linear-gradient(0deg, transparent 0%, rgba(0,255,255,0.05) 45%, transparent 55%);
        background-size: 200% 200%, 200% 200%;
        animation: crosshair 15s linear infinite;
        z-index: 1;
    }

    section:nth-child(odd) {
        background: rgba(10, 25, 47, 0.95);
    }

    section > * {
        position: relative;
        z-index: 2;
    }

    @keyframes gradientMove {
        0% {
            background-position: 0% 50%;
            opacity: 0.5;
        }
        50% {
            background-position: 100% 50%;
            opacity: 0.8;
        }
        100% {
            background-position: 0% 50%;
            opacity: 0.5;
        }
    }

    @keyframes particleFloat {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) scale(1);
        }
        50% {
            transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) scale(1);
        }
    }

    @keyframes gridMove {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(50px);
        }
    }

    @keyframes pulseGlow {
        0%, 100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.5;
        }
        50% {
            transform: scale(1.5) rotate(180deg);
            opacity: 0.8;
        }
    }

    section h2 {
        font-size: 6rem;
        text-align: center;
        margin-bottom: 1rem;
        position: relative;
        text-transform: uppercase;
        letter-spacing: 2px;
        white-space: nowrap;
        color: transparent;
        background: linear-gradient(
            45deg,
            #00ffff 0%,
            #ffffff 25%,
            #00ffff 45%,
            #ffffff 55%,
            #00ffff 75%,
            #ffffff 85%,
            #00ffff 100%
        );
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -moz-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        -moz-text-fill-color: transparent;
        animation: logoFlow 8s ease infinite;
        text-shadow: none;
        font-weight: 700;
    }

    section p {
        font-size: 3em;
        margin-bottom: 1rem;
    }

    #services {
        scroll-margin-top: 100px;
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
        text-align: center;
        padding: 0;
    }

    .services-grid {
        width: 100%;
        max-width: 1100px;
        padding: 0 3%;
        margin: 0 auto;
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(3, 1fr);
    }

    @media (max-width: 1024px) {
        .services-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    }

    .service-card {
        background: rgba(0, 20, 40, 0.98);
        padding: 2rem 1.5rem;
        border-radius: 8px;
        text-align: center;
        transition: transform 0.3s ease;
        border: 3px solid rgba(0, 255, 255, 0.5);
        position: relative;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

    .service-card::before {
        display: none;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-card:hover::before {
        opacity: 0;
    }

    .service-card i {
        font-size: 3rem;
        color: #00ffff;
        margin-bottom: 1.25rem;
        transition: none;
        filter: none;
    }

    .service-card:hover i {
        transform: none;
    }

    .service-card h3 {
        margin-bottom: 0.75rem;
        font-size: 2rem;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-shadow: none;
    }

    .service-card p {
        color: #7aa8d8;
        font-size: 1.1rem;
        line-height: 1.4;
        margin-top: auto;
        margin-bottom: 0;
        padding: 0 0.5rem;
        font-weight: 500;
    }

    @keyframes stars {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-200px);
        }
    }

    @keyframes crosshair {
        0% {
            background-position: 200% 200%, -200% -200%;
        }
        100% {
            background-position: -200% -200%, 200% 200%;
        }
    }

    @keyframes colorRotate {
        0% { color: #FF6B00; }    /* Orange */
        25% { color: #78199e; }   /* Purple */
        50% { color: #ffff00; }   /* Yellow */
        75% { color: #00ff00; }   /* Green */
        100% { color: #FF6B00; }  /* Back to orange */
    }

    .services-title span {
        font-size: clamp(3rem, 6vw, 5rem);
        font-weight: 900;
        text-transform: uppercase;
        text-align: center;
        animation: colorRotate 1s linear infinite;
    }

    .services-title .emoji {
        color: #ffd700;  /* Golden yellow for stars */
        animation: none;  /* No color rotation for emojis */
    }

    /* Add a subtle gradient overlay */
    .services-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(
            circle at 50% 50%,
            rgba(0, 255, 255, 0.03) 0%,
            transparent 70%
        );
        pointer-events: none;
        z-index: 1;
    }
}
