html {
    scroll-behavior: smooth;
}

/* header styles */
header {
    text-align: center;
    padding: 40px 20px;
    color: white;
    background:linear-gradient(to bottom, seagreen 50%, white 100%);
}

header h1 {
    font-size: 40px;
    margin-bottom: 10px;
    color: white;
}

header p {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bolder;
}

/* Navigation styles */
header nav {
  display: flex;
  justify-content: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 20px;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.4s ease;
}

header nav ul li a:hover {
    background-color: darkgreen;
}

body {
    font-style: normal;
    font-size: 16px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: black;
    background-color:aliceblue;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 26px;
    margin-top: 0;
    color: darkgreen;
}

p {
    margin-bottom: 1em;
}

nav {
    background-color: seagreen;
    padding: 10px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    max-width: 1220px;
    margin: auto;
}

.home p {
    text-align: center;
    
}

.about p {
    margin: auto;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.services p {
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(6, 70, 28, 0.1);
}

.services {
    text-align: center;
}

.services ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    text-align: center;
    padding-left: 20px;
    margin: 0 auto;
    list-style: none;
}

.services ul li::before {
    content: "✓ ";
    color: green;
    font-weight: bold;
    margin-right: 8px;
    line-height: 2;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact {
    text-align: center;
    padding: 40px 20px;
    background-color:darkseagreen;
    border-top: 2px solid #ddd;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color:black;
}

.contact p {
    margin-bottom: 20px;
    font-size: 16px;
    color: black;
}

.contact ul {
    display: inline-block;
    text-align: left;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.contact ul li {
    margin: 10px 0;
    font-size: 16px;
    color: black;
}

.contact a:hover {
    text-decoration: underline;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.carousel img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

@media (max-width: 600px) {
    .carousel {
        flex-direction: column;
    }
}

.carousel img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: white;
    background-color:black;
    margin-top: 10px;
}

footer p {
    color: white !important;
}

.breathing-widget {
margin-top: 10px;
font-size: 0.9rem;
text-align: center;
}

#breathe-btn {
    background: darkslategrey;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.circle {
    width: 40px;
    height: 40px;
    background-color: darkslategray;
    border-radius: 50%;
    margin: 20px auto;
    transition: all 4s ease-in-out;
}

.breathe-in{transform: scale(1.5);}
.hold { transform: scale(1.5); background-color:lightslategrey; }
.breathe-out { transform: scale(1); background-color: lightslategrey; }

.breathing .circle {
    transform: scale(2.5);
}

#breathe-text {
    font-weight: bold;
    font-size: 18px;
    color: black;
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .services ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: darkgreen;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#backToTop:hover {
    background-color: black;
}