body {
    display: flex;
    flex-direction: column;
    font-family: "Noto Sans Display", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background: #1f1f1f;
    color: #F7F9F9;
    margin: 0;
    padding: 1rem;
    gap: 60px;
    scroll-behavior: smooth;
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
        gap: 40px;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 10vw;
    margin-right: 10vw;
    padding: 20px 0;
    border-bottom: 1px solid rgba(247, 249, 249, 0.1);
}

@media (max-width: 768px) {
    .header {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
    }
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #52b788;
    word-break: break-word;
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        text-align: center;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #F7F9F9;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.nav-links a:hover {
    color: #52b788;
}

.nav-links a:active {
    background: rgba(82, 183, 136, 0.2);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

h1 {
    font-size: 3.5rem;
    width: min-content;
    height: 100%;
    display: flex;
    align-items: center;
    animation: .5s slide-in-from-left;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        animation: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        width: 100%;
    }
}

h2 {
    font-size: 2.2rem;
    margin: 0 0 25px 0;
    color: #52b788;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
        margin: 0 0 20px 0;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.4rem;
        margin: 0 0 15px 0;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .hero-content {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        min-width: auto;
        gap: 12px;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(247, 249, 249, 0.7);
    width: 90%;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.cta-button {
    background-color: #52b788;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
    font-weight: 600;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
}

.cta-button:hover {
    background-color: #40a169;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

.hero, .header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-left: 10vw;
    margin-right: 10vw;
}

.hero-wrapper, .services-wrapper {
    height: fit-content;
    width: auto;
}

.hero {
    justify-content: space-between;
    gap: 40px;
    flex-wrap: nowrap;
}

.hero-picture {
    background-image: url("./assets/pic2.webp");
    border-radius: 4%;
    width: 100%;
    min-width: 300px;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1600 / 1900;
    background-size: cover;
    background-position: center;
    animation: .7s slide-in-from-right;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.about-section {
    margin-left: 10vw;
    margin-right: 10vw;
    padding: 35px;
    background: rgba(82, 183, 136, 0.1);
    border-radius: 10px;
    border-left: 4px solid #52b788;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(247, 249, 249, 0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .about-section {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 25px;
    }

    .about-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 20px;
        border-left-width: 3px;
    }

    .about-section p {
        font-size: 0.95rem;
    }
}

.services-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-left: 10vw;
    margin-right: 10vw;
}

.services-card {
    height: 220px;
    width: 220px;
    text-align: center;
    border-radius: 10%;
    background-color: white;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 10%;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(82, 183, 136, 0.2);
}

.services-card:hover::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.services-card:hover .services-card-header {
    opacity: 1;
    visibility: visible;
    background-color: transparent;
    color: #F7F9F9;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.services-card:active::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.services-card:active .services-card-header {
    opacity: 1;
    visibility: visible;
    background-color: transparent;
    color: #F7F9F9;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.services-card.touch-active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(82, 183, 136, 0.2);
}

.services-card.touch-active::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.services-card.touch-active .services-card-header {
    opacity: 1;
    visibility: visible;
    background-color: transparent;
    color: #F7F9F9;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.services-card-header {
    height: 30px;
    width: 200px;
    color: #F7F9F9;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
    .services-card {
        height: 180px;
        width: 180px;
    }
}

@media (max-width: 480px) {
    .services-card {
        height: 200px;
        width: 100%;
        max-width: 280px;
    }
}

#lawn-maintenance {
    background-image: url('./assets/lawn-maintenance.jpg');
    background-size: cover;
}

#tree-trimming {
    background-image: url('./assets/tree-trimming.webp');
    background-size: cover;
}

#mulching {
    background-image: url('./assets/mulching.webp');
    background-size: cover;
}

#hardscaping {
    background-image: url('./assets/pic2.webp');
    background-size: cover;
}

.testimonials-section {
    margin-left: 10vw;
    margin-right: 10vw;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: rgba(82, 183, 136, 0.1);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #52b788;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-size: 1rem;
    font-style: italic;
    color: rgba(247, 249, 249, 0.8);
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.customer-name {
    font-weight: 600;
    color: #52b788;
}

/* Footer */
.footer {
    background: #0f0f0f;
    padding: 50px 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
    border-top: 1px solid rgba(82, 183, 136, 0.2);
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0.75rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 40px;
    margin-left: 10vw;
    margin-right: 10vw;
}

.footer-section h3 {
    color: #52b788;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(247, 249, 249, 0.7);
    margin: 8px 0;
    font-weight: normal;
}

.footer-section a {
    color: #52b788;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.footer-section a:hover {
    color: #F7F9F9;
}

.footer-section a:active {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    text-align: center;
    color: rgba(247, 249, 249, 0.5);
    padding-top: 40px;
    border-top: 1px solid rgba(82, 183, 136, 0.1);
    margin-left: 10vw;
    margin-right: 10vw;
}

@keyframes slide-in-from-top {
    from {
        transform: translateY(-100%);
    } to {
        transform: translateY(0%);
    }
}

@keyframes slide-in-from-bottom {
    from {
        transform: translateY(100%);
    } to {
        transform: translateY(0%);
    }
}

@keyframes slide-in-from-left {
    from {
        transform: translateX(-50%);
    } to {
        transform: translateX(0%);
    }
}

@keyframes slide-in-from-right {
    from {
        transform: translateX(100%);
    } to {
        transform: translateX(0%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-right: 0;
        padding: 0 1rem;
    }

    .hero-content {
        width: 100%;
        text-align: center;
        flex: none;
        min-width: auto;
    }

    .hero-subtitle {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: 200px;
    }

    .hero-picture {
        max-width: 100%;
        min-width: 200px;
    }

    .about-section {
        margin-left: 0;
        margin-right: 0;
        padding: 30px 1rem;
    }

    .services-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0 1rem;
        flex-direction: column;
        align-items: center;
    }

    .services-card {
        width: 100%;
        max-width: 300px;
    }

    .testimonials-section {
        margin-left: 0;
        margin-right: 0;
        padding: 0 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        margin-left: 0;
        margin-right: 0;
        padding: 0 1rem;
    }
}