* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

.top-nav {
    padding: 15px 40px 0 40px;
    background-color: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "rl-horizon", sans-serif;
    color: #fff;
    font-size: 30px;
    padding-bottom: 0;
    font-weight: bolder;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.7;
}

.nav-line {
    height: 6px;
    background-color: #C1272D;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0;
    padding-left: 20px;
    margin-top: -10px;
    margin-bottom: 80px;
    /* Increased space before services */
    width: 100%;
}

.header-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    transform: rotate(-3deg);
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: -80px;

}

.header-image:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
}

.header-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;

    transform: rotate(3deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, z-index 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: 50px;

}

.header-photo:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

body {
    background-color: #1034Aa;
    font-family: "rl-horizon", sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    font-size: 70px;
    color: #C1272D;
    text-align: center;
    margin-bottom: 60px;
}

.services {
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
}

.label {
    font-size: 16px;
    color: #fff;
    /* White text for better contrast on blue */
    margin-bottom: 0;
    font-weight: bold;
    width: 160px;
    text-align: left;
    flex-shrink: 0;
    padding-top: 10px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    justify-content: flex-start;
    max-width: 550px;
}

button {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #327039;
    background-color: #FFF3B0;
    /* Butter yellow */
    font-family: "rl-horizon", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #327039;
}

button:hover {
    background-color: #327039;
    color: #FFF3B0;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #327039;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #327039;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 15px;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .social-links {
        font-size: 14px;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-header {
        flex-direction: column;
        gap: 20px;
        padding-left: 0;
        margin-top: 20px;
        margin-bottom: 40px;
        align-items: center;
    }

    .header-photo {
        width: 220px;
        height: 220px;
        margin-top: 0;
        transform: rotate(2deg);
    }

    .header-image {
        margin-left: 0;
        width: 90%;
        max-width: 350px;
        transform: rotate(-2deg);
    }

    .section {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .label {
        width: auto;
        text-align: center;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        justify-items: center;
        gap: 8px;
    }

    .button-grid button {
        width: 100%;
        max-width: 140px;
        padding: 10px 15px;
        font-size: 14px;
    }

    h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    h2 {
        text-align: center;
        width: 100%;
        font-size: 1.4rem;
    }
}