body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: rgb(21, 21, 184);
    background: linear-gradient(0deg, rgba(21, 21, 184, 1) 35%, rgba(18, 43, 230, 1) 100%);
    color: #cccccc;
    overflow-x: hidden;
    /* Disable horizontal scrolling */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #cccccc;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.services span {
    color: #cccccc;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
}

.services i {
    color: #cccccc;
    font-size: 1.2em;
    margin-right: 5px;
}

h1 {
    margin: 0;
    font-size: 4.5em;
}

p {
    margin: 10px 0 0 0;
    font-size: 1.4em;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.company-name {
    font-weight: bold;
}

.email-link {
    unicode-bidi: bidi-override;
    /* Keeps the text reversal for obfuscation */
    direction: rtl;
    /* Reverses text direction */
    text-decoration: none;
    /* Removes underline */
    color: inherit;
    /* Matches the body text color */
}

.email-link[href]:before {
    content: attr(data-email);
    /* Display reversed email */
    display: none;
    /* Hide this in source, only used for bots */
}

.email-link[href] {
    unicode-bidi: normal;
    /* Reset for display */
    direction: ltr;
    /* Normal direction for visible text */
}

/* Combined and enhanced mobile media query */
@media (max-width: 600px) {
    header {
        padding: 8px 15px;
    }

    .logo {
        font-size: 24px;
    }

    .social-icons a {
        font-size: 20px;
    }

    .services {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 20px 0;
    }

    .services span {
        margin: 0;
    }

    h1 {
        font-size: 3em;
    }

    p {
        font-size: 1.2em;
    }

    footer {
        padding: 8px;
        gap: 10px;
    }

    .company-name {
        font-size: 1em;
    }

    .email-link {
        font-size: 0.9em;
        /* Matches .contact-email */
    }
}

/* Tablet media query */
@media (min-width: 481px) and (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 26px;
    }

    .social-icons a {
        font-size: 22px;
    }

    .services {
        flex-wrap: wrap;
        gap: 15px;
    }

    h1 {
        font-size: 3.5em;
    }

    p {
        font-size: 1.3em;
    }

    footer {
        padding: 8px;
    }
}

/* Adjust for small screens like iPhone 6 */
@media (max-width: 400px) {
    header {
        padding: 10px 10px;
        /* Reduce padding */
    }

    .social-icons {
        gap: 10px;
        /* Smaller gap between icons */
    }

    .social-icons a {
        font-size: 18px;
        /* Smaller icons */
    }

    h1 {
        font-size: 2em;
        /* Smaller header title */
    }
}
